...
|
...
|
@@ -30,7 +30,7 @@ |
|
|
</div>
|
|
|
<div v-if="(detail.deliveryTpye === '10' || type ==='refund') && detail.status == 10"
|
|
|
class="logistics">
|
|
|
<a href="/me/return/logistics?applyid={{orderCode}}">填写商品寄回的快递信息</a>
|
|
|
<a href="/me/return/logistics?applyid={{applyid}}">填写商品寄回的快递信息</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="exchange-details">
|
...
|
...
|
@@ -108,12 +108,12 @@ |
|
|
<script>
|
|
|
const $ = require('jquery');
|
|
|
const util = require('common/util');
|
|
|
const qs = require('yoho-qs');
|
|
|
const yoho = require('yoho');
|
|
|
|
|
|
module.exports = {
|
|
|
props: ['applyid', 'type'],
|
|
|
data() {
|
|
|
return {
|
|
|
type: qs.type || '',
|
|
|
orderCode: '',
|
|
|
detail: {}
|
|
|
};
|
...
|
...
|
@@ -141,8 +141,24 @@ |
|
|
}
|
|
|
}).then(function(data) {
|
|
|
if (data.code === 200) {
|
|
|
//todo
|
|
|
|
|
|
if (yoho.isApp) {
|
|
|
const url = '/me/return';
|
|
|
yoho.goNewPage({
|
|
|
header: {
|
|
|
headerid: '1',
|
|
|
left: {
|
|
|
action: ''
|
|
|
},
|
|
|
title: {
|
|
|
des: '退/换货',
|
|
|
action: ''
|
|
|
}
|
|
|
},
|
|
|
url: location.origin + url
|
|
|
});
|
|
|
} else {
|
|
|
location.href = url;
|
|
|
}
|
|
|
} else if (data.code === 400) {
|
|
|
tip(data.message);
|
|
|
} else {
|
...
|
...
|
@@ -155,10 +171,10 @@ |
|
|
let _this = this;
|
|
|
|
|
|
$.ajax({
|
|
|
url: '/me/status-detail',
|
|
|
url: '/me/return/status-detail',
|
|
|
data: {
|
|
|
applyid: qs.applyid || '',
|
|
|
type: qs.type || ''
|
|
|
applyid: this.applyid,
|
|
|
type: this.type
|
|
|
}
|
|
|
}).then(res => {
|
|
|
if (res.data) {
|
...
|
...
|
|