|
|
@@ -1195,6 +1195,9 @@
|
|
|
let allCateList = [[${allCateList}]];
|
|
|
let tag = '';
|
|
|
let html = '';
|
|
|
+ if(brandGroupNo>0){
|
|
|
+ var brandCateList = [[${brandCateList}]];
|
|
|
+ }
|
|
|
|
|
|
if(!gagajf.isNull(cate5No)){
|
|
|
|
|
|
@@ -1602,30 +1605,53 @@
|
|
|
$("#cateDepth").append(tag);
|
|
|
}
|
|
|
}else if(!gagajf.isNull(cate1No)){
|
|
|
+ if(brandGroupNo > 0){
|
|
|
+ tag += '<a class="daps1" href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',\'\',\'\',\'\',\'\',\'\',\'\')";>전체</a>\n';
|
|
|
+ tag += '<ul class="daps2">\n';
|
|
|
+ }
|
|
|
if(formalGb=='G009_20'){
|
|
|
tag += '<a class="daps1" href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',\'\',\'\',\'\',\'\',\'\',\''+formalGb+'\')";>전체</a>\n';
|
|
|
tag += '<ul class="daps2">\n';
|
|
|
}
|
|
|
- $.each(cateList, function(idx,item){
|
|
|
- $.each(allCateList, function (allIdx, allItem){
|
|
|
- if(brandGroupNo > 0){
|
|
|
+
|
|
|
+ if(brandGroupNo > 0){
|
|
|
+ $.each(brandCateList, function(idx,item){
|
|
|
+ $.each(allCateList, function (allIdx, allItem){
|
|
|
if(item.cate1No==allItem.cate1No){
|
|
|
if(idx<1) {
|
|
|
$("#htopTitle").append(fnDisplayTitle(item.cate1Nm));
|
|
|
}
|
|
|
- if(idx<1) {
|
|
|
- tag += '<li';
|
|
|
- if(item.cate1No==allItem.cate1No){
|
|
|
- tag += ' class="on"';
|
|
|
- }
|
|
|
- tag += '><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item.cate1No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">'+item.cate1Nm+'</a></li>';
|
|
|
+ tag += '<li';
|
|
|
+ if(item.cate1No==cate1No){
|
|
|
+ tag += ' class="on"';
|
|
|
+ }
|
|
|
+ tag += '><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item.cate1No + ' ';
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
+ tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
}
|
|
|
+ tag += ');">'+item.cate1Nm+'</a></li>';
|
|
|
}
|
|
|
- }else{
|
|
|
+ });
|
|
|
+ if(item.cate2List != null && item.cate2List.length > 0){
|
|
|
+ let leafTag = '';
|
|
|
+ leafTag += '<a href="javascript:void(0);" class="on" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\', \'\' ';
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
+ leafTag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
+ }
|
|
|
+ leafTag += ');">전체</a>';
|
|
|
+ $.each(item.cate2List, function (idx, item){
|
|
|
+ leafTag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + [[${cateInfo.cateGb}]] + '\', ' + item.cate1No + ' , ' + item.cate2No + ' ';
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
+ leafTag += ' ,\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
+ }
|
|
|
+ leafTag += ');">'+item.cate2Nm+'</a>';
|
|
|
+ });
|
|
|
+ $('#leafCateList').append(leafTag);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ $.each(cateList, function(idx,item){
|
|
|
+ $.each(allCateList, function (allIdx, allItem){
|
|
|
if(item.cate1No==allItem.cate1No){
|
|
|
if(idx<1) {
|
|
|
$("#htopTitle").append(fnDisplayTitle(item.cate1Nm));
|
|
|
@@ -1642,32 +1668,46 @@
|
|
|
}
|
|
|
tag += ');">'+allItem.cate1Nm+'</a></li>';
|
|
|
}
|
|
|
- }
|
|
|
- });
|
|
|
+ });
|
|
|
|
|
|
- if(item.cate2List != null && item.cate2List.length > 0){
|
|
|
- let leafTag = '';
|
|
|
- leafTag += '<a href="javascript:void(0);" class="on" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\', \'\' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- leafTag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- leafTag += ');">전체</a>';
|
|
|
- $.each(item.cate2List, function (idx, item){
|
|
|
- leafTag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + [[${cateInfo.cateGb}]] + '\', ' + item.cate1No + ' , ' + item.cate2No + ' ';
|
|
|
+ if(item.cate2List != null && item.cate2List.length > 0){
|
|
|
+ let leafTag = '';
|
|
|
+ leafTag += '<a href="javascript:void(0);" class="on" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\', \'\' ';
|
|
|
if(formalGb=='G009_20'){
|
|
|
- leafTag += ' ,\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
+ leafTag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
}
|
|
|
- leafTag += ');">'+item.cate2Nm+'</a>';
|
|
|
- });
|
|
|
- $('#leafCateList').append(leafTag);
|
|
|
- }
|
|
|
- });
|
|
|
+ leafTag += ');">전체</a>';
|
|
|
+ $.each(item.cate2List, function (idx, item){
|
|
|
+ leafTag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + [[${cateInfo.cateGb}]] + '\', ' + item.cate1No + ' , ' + item.cate2No + ' ';
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
+ leafTag += ' ,\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
+ }
|
|
|
+ leafTag += ');">'+item.cate2Nm+'</a>';
|
|
|
+ });
|
|
|
+ $('#leafCateList').append(leafTag);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
if(formalGb=='G009_20'){
|
|
|
tag += '</ul>\n';
|
|
|
}
|
|
|
$("#cateDepth").append(tag);
|
|
|
}else{
|
|
|
let tag = '';
|
|
|
+ if(brandGroupNo > 0 ){
|
|
|
+ $("#htopTitle").text('전체');
|
|
|
+ tag += '<ul class="daps2">\n';
|
|
|
+ tag += '<li>';
|
|
|
+ tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',\'\'';
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
+ tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
+ }
|
|
|
+ tag += ' )">전체</a>';
|
|
|
+ tag += '</li>\n';
|
|
|
+ tag += '</ul>\n';
|
|
|
+ $("#cateDepth").append(tag);
|
|
|
+ }
|
|
|
if(formalGb == 'G009_20'){
|
|
|
$("#htopTitle").text('아울렛');
|
|
|
tag += '<ul class="daps2">\n';
|