Fix(我的/订单):[#1631]待评价的订单点击申请退款 不需要跳转退款页面,直接弹窗提示“订单已收货,如需退款请联系客服”即可
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user