From d4bbe55126c2415a80f073042597be71e54e93a8 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 28 Dec 2023 23:21:42 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E4=B8=AA=E4=BA=BA=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=EF=BC=9A=E5=BC=95=E5=AF=BC=E7=BB=91=E5=AE=9A=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/components/s-user-card/s-user-card.vue | 9 ++++----- sheep/store/user.js | 10 ++++------ 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/sheep/components/s-user-card/s-user-card.vue b/sheep/components/s-user-card/s-user-card.vue index b3188491..d2340985 100644 --- a/sheep/components/s-user-card/s-user-card.vue +++ b/sheep/components/s-user-card/s-user-card.vue @@ -23,18 +23,17 @@ - - + diff --git a/sheep/store/user.js b/sheep/store/user.js index d484bfe3..a9393317 100644 --- a/sheep/store/user.js +++ b/sheep/store/user.js @@ -27,8 +27,6 @@ const defaultUserInfo = { gender: 0, // 性别 mobile: '', // 手机号 point: 0, // 积分 - money: 0, // 余额 - verification: {}, // 认证字段 }; // 默认钱包信息 @@ -103,7 +101,7 @@ const user = defineStore({ }, // 设置 token - // TODO 芋艿:整理下; + // TODO 芋艿:后续要支持访问令牌的刷新!!! setToken(token = '') { if (token === '') { this.isLogin = false; @@ -159,9 +157,9 @@ const user = defineStore({ $share.getShareInfo(); // 提醒绑定手机号 - // if (app().platform.bind_mobile && !this.userInfo.verification?.mobile) { - // showAuthModal('changeMobile'); - // } + if (app().platform.bind_mobile && !this.userInfo.mobile) { + showAuthModal('changeMobile'); + } // 添加分享记录 // TODO 芋艿:整理下;