...
|
...
|
@@ -590,6 +590,7 @@ const getChangeGoodsList = (orderCode, uid) => { |
|
|
const _setExchangeDetailData = (data) => {
|
|
|
data = camelCase(data);
|
|
|
|
|
|
// console.log(data)
|
|
|
let list = {};
|
|
|
|
|
|
switch (data.status) {
|
...
|
...
|
@@ -606,7 +607,9 @@ const _setExchangeDetailData = (data) => { |
|
|
} else {
|
|
|
Object.assign(list, {
|
|
|
audit: true,
|
|
|
reminder: true
|
|
|
reminder: true,
|
|
|
inDoor: true,
|
|
|
cancel: true
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -614,7 +617,8 @@ const _setExchangeDetailData = (data) => { |
|
|
case 10:
|
|
|
Object.assign(list, {
|
|
|
through: true,
|
|
|
reminder: true
|
|
|
reminder: true,
|
|
|
location: true
|
|
|
});
|
|
|
|
|
|
if (data.deliveryTpyeName === '寄回换货') {
|
...
|
...
|
@@ -630,12 +634,17 @@ const _setExchangeDetailData = (data) => { |
|
|
}
|
|
|
|
|
|
break;
|
|
|
case 20:
|
|
|
|
|
|
case 20:
|
|
|
if (data.deliveryTpyeName === '寄回换货') {
|
|
|
Object.assign(list, {
|
|
|
logistics: true
|
|
|
});
|
|
|
} else {
|
|
|
list.send = true;
|
|
|
list.reminder = true;
|
|
|
list.inDoor = true;
|
|
|
list.auditSuccess = true;
|
|
|
list.view = `//www.yohobuy.com/me/order/detail?code=${data.orderCode}`;
|
|
|
}
|
|
|
|
|
|
break;
|
...
|
...
|
@@ -644,6 +653,8 @@ const _setExchangeDetailData = (data) => { |
|
|
list.takeGoods = true;
|
|
|
list.auditSuccess = true;
|
|
|
list.view = `//www.yohobuy.com/me/order/detail?code=${data.orderCode}`;
|
|
|
} else {
|
|
|
list.takeGoods = true;
|
|
|
}
|
|
|
break;
|
|
|
case 50:
|
...
|
...
|
@@ -683,7 +694,7 @@ const getExchangeDetailData = (id, uid) => { |
|
|
returnsAPI.getExchangeDetail(id, uid),
|
|
|
returnsAPI.getExpressCompanyAsync()
|
|
|
]).then(result => {
|
|
|
|
|
|
console.log(result);
|
|
|
let exchangeData = {};
|
|
|
|
|
|
Object.assign(exchangeData, _setSideMenu('我的退/换货'));
|
...
|
...
|
|