From bb0c1cb536494f87b61e15323826cb2bbecb2099 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 22 Aug 2023 21:59:17 +0800 Subject: [PATCH] =?UTF-8?q?code=20review=EF=BC=9A=E4=BC=9A=E5=91=98?= =?UTF-8?q?=E7=AD=89=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/member/level/index.ts | 2 +- src/api/member/signin/config/index.ts | 10 +++++----- src/api/member/signin/record/index.ts | 2 +- src/views/member/group/GroupForm.vue | 6 +++--- .../member/group/components/MemberGroupSelect.vue | 1 - src/views/member/level/LevelForm.vue | 10 +++++----- .../member/level/components/MemberLevelSelect.vue | 1 - src/views/member/level/index.vue | 2 +- src/views/member/user/index.vue | 6 ++++-- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/api/member/level/index.ts b/src/api/member/level/index.ts index a284fd2d..540bfe4b 100644 --- a/src/api/member/level/index.ts +++ b/src/api/member/level/index.ts @@ -5,7 +5,7 @@ export interface LevelVO { name: string experience: number value: number - discount: number + discountPercent: number icon: string bgUrl: string status: number diff --git a/src/api/member/signin/config/index.ts b/src/api/member/signin/config/index.ts index 833c2e16..558bdc70 100644 --- a/src/api/member/signin/config/index.ts +++ b/src/api/member/signin/config/index.ts @@ -9,25 +9,25 @@ export interface SignInConfigVO { // 查询积分签到规则列表 export const getSignInConfigList = async () => { - return await request.get({ url: `/member/point/sign-in-config/list` }) + return await request.get({ url: `/member/sign-in/config/list` }) } // 查询积分签到规则详情 export const getSignInConfig = async (id: number) => { - return await request.get({ url: `/member/point/sign-in-config/get?id=` + id }) + return await request.get({ url: `/member/sign-in/config/get?id=` + id }) } // 新增积分签到规则 export const createSignInConfig = async (data: SignInConfigVO) => { - return await request.post({ url: `/member/point/sign-in-config/create`, data }) + return await request.post({ url: `/member/sign-in/config/create`, data }) } // 修改积分签到规则 export const updateSignInConfig = async (data: SignInConfigVO) => { - return await request.put({ url: `/member/point/sign-in-config/update`, data }) + return await request.put({ url: `/member/sign-in/config/update`, data }) } // 删除积分签到规则 export const deleteSignInConfig = async (id: number) => { - return await request.delete({ url: `/member/point/sign-in-config/delete?id=` + id }) + return await request.delete({ url: `/member/sign-in/config/delete?id=` + id }) } diff --git a/src/api/member/signin/record/index.ts b/src/api/member/signin/record/index.ts index 94df2029..7d137029 100644 --- a/src/api/member/signin/record/index.ts +++ b/src/api/member/signin/record/index.ts @@ -9,5 +9,5 @@ export interface SignInRecordVO { // 查询用户签到积分列表 export const getSignInRecordPage = async (params) => { - return await request.get({ url: `/member/point/sign-in-record/page`, params }) + return await request.get({ url: `/member/sign-in/record/page`, params }) } diff --git a/src/views/member/group/GroupForm.vue b/src/views/member/group/GroupForm.vue index 9788dbef..14510b0f 100644 --- a/src/views/member/group/GroupForm.vue +++ b/src/views/member/group/GroupForm.vue @@ -10,9 +10,6 @@ - - - + + + -