...
|
...
|
@@ -60,7 +60,7 @@ |
|
|
<blockquote v-if="goods.remark">{{goods.remark}}</blockquote>
|
|
|
<ul v-if="goods.evidenceImages.length > 0" class="exchange-img">
|
|
|
<li v-for="image in goods.evidenceImages">
|
|
|
<img :src="image">
|
|
|
<img :src="image | resize 154 154">
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
...
|
...
|
@@ -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);
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -169,9 +170,9 @@ |
|
|
this.id = this.detail.id;
|
|
|
this.sourceOrderCode = this.detail.sourceOrderCode;
|
|
|
this.detail.goodsList.forEach(d => {
|
|
|
d.evidenceImages = d.evidenceImages.map(p => {
|
|
|
return util.getImgHost(p) + '?imageView2/2/w/154/h/154';
|
|
|
})
|
|
|
// d.evidenceImages = d.evidenceImages.map(p => {
|
|
|
// return util.getImgHost(p) + '?imageView2/2/w/154/h/154';
|
|
|
// })
|
|
|
});
|
|
|
}
|
|
|
});
|
...
|
...
|
|