Authored by QC-L

我的拼团添加修改地址

... ... @@ -231,6 +231,18 @@ function changeOrderStatus(orderItem) {
}),
});
break;
case 'modifyAddress':// 修改收货地址
orderBtn.push({
modifyAddress: true,
link: helpers.urlFormat('/home/orders/addressModify', {
relation: orderItem.relate_order_code === 'Y', // 判断是否有关联订单
orderCode: orderItem.order_code,
areaCode: _.get(orderItem, 'delivery_address.area_code', ''),
provinceAreaCode: orderItem.is_support_change_province !== 'Y' &&
_.get(orderItem, 'delivery_address.province_area_code', '') || ''// 如果不允许修改省
})
});
break;
case 'closeOrder': // 取消订单
orderBtn.push({
closeOrder: true
... ...
... ... @@ -67,6 +67,9 @@
{{#if this.buyNow}}
<a href={{this.link}} class="invite-btn">立即付款</a>
{{/if}}
{{#if this.modifyAddress }}
<a href={{this.link}} class="btn cancel">修改地址</a>
{{/if}}
{{#if this.groupInvite }}
<a href={{this.link}} class="invite-btn">查看拼团详情</a>
{{/if}}
... ...