|
|
@@ -327,7 +327,6 @@ export default {
|
|
|
.then(res => {
|
|
|
this.hideLoading();
|
|
|
this.status = res;
|
|
|
- console.log(this.status);
|
|
|
this.cardBoxListLength = this.status.cardBoxList.length;
|
|
|
this.user = res.user;
|
|
|
this.addressList = res.address;
|
|
|
@@ -335,7 +334,6 @@ export default {
|
|
|
this.store = res.store;
|
|
|
this.Boxes = res.cardBoxList;
|
|
|
this.orderInfoId = res.id;
|
|
|
- console.log(this.orderInfoId);
|
|
|
this.postage = res.cardCase.postage;
|
|
|
this.cardCaseInfo = res.cardCase.collection;
|
|
|
if (this.status.orderStatus === 'CREATED') {
|
|
|
@@ -446,19 +444,13 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- orderRefund() {
|
|
|
- this.$http.post('orderRefundApply/applySuccess', { orderId: this.orderInfoId }).then(res => {
|
|
|
- console.log(res);
|
|
|
- this.tradeId = res.tradeId;
|
|
|
- });
|
|
|
- },
|
|
|
refund() {
|
|
|
wx.showModal({
|
|
|
title: '提示',
|
|
|
content: '确定同意退款?',
|
|
|
success: res => {
|
|
|
if (res.confirm) {
|
|
|
- this.$http.post('orderRefundApply/audit', { id: this.tradeId }).then(res => {
|
|
|
+ this.$http.post('orderRefundApply/audit', { orderId: this.orderInfoId }).then(res => {
|
|
|
console.log(res);
|
|
|
wx.showToast({
|
|
|
icon: 'none',
|
|
|
@@ -525,11 +517,6 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getFn();
|
|
|
- setTimeout(() => {
|
|
|
- if (this.status.orderStatus == 'REFUND' || this.status.orderStatus === 'REFUNDED') {
|
|
|
- this.orderRefund();
|
|
|
- }
|
|
|
- }, 1000);
|
|
|
}
|
|
|
};
|
|
|
</script>
|