Merge branch 'feature/refundApply' into 'release/5.5'
修改地址优化 See merge request !353
Showing
2 changed files
with
9 additions
and
3 deletions
@@ -260,9 +260,15 @@ const orderDetailData = (uid, orderCode) => { | @@ -260,9 +260,15 @@ const orderDetailData = (uid, orderCode) => { | ||
260 | } | 260 | } |
261 | 261 | ||
262 | // 判断是否可以修改地址 | 262 | // 判断是否可以修改地址 |
263 | - if (orderDetail.canUpdateDeliveryAddress === 'Y') { | 263 | + if (orderDetail.canUpdateDeliveryAddress === 'Y' && orderDetail.isSupportChangeProvince === 'Y') { |
264 | orderDetail = _.assign(orderDetail, { | 264 | orderDetail = _.assign(orderDetail, { |
265 | - changeable: true | 265 | + changeable: true, |
266 | + addressModify: true | ||
267 | + }); | ||
268 | + } else if (orderDetail.canUpdateDeliveryAddress === 'Y' && orderDetail.isSupportChangeProvince !== 'Y') { | ||
269 | + orderDetail = _.assign(orderDetail, { | ||
270 | + changeable: false, | ||
271 | + addressModify: true | ||
266 | }); | 272 | }); |
267 | } | 273 | } |
268 | 274 |
@@ -123,7 +123,7 @@ | @@ -123,7 +123,7 @@ | ||
123 | 123 | ||
124 | <div class="opt block"> | 124 | <div class="opt block"> |
125 | {{!-- 修改地址 --}} | 125 | {{!-- 修改地址 --}} |
126 | - {{#if changeable}} | 126 | + {{#if addressModify}} |
127 | <a href="{{newUrl}}" class="btn">修改地址</a> | 127 | <a href="{{newUrl}}" class="btn">修改地址</a> |
128 | {{/if}} | 128 | {{/if}} |
129 | {{#if isDepositAdvance}} | 129 | {{#if isDepositAdvance}} |
-
Please register or login to post a comment