Authored by 陈峰

完善商品详情加入购物车逻辑

... ... @@ -58,9 +58,10 @@ function render(data) {
' <button id="chose-btn-sure" class="btn btn-sure"></button>' +
' </div>' +
'</div>';
$('.chose-panel').addClass('data-bind').html(htmlTemplate).append('<input id="promotionId" type="hidden" value="">').append('<input id="single" type="hidden" value="">');
$('#promotionId').remove();
$('#single').remove();
$('.chose-panel').addClass('data-bind').html(htmlTemplate).append('<input id="promotionId" type="hidden" value="">').append('<input id="single" type="hidden" value="">');
if (data.cartInfo) {
$chosePanel.removeClass(dbClass);
... ...