From 7097616aa75ede5824aafcb76eccaf519ef3e162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=A3=BC=EC=9D=BC?= Date: Wed, 26 Aug 2026 17:10:35 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=AA=A8=EB=B0=94=EC=9D=BC=20=EC=A0=84?= =?UTF-8?q?=EC=B2=B4=EB=A9=94=EB=89=B4=20=ED=95=98=EC=9C=84=20=EC=B9=B4?= =?UTF-8?q?=ED=85=8C=EA=B3=A0=EB=A6=AC=20=ED=91=9C=EC=8B=9C=20=EA=B0=9C?= =?UTF-8?q?=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../goods/controller/GoodsController.java | 10 +++++++- .../resources/static/mobile/css/default.css | 5 +++- .../WEB-INF/views/comm/mobile/Header.jsp | 24 ++++++++++++++++++- .../WEB-INF/views/comm/mobile/Include.jsp | 7 +++--- .../WEB-INF/views/comm/mobile/MainHeader.jsp | 4 ++-- .../WEB-INF/views/sopmal_m/csc/BbscttDtlR.jsp | 17 ++++++++++--- .../views/sopmal_m/csc/CscListRForm.jsp | 5 +++- .../views/sopmal_m/csc/SubPageListRForm.jsp | 17 ++++++++++--- .../views/sopmal_m/goods/GoodsListRForm.jsp | 18 ++++++++++---- 9 files changed, 88 insertions(+), 19 deletions(-) diff --git a/src/main/java/com/wb/domainserver/domain/sopmal/goods/controller/GoodsController.java b/src/main/java/com/wb/domainserver/domain/sopmal/goods/controller/GoodsController.java index 64debb74..fad4ebc2 100644 --- a/src/main/java/com/wb/domainserver/domain/sopmal/goods/controller/GoodsController.java +++ b/src/main/java/com/wb/domainserver/domain/sopmal/goods/controller/GoodsController.java @@ -305,6 +305,14 @@ public class GoodsController { public String selectGoodsListForm(HttpServletRequest request, BOGoodsVO vo, ModelMap model) { + String mobileParentCtgryId = request.getParameter("mobileParentCtgryId"); + String mobileCurrentCtgryId = request.getParameter("mobileCurrentCtgryId"); + boolean mobileSubCategorySelected = mobileParentCtgryId != null && !mobileParentCtgryId.isBlank() + && mobileCurrentCtgryId != null && !mobileCurrentCtgryId.isBlank(); + if (mobileSubCategorySelected) { + vo.setCtgryId(mobileParentCtgryId); + } + AnonymousUser user = MemberJwtContextHolder.getMemberInfo(); if("01".equals(user.getSysDvCd())){ vo.setSopmalCd(user.getSopmalCd()); @@ -322,7 +330,7 @@ public class GoodsController { //검색한 카테고리 정보로 vo 세팅 if(!CollectionUtils.isEmpty(goodsCategoryList)){ vo.setUpperCtgryId(goodsCategoryList.get(0).get("baseCtgryId").toString()); - vo.setCtgryId(goodsCategoryList.get(0).get("baseCtgryId").toString()); + vo.setCtgryId(mobileSubCategorySelected ? mobileCurrentCtgryId : goodsCategoryList.get(0).get("baseCtgryId").toString()); }else{ vo.setUpperCtgryId("0"); vo.setCtgryId("0"); diff --git a/src/main/resources/static/mobile/css/default.css b/src/main/resources/static/mobile/css/default.css index 4a2574ed..7bd334e8 100644 --- a/src/main/resources/static/mobile/css/default.css +++ b/src/main/resources/static/mobile/css/default.css @@ -4269,6 +4269,9 @@ body { .header--sub:has(.headerTab) ~ .content-wrap { padding-top: 96px; } +.header--sub:has(.mobile-about-menu) ~ .content-wrap { + padding-top: 96px; +} .header--sub::before { content: ""; position: absolute; @@ -14751,4 +14754,4 @@ body { margin-bottom: 20px; padding: 14px 28px; background-color: #ffffff; -}/*# sourceMappingURL=default.css.map */ \ No newline at end of file +}/*# sourceMappingURL=default.css.map */ diff --git a/src/main/webapp/WEB-INF/views/comm/mobile/Header.jsp b/src/main/webapp/WEB-INF/views/comm/mobile/Header.jsp index e73a0831..861fa07e 100644 --- a/src/main/webapp/WEB-INF/views/comm/mobile/Header.jsp +++ b/src/main/webapp/WEB-INF/views/comm/mobile/Header.jsp @@ -35,10 +35,32 @@ + + + + \ No newline at end of file + diff --git a/src/main/webapp/WEB-INF/views/comm/mobile/Include.jsp b/src/main/webapp/WEB-INF/views/comm/mobile/Include.jsp index 522cb3b4..3917e367 100644 --- a/src/main/webapp/WEB-INF/views/comm/mobile/Include.jsp +++ b/src/main/webapp/WEB-INF/views/comm/mobile/Include.jsp @@ -1070,10 +1070,11 @@ +
  • @@ -1082,7 +1083,7 @@
      -
    • +
    • &?mobileParentCtgryId=&mobileCurrentCtgryId=&mobileAboutMenuAt=Y">
    • diff --git a/src/main/webapp/WEB-INF/views/comm/mobile/MainHeader.jsp b/src/main/webapp/WEB-INF/views/comm/mobile/MainHeader.jsp index 530f9423..e7fc8dba 100644 --- a/src/main/webapp/WEB-INF/views/comm/mobile/MainHeader.jsp +++ b/src/main/webapp/WEB-INF/views/comm/mobile/MainHeader.jsp @@ -66,7 +66,7 @@
    • - " onclick="setTopMenuCode()" style="color:${topMenuList.menuChrColor};"> + &?mobileParentCtgryId=&mobileAboutMenuAt=Y" onclick="setTopMenuCode()" style="color:${topMenuList.menuChrColor};">
    • @@ -90,4 +90,4 @@ $(".top-banner__close").click(function () { $(".top-banner").remove(); }); - \ No newline at end of file + diff --git a/src/main/webapp/WEB-INF/views/sopmal_m/csc/BbscttDtlR.jsp b/src/main/webapp/WEB-INF/views/sopmal_m/csc/BbscttDtlR.jsp index d535e74f..4f32e9c7 100644 --- a/src/main/webapp/WEB-INF/views/sopmal_m/csc/BbscttDtlR.jsp +++ b/src/main/webapp/WEB-INF/views/sopmal_m/csc/BbscttDtlR.jsp @@ -27,9 +27,15 @@ history.scrollRestoration = 'manual'; } $(window).scrollTop(0); - /*헤더에 타이틀 set*/ - const title = ''; - fn_set_header_title(title); + /* ABOUT 하위 화면은 게시판명이 아닌 대메뉴명을 표시 */ + + + fn_set_header_title('ABOUT'); + + + fn_set_header_title(''); + + fn_select_cn(); // data-micromodal-trigger 속성을 가진 버튼을 클릭하면 해당 ID의 모달이 열림 // 모달 배경화면 스크롤 방지 @@ -1253,6 +1259,7 @@
      +
      • @@ -1294,6 +1301,7 @@
      +
      <%-------------------------------%> <%--첨부 파일 다운로드 영역--%> @@ -1753,6 +1761,9 @@
      + "/> + "/> + "/> <%--목록 관련--%> "/> "/> diff --git a/src/main/webapp/WEB-INF/views/sopmal_m/csc/CscListRForm.jsp b/src/main/webapp/WEB-INF/views/sopmal_m/csc/CscListRForm.jsp index 1718242d..56f62e68 100644 --- a/src/main/webapp/WEB-INF/views/sopmal_m/csc/CscListRForm.jsp +++ b/src/main/webapp/WEB-INF/views/sopmal_m/csc/CscListRForm.jsp @@ -314,6 +314,9 @@
      + "/> + "/> + "/> <%--게시글 고유번호--%> "/><%--게시판아이디--%> "/><%--게시판타입--%> @@ -429,4 +432,4 @@ - \ No newline at end of file + diff --git a/src/main/webapp/WEB-INF/views/sopmal_m/csc/SubPageListRForm.jsp b/src/main/webapp/WEB-INF/views/sopmal_m/csc/SubPageListRForm.jsp index 2ce82ba9..d0b319a6 100644 --- a/src/main/webapp/WEB-INF/views/sopmal_m/csc/SubPageListRForm.jsp +++ b/src/main/webapp/WEB-INF/views/sopmal_m/csc/SubPageListRForm.jsp @@ -39,9 +39,15 @@ awaitCloseAnimation: true, }); - /*헤더에 타이틀 set*/ - const title = '';/*게시판이름*/ - fn_set_header_title(title); + /* ABOUT 하위 화면은 게시판명이 아닌 대메뉴명을 표시 */ + + + fn_set_header_title('ABOUT'); + + + fn_set_header_title(''); + + /*box_tab 클릭 이벤트*/ $(".headerTab__item").on("click", function () { @@ -347,6 +353,11 @@ fn_create_input("reqUrl","subPage", form); fn_create_input("bbsId", $("#bbsId").val(), form); fn_create_input("cscAt", $("#cscAt").val(), form); + + fn_create_input("mobileParentCtgryId", '', form); + fn_create_input("mobileAboutMenuAt", 'Y', form); + fn_create_input("mobileCurrentCtgryId", '', form); + /*let pageUnit = ''; //페이지 유닛 계산 const pgeVtcCnt = $("#pgeVtcCnt").val();//ROW diff --git a/src/main/webapp/WEB-INF/views/sopmal_m/goods/GoodsListRForm.jsp b/src/main/webapp/WEB-INF/views/sopmal_m/goods/GoodsListRForm.jsp index 3aca0598..0ea1b788 100644 --- a/src/main/webapp/WEB-INF/views/sopmal_m/goods/GoodsListRForm.jsp +++ b/src/main/webapp/WEB-INF/views/sopmal_m/goods/GoodsListRForm.jsp @@ -29,6 +29,16 @@ const title = '상품 목록'; fn_set_header_title(title); + const $categoryList = $('.header--sub > .home-category .home-category__list'); + const $activeCategory = $categoryList.find('.home-category__item.active'); + if ($activeCategory.length) { + const listElement = $categoryList.get(0); + const activeRect = $activeCategory.get(0).getBoundingClientRect(); + const listRect = listElement.getBoundingClientRect(); + const activeCenter = activeRect.left - listRect.left + listElement.scrollLeft + (activeRect.width / 2); + $categoryList.scrollLeft(Math.max(0, activeCenter - (listElement.clientWidth / 2))); + } + let pageIndex = ''; fn_select_list(pageIndex); @@ -1116,12 +1126,12 @@