新增充值的修改

This commit is contained in:
2024-04-07 14:47:30 +08:00
parent f5ddb92449
commit 417ba1454c
32 changed files with 302 additions and 97 deletions

View File

@@ -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() {
},
/**
* 生命周期函数--监听页面显示