From 892282222577fe9424a2ef52ba7b2093f343f617 Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Sat, 29 Jun 2024 22:08:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95=E6=97=B6?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E8=B5=8B=E5=80=BC=E6=8A=80=E5=B8=88id?= =?UTF-8?q?=EF=BC=8C=E9=80=80=E5=87=BA=E6=97=B6=E6=B2=A1=E6=9C=89=E6=B8=85?= =?UTF-8?q?=E9=99=A4=E6=8A=80=E5=B8=88id=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- my/setting/index.vue | 2 ++ pages/my/index.vue | 8 ++++++++ pages/public/loginphone.vue | 1 + 3 files changed, 11 insertions(+) diff --git a/my/setting/index.vue b/my/setting/index.vue index 8ada63b..f8b7c9a 100644 --- a/my/setting/index.vue +++ b/my/setting/index.vue @@ -74,6 +74,8 @@ uni.removeStorageSync('unionId') uni.removeStorageSync('openId') uni.removeStorageSync('isVIP') + uni.removeStorageSync('artificerId') + uni.showToast({ title: '退出成功!', icon: 'none' diff --git a/pages/my/index.vue b/pages/my/index.vue index 1234a77..6ea9abb 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -343,6 +343,7 @@ } }, onLoad() { + this.getMyPageNum(); this.XCXIsSelect = this.$queue.getData("XCXIsSelect"); this.shopSel = this.$queue.getData('shopSel'); }, @@ -416,8 +417,10 @@ }, getMyPageNum() { let artificerId = uni.getStorageSync("artificerId"); + console.log("artificerId--->",artificerId); if (artificerId) { this.$Request.getXZX("/app/artificer/integral/home/?artificerId=" + artificerId, ).then((res) => { + console.log("res>",res); if (res && res.code == 0) { this.dailyEarnings = res?.data?.dailyEarnings; this.earnings = res?.data?.earnings; @@ -425,6 +428,11 @@ this.currentEndDate = res?.data?.currentEndDate.split(" ")[0]; } }) + }else{ + this.dailyEarnings = 0; + this.earnings =0; + this.currentMonthsIncome = 0; + this.currentEndDate = ""; } }, getJqqd() { diff --git a/pages/public/loginphone.vue b/pages/public/loginphone.vue index 4afcd79..03e9f01 100644 --- a/pages/public/loginphone.vue +++ b/pages/public/loginphone.vue @@ -97,6 +97,7 @@ this.$queue.setData("invitationCode", res.user.invitationCode); this.$queue.setData("inviterCode", res.user.inviterCode); this.$queue.setData("onlineStatus", res.user?.status); + this.$queue.setData("artificerId", res.user?.artificerId); this.getIsVip() uni.hideLoading(); uni.switchTab({