Bladeren bron

Signed-off-by: liuboyan <632697560@qq.com>
1

liuboyan 4 jaren geleden
bovenliggende
commit
f8f68b8d42
1 gewijzigde bestanden met toevoegingen van 8 en 6 verwijderingen
  1. 8 6
      pagesMain/couponList.vue

+ 8 - 6
pagesMain/couponList.vue

@@ -8,7 +8,7 @@
 				 :refresher-triggered="triggered" :refresher-threshold="100" refresher-background="white" @refresherrefresh="onRefresh"
 				 @refresherrestore="onRestore">
 					<u-card :show-head="false" :show-foot="false" padding="0px" margin="10px" borderRadius="40" v-for="(site, index2) in item.tableList"
-					 :key="index" class="class-card" @click="goToMyClass(site)">
+					 :key="index" class="class-card">
 						<view class="class-content" slot="body">
 							<view class="class-info-img">
 								<u-image width="60px" height="60px" :src="site.url" shape="circle"></u-image>
@@ -92,11 +92,13 @@
 			},
 			//  下拉刷新
 			onRefresh() {
-				this.triggered = true
-				this.tabList[this.current].isOver = false
-				this.tabList[this.current].pageIndex = 1
-				this.tabList[this.current].tableList = []
-				this.getTableList(this.current, 'refresh')
+				if (!this.triggered) {
+					this.triggered = true
+					this.tabList[this.current].isOver = false
+					this.tabList[this.current].pageIndex = 1
+					this.tabList[this.current].tableList = []
+					this.getTableList(this.current, 'refresh')
+				}
 			},
 			//  重置下拉刷新状态
 			onRestore() {