Merge branch 'fetaure/orderPayType' into 'release/6.0'
货到付款提示取接口字段 See merge request !747
Showing
5 changed files
with
8 additions
and
6 deletions
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | {{#each paymentWay}} | 31 | {{#each paymentWay}} |
32 | {{#if isSupport}} | 32 | {{#if isSupport}} |
33 | <li {{#if recommend}}class="chosed"{{/if}}> | 33 | <li {{#if recommend}}class="chosed"{{/if}}> |
34 | - <span>{{name}}</span> | 34 | + <span {{#if isSupportMessage}}data-message="{{isSupportMessage}}"{{/if}}>{{name}}</span> |
35 | <i class="right iconfont {{#if recommend}}icon-cb-radio{{else}}icon-radio{{/if}}" data-id="{{id}}" data-payment-type="{{paymentType}}"></i> | 35 | <i class="right iconfont {{#if recommend}}icon-cb-radio{{else}}icon-radio{{/if}}" data-id="{{id}}" data-payment-type="{{paymentType}}"></i> |
36 | </li> | 36 | </li> |
37 | {{/if}} | 37 | {{/if}} |
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | {{#each paymentWay}} | 31 | {{#each paymentWay}} |
32 | {{#if isSupport}} | 32 | {{#if isSupport}} |
33 | <li {{#if recommend}}class="chosed"{{/if}}> | 33 | <li {{#if recommend}}class="chosed"{{/if}}> |
34 | - <span>{{name}}</span> | 34 | + <span {{#if isSupportMessage}}data-message="{{isSupportMessage}}"{{/if}}>{{name}}</span> |
35 | <i class="right iconfont {{#if recommend}}icon-cb-radio{{else}}icon-radio{{/if}}" data-id="{{id}}" data-payment-type="{{paymentType}}"></i> | 35 | <i class="right iconfont {{#if recommend}}icon-cb-radio{{else}}icon-radio{{/if}}" data-id="{{id}}" data-payment-type="{{paymentType}}"></i> |
36 | </li> | 36 | </li> |
37 | {{/if}} | 37 | {{/if}} |
@@ -452,10 +452,10 @@ $subBlock.on('touchstart', 'li', function() { | @@ -452,10 +452,10 @@ $subBlock.on('touchstart', 'li', function() { | ||
452 | }); | 452 | }); |
453 | let self = $(this); | 453 | let self = $(this); |
454 | 454 | ||
455 | - if (self.find('i').data('payment-type') === 2 && delivery === 0) { | 455 | + if (self.find('span').data('message') && delivery === 0) { |
456 | dialog.showDialog({ | 456 | dialog.showDialog({ |
457 | hasHeader: '温馨提示', | 457 | hasHeader: '温馨提示', |
458 | - dialogText: '货到付款订单是否支持刷卡以当地快递公司为准', | 458 | + dialogText: self.find('span').data('message'), |
459 | hasFooter: { | 459 | hasFooter: { |
460 | centerBtnText: '我知道了' | 460 | centerBtnText: '我知道了' |
461 | } | 461 | } |
@@ -431,9 +431,10 @@ $subBlock.on('touchstart', 'li', function() { | @@ -431,9 +431,10 @@ $subBlock.on('touchstart', 'li', function() { | ||
431 | }); | 431 | }); |
432 | let self = $(this); | 432 | let self = $(this); |
433 | 433 | ||
434 | - if (self.find('i').data('payment-type') === 2 && delivery === 0) { | 434 | + if (self.find('span').data('message') && delivery === 0) { |
435 | dialog.showDialog({ | 435 | dialog.showDialog({ |
436 | - dialogText: '货到付款订单是否支持刷卡以当地快递公司为准', | 436 | + hasHeader: '温馨提示', |
437 | + dialogText: self.find('span').data('message'), | ||
437 | hasFooter: { | 438 | hasFooter: { |
438 | centerBtnText: '我知道了' | 439 | centerBtnText: '我知道了' |
439 | } | 440 | } |
@@ -227,6 +227,7 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) { | @@ -227,6 +227,7 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) { | ||
227 | obj.paymentType = way.payment_type; | 227 | obj.paymentType = way.payment_type; |
228 | obj.name = way.payment_type_name; | 228 | obj.name = way.payment_type_name; |
229 | obj.isSupport = way.is_support === 'Y'; | 229 | obj.isSupport = way.is_support === 'Y'; |
230 | + obj.isSupportMessage = way.payment_type === 2 ? _.get(way, 'is_support_message', false) : false; | ||
230 | 231 | ||
231 | return obj; | 232 | return obj; |
232 | }); | 233 | }); |
-
Please register or login to post a comment