开始做充值,,调整了首页

This commit is contained in:
2024-04-02 17:32:28 +08:00
parent 3284bea475
commit db6d253898
44 changed files with 676 additions and 141 deletions

View File

@@ -20,19 +20,19 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad() {
const user = wx.getStorageSync('user')
if (!user || !user.id) {
return;
}
if (user.status === 0 || user.status === 2) {
wx.redirectTo({
url: '/pages/waitApprove/index',
})
return
}
wx.switchTab({
url: '/pages/home/index',
})
// const user = wx.getStorageSync('user')
// if (!user || !user.id) {
// return;
// }
// if (user.status === 0 || user.status === 2) {
// wx.redirectTo({
// url: '/pages/waitApprove/index',
// })
// return
// }
// wx.switchTab({
// url: '/pages/home/index',
// })
},
/**