|
|
@@ -1213,58 +1213,144 @@
|
|
|
|
|
|
}else if(!gagajf.isNull(cate4No)){
|
|
|
$.each(cateList, function(idx,item){
|
|
|
- $.each(item.cate4List, function (idx4,item4){
|
|
|
- if(item4.cate4No == cate4No){
|
|
|
- if(idx<1) {
|
|
|
- $("#htopTitle").append(fnDisplayTitle(item4.cate4Nm));
|
|
|
- }
|
|
|
- if(item4.cate5List != null && item4.cate5List.length > 0){
|
|
|
- let leafTag = '';
|
|
|
- leafTag += '<a href="javascript:void(0);" class="on" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item4.cate1No + ', ' + item4.cate2No + ', ' + item4.cate3No + ', ' + item4.cate4No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- leafTag += ' ,\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- leafTag += ');">전체</a>';
|
|
|
- $.each(item4.cate5List, function (idx5, item5){
|
|
|
- leafTag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + [[${cateInfo.cateGb}]] + '\', ' + item5.cate1No + ' , ' + item5.cate2No + ', ' + item5.cate3No + ' , ' + item5.cate4No + ' , ' + item5.cate5No + ' ';
|
|
|
+ let cate2 = item.cate2List;
|
|
|
+ $.each(cate2, function(idx2, item2){
|
|
|
+ if(item2.cate2No == cate2No){
|
|
|
+ $.each(item2.cate3List, function(idx3,item3){
|
|
|
+ if(item3.cate3No == cate3No){
|
|
|
+ tag += '<a href="javascript:void(0);" class="daps1" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item2.cate1No + ' ,' + item2.cate2No + ',' + item3.cate3No + ' ';
|
|
|
if(formalGb=='G009_20'){
|
|
|
- leafTag += ' ,\''+formalGb+'\'';
|
|
|
+ tag += ' ,\'\',\'\',\''+formalGb+'\'';
|
|
|
}
|
|
|
- leafTag += ');">'+item5.cate5Nm+'</a>';
|
|
|
- });
|
|
|
- $('#leafCateList').append(leafTag);
|
|
|
- }
|
|
|
+ tag += ' )">'+item3.cate3Nm+'</a>';
|
|
|
+ tag += '<ul class="daps2">\n';
|
|
|
+ tag += '<li>';
|
|
|
+ tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item2.cate1No + ' ,' + item2.cate2No + ',' + item3.cate3No + ' ';
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
+ tag += ' ,\'\',\'\',\''+formalGb+'\'';
|
|
|
+ }
|
|
|
+ tag += ' )">전체</a>';
|
|
|
+ tag += '</li>\n';
|
|
|
+ $.each(item3.cate4List, function(idx4, item4){
|
|
|
+ if(item4.cate4No == cate4No){
|
|
|
+ if(idx<1) {
|
|
|
+ $("#htopTitle").append(fnDisplayTitle(item4.cate4Nm));
|
|
|
+ }
|
|
|
+ let leafTag = '';
|
|
|
+ leafTag += '<a href="javascript:void(0);" class="on" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item4.cate1No + ', ' + item4.cate2No + ', ' + item4.cate3No + ', ' + item4.cate4No + ' ';
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
+ leafTag += ' ,\'\',\''+formalGb+'\'';
|
|
|
+ }
|
|
|
+ leafTag += ');">전체</a>';
|
|
|
+ if(item4.cate5List != null && item4.cate5List.length > 0){
|
|
|
+ $.each(item4.cate5List, function (idx5, item5){
|
|
|
+ leafTag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + [[${cateInfo.cateGb}]] + '\', ' + item5.cate1No + ' , ' + item5.cate2No + ', ' + item5.cate3No + ' , ' + item5.cate4No + ' , ' + item5.cate5No + ' ';
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
+ leafTag += ' ,\''+formalGb+'\'';
|
|
|
+ }
|
|
|
+ leafTag += ');">'+item5.cate5Nm+'</a>';
|
|
|
+ });
|
|
|
+ }
|
|
|
+ $('#leafCateList').append(leafTag);
|
|
|
+ }
|
|
|
+ tag += '<li ';
|
|
|
+ if(item4.cate4No == cate4No){
|
|
|
+ tag += ' class="on"';
|
|
|
+ }
|
|
|
+ tag += '>\n';
|
|
|
+ tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item4.cate1No + ', ' + item4.cate2No + ', ' + item4.cate3No + ', ' + item4.cate4No + ' ';
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
+ leafTag += ' ,\'\',\''+formalGb+'\'';
|
|
|
+ }
|
|
|
+ tag += ' );">'+item4.cate4Nm+'</a></li>';
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
+ tag += '</ul>\n';
|
|
|
});
|
|
|
+ $("#cateDepth").append(tag);
|
|
|
}else if(!gagajf.isNull(cate3No)){
|
|
|
$.each(cateList, function(idx,item){
|
|
|
- $.each(item.cate3List, function (idx3,item3){
|
|
|
- if(item3.cate3No == cate3No){
|
|
|
- if(idx<1) {
|
|
|
- $("#htopTitle").append(fnDisplayTitle(item3.cate3Nm));
|
|
|
+ let cate2 = item.cate2List;
|
|
|
+ $.each(cate2, function (idx2,item2){
|
|
|
+ if(item2.cate2No == cate2No){
|
|
|
+ tag += '<a href="javascript:void(0);" class="daps1" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item2.cate1No + ' ,' + item2.cate2No + ' ';
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
+ tag += ' ,\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
}
|
|
|
- if(item3.cate4List != null && item3.cate4List.length > 0){
|
|
|
- let leafTag = '';
|
|
|
- leafTag += '<a href="javascript:void(0);" class="on" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item3.cate1No + ', ' + item3.cate2No + ', ' + item3.cate3No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- leafTag += ' ,\'\',\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- leafTag += ');">전체</a>';
|
|
|
- $.each(item3.cate4List, function (idx4, item4){
|
|
|
- leafTag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + [[${cateInfo.cateGb}]] + '\', ' + item4.cate1No + ' , ' + item4.cate2No + ', ' + item4.cate3No + ' , ' + item4.cate4No + ' ';
|
|
|
+ tag += ' )">'+item2.cate2Nm+'</a>';
|
|
|
+ tag += '<ul class="daps2">\n';
|
|
|
+ tag += '<li>';
|
|
|
+ tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item2.cate1No + ' ,' + item2.cate2No + ' ';
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
+ tag += ' ,\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
+ }
|
|
|
+ tag += ' )">전체</a>';
|
|
|
+ tag += '</li>\n';
|
|
|
+ $.each(item2.cate3List, function (idx3, item3){
|
|
|
+ if(idx<1) {
|
|
|
+ tag += '<li';
|
|
|
+ if(item3.cate3No == cate3No){
|
|
|
+ tag += ' class="on"';
|
|
|
+ }
|
|
|
+ tag += '><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item2.cate1No + ', ' + item2.cate2No + ', ' + item3.cate3No + ' ';
|
|
|
if(formalGb=='G009_20'){
|
|
|
- leafTag += ' ,\'\',\''+formalGb+'\'';
|
|
|
+ tag += ' ,\'\',\'\',\''+formalGb+'\'';
|
|
|
}
|
|
|
- leafTag += ');">'+item4.cate4Nm+'</a>';
|
|
|
- });
|
|
|
- $('#leafCateList').append(leafTag);
|
|
|
+ tag += ');">'+item3.cate3Nm+'</a></li>';
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ $.each(cate2, function (idx2,item2){
|
|
|
+ let leafTag = '';
|
|
|
+ if(item2.cate2No == cate2No){
|
|
|
+ leafTag += '<a href="javascript:void(0);" class="on" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item2.cate1No + ', ' + item2.cate2No + ', ' + cate3No + ' ';
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
+ leafTag += ' ,\'\',\'\',\''+formalGb+'\'';
|
|
|
}
|
|
|
+ leafTag += ');">전체</a>';
|
|
|
+ $.each(item2.cate3List, function(idx3, item3){
|
|
|
+ if(item3.cate3No == cate3No){
|
|
|
+ if(idx<1) {
|
|
|
+ $("#htopTitle").append(fnDisplayTitle(item3.cate3Nm));
|
|
|
+ }
|
|
|
+ if(item3.cate4List != null && item3.cate4List.length > 0){
|
|
|
+ $.each(item3.cate4List, function (idx4, item4){
|
|
|
+ leafTag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + [[${cateInfo.cateGb}]] + '\', ' + item4.cate1No + ' , ' + item4.cate2No + ', ' + item4.cate3No + ' , ' + item4.cate4No + ' ';
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
+ leafTag += ' ,\'\',\''+formalGb+'\'';
|
|
|
+ }
|
|
|
+ leafTag += ');">'+item4.cate4Nm+'</a>';
|
|
|
+ });
|
|
|
+ // $('#leafCateList').append(leafTag);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $('#leafCateList').append(leafTag);
|
|
|
}
|
|
|
});
|
|
|
+ tag += '</ul>\n';
|
|
|
});
|
|
|
+ $("#cateDepth").append(tag);
|
|
|
}else if(!gagajf.isNull(cate2No)){
|
|
|
$.each(cateList, function(idx,item){
|
|
|
+ tag += '<a href="javascript:void(0);" class="daps1" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item.cate1No + ' ';
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
+ tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
+ }
|
|
|
+ tag += ' )">'+item.cate1Nm+'</a>';
|
|
|
+ tag += '<ul class="daps2">\n';
|
|
|
+ tag += '<li>';
|
|
|
+ tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item.cate1No + ' ';
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
+ tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
+ }
|
|
|
+ tag += ' )">전체</a>';
|
|
|
+ tag += '</li>\n';
|
|
|
$.each(item.cate2List, function (idx2,item2){
|
|
|
if(item2.cate2No == cate2No){
|
|
|
if(idx<1) {
|
|
|
@@ -1288,7 +1374,11 @@
|
|
|
}
|
|
|
}
|
|
|
if(idx<1) {
|
|
|
- tag += '<li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item2.cate1No + ', ' + item2.cate2No + ' ';
|
|
|
+ tag += '<li';
|
|
|
+ if(item2.cate2No == cate2No){
|
|
|
+ tag += ' class="on"';
|
|
|
+ }
|
|
|
+ tag += '><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item2.cate1No + ', ' + item2.cate2No + ' ';
|
|
|
if(formalGb=='G009_20'){
|
|
|
tag += ' ,\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
}
|
|
|
@@ -1296,6 +1386,7 @@
|
|
|
}
|
|
|
|
|
|
});
|
|
|
+ tag += '</ul>\n';
|
|
|
});
|
|
|
$("#cateDepth").append(tag);
|
|
|
}else{
|
|
|
@@ -1307,7 +1398,11 @@
|
|
|
}
|
|
|
}
|
|
|
if(idx<1) {
|
|
|
- tag += '<li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + allItem.cate1No + ' ';
|
|
|
+ tag += '<li';
|
|
|
+ if(item.cate1No==allItem.cate1No){
|
|
|
+ tag += ' class="on"';
|
|
|
+ }
|
|
|
+ tag += '><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + allItem.cate1No + ' ';
|
|
|
if(formalGb=='G009_20'){
|
|
|
tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
}
|