zs пре 2 година
родитељ
комит
e0adbe0408
1 измењених фајлова са 7 додато и 5 уклоњено
  1. 7 5
      pagesHome/order/order.vue

+ 7 - 5
pagesHome/order/order.vue

@@ -310,12 +310,14 @@
 					that.$set(that, `skip`, skip)
 					that.searchAct();
 					uni.hideLoading();
-				} else {
 					that.$set(that, 'change', true);
-					uni.showToast({
-						title: '没有更多优惠商品了',
-						icon: 'none'
-					})
+				} else if (that.total == list.length) {
+					that.$set(that, `actList`, [])
+					that.$set(that, `skip`, 0)
+					that.$set(that, `limit`, 5)
+					that.$set(that, `page`, 0)
+					that.$set(that, `change`, false)
+					that.searchAct();
 				}
 			},
 			// 提交订单