Authored by 张孝茹

货到付款提示恢复

@@ -384,7 +384,9 @@ $subBlock.on('touchstart', 'li', function() { @@ -384,7 +384,9 @@ $subBlock.on('touchstart', 'li', function() {
384 }); 384 });
385 let self = $(this); 385 let self = $(this);
386 386
387 - if (self.find('span').data('message') && delivery === 0) { 387 + if (self.find('span').data('message') && delivery === 0 &&
  388 + parseInt(self.find('i').data('payment-type'), 10) === 2) {
  389 +
388 dialog.showDialog({ 390 dialog.showDialog({
389 hasHeader: '温馨提示', 391 hasHeader: '温馨提示',
390 dialogText: self.find('span').data('message'), 392 dialogText: self.find('span').data('message'),
@@ -35,7 +35,8 @@ let $invoice = $('.invoice'), @@ -35,7 +35,8 @@ let $invoice = $('.invoice'),
35 isYohoCoinClick = $coinLi.data('yoho-coin-click') * 1, // 判断有货币是否可以单击 35 isYohoCoinClick = $coinLi.data('yoho-coin-click') * 1, // 判断有货币是否可以单击
36 addressTop = $('.address-wrap').outerHeight(), 36 addressTop = $('.address-wrap').outerHeight(),
37 $message = $('#msg'), 37 $message = $('#msg'),
38 - $noPrintPrice = $('.no-print-price'); 38 + $noPrintPrice = $('.no-print-price'),
  39 + delivery = 0;
39 40
40 const orderEnsure = new OrderEnsure(order); 41 const orderEnsure = new OrderEnsure(order);
41 42
@@ -416,6 +417,20 @@ $subBlock.on('touchstart', 'li', function() { @@ -416,6 +417,20 @@ $subBlock.on('touchstart', 'li', function() {
416 }); 417 });
417 let self = $(this); 418 let self = $(this);
418 419
  420 + if (self.find('span').data('message') && delivery === 0 &&
  421 + parseInt(self.find('i').data('payment-type'), 10) === 2) {
  422 +
  423 + dialog.showDialog({
  424 + hasHeader: '温馨提示',
  425 + dialogText: self.find('span').data('message'),
  426 + hasFooter: {
  427 + centerBtnText: '我知道了'
  428 + }
  429 + });
  430 +
  431 + delivery = 1;
  432 + }
  433 +
419 setTimeout(function() { 434 setTimeout(function() {
420 self.parents('ul').hide(); 435 self.parents('ul').hide();
421 }, 300); 436 }, 300);