py 2 年 前
親
コミット
90e4f57c68
2 ファイル変更、11 行追加、7 行削除
  1. 2 2
      manifest.json
  2. 9 5
      pages/index/index.vue

+ 2 - 2
manifest.json

@@ -1,6 +1,6 @@
 {
-    "name" : "学校",
-    "appid" : "__UNI__D6BA648",
+    "name" : "君子校园",
+    "appid" : "__UNI__23D1B9A",
     "description" : "",
     "versionName" : "1.0.1",
     "versionCode" : 101,

+ 9 - 5
pages/index/index.vue

@@ -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
+							}
+						})
 					}
 				})
 			},