guhongwei 2 vuotta sitten
vanhempi
commit
839eddb58b
1 muutettua tiedostoa jossa 17 lisäystä ja 1 poistoa
  1. 17 1
      pagesMy/address/index.vue

+ 17 - 1
pagesMy/address/index.vue

@@ -100,7 +100,23 @@
 			},
 			// 分页
 			toPage() {
-
+				const that = this;
+				let list = that.list;
+				let limit = that.limit;
+				if (that.total > list.length) {
+					uni.showLoading({
+						title: '加载中',
+						mask: true
+					})
+					let page = that.page + 1;
+					that.$set(that, `page`, page)
+					let skip = page * limit;
+					that.$set(that, `skip`, skip)
+					that.search();
+					uni.hideLoading();
+				} else uni.showToast({
+					title: '没有更多数据了'
+				});
 			},
 			// 获取微信地址
 			toWxaddress() {