新增充值的修改
This commit is contained in:
@@ -20,19 +20,19 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad() {
|
||||
// const user = wx.getStorageSync('user')
|
||||
// if (!user || !user.id) {
|
||||
// return;
|
||||
// }
|
||||
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',
|
||||
// })
|
||||
wx.switchTab({
|
||||
url: '/pages/home/index',
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -108,6 +108,17 @@ Page({
|
||||
.catch(() => {
|
||||
// on cancel
|
||||
});
|
||||
},
|
||||
jumpToUserAgreement() {
|
||||
wx.navigateTo({
|
||||
url: '/pages/agreements/index',
|
||||
})
|
||||
},
|
||||
jumpToLoginAgreement() {
|
||||
|
||||
},
|
||||
jumpToSecret() {
|
||||
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
|
Reference in New Issue
Block a user