From 5b89459951931423a94ec50c876bc35a46d91a6e Mon Sep 17 00:00:00 2001 From: Jruome <2559028966@qq.com> Date: Thu, 18 May 2023 18:03:06 +0800 Subject: [PATCH] =?UTF-8?q?uniapp=20=E8=B4=AD=E4=B9=B0=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-app/api/member.js | 4 +- yudao-ui-app/pages.json | 8 +- .../pages/member_application/index.vue | 245 +++++------ yudao-ui-app/pages/member_equity/index.vue | 156 +++++-- yudao-ui-app/pages/member_others/index.vue | 387 ++++++++++++------ yudao-ui-app/pages/member_record/index.vue | 77 ++-- yudao-ui-app/pages/member_renew/index.vue | 302 +++++++++----- yudao-ui-app/pages/users/login/index.vue | 2 + 8 files changed, 784 insertions(+), 397 deletions(-) diff --git a/yudao-ui-app/api/member.js b/yudao-ui-app/api/member.js index 182262073..8e1f99336 100644 --- a/yudao-ui-app/api/member.js +++ b/yudao-ui-app/api/member.js @@ -11,8 +11,8 @@ export function memberGradeInfo(){ /** * 获取当前登录账号的充值记录 */ -export function memberHeadInfo(){ - return request.get('api/order/member/memberHeadInfo', {},{noAuth:true}) +export function memberOrderInfo(){ + return request.get('api/order/member/memberOrderInfo', {},{noAuth:true}) } /** diff --git a/yudao-ui-app/pages.json b/yudao-ui-app/pages.json index 911bdef5f..25c9a715e 100644 --- a/yudao-ui-app/pages.json +++ b/yudao-ui-app/pages.json @@ -573,11 +573,17 @@ "text": "分类" }, { - "pagePath": "pages/member_application/index", + "pagePath": "pages/member_record/index", "iconPath": "static/images/2-001.png", "selectedIconPath": "static/images/2-002.png", "text": "会员申请" }, + // { + // "pagePath": "pages/member_application/index", + // "iconPath": "static/images/2-001.png", + // "selectedIconPath": "static/images/2-002.png", + // "text": "会员申请" + // }, { "pagePath": "pages/order_addcart/order_addcart", "iconPath": "static/images/3-001.png", diff --git a/yudao-ui-app/pages/member_application/index.vue b/yudao-ui-app/pages/member_application/index.vue index faa53b235..e26a09936 100644 --- a/yudao-ui-app/pages/member_application/index.vue +++ b/yudao-ui-app/pages/member_application/index.vue @@ -1,23 +1,16 @@ @@ -102,20 +101,30 @@ diff --git a/yudao-ui-app/pages/member_record/index.vue b/yudao-ui-app/pages/member_record/index.vue index 713dd712f..c239bddd2 100644 --- a/yudao-ui-app/pages/member_record/index.vue +++ b/yudao-ui-app/pages/member_record/index.vue @@ -1,30 +1,54 @@ diff --git a/yudao-ui-app/pages/users/login/index.vue b/yudao-ui-app/pages/users/login/index.vue index e6894e397..a16212ec7 100644 --- a/yudao-ui-app/pages/users/login/index.vue +++ b/yudao-ui-app/pages/users/login/index.vue @@ -129,6 +129,7 @@ let data = res.data; let newTime = Math.round(new Date() / 1000); this.$store.commit("LOGIN", { + 'userId':data.userId, 'token': res.data.accessToken, 'refreshToken': res.data.refreshToken }); @@ -231,6 +232,7 @@ data }) => { this.$store.commit("LOGIN", { + 'userId':data.userId, 'token': data.accessToken, 'refreshToken': data.refreshToken });