|
|
@@ -610,320 +610,6 @@
|
|
|
|
|
|
});
|
|
|
|
|
|
- // TOP 카테고리 노출
|
|
|
- var fnCreateDepthList = function (){
|
|
|
- let cateList = [[${cateList}]];
|
|
|
- var brandGroupNo = [[${cateInfo.brandGroupNo}]];
|
|
|
- var cateGb = [[${cateInfo.cateGb}]];
|
|
|
- var formalGb = [[${cateInfo.formalGb}]];
|
|
|
- var cate1No = [[${cateInfo.cate1No}]];
|
|
|
- var cate2No = [[${cateInfo.cate2No}]];
|
|
|
- var cate3No = [[${cateInfo.cate3No}]];
|
|
|
- var cate4No = [[${cateInfo.cate4No}]];
|
|
|
- var cate5No = [[${cateInfo.cate5No}]];
|
|
|
- var tag = '';
|
|
|
- $("#cateDepth").html('');
|
|
|
-
|
|
|
- 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>';
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- });
|
|
|
- $("#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'){
|
|
|
- tag += ' ,\'\',\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">'+cate3.cate3Nm+'</a></li>';
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- });
|
|
|
- $("#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(cate2.cate1No==cate1No){
|
|
|
- tag += '<li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate2.cate1No + ',' + cate2.cate2No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">'+cate2.cate2Nm+'</a></li>';
|
|
|
- }
|
|
|
- });
|
|
|
- });
|
|
|
- $("#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'){
|
|
|
- tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">'+cate1.cate1Nm+'</a></li>';
|
|
|
- });
|
|
|
- $("#cateDepth").append(tag);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- // 상단 하위카테고리 노출
|
|
|
- var fnCreateCategoryList = function (){
|
|
|
- let actionUrl = '';
|
|
|
- let brandGroupNo = [[${cateInfo.brandGroupNo}]];
|
|
|
- let cate1No = [[${cateInfo.cate1No}]];
|
|
|
- // console.log('cateList brandGroupNo::'+brandGroupNo+'>>cate1No::'+cate1No);
|
|
|
-
|
|
|
- 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){
|
|
|
- let formalGb = [[${cateInfo.formalGb}]];
|
|
|
- if(formalGb == 'G009_10'){
|
|
|
- formalGb = '';
|
|
|
- }
|
|
|
- let cateGb = 'G032_101';
|
|
|
- $("#leafCateList").html('');
|
|
|
-
|
|
|
- let allCate = [[${cateList}]];
|
|
|
- if(brandGroupNo > 0){
|
|
|
- if(gagajf.isNull(cate1No)){
|
|
|
- let tag = '';
|
|
|
- tag += '<a href="javascript:void(0);" class="on" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\', \'\' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">전체</a>';
|
|
|
- $.each(result, function(idx, item) {
|
|
|
- tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + [[${cateInfo.cateGb}]] + '\', ' + item.cate1No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">'+item.cate1Nm+'</a>';
|
|
|
- });
|
|
|
- $('#leafCateList').append(tag);
|
|
|
- $('#htopTitle').append('상품');
|
|
|
- }else{
|
|
|
- $.each(result, function(idx, item) {
|
|
|
- $.each(allCate, function(allCateIdx, allCateItem) {
|
|
|
- if (item.cate1No == allCateItem.cate1No) {
|
|
|
- $('#leafCateList').append(fnGetCategoryList(item));
|
|
|
- }
|
|
|
- });
|
|
|
- });
|
|
|
- }
|
|
|
- }else{
|
|
|
- if(gagajf.isNull(cate1No)){
|
|
|
- let tag = '';
|
|
|
- tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\', \'\' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">전체</a>';
|
|
|
- $.each(result, function(idx, item) {
|
|
|
- tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + [[${cateInfo.cateGb}]] + '\', ' + item.cate1No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">'+item.cate1Nm+'</a>';
|
|
|
- });
|
|
|
- $('#leafCateList').append(tag);
|
|
|
- $('#htopTitle').append('전체');
|
|
|
- }else{
|
|
|
- $.each(result, function(idx, item) {
|
|
|
- $.each(allCate, function(allCateIdx, allCateItem) {
|
|
|
- if (item.cate1No == allCateItem.cate1No) {
|
|
|
- $('#leafCateList').append(fnGetCategoryList(item));
|
|
|
- }
|
|
|
- });
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- let fnGetCategoryList = function (cate1){
|
|
|
- var brandGroupNo = [[${cateInfo.brandGroupNo}]];
|
|
|
- var cateGb = [[${cateInfo.cateGb}]];
|
|
|
- var formalGb = [[${cateInfo.formalGb}]];
|
|
|
- var cate1No = [[${cateInfo.cate1No}]];
|
|
|
- var cate2No = [[${cateInfo.cate2No}]];
|
|
|
- var cate3No = [[${cateInfo.cate3No}]];
|
|
|
- var cate4No = [[${cateInfo.cate4No}]];
|
|
|
- var cate5No = [[${cateInfo.cate5No}]];
|
|
|
-
|
|
|
- let tag = '';
|
|
|
-
|
|
|
- if(formalGb!='G009_20'){
|
|
|
- formalGb = '';
|
|
|
- }
|
|
|
-
|
|
|
- if (cate1 != null) {
|
|
|
- if(cate1.cate1No == cate1No){
|
|
|
- if(gagajf.isNull(cate2No)){
|
|
|
- tag += '<a href="javascript:void(0);" class="on" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate1.cate1No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">전체</a>';
|
|
|
- }
|
|
|
- if(cate1.leafYn == 'N' && cate1.cate2List.length > 0){
|
|
|
- $.each(cate1.cate2List, function (idx2, cate2){
|
|
|
- if(gagajf.isNull(cate2No)){
|
|
|
- tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate1.cate1No + ',' + cate2.cate2No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">'+cate2.cate2Nm+'</a>';
|
|
|
- }else{
|
|
|
- if(cate2.cate2No == cate2No){
|
|
|
- if(cate2.leafYn == 'N' && cate2.cate3List.length > 0){
|
|
|
- if(gagajf.isNull(cate3No)){
|
|
|
- tag += '<a href="javascript:void(0);" class="on" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate1.cate1No + ',' + cate2.cate2No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">전체</a>';
|
|
|
- }
|
|
|
- $.each(cate2.cate3List, function (idx3, cate3){
|
|
|
- if(gagajf.isNull(cate3No)){
|
|
|
- tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate1.cate1No + ',' + cate2.cate2No + ',' + cate3.cate3No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">'+cate3.cate3Nm+'</a>';
|
|
|
- }else{
|
|
|
- if(cate3.cate3No == cate3No){
|
|
|
- if(cate3.leafYn == 'N' && cate3.cate4List.length > 0){
|
|
|
- if(gagajf.isNull(cate4No)){
|
|
|
- tag += '<a href="javascript:void(0);" class="on" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate1.cate1No + ',' + cate2.cate2No + ',' + cate3.cate3No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">전체</a>';
|
|
|
- }
|
|
|
- $.each(cate3.cate4List, function (idx4, cate4){
|
|
|
- if(gagajf.isNull(cate4No)){
|
|
|
- tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate1.cate1No + ',' + cate2.cate2No + ',' + cate3.cate3No + ',' + cate4.cate4No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">'+cate4.cate4Nm+'</a>';
|
|
|
- }else{
|
|
|
- if(cate4.cate4No == cate4No){
|
|
|
- if(cate4.leafYn == 'N' && cate4.cate5List.length > 0){
|
|
|
- if(gagajf.isNull(cate5No)){
|
|
|
- tag += '<a href="javascript:void(0);" class="on" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate1.cate1No + ',' + cate2.cate2No + ',' + cate3.cate3No + ',' + cate4.cate4No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">전체</a>';
|
|
|
- }
|
|
|
- $.each(cate4.cate5List, function (idx5, cate5){
|
|
|
- if(gagajf.isNull(cate5No)){
|
|
|
- tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate1.cate1No + ',' + cate2.cate2No + ',' + cate3.cate3No + ',' + cate4.cate4No + ',' + cate5.cate5No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">'+cate5.cate5Nm+'</a>';
|
|
|
- }else{
|
|
|
- if(cate5.cate5No == cate5No){
|
|
|
- tag += '<a href="javascript:void(0);" class="on" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate1.cate1No + ',' + cate2.cate2No + ',' + cate3.cate3No + ',' + cate4.cate4No + ',' + cate5.cate5No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">'+cate5.cate5Nm+'</a>';
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }else{
|
|
|
- tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate1.cate1No + ',' + cate2.cate2No + ',' + cate3.cate3No + ',' + cate4.cate4No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">전체</a>';
|
|
|
- tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + cate1.cate1No + ',' + cate2.cate2No + ',' + cate3.cate3No + ',' + cate4.cate4No + ' ';
|
|
|
- if(formalGb=='G009_20'){
|
|
|
- tag += ' ,\'\',\''+formalGb+'\'';
|
|
|
- }
|
|
|
- tag += ');">'+cate4.cate4Nm+'</a>';
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- return tag;
|
|
|
- }
|
|
|
-
|
|
|
var fnGoodsListSearch = function (){
|
|
|
// debugger;
|
|
|
gagaInfiniteScroll.getHistory();
|
|
|
@@ -1696,8 +1382,14 @@
|
|
|
let tag = '';
|
|
|
if(brandGroupNo > 0 ){
|
|
|
$("#htopTitle").text('전체');
|
|
|
+ var titleTag = '';
|
|
|
+ titleTag += '<button class="btn_gnbs" title="서브타이틀 메뉴 열기/닫기">\n';
|
|
|
+ titleTag += ' <span><i></i></span>\n';
|
|
|
+ titleTag += '</button>\n';
|
|
|
+ $("#htopTitle").append(titleTag);
|
|
|
+
|
|
|
tag += '<ul class="daps2">\n';
|
|
|
- tag += '<li>';
|
|
|
+ tag += '<li class="on">';
|
|
|
tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',\'\'';
|
|
|
if(formalGb=='G009_20'){
|
|
|
tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
@@ -1705,7 +1397,7 @@
|
|
|
tag += ' )">전체</a>';
|
|
|
tag += '</li>\n';
|
|
|
tag += '</ul>\n';
|
|
|
- $("#cateDepth").append(tag);
|
|
|
+ // $("#cateDepth").append(tag);
|
|
|
}
|
|
|
if(formalGb == 'G009_20'){
|
|
|
$("#htopTitle").text('아울렛');
|
|
|
@@ -1734,10 +1426,23 @@
|
|
|
leafTag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
}
|
|
|
leafTag += ');">'+item.cate1Nm+'</a>';
|
|
|
+
|
|
|
+ if(brandGroupNo > 0 ){
|
|
|
+ tag += '<li>';
|
|
|
+ tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + [[${cateInfo.cateGb}]] + '\', ' + item.cate1No + ' ';
|
|
|
+ if(formalGb=='G009_20'){
|
|
|
+ tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
|
|
|
+ }
|
|
|
+ tag += ');">'+item.cate1Nm+'</a>';
|
|
|
+ tag += '</li>';
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
$('#leafCateList').append(leafTag);
|
|
|
+ if(brandGroupNo > 0 ){
|
|
|
+ $("#cateDepth").append(tag);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|