From de941ec6ba0327d638dad22f3258ccc50f86a303 Mon Sep 17 00:00:00 2001 From: xiaqing Date: Wed, 9 Aug 2023 20:59:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E7=A7=AF=E5=88=86=E9=92=88?= =?UTF-8?q?=E5=AF=B9=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E3=80=81=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=BC=98=E5=8C=96=201.=E4=BC=98=E5=8C=96todo=E5=BB=BA?= =?UTF-8?q?=E8=AE=AE=202.=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/point/record/index.ts | 26 --- src/views/member/point/config/index.vue | 37 +++- src/views/member/point/record/RecordForm.vue | 180 ------------------- src/views/member/point/record/index.vue | 38 ++-- src/views/member/signin/record/index.vue | 13 +- 5 files changed, 51 insertions(+), 243 deletions(-) delete mode 100644 src/views/member/point/record/RecordForm.vue diff --git a/src/api/point/record/index.ts b/src/api/point/record/index.ts index 15eaff35..adbdcc56 100644 --- a/src/api/point/record/index.ts +++ b/src/api/point/record/index.ts @@ -4,7 +4,6 @@ export interface RecordVO { id: number bizId: string bizType: string - type: string title: string description: string point: number @@ -20,28 +19,3 @@ export interface RecordVO { export const getRecordPage = async (params) => { return await request.get({ url: `/point/record/page`, params }) } - -// 查询用户积分记录详情 -export const getRecord = async (id: number) => { - return await request.get({ url: `/point/record/get?id=` + id }) -} - -// 新增用户积分记录 -export const createRecord = async (data: RecordVO) => { - return await request.post({ url: `/point/record/create`, data }) -} - -// 修改用户积分记录 -export const updateRecord = async (data: RecordVO) => { - return await request.put({ url: `/point/record/update`, data }) -} - -// 删除用户积分记录 -export const deleteRecord = async (id: number) => { - return await request.delete({ url: `/point/record/delete?id=` + id }) -} - -// 导出用户积分记录 Excel -export const exportRecord = async (params) => { - return await request.download({ url: `/point/record/export-excel`, params }) -} diff --git a/src/views/member/point/config/index.vue b/src/views/member/point/config/index.vue index 0fd1484f..8a050491 100644 --- a/src/views/member/point/config/index.vue +++ b/src/views/member/point/config/index.vue @@ -10,26 +10,36 @@ - - - + + + + + 下单积分是否抵用订单金额 - + - + + 积分抵用比例(1积分抵多少金额)单位:元 + + + - + + 单次下单积分使用上限,0不限制 + + - 提交 + 下单支付金额按比例赠送积分(实际支付1元赠送多少积分) + + + 保存 @@ -91,3 +106,9 @@ onMounted(() => { getConfig() }) + + diff --git a/src/views/member/point/record/RecordForm.vue b/src/views/member/point/record/RecordForm.vue deleted file mode 100644 index a75eb9a5..00000000 --- a/src/views/member/point/record/RecordForm.vue +++ /dev/null @@ -1,180 +0,0 @@ - - diff --git a/src/views/member/point/record/index.vue b/src/views/member/point/record/index.vue index 1d002dee..1f33c3a2 100644 --- a/src/views/member/point/record/index.vue +++ b/src/views/member/point/record/index.vue @@ -8,10 +8,10 @@ :inline="true" label-width="68px" > - + - - - - - - - - + - - - + + + @@ -149,7 +138,6 @@ import { DICT_TYPE, getStrDictOptions, getIntDictOptions } from '@/utils/dict' import { dateFormatter } from '@/utils/formatTime' import * as RecordApi from '@/api/point/record' -import RecordForm from './RecordForm.vue' defineOptions({ name: 'PointRecord' }) @@ -159,7 +147,7 @@ const list = ref([]) // 列表的数据 const queryParams = reactive({ pageNo: 1, pageSize: 10, - bizId: null, + nickName: null, bizType: null, type: null, title: null, diff --git a/src/views/member/signin/record/index.vue b/src/views/member/signin/record/index.vue index 4039e1e2..d74edcdf 100644 --- a/src/views/member/signin/record/index.vue +++ b/src/views/member/signin/record/index.vue @@ -8,9 +8,9 @@ :inline="true" label-width="68px" > - + - +