|
|
@@ -22,7 +22,7 @@ Page({
|
|
|
if (wx.getStorageSync('userauth').length != 0) {
|
|
|
|
|
|
/* 首页宫格授权查询 */
|
|
|
- let auth = getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['营销工具'], ['通告', '推广素材', '商学院', '提报']),
|
|
|
+ let auth = getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['营销工具'], ['通告', '推广素材', '商学院', '提报', '销售线索']),
|
|
|
gridList = [],
|
|
|
subassembly = [];
|
|
|
auth.forEach(v => {
|
|
|
@@ -63,15 +63,17 @@ Page({
|
|
|
apps: v.apps
|
|
|
})
|
|
|
break;
|
|
|
+ case "销售线索":
|
|
|
+ console.log(v.apps)
|
|
|
+ gridList.push({
|
|
|
+ name: "销售线索",
|
|
|
+ path: "/pages/threadedTree/index",
|
|
|
+ icon: "icon-xiaoshouxiansuo",
|
|
|
+ apps: v.apps
|
|
|
+ })
|
|
|
+ break;
|
|
|
};
|
|
|
});
|
|
|
- /* 假的线索入口 */
|
|
|
- gridList.push({
|
|
|
- name: "销售线索",
|
|
|
- path: "/pages/threadedTree/index",
|
|
|
- icon: "icon-xiaoshouxiansuo",
|
|
|
- apps: {}
|
|
|
- });
|
|
|
|
|
|
/* 首页小组件查询 */
|
|
|
let home = getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['通用'], ['首页'])[0].apps[0].meta.wedgits;
|