Просмотр исходного кода

Signed-off-by: liuboyan <632697560@qq.com>
下拉刷新bug

liuboyan 4 лет назад
Родитель
Сommit
18642a9a0c
3 измененных файлов с 21 добавлено и 15 удалено
  1. 7 5
      pagesMain/customerList.vue
  2. 7 5
      pagesMain/messageList.vue
  3. 7 5
      pagesMain/renewList.vue

+ 7 - 5
pagesMain/customerList.vue

@@ -106,11 +106,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() {

+ 7 - 5
pagesMain/messageList.vue

@@ -89,11 +89,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() {

+ 7 - 5
pagesMain/renewList.vue

@@ -74,11 +74,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() {