|
|
@@ -2,7 +2,6 @@ const _Http = getApp().globalData.http;
|
|
|
|
|
|
Page({
|
|
|
data: {
|
|
|
- tabShow: true,
|
|
|
timeRangeShow: false,
|
|
|
activeIndex: 0,
|
|
|
whereType: {
|
|
|
@@ -45,15 +44,6 @@ Page({
|
|
|
},
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
- let auth = options.auth ? JSON.parse(options.auth) : getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['营销工具'], ['提报'])[0].apps;
|
|
|
- if (auth.length == 1) {
|
|
|
- let title = auth[0].meta.title;
|
|
|
- this.setData({
|
|
|
- tabShow: false,
|
|
|
- activeIndex: title == '一事一报' ? 0 : 1,
|
|
|
- "content.onceonly": title == '一事一报' ? 1 : 0
|
|
|
- })
|
|
|
- }
|
|
|
this.getList();
|
|
|
},
|
|
|
getList(init = false) {
|