diff --git a/pages/order/MyOrder/index.vue b/pages/order/MyOrder/index.vue index d90b595..cc6d81c 100644 --- a/pages/order/MyOrder/index.vue +++ b/pages/order/MyOrder/index.vue @@ -183,7 +183,7 @@ export default { this.type = parseInt(this.$yroute.query.type) || 0; this.changeType(this.type); this.getOrderData(); - this.getOrderList(); + this.getOrderListReq(); }, onHide: function () { this.orderList = []; @@ -202,7 +202,8 @@ export default { }) }, goRefund(order) { - if (this.type === 4) { + // fix bug#1631 + if (this.type === 4 || parseInt(order._status._type) === 3) { uni.showToast({ title: '订单已收货,如需退款请联系客服', mask: false, @@ -300,9 +301,9 @@ export default { this.page = 1; this.loaded = false; this.loading = false; - this.getOrderList(); + this.getOrderListReq(); }, - getOrderList() { + getOrderListReq() { if (this.loading || this.loaded) return; this.loading = true; const { @@ -413,7 +414,7 @@ export default { } }, onReachBottom() { - !this.loading && this.getOrderList(); + !this.loading && this.getOrderListReq(); } };