关闭资料update

This commit is contained in:
lanzhihui 2024-09-30 09:18:12 +08:00
parent f285559f4b
commit 98d8c1f67b
2 changed files with 5 additions and 4 deletions

View File

@ -42,9 +42,9 @@ wepy.page({
},
onShow() {
setTimeout(() => {
// if (wx.getStorageSync('logoutCode')) {
// return
// }
if (wx.getStorageSync('logoutCode')) {
return
}
wx.switchTab({url: `/pages/tabBar/home`})
}, 100)
},

View File

@ -52,7 +52,8 @@ const wx_login = () => {
wx.setStorageSync('openid', (data.openid))
wx.setStorageSync('user_id', data.user.id) // 用户id
wx.setStorageSync('mobile', data.user.mobile) // 用户手机号
if (data.user.hidden_profile !== 'NONE' && data.frozen_state !== 1) { // 资料是否关闭
if (data.user.hidden_profile !== 'NONE') { // 资料是否关闭
wx.setStorageSync('logoutCode', 1)
wx.redirectTo({url: '/pages/users/logoutDefault'})
}
let userInfo = {