ltx529596 4 years ago
parent
commit
7532ee5f8f
2 changed files with 3 additions and 14 deletions
  1. 1 7
      src/pages/goods/goods.vue
  2. 2 7
      src/pages/index/index.vue

+ 1 - 7
src/pages/goods/goods.vue

@@ -183,7 +183,7 @@
       </view>
       </view>
     </view>
     </view>
 
 
-    <tabBar :currentIndex="typeNum" :role="roleList"></tabBar>
+    <tabBar :currentIndex="typeNum"></tabBar>
     <uni-load-more :status="more"> </uni-load-more>
     <uni-load-more :status="more"> </uni-load-more>
     <rf-loading v-if="loading"></rf-loading>
     <rf-loading v-if="loading"></rf-loading>
   </view>
   </view>
@@ -198,7 +198,6 @@ export default {
     //这里存放数据
     //这里存放数据
     return {
     return {
       typeNum: 2,
       typeNum: 2,
-      roleList:[],
 
 
       deleteId: '',
       deleteId: '',
       scenicID: 0, // 景区id 唯一(一个账号代表一个景区)
       scenicID: 0, // 景区id 唯一(一个账号代表一个景区)
@@ -254,11 +253,6 @@ export default {
       }
       }
     },
     },
   },
   },
-  onReady () {
-    // this.roleList = this.$mStore.getters.hasrole.reverse()
-    let role = uni.getStorageSync('role')
-    this.roleList = role.reverse()
-  },
   // 下拉刷新
   // 下拉刷新
   onPullDownRefresh() {
   onPullDownRefresh() {
     this.more = 'loading';
     this.more = 'loading';

+ 2 - 7
src/pages/index/index.vue

@@ -282,7 +282,7 @@
         <view id="testecharts"></view>
         <view id="testecharts"></view>
 			</view>
 			</view>
 
 
-      <tabBar :currentIndex="typeNum" :role="roleList"></tabBar>
+      <tabBar :currentIndex="typeNum"></tabBar>
 		</view>
 		</view>
     <mask :txt="masktxt" :iconShow="iconShow" v-if="isShowMask" @isSureConver="isSureConver"></mask>
     <mask :txt="masktxt" :iconShow="iconShow" v-if="isShowMask" @isSureConver="isSureConver"></mask>
 		<rf-loading v-if="loading"></rf-loading>
 		<rf-loading v-if="loading"></rf-loading>
@@ -308,7 +308,7 @@ export default {
     return {
     return {
       // tabbar
       // tabbar
       typeNum: 0,
       typeNum: 0,
-      roleList:[],
+      
 
 
       loadingMore1: true,
       loadingMore1: true,
       loadingMore2: true,
       loadingMore2: true,
@@ -403,11 +403,6 @@ export default {
       value: null,
       value: null,
     },
     },
   },
   },
-  onReady () {
-    // this.roleList = this.$mStore.getters.hasrole.reverse()
-    let role = uni.getStorageSync('role')
-    this.roleList = role.reverse()
-  },
   onLoad () {
   onLoad () {
   },
   },
   onShow() {
   onShow() {