diff --git a/src/api/member/opentype/index.ts b/src/api/member/opentype/index.ts new file mode 100644 index 00000000..a8b6c041 --- /dev/null +++ b/src/api/member/opentype/index.ts @@ -0,0 +1,47 @@ +import request from '@/config/axios' + +// 会员类型 VO +export interface OpenTypeVO { + id: number // 会员开通类型 + title: string // 会员开通分类标题 + icon: string // 图标 + preferentialPrice: number // 价格(优惠价) + originalPrice: number // 价格(原价) + duration: number // 时长(天) + status: string // 状态 + isHot: string // 是否热门 + sort: number // 排序 +} + +// 会员类型 API +export const OpenTypeApi = { + // 查询会员类型分页 + getOpenTypePage: async (params: any) => { + return await request.get({ url: `/member/open-type/page`, params }) + }, + + // 查询会员类型详情 + getOpenType: async (id: number) => { + return await request.get({ url: `/member/open-type/get?id=` + id }) + }, + + // 新增会员类型 + createOpenType: async (data: OpenTypeVO) => { + return await request.post({ url: `/member/open-type/create`, data }) + }, + + // 修改会员类型 + updateOpenType: async (data: OpenTypeVO) => { + return await request.put({ url: `/member/open-type/update`, data }) + }, + + // 删除会员类型 + deleteOpenType: async (id: number) => { + return await request.delete({ url: `/member/open-type/delete?id=` + id }) + }, + + // 导出会员类型 Excel + exportOpenType: async (params) => { + return await request.download({ url: `/member/open-type/export-excel`, params }) + } +} \ No newline at end of file diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index 6bb00b3a..2aad8661 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -1,19 +1,9 @@ + + + + diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 82114992..b13857dd 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -168,6 +168,7 @@ export enum DICT_TYPE { // ========== Member 会员模块 ========== MEMBER_POINT_BIZ_TYPE = 'member_point_biz_type', // 积分的业务类型 MEMBER_EXPERIENCE_BIZ_TYPE = 'member_experience_biz_type', // 会员经验业务类型 + MEMBER_OPEN_TYPE_STATUS = 'open_type_status', // 会员开通类型状态 // ========== MALL - 商品模块 ========== PRODUCT_SPU_STATUS = 'product_spu_status', //商品状态 diff --git a/src/views/member/opentype/OpenTypeForm.vue b/src/views/member/opentype/OpenTypeForm.vue new file mode 100644 index 00000000..3178583b --- /dev/null +++ b/src/views/member/opentype/OpenTypeForm.vue @@ -0,0 +1,189 @@ + + \ No newline at end of file diff --git a/src/views/member/opentype/index.vue b/src/views/member/opentype/index.vue new file mode 100644 index 00000000..a647956a --- /dev/null +++ b/src/views/member/opentype/index.vue @@ -0,0 +1,180 @@ + + + \ No newline at end of file diff --git a/src/views/member/recent/index.vue b/src/views/member/recent/index.vue index 6e8e2922..d85c44c1 100644 --- a/src/views/member/recent/index.vue +++ b/src/views/member/recent/index.vue @@ -2,18 +2,6 @@ - - - - - - - - - @@ -22,18 +10,10 @@ - - - - - - + :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" class="!w-440px" /> diff --git a/src/views/system/notify/my/index.vue b/src/views/system/notify/my/index.vue index 7b0c785c..d09d7f27 100644 --- a/src/views/system/notify/my/index.vue +++ b/src/views/system/notify/my/index.vue @@ -3,42 +3,25 @@ - + - - + + - + - 搜索 - 重置 + + 搜索 + + + 重置 + 标记已读 @@ -51,64 +34,33 @@ - + - + - + - + - +