添加首页统计跳转页面

This commit is contained in:
zhengw
2026-02-05 16:02:34 +08:00
parent 4b8842d676
commit 3513a19880
14 changed files with 151 additions and 39 deletions

View File

@@ -42,6 +42,13 @@ Page({
block: [] as any[],
authInfo: {} as any,
menuList: [] as any,
blockUrls: {
: '/pages/orders/ordersList/ordersList?type=today',
: '/pages/purchase/requestOrder/requestOrder?type=today',
: '/pages/purchase/buyOrder/buyOrder?type=today',
: '/pages/purchase/buyInOrder/buyInOrder?type=today',
: '/pages/other/outbound/outbound?type=today',
} as any,
},
handleLogin(e: any) {
this.setData({ isLogin: e.detail });
@@ -49,7 +56,6 @@ Page({
this.init();
}
},
init() {
this.data.authInfo = {};
const companyInfo = toObject(wx.getStorageSync('company_info'));
@@ -85,6 +91,14 @@ Page({
this.setData({ block });
});
},
onBlockNavTo(e: any) {
const data = getDataSet(e);
const item = this.data.block[data.index];
const url = this.data.blockUrls[item.name];
if (url) {
wx.navigateTo({ url });
}
},
nav(e: any) {
const data = getDataSet(e);
wx.navigateTo({ url: data.url });