Authored by lijing

强制保留2位小数

@@ -32,7 +32,8 @@ var skuFlag, @@ -32,7 +32,8 @@ var skuFlag,
32 hideIndex; 32 hideIndex;
33 33
34 var oneIndex = 0, 34 var oneIndex = 0,
35 - twoIndex = 0; 35 + twoIndex = 0,
  36 + secKillPrice = 0;
36 37
37 require('../common'); 38 require('../common');
38 39
@@ -158,7 +159,7 @@ $( @@ -158,7 +159,7 @@ $(
158 // 插入倒计时 159 // 插入倒计时
159 addTimeout($('.price-date')); 160 addTimeout($('.price-date'));
160 addTimeout($('.text-info')); 161 addTimeout($('.text-info'));
161 - let secKillPrice = toDecimal2(data.secKillPrice); 162 + secKillPrice = toDecimal2(data.secKillPrice);
162 $('.current-price').text('¥' + secKillPrice).show(); 163 $('.current-price').text('¥' + secKillPrice).show();
163 $('.sale-price').text('¥' + secKillPrice).show(); 164 $('.sale-price').text('¥' + secKillPrice).show();
164 $('.chose-items .num').find('.clearfix').append( 165 $('.chose-items .num').find('.clearfix').append(