diff --git a/yudao-admin-vue3/src/api/mall/promotion/memberbenefit/index.ts b/yudao-admin-vue3/src/api/mall/promotion/memberbenefit/index.ts index bb3be5e..1ccd25c 100644 --- a/yudao-admin-vue3/src/api/mall/promotion/memberbenefit/index.ts +++ b/yudao-admin-vue3/src/api/mall/promotion/memberbenefit/index.ts @@ -3,7 +3,8 @@ import request from '@/config/axios' // 付费会员权益 VO export interface PaidMemberBenefitVO { id: number // 编号 - name: string // 名称 + benName: string // 权益名称 + showName: string // 展示名称 iconUrl: string // 图标地址 intro: string // 描述 status: boolean // 状态:(默认)0隐藏 1显示 diff --git a/yudao-admin-vue3/src/api/member/type/index.ts b/yudao-admin-vue3/src/api/member/type/index.ts new file mode 100644 index 0000000..f473c73 --- /dev/null +++ b/yudao-admin-vue3/src/api/member/type/index.ts @@ -0,0 +1,45 @@ +import request from '@/config/axios' + +// 会员卡类型 VO +export interface cardVO { + id: number // id + name: string // 会员名 + vid: string // 有效期 + originalPrice: number // 原价 + specialPrice: number // 优惠价 + sort: string // 排序 + status: number// 是否禁用 +} + +// 会员卡类型 API +export const cardApi = { + // 查询会员卡类型分页 + getcardPage: async (params: any) => { + return await request.get({ url: `/paid/member/card/type/page`, params }) + }, + + // 查询会员卡类型详情 + getcard: async (id: number) => { + return await request.get({ url: `/paid/member/card/type/get?id=` + id }) + }, + + // 新增会员卡类型 + createcard: async (data: cardVO) => { + return await request.post({ url: `/paid/member/card/type/create`, data }) + }, + + // 修改会员卡类型 + updatecard: async (data: cardVO) => { + return await request.put({ url: `/paid/member/card/type/update`, data }) + }, + + // 删除会员卡类型 + deletecard: async (id: number) => { + return await request.delete({ url: `/paid/member/card/type/delete?id=` + id }) + }, + + // 导出会员卡类型 Excel + exportcard: async (params) => { + return await request.download({ url: `/paid/member/card/type/export-excel`, params }) + }, +} diff --git a/yudao-admin-vue3/src/views/mall/promotion/memberbenefit/PaidMemberBenefitForm.vue b/yudao-admin-vue3/src/views/mall/promotion/memberbenefit/PaidMemberBenefitForm.vue index cd24106..6c18c50 100644 --- a/yudao-admin-vue3/src/views/mall/promotion/memberbenefit/PaidMemberBenefitForm.vue +++ b/yudao-admin-vue3/src/views/mall/promotion/memberbenefit/PaidMemberBenefitForm.vue @@ -7,15 +7,15 @@ label-width="100px" v-loading="formLoading" > - - + + + + + - - - - + + + - - +