|
|
@@ -46,7 +46,7 @@ var fnCreateGoodsList = function(result, ithrCd, contentLoc, goodsUrl, lastPage,
|
|
|
}else{
|
|
|
tag += ' onClick="cfnPutWishList(this);" goodsCd=\''+item.goodsCd+'\', ithrCd=\'\', contentsLoc=\'\', planDtlSq=\'\'>관심상품 추가</button>';
|
|
|
}
|
|
|
- tag += '<a href="javascript:void(0);" class="itemLink" onclick="fnClickGoodsCd(\''+item.goodsCd+'\',\'' + item.colorCd + '\',\'' + keyWord + '\' );">';
|
|
|
+ tag += '<a href="javascript:void(0);" class="itemLink" onclick="fnClickGoodsCd(\''+item.goodsCd+'\',\'' + item.colorCd + '\',\'' + keyWord + '\',\'' + item.id + '\' );">';
|
|
|
tag += ' <div class="itemPic">';
|
|
|
if(!gagajf.isNull(item.videos)){
|
|
|
var videoArr = item.videos.split(",");
|
|
|
@@ -113,7 +113,11 @@ var fnCreateGoodsList = function(result, ithrCd, contentLoc, goodsUrl, lastPage,
|
|
|
}
|
|
|
tag += ' <div class="itemName">'+item.goodsFullNm+'</div>';
|
|
|
if(appGb != 'Mob'){
|
|
|
- tag += ' <p class="itemPrice">'+item.currPrice.addComma()
|
|
|
+ if(item.goodsType=='G056_D'){
|
|
|
+ tag += ' <p class="itemPrice">'+item.currPrice.addComma()+'~ ';
|
|
|
+ }else{
|
|
|
+ tag += ' <p class="itemPrice">'+item.currPrice.addComma()
|
|
|
+ }
|
|
|
if(item.currPrice != item.listPrice){
|
|
|
tag += ' <span class="itemPrice_original">'+item.listPrice.addComma()+'</span>';
|
|
|
if(item.listPrice != 0){
|
|
|
@@ -126,7 +130,11 @@ var fnCreateGoodsList = function(result, ithrCd, contentLoc, goodsUrl, lastPage,
|
|
|
if(item.currPrice != item.listPrice) {
|
|
|
tag += ' <span class="itemPrice_original">' + item.listPrice.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + '</span>';
|
|
|
}
|
|
|
- tag += item.currPrice.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
|
+ if(item.goodsType=='G056_D'){
|
|
|
+ tag += item.currPrice.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") +'~ ';
|
|
|
+ }else{
|
|
|
+ tag += item.currPrice.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
|
+ }
|
|
|
if(item.currPrice != item.listPrice){
|
|
|
if(item.listPrice != 0){
|
|
|
tag += ' <span class="itemPercent">'+ Math.round((item.listPrice - item.currPrice) / (item.listPrice * 1.0) * 100) +'%</span>';
|
|
|
@@ -494,10 +502,10 @@ var fnSortingChange = function (obj, sortingType, stat, appGb){
|
|
|
}
|
|
|
|
|
|
// 상품상세
|
|
|
-var fnClickGoodsCd = function (goodsCd, mainColorCd, keyWord){
|
|
|
+var fnClickGoodsCd = function (goodsCd, mainColorCd, keyWord , searchId){
|
|
|
let scrollpos = $(window).scrollTop();
|
|
|
localStorage.setItem('scrollpos', scrollpos);
|
|
|
- cfnGoToGoodsDetail(goodsCd, mainColorCd,'','','','', keyWord);
|
|
|
+ cfnGoToGoodsDetail(goodsCd, mainColorCd,'','','','', keyWord , searchId);
|
|
|
}
|
|
|
|
|
|
// 카테고리 set test
|