Authored by 沈志敏

fix bug

... ... @@ -91,10 +91,11 @@
{{#if canBuyLimit}}
<a href="javascript:;" id="addtoCart" class="addto-cart can-buy-limit">立即购买</a>
{{/if}}
{{#if canNotBuy}}
<a href="javascript:;" class="addto-cart can-not-buy">立即购买</a>
{{/if}}
{{#if noLimitCode}}
<a id="noLimitCode" href="javascript:;" class="sold-out limit">立即购买</a>
{{else if canNotBuy}}
<a id="noLimitCode" href="javascript:;" class="sold-out limit">立即购买</a>
{{/if}}
<input type="hidden" id="limitCodeUrl" name="limitCodeUrl" value="{{limitCodeUrl}}">
... ...
... ... @@ -64,6 +64,9 @@ setTimeout(() => {
}
}
if (data.studentPrice) {
data.studentPrice = Math.round(data.studentPrice.toString().replace('¥', ''));
}
$('#placeholder-pricedata').replaceWith(priceDataHbs(data));
$('#placeholder-infodata').replaceWith(infoDataHbs(data));
... ...