|
@@ -85,17 +85,17 @@
|
|
|
|
|
|
|
|
// 브랜드 GNB탭 생성
|
|
// 브랜드 GNB탭 생성
|
|
|
let fnCreateBrandGnbTab = function() {
|
|
let fnCreateBrandGnbTab = function() {
|
|
|
|
|
+ $('#ulGnbTab').html('');
|
|
|
|
|
+
|
|
|
|
|
+ let tag = '';
|
|
|
|
|
+ tag += '<ul>\n';
|
|
|
|
|
+ tag += ' <li><a href="javascript:void(0);" onclick="cfnGoToBrandMain(' + [[${brandGroupInfo?.brandGroupNo}]] + ');" class="on">홈</a></li>\n';
|
|
|
|
|
+ tag += ' <li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + [[${brandGroupInfo?.brandGroupNo}]] + ',\'' + [[${brandGroupInfo?.cateGb}]] + '\');" class="on">상품</a></li>\n';
|
|
|
|
|
+
|
|
|
$.getJSON('/display/brand/gnb/tab/list?brandGroupNo=' + [[${brandGroupInfo?.brandGroupNo}]]
|
|
$.getJSON('/display/brand/gnb/tab/list?brandGroupNo=' + [[${brandGroupInfo?.brandGroupNo}]]
|
|
|
, function(result, status) {
|
|
, function(result, status) {
|
|
|
if (status == 'success') {
|
|
if (status == 'success') {
|
|
|
if (result.length > 0) {
|
|
if (result.length > 0) {
|
|
|
- $('#ulGnbTab').html('');
|
|
|
|
|
-
|
|
|
|
|
- let tag = '';
|
|
|
|
|
- tag += '<ul>\n';
|
|
|
|
|
- tag += ' <li><a href="javascript:void(0);" onclick="cfnGoToBrandMain(' + [[${brandGroupInfo?.brandGroupNo}]] + ');" class="on">홈</a></li>\n';
|
|
|
|
|
- tag += ' <li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + [[${brandGroupInfo?.brandGroupNo}]] + ',\'' + [[${brandGroupInfo?.cateGb}]] + '\');" class="on">상품</a></li>\n';
|
|
|
|
|
-
|
|
|
|
|
$.each(result, function(idx, item) {
|
|
$.each(result, function(idx, item) {
|
|
|
if (item.contentsType == 'L') { // 컨텐츠유형:링크
|
|
if (item.contentsType == 'L') { // 컨텐츠유형:링크
|
|
|
tag += '<li><a href="' + item.linkUrl + '">' + item.gtabNm + '</a></li>\n';
|
|
tag += '<li><a href="' + item.linkUrl + '">' + item.gtabNm + '</a></li>\n';
|
|
@@ -103,14 +103,14 @@
|
|
|
tag += '<li><a href="' + item.linkUrl + '">' + item.gtabNm + '</a></li>\n';
|
|
tag += '<li><a href="' + item.linkUrl + '">' + item.gtabNm + '</a></li>\n';
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
- tag += '</ul>\n';
|
|
|
|
|
- tag += '<button>+</button>';
|
|
|
|
|
-
|
|
|
|
|
- $('#ulGnbTab').html(tag);
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ tag += '</ul>\n';
|
|
|
|
|
+ tag += '<button>+</button>';
|
|
|
|
|
+
|
|
|
|
|
+ $('#ulGnbTab').html(tag);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// GNB탭 생성
|
|
// GNB탭 생성
|