메인페이지 미리보기 카테고리별 조회수정
This commit is contained in:
@@ -167,6 +167,7 @@
|
||||
<c:if test="${ relmList.relmDvCd eq '03'}">
|
||||
<div class="main-section__container section-3">
|
||||
<input type="hidden" name="section-ordr" value="${ relmList.ordr }" />
|
||||
<input type="hidden" name="section-mainSiteInnb" value="${ prevewVO.mainSiteInnb }"/>
|
||||
<section class="main-section">
|
||||
<div class="main-section-header" style="margin-bottom: 48px;">
|
||||
<div class="main-section-title">
|
||||
@@ -180,7 +181,7 @@
|
||||
<c:forEach items="${ resultMap.baseCase }" var="baseCase" varStatus="status">
|
||||
<c:if test="${ baseCase.relmDvCd == '03' && relmList.ordr eq baseCase.sOrdr }">
|
||||
<li>
|
||||
<button class="category-type-tab__btn category-type-tab__btn-${ relmList.ordr }" id="category-type-tab__btn-${ relmList.ordr }-${ baseCase.iOrdr }" onclick="fn_product_category_type('${ relmList.ordr }', '${ baseCase.iOrdr }'); return false;">
|
||||
<button class="category-type-tab__btn category-type-tab__btn-${ relmList.ordr }" id="category-type-tab__btn-${ relmList.ordr }-${ baseCase.iOrdr }" onclick="fn_product_category_type('${ relmList.ordr }', '${ baseCase.iOrdr }', '${ prevewVO.mainSiteInnb }'); return false;">
|
||||
<c:if test = "${not empty baseCase.filCours}">
|
||||
<i class="icon icon_category-type-tab01" >
|
||||
<img src="${cdnurl}${ baseCase.filCours }/${ baseCase.sysFilNm }" onerror="this.src='/pc/images/image_placeholder.png'">
|
||||
@@ -1594,6 +1595,7 @@
|
||||
<c:if test="${ relmList.relmDvCd eq '03'}">
|
||||
<div class="main-section__container section-3">
|
||||
<input type="hidden" name="section-ordr" value="${ relmList.ordr }" />
|
||||
<input type="hidden" name="section-mainSiteInnb" value="${ prevewVO.mainSiteInnb }"/>
|
||||
<section class="main-section">
|
||||
<div class="main-section-header" style="margin-bottom: 48px;">
|
||||
<div class="main-section-title">
|
||||
@@ -1607,7 +1609,7 @@
|
||||
<c:forEach items="${ resultMap.baseCase }" var="baseCase" varStatus="status">
|
||||
<c:if test="${ baseCase.relmDvCd == '03' && relmList.ordr eq baseCase.sOrdr }">
|
||||
<li>
|
||||
<button class="category-type-tab__btn category-type-tab__btn-${ relmList.ordr }" id="category-type-tab__btn-${ relmList.ordr }-${ baseCase.iOrdr }" onclick="fn_product_category_type('${ relmList.ordr }', '${ baseCase.iOrdr }'); return false;">
|
||||
<button class="category-type-tab__btn category-type-tab__btn-${ relmList.ordr }" id="category-type-tab__btn-${ relmList.ordr }-${ baseCase.iOrdr }" onclick="fn_product_category_type('${ relmList.ordr }', '${ baseCase.iOrdr }', '${ prevewVO.mainSiteInnb }'); return false;">
|
||||
<c:if test = "${not empty baseCase.filCours}">
|
||||
<i class="icon icon_category-type-tab01" >
|
||||
<img src="${cdnurl}${ baseCase.filCours }/${ baseCase.sysFilNm }" onerror="this.src='/pc/images/image_placeholder.png'">
|
||||
@@ -2942,7 +2944,8 @@
|
||||
// 상품 카테고리 탭
|
||||
$('.section-3').each(function () {
|
||||
let ordr = $(this).find('input[name="section-ordr"]').val();
|
||||
fn_product_category_type(ordr, "1");
|
||||
let mainSiteInnb = $(this).find('input[name="section-mainSiteInnb"]').val();
|
||||
fn_product_category_type(ordr, "1", mainSiteInnb);
|
||||
});
|
||||
|
||||
|
||||
@@ -2986,11 +2989,11 @@
|
||||
}
|
||||
|
||||
// 상품 카테고리 탭 클릭 시
|
||||
const fn_product_category_type = function (ordr, tabNo) {
|
||||
const fn_product_category_type = function (ordr, tabNo, mainSiteInnb) {
|
||||
$('.category-type-tab__btn-' + ordr).removeClass('active');
|
||||
$('#category-type-tab__btn-' + ordr + '-' + tabNo).addClass('active');
|
||||
|
||||
fn_select_product_category(ordr, tabNo);
|
||||
fn_select_product_category(ordr, tabNo, mainSiteInnb);
|
||||
|
||||
$('.product-list-type-category-' + ordr).hide();
|
||||
$('#product-list-type-category-' + ordr + '-' + tabNo).show();
|
||||
@@ -2998,13 +3001,14 @@
|
||||
|
||||
|
||||
// 상품 카테고리 가져오기
|
||||
const fn_select_product_category = function (ordr, tabNo) {
|
||||
const fn_select_product_category = function (ordr, tabNo, mainSiteInnb) {
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "/sopmal/main/selectMainSiteDesignCtgryListInqire",
|
||||
data: {
|
||||
ordr: ordr,
|
||||
expsrOrdr: tabNo
|
||||
expsrOrdr: tabNo,
|
||||
mainSiteInnb: mainSiteInnb
|
||||
},
|
||||
success: function (data) {
|
||||
let result = JSON.parse(data.resBody.result);
|
||||
|
||||
Reference in New Issue
Block a user