...
|
...
|
@@ -84,7 +84,9 @@ const _getUserOrder = (uid, type, page) => { |
|
|
item.createTime = _convertUnixTime(item.createTime);
|
|
|
|
|
|
// 隐藏结束了的剩余时间
|
|
|
if (parseInt(item.payLefttime, 10) !== 0 && item.isCancel === 'N') {
|
|
|
if (parseInt(item.payLefttime, 10) !== 0 &&
|
|
|
item.isCancel === 'N' &&
|
|
|
st === 0) {
|
|
|
item.showPayButton = true;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -99,6 +101,10 @@ const _getUserOrder = (uid, type, page) => { |
|
|
item.showGetBtn = st === 4 || st === 5;
|
|
|
|
|
|
item.showBuyBtn = item.isCancel === 'Y';
|
|
|
|
|
|
if (item.statusStr === '已付款') {
|
|
|
item.statusStr = '备货中';
|
|
|
}
|
|
|
});
|
|
|
|
|
|
return {
|
...
|
...
|
@@ -136,7 +142,7 @@ const getOrderData = (uid, type, page) => { |
|
|
return _getUserOrder(uid, type, page).then(result => {
|
|
|
const basicData = {
|
|
|
title: '我的订单',
|
|
|
showSearch: type === 1,
|
|
|
showSearch: false, // type === 1,
|
|
|
total: result.total,
|
|
|
type: type
|
|
|
};
|
...
|
...
|
@@ -199,6 +205,12 @@ const getOrderDetail = (uid, code) => { |
|
|
|
|
|
detail.createTime = _convertUnixTime(detail.createTime);
|
|
|
|
|
|
detail.amount = detail.amount.replace('¥', '');
|
|
|
|
|
|
if (parseInt(detail.status, 10) !== 0 && detail.isCancel !== 'Y') {
|
|
|
detail.showPaid = true;
|
|
|
}
|
|
|
|
|
|
detail.expressInfo = express;
|
|
|
detail.expressInfo.addressList = _convertAddress(express.expressDetail);
|
|
|
|
...
|
...
|
|