修改项目配置,完成要加入的等待和审批操作,修改了部分接口定义和参数

This commit is contained in:
2024-03-22 16:45:36 +08:00
parent e07641732f
commit 2c79edb80c
24 changed files with 378 additions and 30 deletions

View File

@@ -24,6 +24,12 @@ Page({
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',
})
@@ -58,6 +64,9 @@ Page({
const { token, ...user } = data
wx.setStorageSync('user', user)
wx.setStorageSync('token', data?.token)
wx.switchTab({
url: '/pages/home/index',
})
})
},
getPhoneNumber(e) {