Authored by Rock Zhang

Merge branch 'hotfix/yohocoinuse' of git.dev.yoho.cn:web/yohobuy into hotfix/yohocoinuse

@@ -73,19 +73,20 @@ $('.checkbox').on('touchstart', function() { @@ -73,19 +73,20 @@ $('.checkbox').on('touchstart', function() {
73 } 73 }
74 }); 74 });
75 75
76 -$('.invoice').on('touchend', '.checkbox', function() { 76 +$invoice.on('touchend', '.checkbox', function() {
77 var $this = $(this); 77 var $this = $(this);
78 78
79 if ($this.hasClass('icon-cb-checked')) { 79 if ($this.hasClass('icon-cb-checked')) {
80 - $('.invoice').addClass('focus'); 80 + $invoice.addClass('focus');
81 } 81 }
82 if ($this.hasClass('icon-checkbox')) { 82 if ($this.hasClass('icon-checkbox')) {
83 - $('.invoice').removeClass('focus'); 83 + $invoice.removeClass('focus');
84 } 84 }
85 }); 85 });
86 86
87 function orderCompute() { 87 function orderCompute() {
88 var yohoCoin = orderInfo('yohoCoin'); 88 var yohoCoin = orderInfo('yohoCoin');
  89 +
89 $.ajax({ 90 $.ajax({
90 method: 'POST', 91 method: 'POST',
91 url: '/cart/index/orderCompute', 92 url: '/cart/index/orderCompute',
@@ -235,10 +236,12 @@ $('.coin').on('touchend', function() { @@ -235,10 +236,12 @@ $('.coin').on('touchend', function() {
235 orderCompute(); 236 orderCompute();
236 }); 237 });
237 238
238 -$invoice.on('touchend', function() { 239 +$invoice.on('touchend', function(e) {
239 var $this = $(this); 240 var $this = $(this);
240 241
241 orderInfo('invoice', $this.find('.checkbox').hasClass('icon-cb-checked')); 242 orderInfo('invoice', $this.find('.checkbox').hasClass('icon-cb-checked'));
  243 + e.preventDefault();
  244 + e.stopPropagation();
242 }); 245 });
243 246
244 $invoice.find('[name="invoice-title"]').on('blur', function() { 247 $invoice.find('[name="invoice-title"]').on('blur', function() {