wzz 4 years ago
parent
commit
8f14bf1eec
4 changed files with 13 additions and 10 deletions
  1. 1 1
      App.vue
  2. 2 1
      manifest.json
  3. 6 4
      pages/activity/activity_deatil.vue
  4. 4 4
      pages/index/index.vue

+ 1 - 1
App.vue

@@ -76,7 +76,7 @@ export default {
 	  				getApp().globalData.open_id = res.data.data.openid;
 					getApp().globalData.user_status = res.data.data.status;
 					getApp().globalData.user_phone = res.data.data.phone;
-					uni.hideLoading() 
+				//	uni.hideLoading() 
 	  			}
 	  		},
 	  		fail: () => {

+ 2 - 1
manifest.json

@@ -53,7 +53,8 @@
         "appid" : "wx1dbc76c97a3e4880",
         "setting" : {
             "urlCheck" : false,
-            "minified" : true
+            "minified" : true,
+            "postcss" : true
         },
         "usingComponents" : true
     },

+ 6 - 4
pages/activity/activity_deatil.vue

@@ -242,10 +242,12 @@ export default {
           if (res.data.code == 200) {
             let data = res.data.data;
             this.isJoin = data.active ? true : false;
-			this.activityInfoList = data.category_list;
-			this.activityInfoList.forEach((item)=>{
-				item.value = '';
-			})
+			if(data.category_list && data.category_list.length > 0){
+				this.activityInfoList = data.category_list;
+				this.activityInfoList.forEach((item)=>{
+					item.value = '';
+				})
+			}
             this.model.title = data.name;
             this.model.read = parseInt(data.base_read_count) + parseInt(data.real_read_count);
             this.model.url = getApp().globalData.shareUrl + data.pic_url;

+ 4 - 4
pages/index/index.vue

@@ -431,10 +431,10 @@ export default {
     this.getActive();
   },
   onLoad() {
-    uni.showLoading({
-      title: "加载中",
-      mask: true,
-    });
+    // uni.showLoading({
+    //   title: "加载中",
+    //   mask: true,
+    // });
     this.getSwiperList();
     this.getPark();
     this.getNotice();