|
|
@@ -41,11 +41,10 @@
|
|
|
<view class="box-border-box plr-24">
|
|
|
<view class="nav-list flex-wrap-wrap box-border-box mb-22">
|
|
|
<view class="nav-list-item" v-for="(item,i) in navList" :key="i" @click="toUrl(item.type)">
|
|
|
- <view class="" v-if="(appletAudit != 1 && item.type != 11) && (appletAudit != 1 && item.type != 10) && (appletAudit != 1 && item.type != 9) && (appletAudit != 1 && item.type != 8)">
|
|
|
+ <view class="" v-if="item.appletAudit == 0">
|
|
|
<image :src="item.img" mode="scaleToFill"></image>
|
|
|
<view class="fs-26 fc-3 text-align-center">{{item.name}}</view>
|
|
|
</view>
|
|
|
-
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -284,8 +283,7 @@
|
|
|
selectedBackgroundColor: 'rgba(79, 179, 239,0.9)',
|
|
|
selectedBorder: '1px rgba(0,0,0,0) solid'
|
|
|
},
|
|
|
- current: 0,
|
|
|
- appletAudit: ''
|
|
|
+ current: 0
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -320,6 +318,7 @@
|
|
|
} else {
|
|
|
this.schoolData.school_name = school_name;
|
|
|
}
|
|
|
+ this.commonApplet()
|
|
|
this.getBanner();
|
|
|
this.getNotice();
|
|
|
this.getSeckillGoods();
|
|
|
@@ -374,7 +373,12 @@
|
|
|
commonApplet() {
|
|
|
commonApplet().then((res) => {
|
|
|
if (res.code == 1) {
|
|
|
- this.appletAudit = res.data
|
|
|
+ this.navList.forEach((v, k) => {
|
|
|
+ v.appletAudit = 0
|
|
|
+ if (v.type == 8 || v.type == 9 || v.type == 10 || v.type == 11) {
|
|
|
+ v.appletAudit = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
},
|