Fix(我的/订单):[#1631]待评价的订单点击申请退款 不需要跳转退款页面,直接弹窗提示“订单已收货,如需退款请联系客服”即可
This commit is contained in:
@@ -183,7 +183,7 @@ export default {
|
|||||||
this.type = parseInt(this.$yroute.query.type) || 0;
|
this.type = parseInt(this.$yroute.query.type) || 0;
|
||||||
this.changeType(this.type);
|
this.changeType(this.type);
|
||||||
this.getOrderData();
|
this.getOrderData();
|
||||||
this.getOrderList();
|
this.getOrderListReq();
|
||||||
},
|
},
|
||||||
onHide: function () {
|
onHide: function () {
|
||||||
this.orderList = [];
|
this.orderList = [];
|
||||||
@@ -202,7 +202,8 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
goRefund(order) {
|
goRefund(order) {
|
||||||
if (this.type === 4) {
|
// fix bug#1631
|
||||||
|
if (this.type === 4 || parseInt(order._status._type) === 3) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '订单已收货,如需退款请联系客服',
|
title: '订单已收货,如需退款请联系客服',
|
||||||
mask: false,
|
mask: false,
|
||||||
@@ -300,9 +301,9 @@ export default {
|
|||||||
this.page = 1;
|
this.page = 1;
|
||||||
this.loaded = false;
|
this.loaded = false;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.getOrderList();
|
this.getOrderListReq();
|
||||||
},
|
},
|
||||||
getOrderList() {
|
getOrderListReq() {
|
||||||
if (this.loading || this.loaded) return;
|
if (this.loading || this.loaded) return;
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
const {
|
const {
|
||||||
@@ -413,7 +414,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
!this.loading && this.getOrderList();
|
!this.loading && this.getOrderListReq();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user