adminthw 4 vuotta sitten
vanhempi
commit
9cc1a3be6e
4 muutettua tiedostoa jossa 8 lisäystä ja 3 poistoa
  1. 1 0
      App.vue
  2. 4 1
      pages/activity/index.vue
  3. 2 1
      pages/index/index.vue
  4. 1 1
      pages/policy/policy_rich_card.vue

+ 1 - 0
App.vue

@@ -59,6 +59,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()
 	  			}
 	  		},
 	  		fail: () => {

+ 4 - 1
pages/activity/index.vue

@@ -143,7 +143,10 @@ export default {
     };
   },
   onLoad() {
-    this.getActive();
+    
+  },
+  onShow() {
+  	this.getActive();
   },
   methods: {
     bindPickerChange(e, op) {

+ 2 - 1
pages/index/index.vue

@@ -446,12 +446,13 @@ export default {
   },
   onShow() {
     uni.hideTabBar({});
+	this.getActive();
   },
   onLoad() {
+	uni.showLoading({});  
     this.getSwiperList();
     this.getPark();
     this.getNotice();
-    this.getActive();
     this.getAttract(); //招商接口
   },
   onShareAppMessage() {

+ 1 - 1
pages/policy/policy_rich_card.vue

@@ -79,7 +79,7 @@ export default {
 
 <style lang="scss" scoped>
 .card-situation {
-  margin-top: 20rpx;
+  // margin-top: 20rpx;
   padding: 20rpx;
   border-top: 8rpx solid #f2f2f2;
   box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);