开始做工作台,调整用电查询分页

This commit is contained in:
2024-11-08 18:24:05 +08:00
parent 08ef87ce33
commit b9d1ee34a7
32 changed files with 384 additions and 16 deletions

View File

@@ -39,6 +39,11 @@ Page({
})
},
jumpToQrCode() {
const { user = {} } = this.data;
if (!user?.id) {
alertInfo("请先登录")
return;
}
wx.navigateTo({
url: '/pages/qrCode/index',
})
@@ -73,6 +78,11 @@ Page({
url: '/pages/invoiceList/index?tab=2',
})
},
jumpToWorkBench() {
wx.navigateTo({
url: '/pages/workBench/index',
})
},
async getUnReadNumber() {
const dot = await getDot();
this.setData({
@@ -117,4 +127,8 @@ Page({
});
},
// onTabItemTap(item) {
// console.log('------------', item)
// }
})

View File

@@ -14,6 +14,7 @@
<van-cell title="发票抬头" value="" is-link bind:tap="jumpToUpdateInvoice" />
<van-cell title="绑定企业" value="" is-link bind:tap="bindTenement" />
<van-cell title="常见问题" value="" is-link bind:tap="jumpToQuestions" />
<van-cell title="工作台" wx:if="{{user.workStatus}}" value="" is-link bind:tap="jumpToWorkBench" />
<van-cell title="退出登录" value="" is-link bind:tap="logout" />
<van-dialog id="van-dialog" />