diff --git a/coupon/myOrder.html b/coupon/myOrder.html index 0d2172d..d71e1f1 100644 --- a/coupon/myOrder.html +++ b/coupon/myOrder.html @@ -25,9 +25,9 @@ -
- +
@@ -152,9 +152,6 @@ touchEnd () { if (this.loadShowHeight >= 60) { this.getOrderList() - setTimeout(() => { - this.loadShowHeight = 0; - }, 2000); } else { this.loadShowHeight = 0 } @@ -245,13 +242,20 @@ /* 请求订单数据 */ getOrderList () { + this.orderList = [] + this.loadShowHeight = true const token = localStorage.getItem('token') req.axiosGet(`/key/order/${token}`, { page: this.page, limit: this.limit }).then(({ data, code, message }) => { if (code === -1) { this.popFunction({ title: '温馨提示', text: message, status: 2, b_text: '我知道了', show: true }) return this.redirect = true } - if (code === 200) this.orderList = data + if (code === 200) { + setTimeout(() => { + this.loadShowHeight = 0; + this.orderList = data + }, 1 * 1000) + } }) },