|
|
@@ -188,25 +188,28 @@
|
|
|
console.log(result);
|
|
|
if(result.length > 0){
|
|
|
$.each(result, function (idx, item){
|
|
|
- var imgUrl = '';
|
|
|
- html += '<div class="swiper-slide">\n';
|
|
|
- html += ' <div class="item_prod">\n';
|
|
|
- html += ' <div class="item_state">\n';
|
|
|
- html += ' <button type="button" class="itemLike" onclick="cfnPutWishList(this)" goodsCd="'+item.itemId+'" goodsNm="'+ item.itemName+'" ithrCd="" contentsLoc="IN10_01" planDtlSq="">관심상품 추가</button>\n';
|
|
|
- html += ' <a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.itemId+'\',\'\',\'IN10_01\')">\n';
|
|
|
- html += ' <div class="itemPic">\n';
|
|
|
- html += ' <img alt="" class="vLHTC pd_img" src="' + item.imageUrl + '">\n';
|
|
|
- html += ' </div>\n';
|
|
|
- html += ' <div class="itemName">'+item.itemName+'</div>\n';
|
|
|
- if(item.count < 10){
|
|
|
- html += '<div class="viewCount"><span>10명</span> 미만</div>\n';
|
|
|
- }else{
|
|
|
- html += ' <div class="viewCount"><span>'+item.count.addComma()+'</span>명 보는중</div>\n';
|
|
|
+ // 2021.08.30 이미지 null 처리
|
|
|
+ if (item.itemName != null) {
|
|
|
+ var imgUrl = '';
|
|
|
+ html += '<div class="swiper-slide">\n';
|
|
|
+ html += ' <div class="item_prod">\n';
|
|
|
+ html += ' <div class="item_state">\n';
|
|
|
+ html += ' <button type="button" class="itemLike" onclick="cfnPutWishList(this)" goodsCd="'+item.itemId+'" goodsNm="'+ item.itemName+'" ithrCd="" contentsLoc="IN10_01" planDtlSq="">관심상품 추가</button>\n';
|
|
|
+ html += ' <a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.itemId+'\',\'\',\'IN10_01\')">\n';
|
|
|
+ html += ' <div class="itemPic">\n';
|
|
|
+ html += ' <img alt="" class="vLHTC pd_img" src="' + item.imageUrl + '">\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' <div class="itemName">'+item.itemName+'</div>\n';
|
|
|
+ if(item.count < 10){
|
|
|
+ html += '<div class="viewCount"><span>10명</span> 미만</div>\n';
|
|
|
+ }else{
|
|
|
+ html += ' <div class="viewCount"><span>'+item.count.addComma()+'</span>명 보는중</div>\n';
|
|
|
+ }
|
|
|
+ html += ' </a>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += '</div>\n';
|
|
|
}
|
|
|
- html += ' </a>\n';
|
|
|
- html += ' </div>\n';
|
|
|
- html += ' </div>\n';
|
|
|
- html += '</div>\n';
|
|
|
});
|
|
|
|
|
|
}
|