修改项目配置,完成要加入的等待和审批操作,修改了部分接口定义和参数
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user