电量查询新增分页

This commit is contained in:
2024-07-25 15:07:29 +08:00
parent 42412cb4ff
commit 5b280a9e9d
5 changed files with 32 additions and 17 deletions

View File

@@ -21,19 +21,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',
})
this.getPrivacy();
},
async getPrivacy() {