This commit is contained in:
weipengfei 2024-04-10 16:54:18 +08:00
parent 25c9ae4f97
commit 53d52b0621
3 changed files with 5 additions and 1 deletions

View File

@ -324,7 +324,7 @@
}catch(e){ }catch(e){
this.getUserInfo(); this.getUserInfo();
} }
this.tabsCurr = uni.getStorageSync('tabbar_sale_type'); this.tabsCurr = uni.getStorageSync('tabbar_sale_type') || 1; //
this.getCartList(); this.getCartList();
this.getCartNum(); this.getCartNum();
this.goodsHidden = true; this.goodsHidden = true;

View File

@ -296,6 +296,9 @@
}) })
// #endif // #endif
}, },
onShow() {
uni.setStorageSync('tabbar_sale_type', 1);
},
methods: { methods: {
// #ifdef MP // #ifdef MP
getPhoneNumber(e) { getPhoneNumber(e) {

View File

@ -354,6 +354,7 @@
title: '提示', title: '提示',
content: '确认退出登录?', content: '确认退出登录?',
success: function(res) { success: function(res) {
uni.setStorageSync('tabbar_sale_type', 1);
if (res.confirm) { if (res.confirm) {
getLogout() getLogout()
.then(res => { .then(res => {