...
|
...
|
@@ -53,13 +53,32 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
return {};
|
|
|
}
|
|
|
|
|
|
let attribute = _.parseInt(order.attribute);
|
|
|
let attribute = _.parseInt(_.get(order, 'orderExtInfo.attribute'));
|
|
|
|
|
|
order = _.assign(order, {
|
|
|
orderCode: _.get(order, 'orderExtInfo.orderCode')
|
|
|
});
|
|
|
|
|
|
if (attribute === 9 || attribute === 11) {
|
|
|
// 定金预售拼接提示语
|
|
|
let countTime = 0;
|
|
|
let payAmount = 0;
|
|
|
|
|
|
if (_.get(order, 'orderDetailInfo.ext.payLefttime') &&
|
|
|
parseInt(order.orderDetailInfo.ext.payLefttime, 10)) {
|
|
|
countTime = order.orderDetailInfo.ext.payLefttime * 1000;
|
|
|
}
|
|
|
|
|
|
if (_.get(order, 'orderDetailInfo.key') === '203') { // 待支付尾款
|
|
|
payAmount = _.get(order, 'orderExtInfo.orderTailPayAmount');
|
|
|
order.orderDetailInfo.ext.desc = `你的商品已到货,您还需支付尾款<span>¥${payAmount}</span>,
|
|
|
请在<i class="hours new-hours hide">${countTime}</i>内完成支付。超时订单自动取消`;
|
|
|
} else if (_.get(order, 'orderDetailInfo.key') === '201') { // 待支付定金
|
|
|
payAmount = _.get(order, 'orderExtInfo.orderDepositAmount');
|
|
|
order.orderDetailInfo.ext.desc = `您需支付定金<span>¥${payAmount}</span>,
|
|
|
请在<i class="hours new-hours hide">${countTime}</i>内完成支付。超时订单自动取消`;
|
|
|
}
|
|
|
|
|
|
/* 预售商品,不能进行任何操作 */
|
|
|
orderBtn.push({
|
|
|
isAdvance: true
|
...
|
...
|
|