|
@@ -1,9 +1,9 @@
|
|
|
-const getHeight = require("../../utils/getRheRemainingHeight");
|
|
|
-const _Http = getApp().globalData.http;
|
|
|
+const getHeight = require("../../utils/getRheRemainingHeight"),
|
|
|
+ _Http = getApp().globalData.http;
|
|
|
Page({
|
|
|
data: {
|
|
|
content: {
|
|
|
- "nochace":true,
|
|
|
+ "nochace": true,
|
|
|
"isAll": false,
|
|
|
"pageNumber": 1,
|
|
|
"pageSize": 20,
|
|
@@ -21,13 +21,12 @@ Page({
|
|
|
isReverse: false,
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
- if (options.auth) {
|
|
|
- let auth = [];
|
|
|
- JSON.parse(options.auth)[0].meta.auth.forEach(v => auth.push(v.optionname))
|
|
|
- this.setData({
|
|
|
- auth
|
|
|
- })
|
|
|
- };
|
|
|
+ let auth = [],
|
|
|
+ apps = options.auth ? JSON.parse(options.auth) : getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['营销工具'], ['销售线索'])[0].apps;
|
|
|
+ apps[0].meta.auth.forEach(v => auth.push(v.optionname))
|
|
|
+ this.setData({
|
|
|
+ auth
|
|
|
+ })
|
|
|
this.getList()
|
|
|
},
|
|
|
/* 打开弹窗 */
|