Browse Source

提报权限修改

zhaoxiaohai 3 years ago
parent
commit
c7eaa6f9d4
2 changed files with 1 additions and 11 deletions
  1. 0 10
      pages/submission/index.js
  2. 1 1
      pages/submission/index.wxml

+ 0 - 10
pages/submission/index.js

@@ -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) {

+ 1 - 1
pages/submission/index.wxml

@@ -1,4 +1,4 @@
-<van-tabs wx:if="{{tabShow}}" sticky color='var(--assist)' title-active-color='var(--assist)' bind:change="tabsClick" title-inactive-color='#999'>
+<van-tabs sticky color='var(--assist)' title-active-color='var(--assist)' bind:change="tabsClick" title-inactive-color='#999'>
     <van-tab title="一事一报" />
     <van-tab title="一事多报" />
     <!-- <van-tab title="提报管理" /> -->