Browse Source

修改 【ID1005560】
【小程序-订单】无订单数据时,滑动页面提示:已经到底了

1004749546@qq.com 4 years ago
parent
commit
9cc1bdac9a
1 changed files with 6 additions and 4 deletions
  1. 6 4
      pages/order/order.vue

+ 6 - 4
pages/order/order.vue

@@ -225,10 +225,12 @@
 					this.pageNo += 1
 					this.pageNo += 1
 					this.getRow()
 					this.getRow()
 				} else {
 				} else {
-					uni.showToast({
-						title: '已经到底了',
-						icon: 'none'
-					});
+					if(this.list.length) {
+						uni.showToast({
+							title: '已经到底了',
+							icon: 'none'
+						});
+					}
 					this.status = "nomore"
 					this.status = "nomore"
 				}
 				}
 			},
 			},