|
|
@@ -97,30 +97,26 @@ let fnGetSocialList = function(result) {
|
|
|
var html = '';
|
|
|
|
|
|
$.each(result.dataList, function(idx, item) {
|
|
|
+
|
|
|
+ html += ' <div class="item_prod"class="item_prod">';
|
|
|
if (item.stockQtySum == 0) {
|
|
|
- html += ' <div class="item_prod"class="item_prod sold_out">';
|
|
|
+ html += ' <div class="item_state sold_out"> ';
|
|
|
}else{
|
|
|
- html += ' <div class="item_prod"class="item_prod">';
|
|
|
+ html += ' <div class="item_state"> ';
|
|
|
}
|
|
|
-
|
|
|
- html += ' <div class="item_state"> ';
|
|
|
if (item.likeIt == 'likeit') {
|
|
|
html += ' <button type="button" class="itemLike active" onclick="cfnPutWishList(this);" onClick="cfnPutWishList(this);" goodsCd=\''+item.goodsCd+'\', ithrCd=\'\', contentsLoc=\'\', planDtlSq=\'\'>관심상품 추가</button>';
|
|
|
}else{
|
|
|
html += ' <button type="button" class="itemLike" onclick="cfnPutWishList(this);" onClick="cfnPutWishList(this);" goodsCd=\''+item.goodsCd+'\', ithrCd=\'\', contentsLoc=\'\', planDtlSq=\'\'>관심상품 추가</button>';
|
|
|
}
|
|
|
|
|
|
- html += ' <a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail(\''+item.goodsCd+'\')" >';
|
|
|
+ html += ' <a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.goodsCd+'\')" >';
|
|
|
html += ' <div class="itemPic">';
|
|
|
html += ' <img alt="BLUE-a" class=" vLHTC pd_img" src="'+ goodsView +'/'+item.sysImgNm +'">';
|
|
|
html += ' </div>';
|
|
|
html += ' <div class="itemSpecialPrice"><span>특가</span></div>';
|
|
|
html += ' <p class="itemBrand">'+item.brandGroupNm+'</p>';
|
|
|
html += ' <div class="itemName">'+item.goodsNm+'</div>';
|
|
|
- if(item.goodsTnm != null){
|
|
|
- html += ' <div class="itemComment">'+item.goodsTnm+'</div>';
|
|
|
- }
|
|
|
-
|
|
|
html += ' <p class="itemPrice">';
|
|
|
html += item.currPrice.addComma() +'원';
|
|
|
if (item.currPrice != item.listPrice) {
|
|
|
@@ -130,6 +126,9 @@ let fnGetSocialList = function(result) {
|
|
|
html += ' <span class=" itemPercent">'+item.dcRate.addComma()+'%</span>';
|
|
|
}
|
|
|
html += ' </p>';
|
|
|
+ if(item.goodsTnm != null){
|
|
|
+ html += ' <div class="itemComment">'+item.goodsTnm+'</div>';
|
|
|
+ }
|
|
|
html += ' </a>';
|
|
|
html += ' <div class="shopBagBtn">';
|
|
|
html += ' <button type="button" class="btn btn_defalt" onclick="socialAddCart(this)" goodsCd=\''+item.goodsCd+'\', minOrdQty=\''+item.minOrdQty+'\', goodsType=\''+item.goodsType+'\', optCd=\''+item.optCd+'\'">';
|