Authored by Zhang

立即购买

@@ -12,7 +12,8 @@ const qs = require('yoho-qs'); @@ -12,7 +12,8 @@ const qs = require('yoho-qs');
12 let tip = require('plugin/tip'), 12 let tip = require('plugin/tip'),
13 loading = require('plugin/loading'), 13 loading = require('plugin/loading'),
14 order = require('./order-info'), 14 order = require('./order-info'),
15 - richTip = require('plugin/rich-tip'); 15 + richTip = require('plugin/rich-tip'),
  16 + dialog = require('plugin/dialog');
16 17
17 let $invoice = $('.invoice'), 18 let $invoice = $('.invoice'),
18 $couponUse = $('.coupon-use.used'), 19 $couponUse = $('.coupon-use.used'),
@@ -446,6 +447,15 @@ $subBlock.on('touchstart', 'li', function() { @@ -446,6 +447,15 @@ $subBlock.on('touchstart', 'li', function() {
446 }); 447 });
447 let self = $(this); 448 let self = $(this);
448 449
  450 + if (self.find('i').data('payment-type') === 2) {
  451 + dialog.showDialog({
  452 + dialogText: '货到付款订单是否支持刷卡以当地快递公司为准',
  453 + hasFooter: {
  454 + centerBtnText: '我知道了'
  455 + }
  456 + });
  457 + }
  458 +
449 setTimeout(function() { 459 setTimeout(function() {
450 self.parents('ul').hide(); 460 self.parents('ul').hide();
451 }, 300); 461 }, 300);