|
@@ -413,7 +413,6 @@
|
|
|
|
|
|
|
|
// TOP 동일 카테고리
|
|
// TOP 동일 카테고리
|
|
|
fnCreateDepthList();
|
|
fnCreateDepthList();
|
|
|
-
|
|
|
|
|
// 상단노출 하위 카테고리
|
|
// 상단노출 하위 카테고리
|
|
|
fnCreateCategoryList();
|
|
fnCreateCategoryList();
|
|
|
|
|
|
|
@@ -641,81 +640,96 @@
|
|
|
var tag = '';
|
|
var tag = '';
|
|
|
$("#cateDepth").html('');
|
|
$("#cateDepth").html('');
|
|
|
|
|
|
|
|
- if(!gagajf.isNull(cate5No)){
|
|
|
|
|
-
|
|
|
|
|
- }else if(!gagajf.isNull(cate4No)) {
|
|
|
|
|
- $.each(cateList, function (idx, cate){
|
|
|
|
|
- $.each(cate.cate2List, function (idx2,cate2){
|
|
|
|
|
- if(cate2.leafYn == 'N' && cate2.cate3List != null){
|
|
|
|
|
- $.each(cate2.cate3List, function (idx3, cate3){
|
|
|
|
|
- if(cate3.leafYn == 'N' && cate3.cate4List != null){
|
|
|
|
|
- $.each(cate3.cate4List, function (idx4, cate4){
|
|
|
|
|
- if(cate4.cate4No == cate4No){
|
|
|
|
|
- $("#htopTitle").append(fnDisplayTitle(cate4.cate4Nm));
|
|
|
|
|
|
|
+ let actionUrl = '';
|
|
|
|
|
+ if(gagajf.isNull(brandGroupNo) || brandGroupNo == 0){
|
|
|
|
|
+ if( [[${cateInfo.formalGb}]] == 'G009_20'){
|
|
|
|
|
+ actionUrl = '/display/outlet/cate/list?cate1No='+cate1No+'&formalGb='+ [[${cateInfo.formalGb}]];
|
|
|
|
|
+ }else{
|
|
|
|
|
+ actionUrl = '/display/category/reload/list?cateGb='+[[${cateInfo.cateGb}]];
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ actionUrl = '/display/brand/cate/list?brandGroupNo=' + [[${cateInfo.brandGroupNo}]];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ $.getJSON(actionUrl, function (result, status){
|
|
|
|
|
+ if(result.length>0){
|
|
|
|
|
+ if(!gagajf.isNull(cate5No)){
|
|
|
|
|
+
|
|
|
|
|
+ }else if(!gagajf.isNull(cate4No)) {
|
|
|
|
|
+ $.each(result, function (idx, cate){
|
|
|
|
|
+ $.each(cate.cate2List, function (idx2,cate2){
|
|
|
|
|
+ if(cate2.leafYn == 'N' && cate2.cate3List != null){
|
|
|
|
|
+ $.each(cate2.cate3List, function (idx3, cate3){
|
|
|
|
|
+ if(cate3.leafYn == 'N' && cate3.cate4List != null){
|
|
|
|
|
+ $.each(cate3.cate4List, function (idx4, cate4){
|
|
|
|
|
+ if(cate4.cate4No == cate4No){
|
|
|
|
|
+ $("#htopTitle").append(fnDisplayTitle(cate4.cate4Nm));
|
|
|
|
|
+ }
|
|
|
|
|
+ if(cate4.cate3No==cate3No){
|
|
|
|
|
+ tag += '<li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate4.cate1No + ',' + cate4.cate2No + ',' + cate4.cate3No + ',' + cate4.cate4No + ' ';
|
|
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
|
|
+ tag += ' ,\'\',\''+formalGb+'\'';
|
|
|
|
|
+ }
|
|
|
|
|
+ tag += ');">'+cate4.cate4Nm+'</a></li>';
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
- if(cate4.cate3No==cate3No){
|
|
|
|
|
- tag += '<li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate4.cate1No + ',' + cate4.cate2No + ',' + cate4.cate3No + ',' + cate4.cate4No + ' ';
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ $("#cateDepth").append(tag);
|
|
|
|
|
+ }else if(!gagajf.isNull(cate3No)){
|
|
|
|
|
+ $.each(result, function (idx, cate){
|
|
|
|
|
+ $.each(cate.cate2List, function (idx2,cate2){
|
|
|
|
|
+ if(cate2.leafYn == 'N' && cate2.cate3List != null){
|
|
|
|
|
+ $.each(cate2.cate3List, function (idx3, cate3){
|
|
|
|
|
+ if(cate3.cate3No == cate3No){
|
|
|
|
|
+ $("#htopTitle").append(fnDisplayTitle(cate3.cate3Nm));
|
|
|
|
|
+ }
|
|
|
|
|
+ if(cate3.cate2No==cate2No){
|
|
|
|
|
+ tag += '<li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate3.cate1No + ',' + cate3.cate2No + ',' + cate3.cate3No + ' ';
|
|
|
if(formalGb=='G009_20'){
|
|
if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\''+formalGb+'\'';
|
|
|
|
|
|
|
+ tag += ' ,\'\',\'\',\''+formalGb+'\'';
|
|
|
}
|
|
}
|
|
|
- tag += ');">'+cate4.cate4Nm+'</a></li>';
|
|
|
|
|
|
|
+ tag += ');">'+cate3.cate3Nm+'</a></li>';
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
- $("#cateDepth").append(tag);
|
|
|
|
|
- }else if(!gagajf.isNull(cate3No)){
|
|
|
|
|
- $.each(cateList, function (idx, cate){
|
|
|
|
|
- $.each(cate.cate2List, function (idx2,cate2){
|
|
|
|
|
- if(cate2.leafYn == 'N' && cate2.cate3List != null){
|
|
|
|
|
- $.each(cate2.cate3List, function (idx3, cate3){
|
|
|
|
|
- if(cate3.cate3No == cate3No){
|
|
|
|
|
- $("#htopTitle").append(fnDisplayTitle(cate3.cate3Nm));
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+ $("#cateDepth").append(tag);
|
|
|
|
|
+ }else if(!gagajf.isNull(cate2No)){
|
|
|
|
|
+ $.each(result, function (idx, cate){
|
|
|
|
|
+ $.each(cate.cate2List, function (idx2,cate2){
|
|
|
|
|
+ if(cate2.cate2No == cate2No){
|
|
|
|
|
+ $("#htopTitle").append(fnDisplayTitle(cate2.cate2Nm));
|
|
|
}
|
|
}
|
|
|
- if(cate3.cate2No==cate2No){
|
|
|
|
|
- tag += '<li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate3.cate1No + ',' + cate3.cate2No + ',' + cate3.cate3No + ' ';
|
|
|
|
|
|
|
+ if(cate2.cate1No==cate1No){
|
|
|
|
|
+ tag += '<li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate2.cate1No + ',' + cate2.cate2No + ' ';
|
|
|
if(formalGb=='G009_20'){
|
|
if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\'\',\''+formalGb+'\'';
|
|
|
|
|
|
|
+ tag += ' ,\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
}
|
|
}
|
|
|
- tag += ');">'+cate3.cate3Nm+'</a></li>';
|
|
|
|
|
|
|
+ tag += ');">'+cate2.cate2Nm+'</a></li>';
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
- $("#cateDepth").append(tag);
|
|
|
|
|
- }else if(!gagajf.isNull(cate2No)){
|
|
|
|
|
- $.each(cateList, function (idx, cate){
|
|
|
|
|
- $.each(cate.cate2List, function (idx2,cate2){
|
|
|
|
|
- if(cate2.cate2No == cate2No){
|
|
|
|
|
- $("#htopTitle").append(fnDisplayTitle(cate2.cate2Nm));
|
|
|
|
|
- }
|
|
|
|
|
- if(cate2.cate1No==cate1No){
|
|
|
|
|
- tag += '<li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate2.cate1No + ',' + cate2.cate2No + ' ';
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+ $("#cateDepth").append(tag);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $.each(result, function (idx, cate1){
|
|
|
|
|
+ if(cate1.cate1No == cate1No){
|
|
|
|
|
+ $("#htopTitle").append(fnDisplayTitle(cate1.cate1Nm));
|
|
|
|
|
+ }
|
|
|
|
|
+ tag += '<li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate1.cate1No + ' ';
|
|
|
if(formalGb=='G009_20'){
|
|
if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
|
|
|
|
+ tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
}
|
|
}
|
|
|
- tag += ');">'+cate2.cate2Nm+'</a></li>';
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
- $("#cateDepth").append(tag);
|
|
|
|
|
- }else{
|
|
|
|
|
- $.each(cateList, function (idx, cate1){
|
|
|
|
|
- if(cate1.cate1No == cate1No){
|
|
|
|
|
- $("#htopTitle").append(fnDisplayTitle(cate1.cate1Nm));
|
|
|
|
|
- }
|
|
|
|
|
- tag += '<li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate1.cate1No + ' ';
|
|
|
|
|
- if(formalGb=='G009_20'){
|
|
|
|
|
- tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
|
|
|
|
+ tag += ');">'+cate1.cate1Nm+'</a></li>';
|
|
|
|
|
+ });
|
|
|
|
|
+ $("#cateDepth").append(tag);
|
|
|
}
|
|
}
|
|
|
- tag += ');">'+cate1.cate1Nm+'</a></li>';
|
|
|
|
|
- });
|
|
|
|
|
- $("#cateDepth").append(tag);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 상단 하위카테고리 노출
|
|
// 상단 하위카테고리 노출
|
|
@@ -745,13 +759,27 @@
|
|
|
$("#leafCateList").html('');
|
|
$("#leafCateList").html('');
|
|
|
|
|
|
|
|
let allCate = [[${cateList}]];
|
|
let allCate = [[${cateList}]];
|
|
|
- $.each(result, function(idx, item) {
|
|
|
|
|
- $.each(allCate, function(allCateIdx, allCateItem) {
|
|
|
|
|
- if (item.cate1No == allCateItem.cate1No) {
|
|
|
|
|
- $('#leafCateList').append(fnGetCategoryList(item));
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if(brandGroupNo > 0){
|
|
|
|
|
+ if(gagajf.isNull(cate1No)){
|
|
|
|
|
+ $('#htopTitle').append('상품');
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $.each(result, function(idx, item) {
|
|
|
|
|
+ $.each(allCate, function(allCateIdx, allCateItem) {
|
|
|
|
|
+ if (item.cate1No == allCateItem.cate1No) {
|
|
|
|
|
+ $('#leafCateList').append(fnGetCategoryList(item));
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $.each(result, function(idx, item) {
|
|
|
|
|
+ $.each(allCate, function(allCateIdx, allCateItem) {
|
|
|
|
|
+ if (item.cate1No == allCateItem.cate1No) {
|
|
|
|
|
+ $('#leafCateList').append(fnGetCategoryList(item));
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
- });
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -1075,6 +1103,28 @@
|
|
|
return tag;
|
|
return tag;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ var fnTest = function (){
|
|
|
|
|
+ let actionUrl = '/display/brand/cate/list?brandGroupNo=' + [[${cateInfo.brandGroupNo}]];
|
|
|
|
|
+ let brandGroupNo = [[${cateInfo.brandGroupNo}]];
|
|
|
|
|
+ let cate1No = [[${cateInfo.cate1No}]];
|
|
|
|
|
+ let allCate = [[${cateList}]];
|
|
|
|
|
+ let tag = '';
|
|
|
|
|
+ $.getJSON(actionUrl, function(result, status){
|
|
|
|
|
+ $.each(allCate, function(allCateIdx, allCateItem) {
|
|
|
|
|
+ if (item.cate1No == allCateItem.cate1No) {
|
|
|
|
|
+ $.each(allCate, function(allCateIdx, allCateItem) {
|
|
|
|
|
+ if (item.cate1No == allCateItem.cate1No) {
|
|
|
|
|
+ tag += '<li>';
|
|
|
|
|
+ tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList('+brandGroupNo+',\'' + cateGb + '\',' + item.cate1No + ',' + item.cate2No + ',' + item.cate3No + ',' + item.cate4No + ',' + item.cate5No + ')">'+item.cate1Nm+'</a>';
|
|
|
|
|
+ tag += '</li>\n';
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ $('#cateDepth').append(tag);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|