yanj 2 kuukautta sitten
vanhempi
commit
a2d498867d

+ 2 - 0
pages/activity/index.vue

@@ -64,6 +64,7 @@ export default {
   },
   methods: {
     getList() {
+      this.showLoading()
       this.activityListLoading = true
       mettingList(this.activityParams).then(res => {
         if (res.data.data) {
@@ -77,6 +78,7 @@ export default {
           this.showToast('系统繁忙,稍候再试')
         }
         this.activityListLoading = false
+        this.hideLoading()
       })
     },
     updateItemValue(e) {

+ 6 - 1
pages/exhibitor/index.vue

@@ -169,7 +169,12 @@ export default {
     this.getExhibitorsList()
     uni.$on('refreshData', (val) => {
       if (val === 'exhibitor') {
-        this.searchExhibitorsList()
+        this.getProductCategoryList()
+        this.getExhibitorsHallList()
+        this.getApplicationAreasList()
+        this.getGlobalPollShow()
+        this.getAdData()
+        this.getExhibitorsList()
       }
     })
   },

+ 1 - 1
pages/index/home.vue

@@ -1,6 +1,6 @@
 <template>
   <page-layout class="home-container">
-    <u-loading :loading="loading"></u-loading>
+<!--    <u-loading :loading="loading"></u-loading>-->
     <nav-bar :show-title="false">
       <view class="top-container">
         <image class="logo" :src="logo" mode="aspectFit"/>

+ 4 - 4
pages/index/index.vue

@@ -1,10 +1,10 @@
 <template>
   <view>
     <home v-show="tabbarActive === 'home'" @switch-tab="switchTab" />
-    <exhibitor v-show="tabbarActive === 'exhibitor'"  @share="onShare" />
-    <activity v-show="tabbarActive === 'activity'" />
-    <user v-show="tabbarActive === 'user'" />
-    <product v-show="tabbarActive === 'product'"></product>
+    <exhibitor v-if="tabbarActive === 'exhibitor'"  @share="onShare" />
+    <activity v-if="tabbarActive === 'activity'" />
+    <user v-if="tabbarActive === 'user'" />
+    <product v-if="tabbarActive === 'product'"></product>
     <van-dialog id="van-dialog" />
     <tab-bar :active.sync="tabbarActive"></tab-bar>
     <u-share-action-sheet :show.sync="showShare" :show-info="shareInfo" />

+ 1 - 1
pages/user/favorites.vue

@@ -8,7 +8,7 @@
         </view>
       </view>
       <view class="main-container">
-        <view class="user-favorites-list user-like-list">
+        <view class="user-favorites-list user-like-list" v-if="!loading">
           <template v-for="(item, index) in favoritesList">
             <template v-if="tabActive === 'exhibitor'">
               <exhibitor-item :item="item" :footer-hidden="true" :key="index"/>

+ 1 - 1
pages/user/like.vue

@@ -8,7 +8,7 @@
         </view>
       </view>
       <view class="main-container">
-        <view class="user-like-list">
+        <view class="user-like-list" v-if="!loading">
           <template v-for="(item, index) in likeList">
             <template v-if="tabActive === 'exhibitor'">
               <exhibitor-item :item="item" :footer-hidden="true" :key="index" />

+ 2 - 1
pages/user/vote.vue

@@ -8,7 +8,7 @@
         </view>
       </view>
       <view class="main-container">
-        <view class="user-vote-list user-like-list">
+        <view class="user-vote-list user-like-list" v-if="!loading">
           <template v-for="(item, index) in favoritesList">
             <template v-if="tabActive === 'exhibitor'">
               <exhibitor-item :item="item" :footer-hidden="true" :key="index" />
@@ -50,6 +50,7 @@
 		},
 		data() {
 			return {
+        loading: false,
 				tabActive: 'exhibitor',
 				tabs: [{
 					label: '展商',