添加首页统计跳转页面
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user