Authored by 毕凯

YOHO 币使用优化

@@ -106,8 +106,12 @@ function orderCompute() { @@ -106,8 +106,12 @@ function orderCompute() {
106 if (res.last_order_amount) { 106 if (res.last_order_amount) {
107 res.last_order_amount = (+res.last_order_amount).toFixed(2); 107 res.last_order_amount = (+res.last_order_amount).toFixed(2);
108 } 108 }
  109 + if (res.use_yoho_coin) {
109 $coinCheck.find('em').html('- ¥ ' + res.use_yoho_coin); 110 $coinCheck.find('em').html('- ¥ ' + res.use_yoho_coin);
110 $coinUsed.html('已抵¥' + res.use_yoho_coin); 111 $coinUsed.html('已抵¥' + res.use_yoho_coin);
  112 + $coinCheck.find('em').show();
  113 + $coinUsed.show();
  114 + }
111 priceHtml = priceTmpl({ 115 priceHtml = priceTmpl({
112 cartPayData: res.promotion_formula_list, 116 cartPayData: res.promotion_formula_list,
113 price: res.last_order_amount 117 price: res.last_order_amount
@@ -215,9 +219,7 @@ $('.coin').on('touchend', function() { @@ -215,9 +219,7 @@ $('.coin').on('touchend', function() {
215 219
216 if ($this.find('.checkbox').hasClass('icon-cb-checked')) { 220 if ($this.find('.checkbox').hasClass('icon-cb-checked')) {
217 orderInfo('yohoCoin', $this.data('yoho-coin')); 221 orderInfo('yohoCoin', $this.data('yoho-coin'));
218 - $this.find('.coin-check em').show();  
219 $this.find('.can-use').hide(); 222 $this.find('.can-use').hide();
220 - $this.find('.used').show();  
221 } else { 223 } else {
222 orderInfo('yohoCoin', 0); 224 orderInfo('yohoCoin', 0);
223 $this.find('.coin-check em').hide(); 225 $this.find('.coin-check em').hide();