Authored by 郝肖肖

'定金预售商品只能在APP端操作'

... ... @@ -621,6 +621,13 @@ module.exports = class extends global.yoho.BaseModel {
orderType, attribute, refundStatus, links) {
let operation = {};
if (attribute === 9 || attribute === 11) {
Object.assign(operation, {
deposit: true
});
return operation;
}
// 立刻付款
if (_.includes(links, 'buyNow')) {
Object.assign(operation, {
... ... @@ -881,14 +888,18 @@ module.exports = class extends global.yoho.BaseModel {
detail.packageTitle = orderDetail.package_title;
detail.packages = that._getPackageInfo(orderDetail);
// 判断是否可以修改地址
if (orderDetail.can_update_delivery_address === 'Y') {
detail.changeable = true;
}
if (+orderDetail.attribute === 9 || +orderDetail.attribute === 11) {
// 定金预售不能操作
} else {
// 判断是否可以修改地址
if (orderDetail.can_update_delivery_address === 'Y') {
detail.changeable = true;
}
// 判断是否可以修改省份
if (orderDetail.is_support_change_province === 'N') {
detail.changeProvince = true;
// 判断是否可以修改省份
if (orderDetail.is_support_change_province === 'N') {
detail.changeProvince = true;
}
}
return detail;
... ...
... ... @@ -340,6 +340,12 @@
</p>
{{/if}}
{{#if deposit}}
<p>
<span class="op-dis">*定金预售商品只能在APP端操作</span>
</p>
{{/if}}
{{#if checkQrCode}}
<a class="check-qrcode oo-btn" href="{{checkQrCode}}" target="_blank">查看二维码</a>
{{/if}}
... ...
... ... @@ -54,6 +54,11 @@ module.exports = class extends global.yoho.BaseModel {
return result;
}
if (+order.attribute === 9 || +order.attribute === 11) {
result.message = '定金预售商品只能在APP端操作';
return result;
}
if (order.pay_expire && common.getPayExpireMin(order.pay_expire) <= 0) {
result.message = '当前订单不可支付';// 该订单已超过2个小时
return result;
... ...
... ... @@ -615,6 +615,10 @@
border: 1px solid #c1c1c1;
color: #000;
}
.op-dis {
color: #999;
}
}
.freebie-tag {
... ...