提交首页修改

This commit is contained in:
2024-08-01 20:17:28 +08:00
parent 01e3d60b6c
commit 6e85904598
4 changed files with 44 additions and 15 deletions

View File

@@ -159,6 +159,11 @@ Page({
this.setData({ rechargeVisible: true })
},
jumpToInvoice() {
const { user, } = this.data;
if (!user || !user.id) {
alertInfo("请先登录")
return
}
wx.navigateTo({
url: '/pages/invoiceList/index',
})
@@ -172,7 +177,6 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
this.getAllList();
this.watchTenement();
this.watchPark();
@@ -251,6 +255,11 @@ Page({
// }
},
jumpToElectric() {
const { user, } = this.data;
if (!user || !user.id) {
alertInfo("请先登录")
return
}
wx.navigateTo({
url: '/childPackage/pages/electricQuery/index',
})
@@ -308,11 +317,21 @@ Page({
})
},
jumpToRecord() {
const { user, } = this.data;
if (!user || !user.id) {
alertInfo("请先登录")
return
}
wx.navigateTo({
url: '/pages/rechargeRecord/index',
})
},
jumpToOrder() {
const { user, } = this.data;
if (!user || !user.id) {
alertInfo("请先登录")
return
}
// alertInfo("尚未完成")
wx.navigateTo({
url: '/pages/billList/index',