diff --git a/src/api/member/experience-record/index.ts b/src/api/member/experience-record/index.ts new file mode 100644 index 00000000..07f839d3 --- /dev/null +++ b/src/api/member/experience-record/index.ts @@ -0,0 +1,42 @@ +import request from '@/config/axios' + +export interface ExperienceRecordVO { + id: number + userId: number + bizId: string + bizType: number + title: string + description: string + experience: number + totalExperience: number +} + +// 查询会员经验记录列表 +export const getExperienceRecordPage = async (params) => { + return await request.get({ url: `/member/experience-record/page`, params }) +} + +// 查询会员经验记录详情 +export const getExperienceRecord = async (id: number) => { + return await request.get({ url: `/member/experience-record/get?id=` + id }) +} + +// 新增会员经验记录 +export const createExperienceRecord = async (data: ExperienceRecordVO) => { + return await request.post({ url: `/member/experience-record/create`, data }) +} + +// 修改会员经验记录 +export const updateExperienceRecord = async (data: ExperienceRecordVO) => { + return await request.put({ url: `/member/experience-record/update`, data }) +} + +// 删除会员经验记录 +export const deleteExperienceRecord = async (id: number) => { + return await request.delete({ url: `/member/experience-record/delete?id=` + id }) +} + +// 导出会员经验记录 Excel +export const exportExperienceRecord = async (params) => { + return await request.download({ url: `/member/experience-record/export-excel`, params }) +} diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 6f8f3779..3286d0bb 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -150,6 +150,8 @@ export enum DICT_TYPE { // ========== MALL - 会员模块 ========== MEMBER_POINT_BIZ_TYPE = 'member_point_biz_type', // 积分的业务类型 + MEMBER_EXPERIENCE_BIZ_TYPE = 'member_experience_biz_type', // 会员经验业务类型 + // TODO @疯狂:这块的枚举,是不是要挪到 TRADE 那啦 BROKERAGE_ENABLED_CONDITION = 'brokerage_enabled_condition', // 分佣模式 BROKERAGE_BIND_MODE = 'brokerage_bind_mode', // 分销关系绑定模式 BROKERAGE_BANK_NAME = 'brokerage_bank_name', // 佣金提现银行 diff --git a/src/views/member/user/detail/UserExperienceRecord.vue b/src/views/member/user/detail/UserExperienceRecord.vue new file mode 100644 index 00000000..55de8969 --- /dev/null +++ b/src/views/member/user/detail/UserExperienceRecord.vue @@ -0,0 +1,162 @@ + + + diff --git a/src/views/member/user/detail/UserOrder.vue b/src/views/member/user/detail/UserOrder.vue new file mode 100644 index 00000000..a4529dd2 --- /dev/null +++ b/src/views/member/user/detail/UserOrder.vue @@ -0,0 +1,387 @@ + + + diff --git a/src/views/member/user/detail/index.vue b/src/views/member/user/detail/index.vue index 3c329a5b..b0967ae5 100644 --- a/src/views/member/user/detail/index.vue +++ b/src/views/member/user/detail/index.vue @@ -36,12 +36,16 @@ - 成长值(WIP) + + 余额(WIP) - 订单管理(WIP) + + + 售后管理(WIP) 收藏记录(WIP) 优惠劵(WIP) @@ -62,7 +66,9 @@ import UserAccountInfo from './UserAccountInfo.vue' import UserAddressList from './UserAddressList.vue' import UserPointList from './UserPointList.vue' import UserSignList from './UserSignList.vue' +import UserExperienceRecord from './UserExperienceRecord.vue' import { CardTitle } from '@/components/Card/index' +import UserOrder from '@/views/member/user/detail/UserOrder.vue' defineOptions({ name: 'MemberDetail' })