Browse Source

分页异常处理

baijunde 1 năm trước cách đây
mục cha
commit
1493868c50
2 tập tin đã thay đổi với 7 bổ sung2 xóa
  1. 3 1
      pages/evaluate/evaluate.vue
  2. 4 1
      pages/order/index.vue

+ 3 - 1
pages/evaluate/evaluate.vue

@@ -193,7 +193,9 @@
 							this.appraiseList = this.appraiseList.concat(res.data.result.records)
 							this.mescroll.endSuccess(res.data.result.records.length, res.data.result.total);; // 结束下拉刷新状态
 						}
-					})
+					}).catch(() => {
+					this.mescroll.endErr()
+				})
 			},
 		},
 		onShow() {

+ 4 - 1
pages/order/index.vue

@@ -182,9 +182,12 @@
 						this.mescroll.endSuccess(res.data.result.records.length, res.data.result.total);
 						uni.showTabBar()
 					}
-					else{
+					else {
 						this.orderList = []
+						this.mescroll.endErr()
 					}
+				}).catch(() => {
+					this.mescroll.endErr()
 				})
 			},
 			geDetail(item) {