...
|
...
|
@@ -70,16 +70,16 @@ function render(data) { |
|
|
if (data.cartInfo.thumbs) {
|
|
|
$chosePanel.removeClass(dbClass);
|
|
|
var cartInfo = data.cartInfo;
|
|
|
var thumbClone = $chosePanel.find('.thumb-img').remove();
|
|
|
var thumbClone = $chosePanel.find('.thumb').remove();
|
|
|
|
|
|
for (var i = cartInfo.thumbs.length - 1; i >= 0; i--) {
|
|
|
var thumbEle = thumbClone.clone();
|
|
|
|
|
|
thumbEle.find('.thumb').attr('src', cartInfo.thumbs[i].img);
|
|
|
thumbEle.attr('src', cartInfo.thumbs[i].img);
|
|
|
if (i != 0) {
|
|
|
thumbEle.addClass('hide');
|
|
|
}
|
|
|
$chosePanel.find('.basic-info').prepend(thumbEle);
|
|
|
$chosePanel.find('.thumb-img').prepend(thumbEle);
|
|
|
}
|
|
|
$chosePanel.find('.text-info>.name').text(cartInfo.name);
|
|
|
$chosePanel.find('.sale-price').text(cartInfo.salePrice);
|
...
|
...
|
|