From b8affe54c1dde1258f55092561029247d2b8f076 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 27 Dec 2023 20:38:58 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E7=A7=AF=E5=88=86=EF=BC=9A?= =?UTF-8?q?=E6=8E=A5=E5=85=A5=20100%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/wallet/score.vue | 455 ++++++++++++++++++------------------ sheep/api/member/point.js | 19 ++ sheep/api/user.js | 8 - sheep/store/user.js | 2 +- 4 files changed, 249 insertions(+), 235 deletions(-) create mode 100644 sheep/api/member/point.js diff --git a/pages/user/wallet/score.vue b/pages/user/wallet/score.vue index 335bc81a..c1a5dca4 100644 --- a/pages/user/wallet/score.vue +++ b/pages/user/wallet/score.vue @@ -1,274 +1,277 @@ - + \ No newline at end of file diff --git a/sheep/api/member/point.js b/sheep/api/member/point.js new file mode 100644 index 00000000..73f3fb7f --- /dev/null +++ b/sheep/api/member/point.js @@ -0,0 +1,19 @@ +import request from '@/sheep/request'; + +const PointApi = { + // 获得用户积分记录分页 + getPointRecordPage: (params) => { + if (params.addStatus === undefined) { + delete params.addStatus + } + const queryString = Object.keys(params) + .map((key) => encodeURIComponent(key) + '=' + params[key]) + .join('&'); + return request({ + url: `/app-api/member/point/record/page?${queryString}`, + method: 'GET', + }); + } +}; + +export default PointApi; diff --git a/sheep/api/user.js b/sheep/api/user.js index 56af4272..4e8dadec 100644 --- a/sheep/api/user.js +++ b/sheep/api/user.js @@ -256,14 +256,6 @@ export default { params, custom: {}, }), - log2: (params) => - request2({ - url: 'member/point/record/page', - // url: 'pay/wallet-transaction/page', - method: 'GET', - params, - custom: {}, - }), }, account: { info: (params) => diff --git a/sheep/store/user.js b/sheep/store/user.js index ad0fc679..5fa4c873 100644 --- a/sheep/store/user.js +++ b/sheep/store/user.js @@ -23,7 +23,7 @@ const defaultUserInfo = { gender: 0, // 性别 mobile: '', // 手机号 money: '--', // 余额 - score: '--', // 积分 + score: '--', // 积分 TODO 芋艿:改成 point verification: {}, // 认证字段 };