...
|
...
|
@@ -73,8 +73,8 @@ |
|
|
<p>(现金:¥{{detail.returnAmountTotal}} - YOHO币:{{detail.returnYohoCoin}} - 优惠券:{{detail.returnCouponAmount}})</p>
|
|
|
</div>
|
|
|
<div class="exchange-type">
|
|
|
<a href="" class="primary">退款方式<span class="right">{{detail.returnAmountModeName}}</span>
|
|
|
</a>
|
|
|
<span href="" class="primary">退款方式<span class="right">{{detail.returnAmountModeName}}</span>
|
|
|
</span>
|
|
|
<div class="amount-modeinfo" v-if="detail.returnAmountModeInfo && detail.returnAmountModeInfo.length">
|
|
|
<p v-if="detail.returnAmountModeInfo[0].bankName">银行 <span>{{detail.returnAmountModeInfo[0].bankName}}</span></p>
|
|
|
<p v-if="detail.returnAmountModeInfo[0].bankCard">卡号 <span>{{detail.returnAmountModeInfo[0].bankCard}}</span></p>
|
...
|
...
|
@@ -91,8 +91,7 @@ |
|
|
<p>{{detail.province}} {{detail.city}} {{detail.county}} <br>{{detail.address}}</p>
|
|
|
</div>
|
|
|
<div class="exchange-type">
|
|
|
<a href="" class="primary">换货方式<span class="right">{{detail.deliveryTpyeName}}</span>
|
|
|
</a>
|
|
|
<span class="primary">换货方式<span class="right">{{detail.deliveryTpyeName}}</span></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="exchange-order">
|
...
|
...
|
@@ -111,6 +110,7 @@ |
|
|
const tip = require('common/tip');
|
|
|
const interceptClick = require('common/intercept-click');
|
|
|
const yoho = require('yoho');
|
|
|
const Modal = require('common/modal');
|
|
|
|
|
|
module.exports = {
|
|
|
props: ['applyid', 'type'],
|
...
|
...
|
@@ -123,32 +123,33 @@ |
|
|
},
|
|
|
methods: {
|
|
|
cancel() {
|
|
|
if (!this.id) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
let id = this.id;
|
|
|
let url = '';
|
|
|
|
|
|
if (!id) {
|
|
|
return false;
|
|
|
}
|
|
|
if (this.type === 'refund') {
|
|
|
url = '/me/return/refund/cancel-apply';
|
|
|
} else if (this.type === 'exchange') {
|
|
|
url = '/me/return/exchange/cancel-apply';
|
|
|
}
|
|
|
|
|
|
$.ajax({
|
|
|
method: 'POST',
|
|
|
url: url,
|
|
|
data: {
|
|
|
id: this.id,
|
|
|
}
|
|
|
}).then(data => {
|
|
|
if (data.code === 200) {
|
|
|
interceptClick.intercept('/me/return');
|
|
|
} else if (data.code === 400) {
|
|
|
tip(data.message);
|
|
|
} else {
|
|
|
tip('取消失败');
|
|
|
}
|
|
|
Modal.confirm('', '确认取消吗?', function() {
|
|
|
this.hide();
|
|
|
$.ajax({
|
|
|
method: 'POST',
|
|
|
url: url,
|
|
|
data: {
|
|
|
id: id,
|
|
|
}
|
|
|
}).then(data => {
|
|
|
if (data.code === 200) {
|
|
|
interceptClick.intercept('/me/return');
|
|
|
} else {
|
|
|
tip(data.message);
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
},
|
...
|
...
|
|