|
@@ -15,10 +15,10 @@ Page({
|
|
|
loading: false,
|
|
|
isEvaluate: false
|
|
|
},
|
|
|
- async onLoad(options) {
|
|
|
+ onLoad(options) {
|
|
|
let auth = [],
|
|
|
dataAuth = '';
|
|
|
- (options.auth) ? auth = options.auth.split(","): await getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['营销工具'], ['通告'])[0].apps[0].meta.auth.forEach(v => auth.push(v.optionname));
|
|
|
+ (options.auth) ? auth = options.auth.split(","): getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['营销工具'], ['通告'])[0].apps[0].meta.auth.forEach(v => auth.push(v.optionname));
|
|
|
if (auth.includes('团队内部数据分析') && auth.includes('经销商数据分析')) {
|
|
|
dataAuth = 'all';
|
|
|
} else {
|