|
@@ -7,6 +7,7 @@ Page({
|
|
|
* 页面的初始数据
|
|
|
*/
|
|
|
data: {
|
|
|
+ tabShow: true,
|
|
|
listHeight: 0,
|
|
|
timeRangeShow: false,
|
|
|
activeIndex: 0,
|
|
@@ -53,7 +54,18 @@ Page({
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad(options) {
|
|
|
- this.getList()
|
|
|
+ if (options.auth) {
|
|
|
+ let auth = JSON.parse(options.auth);
|
|
|
+ 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) {
|
|
|
if (init.detail != undefined) init = init.detail;
|