修改登录时没有赋值技师id,退出时没有清除技师id的问题
This commit is contained in:
parent
d243849701
commit
8922822225
|
@ -74,6 +74,8 @@
|
||||||
uni.removeStorageSync('unionId')
|
uni.removeStorageSync('unionId')
|
||||||
uni.removeStorageSync('openId')
|
uni.removeStorageSync('openId')
|
||||||
uni.removeStorageSync('isVIP')
|
uni.removeStorageSync('isVIP')
|
||||||
|
uni.removeStorageSync('artificerId')
|
||||||
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '退出成功!',
|
title: '退出成功!',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|
|
@ -343,6 +343,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
this.getMyPageNum();
|
||||||
this.XCXIsSelect = this.$queue.getData("XCXIsSelect");
|
this.XCXIsSelect = this.$queue.getData("XCXIsSelect");
|
||||||
this.shopSel = this.$queue.getData('shopSel');
|
this.shopSel = this.$queue.getData('shopSel');
|
||||||
},
|
},
|
||||||
|
@ -416,8 +417,10 @@
|
||||||
},
|
},
|
||||||
getMyPageNum() {
|
getMyPageNum() {
|
||||||
let artificerId = uni.getStorageSync("artificerId");
|
let artificerId = uni.getStorageSync("artificerId");
|
||||||
|
console.log("artificerId--->",artificerId);
|
||||||
if (artificerId) {
|
if (artificerId) {
|
||||||
this.$Request.getXZX("/app/artificer/integral/home/?artificerId=" + artificerId, ).then((res) => {
|
this.$Request.getXZX("/app/artificer/integral/home/?artificerId=" + artificerId, ).then((res) => {
|
||||||
|
console.log("res>",res);
|
||||||
if (res && res.code == 0) {
|
if (res && res.code == 0) {
|
||||||
this.dailyEarnings = res?.data?.dailyEarnings;
|
this.dailyEarnings = res?.data?.dailyEarnings;
|
||||||
this.earnings = res?.data?.earnings;
|
this.earnings = res?.data?.earnings;
|
||||||
|
@ -425,6 +428,11 @@
|
||||||
this.currentEndDate = res?.data?.currentEndDate.split(" ")[0];
|
this.currentEndDate = res?.data?.currentEndDate.split(" ")[0];
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
this.dailyEarnings = 0;
|
||||||
|
this.earnings =0;
|
||||||
|
this.currentMonthsIncome = 0;
|
||||||
|
this.currentEndDate = "";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getJqqd() {
|
getJqqd() {
|
||||||
|
|
|
@ -97,6 +97,7 @@
|
||||||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||||
this.$queue.setData("onlineStatus", res.user?.status);
|
this.$queue.setData("onlineStatus", res.user?.status);
|
||||||
|
this.$queue.setData("artificerId", res.user?.artificerId);
|
||||||
this.getIsVip()
|
this.getIsVip()
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
|
|
Loading…
Reference in New Issue