|
|
@@ -179,7 +179,7 @@
|
|
|
|
|
|
// 검색어 찾기 결과
|
|
|
var fnAutoCompleteList = function (result){
|
|
|
- if(result.autoKeywords.length==0 && result.cateList.length == 0 && gagajf.isNull(result.goodsList)){
|
|
|
+ if(result.autoKeywords.length==0 && gagajf.isNull(result.goodsList)){
|
|
|
$('.common_search .area_result .default_box').hide();
|
|
|
$('.common_search .area_result .searching_box').hide();
|
|
|
$('.common_search .area_result .empty_box').show();
|
|
|
@@ -210,62 +210,62 @@
|
|
|
$(".autokeyword_blk").append(tag);
|
|
|
}
|
|
|
|
|
|
- if(result.brand != null && !gagajf.isNull(result.brand.brandGroupNo)){
|
|
|
- $(".find_brand").html('');
|
|
|
- let tag = '';
|
|
|
- tag += '<h3><a href="javascript:void(0);" onclick="cfnGoToBrandMain('+result.brand.brandGroupNo+');">'+result.brand.brandGroupNm+' 샵 바로가기</a></h3>\n';
|
|
|
- $(".find_brand").append(tag);
|
|
|
- }else{
|
|
|
- $(".find_brand").html('');
|
|
|
- }
|
|
|
+ //if(result.brand != null && !gagajf.isNull(result.brand.brandGroupNo)){
|
|
|
+ // $(".find_brand").html('');
|
|
|
+ // let tag = '';
|
|
|
+ // tag += '<h3><a href="javascript:void(0);" onclick="cfnGoToBrandMain('+result.brand.brandGroupNo+');">'+result.brand.brandGroupNm+' 샵 바로가기</a></h3>\n';
|
|
|
+ // $(".find_brand").append(tag);
|
|
|
+ //}else{
|
|
|
+ // $(".find_brand").html('');
|
|
|
+ //}
|
|
|
|
|
|
- if(result.cateList != null && result.cateList.length > 0){
|
|
|
- $(".find_category").html('');
|
|
|
- let tag = '';
|
|
|
- tag += '<ul>\n';
|
|
|
- $.each(result.cateList, function (idx, item){
|
|
|
- tag += '<li>\n';
|
|
|
- tag += ' <span class="category_txt">카테고리</span>\n';
|
|
|
- tag += ' <a href="javascript:void(0);" onclick="cfnGoToGoodsList(0,\'G032_101\' ';
|
|
|
- if(item.cate1No != null){
|
|
|
- tag += ', '+item.cate1No;
|
|
|
- }
|
|
|
- if(item.cate2No != null){
|
|
|
- tag += ', '+item.cate2No;
|
|
|
- }
|
|
|
- if(item.cate3No != null){
|
|
|
- tag += ', '+item.cate3No;
|
|
|
- }
|
|
|
- if(item.cate4No != null){
|
|
|
- tag += ', '+item.cate4No;
|
|
|
- }
|
|
|
- if(item.cate5No != null){
|
|
|
- tag += ', '+item.cate5No;
|
|
|
- }
|
|
|
- tag += ');">\n';
|
|
|
- if(item.cate1Nm != null){
|
|
|
- tag += ' <span>'+item.cate1Nm+'</span>\n';
|
|
|
- }
|
|
|
- if(item.cate2Nm != null){
|
|
|
- tag += ' <span>'+item.cate2Nm+'</span>\n';
|
|
|
- }
|
|
|
- if(item.cate3Nm != null){
|
|
|
- tag += ' <span>'+item.cate3Nm+'</span>\n';
|
|
|
- }
|
|
|
- if(item.cate4Nm != null){
|
|
|
- tag += ' <span>'+item.cate4Nm+'</span>\n';
|
|
|
- }
|
|
|
- if(item.cate5Nm != null){
|
|
|
- tag += ' <span>'+item.cate5Nm+'</span>\n';
|
|
|
- }
|
|
|
- tag += ' </a>\n';
|
|
|
- tag += '</li>\n';
|
|
|
- });
|
|
|
- tag += '</ul>\n';
|
|
|
- $(".find_category").append(tag);
|
|
|
- }else{
|
|
|
- $(".find_category").html('');
|
|
|
- }
|
|
|
+ //if(result.cateList != null && result.cateList.length > 0){
|
|
|
+ // $(".find_category").html('');
|
|
|
+ // let tag = '';
|
|
|
+ // tag += '<ul>\n';
|
|
|
+ // $.each(result.cateList, function (idx, item){
|
|
|
+ // tag += '<li>\n';
|
|
|
+ // tag += ' <span class="category_txt">카테고리</span>\n';
|
|
|
+ // tag += ' <a href="javascript:void(0);" onclick="cfnGoToGoodsList(0,\'G032_101\' ';
|
|
|
+ // if(item.cate1No != null){
|
|
|
+ // tag += ', '+item.cate1No;
|
|
|
+ // }
|
|
|
+ // if(item.cate2No != null){
|
|
|
+ // tag += ', '+item.cate2No;
|
|
|
+ // }
|
|
|
+ // if(item.cate3No != null){
|
|
|
+ // tag += ', '+item.cate3No;
|
|
|
+ // }
|
|
|
+ // if(item.cate4No != null){
|
|
|
+ // tag += ', '+item.cate4No;
|
|
|
+ // }
|
|
|
+ // if(item.cate5No != null){
|
|
|
+ // tag += ', '+item.cate5No;
|
|
|
+ // }
|
|
|
+ // tag += ');">\n';
|
|
|
+ // if(item.cate1Nm != null){
|
|
|
+ // tag += ' <span>'+item.cate1Nm+'</span>\n';
|
|
|
+ // }
|
|
|
+ // if(item.cate2Nm != null){
|
|
|
+ // tag += ' <span>'+item.cate2Nm+'</span>\n';
|
|
|
+ // }
|
|
|
+ // if(item.cate3Nm != null){
|
|
|
+ // tag += ' <span>'+item.cate3Nm+'</span>\n';
|
|
|
+ // }
|
|
|
+ // if(item.cate4Nm != null){
|
|
|
+ // tag += ' <span>'+item.cate4Nm+'</span>\n';
|
|
|
+ // }
|
|
|
+ // if(item.cate5Nm != null){
|
|
|
+ // tag += ' <span>'+item.cate5Nm+'</span>\n';
|
|
|
+ // }
|
|
|
+ // tag += ' </a>\n';
|
|
|
+ // tag += '</li>\n';
|
|
|
+ // });
|
|
|
+ // tag += '</ul>\n';
|
|
|
+ // $(".find_category").append(tag);
|
|
|
+ //}else{
|
|
|
+ // $(".find_category").html('');
|
|
|
+ //}
|
|
|
if(!gagajf.isNull(result.goodsList)){
|
|
|
$("#relateGoodsDiv").show();
|
|
|
$(".pd_list .realtime_wrap .itemsGrp").html('');
|