Authored by lijing

强制保留2位小数

... ... @@ -32,7 +32,8 @@ var skuFlag,
hideIndex;
var oneIndex = 0,
twoIndex = 0;
twoIndex = 0,
secKillPrice = 0;
require('../common');
... ... @@ -158,7 +159,7 @@ $(
// 插入倒计时
addTimeout($('.price-date'));
addTimeout($('.text-info'));
let secKillPrice = toDecimal2(data.secKillPrice);
secKillPrice = toDecimal2(data.secKillPrice);
$('.current-price').text('¥' + secKillPrice).show();
$('.sale-price').text('¥' + secKillPrice).show();
$('.chose-items .num').find('.clearfix').append(
... ...