초기소스
This commit is contained in:
222
src/main/webapp/WEB-INF/views/sopmal_m/csc/CscMain.jsp
Normal file
222
src/main/webapp/WEB-INF/views/sopmal_m/csc/CscMain.jsp
Normal file
@@ -0,0 +1,222 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui" %>
|
||||
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld" %>
|
||||
<%--
|
||||
Class Name : NoticeListR.jsp
|
||||
Description :모바일 샘플.jsp
|
||||
Modification Information
|
||||
|
||||
수정일 수정자 수정내용
|
||||
------- -------- ---------------------------
|
||||
2024-07-02 최남식 최초 생성
|
||||
--%>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<jsp:include page="/WEB-INF/views/comm/mobile/Include.jsp"/>
|
||||
</head>
|
||||
<script>
|
||||
$(document).ready(function (){
|
||||
/*헤더에 타이틀 set*/
|
||||
fn_set_header_title("고객센터");
|
||||
|
||||
/*게시판 이동*/
|
||||
$(".moveBbsBtn").on("click",function(){
|
||||
const bbsId = $(this).val();
|
||||
const authDv = $(this).attr("auth-dv");
|
||||
const reqUrl = $(this).attr("req-url");
|
||||
fn_move_bbs(bbsId,authDv,reqUrl);
|
||||
});
|
||||
//상세보기
|
||||
$(".dtlBtn").on("click", function () {
|
||||
const bbscttInnb = $(this).find(".bbscttInnb").val();
|
||||
fn_move_dtl(bbscttInnb);
|
||||
});
|
||||
});
|
||||
/*********************************************************
|
||||
* 목록 조회 혹은 등록 폼 이동
|
||||
* bbsId : 해당 게시판 아이디
|
||||
* authDv : subpage인지 csc인지 (csc:이용안내, 공지사항, faq, 제안하기)
|
||||
*********************************************************/
|
||||
const fn_move_bbs = (bbsId, authDv, reqUrl) => {
|
||||
const hiddenForm = $("#hiddenForm");
|
||||
if (hiddenForm.length > 0) {
|
||||
hiddenForm.remove();
|
||||
}
|
||||
const form = document.createElement("form");
|
||||
form.id = "hiddenForm";
|
||||
form.action = "/sopmal/csc/selectBbscttAuth";
|
||||
form.method = "POST";
|
||||
|
||||
fn_create_input("bbsId", bbsId, form);
|
||||
fn_create_input("authDv", authDv, form);
|
||||
fn_create_input("reqUrl", reqUrl, form);
|
||||
document.body.appendChild(form);
|
||||
form.submit();
|
||||
}
|
||||
|
||||
//input 생성 함수
|
||||
const fn_create_input = (name, value, tgtForm) => {
|
||||
const input = document.createElement('input');
|
||||
input.setAttribute("type", "hidden");
|
||||
input.setAttribute("name", name);
|
||||
input.setAttribute("value", value);
|
||||
tgtForm.appendChild(input);
|
||||
}
|
||||
|
||||
//공지사항 상세 이동
|
||||
const fn_move_dtl = (bbscttInnb) => {
|
||||
$("#noticeBbscttInnb").val(bbscttInnb);
|
||||
$("#noticeDtlForm").submit();
|
||||
}
|
||||
</script>
|
||||
<body>
|
||||
<%--쇼핑몰정보--%>
|
||||
<c:set var = "sopmalInfo" value="${resultMap.sopmalInfo[0]}"/>
|
||||
<div class="screen-wrap">
|
||||
<!-- 헤더 영역 -->
|
||||
<header class="header header--sub">
|
||||
<jsp:include page="/WEB-INF/views/comm/mobile/Header.jsp"/>
|
||||
</header>
|
||||
<!-- 하단 탭바 -->
|
||||
<jsp:include page="/WEB-INF/views/comm/mobile/TabBar.jsp"/>
|
||||
<!-- 메인 컨텐츠 -->
|
||||
<div class="content-wrap">
|
||||
<main class="main">
|
||||
<div class="sub-page">
|
||||
<div class="customerMain">
|
||||
<div class="btnTabLinks">
|
||||
<c:if test="${!empty sopmallInfo}">
|
||||
<c:forEach var="topMenuList" items="${sopmallInfo.menuList}" varStatus="status">
|
||||
<c:if test="${topMenuList.ctgryDvCd eq '04'}">
|
||||
<button class = "btnTabLinks__link" onclick="location.href='<c:out value="${topMenuList.url}"/>'" id = "<c:out value="${topMenuList.bbsId}"/>"><c:out value="${topMenuList.ctgryNm}"/></button>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</div>
|
||||
<div class="sub-box">
|
||||
<h3 class="customerMain__innerTitle">자주묻는질문</h3>
|
||||
<ul class="customerMain__boardList">
|
||||
<c:forEach var = "faqList" items="${resultMap.cscBbsctt.faqList}">
|
||||
<li>
|
||||
<details>
|
||||
<summary>
|
||||
<c:if test = "${not empty faqList.answCn}">
|
||||
<span class="customerMain__boardCategory">[<c:out value="${faqList.answCn}"/>]</span>
|
||||
</c:if>
|
||||
<c:out value = "${faqList.sj}" escapeXml="false"/>
|
||||
</summary>
|
||||
<div class="customerMain__boardContent ck-content">
|
||||
<c:out value = "${faqList.cn}" escapeXml="false"/>
|
||||
</div>
|
||||
</details>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
<button class="customerMain__more moveBbsBtn" value ="faq" auth-dv="REDNG" req-url = "csc">전체보기</button>
|
||||
</div>
|
||||
<div class="sub-box">
|
||||
<h3 class="customerMain__innerTitle">공지사항</h3>
|
||||
<c:set var = "noticeBbsInfo" value = "${resultMap.noticeBbsInfo}"/>
|
||||
<form id = "noticeDtlForm" action="/sopmal/csc/selectBbscttDtlInqire" method="post">
|
||||
<input type = "hidden" name = "bbsId" value = "<c:out value = "${noticeBbsInfo.bbsId}"/>"/><%--게시판아이디--%>
|
||||
<input type = "hidden" name = "bbsTyCd" value = "<c:out value = "${noticeBbsInfo.bbsTyCd}"/>"/><%--게시판타입--%>
|
||||
<input type = "hidden" name = "recomendGoodsExpsrAt" value = "<c:out value = "${noticeBbsInfo.recomendGoodsExpsrAt}"/>"/><%--추천상품노출여부--%>
|
||||
<input type = "hidden" name = "prevNext" value = "<c:out value = "${noticeBbsInfo.prevNext}"/>"/><%--이전글다음글노출여부--%>
|
||||
<input type = "hidden" name = "bbscttInnb" id = "noticeBbscttInnb" value = ""/><%--타겟 게시글 고유번호--%>
|
||||
<input type = "hidden" name = "useAt" value = "Y"/><%--사용자 노출 조건--%>
|
||||
<input type = "hidden" name = "expsrAt" value = "Y"/><%--사용자 노출 조건--%>
|
||||
<input type = "hidden" name = "reqUrl" value = "csc"/><%--권한체크 요청 url--%>
|
||||
<input type = "hidden" name = "authDv" value = "CM"/><%--상세 권한체크--%>
|
||||
</form>
|
||||
<ul class="customerMain__boardList">
|
||||
<%--반복문 시작--%>
|
||||
<c:forEach var = "noticeList" items="${resultMap.cscBbsctt.noticeList}">
|
||||
<li class="dtlBtn">
|
||||
<input type="hidden" class="bbscttInnb" value="<c:out value="${noticeList.bbscttInnb}"/>">
|
||||
<a>
|
||||
<c:out value="${noticeList.sj}" escapeXml="false"/>
|
||||
<span class="customerMain__boardDate">
|
||||
<c:out value="${noticeList.sumRegistDt}"/>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</c:forEach>
|
||||
<%--반복문 종료--%>
|
||||
</ul>
|
||||
<button class="customerMain__more moveBbsBtn" value="notice" auth-dv="REDNG" req-url = "csc">전체보기</button><%--TODO::공지사항 목록 조회 이동--%>
|
||||
</div>
|
||||
<c:if test = "${sopmalInfo.cscTelnbOrdrPosblAt eq 'Y'}">
|
||||
<div class="sub-box">
|
||||
<div class="mainNotice__customerContact mainNotice__customerContact--moreInfo">
|
||||
<i class="icon icon_notice03"></i>
|
||||
<div class="mainNotice__customerContact__right">
|
||||
<h4 class="notice__title customer-service">고객센터</h4>
|
||||
<c:if test = "${not empty sopmalInfo.cscTelnb}">
|
||||
<span class="notice__number"><c:out value="${sopmalInfo.cscTelnb}"/></span>
|
||||
</c:if>
|
||||
<p class="notice__paragraph">
|
||||
<c:if test = "${not empty sopmalInfo.cscWkdayWorkTme}">
|
||||
<span class="notice__text01"><c:out value = "${sopmalInfo.cscWkdayWorkTme}"/></span>
|
||||
</c:if>
|
||||
<c:if test = "${not empty sopmalInfo.cscLunchTme}">
|
||||
<span class="notice__text02">(<c:out value = "${sopmalInfo.cscLunchTme}"/>)</span>
|
||||
</c:if>
|
||||
<c:if test = "${not empty sopmalInfo.cscRstde}">
|
||||
<br><span class="notice__text03"><c:out value = "${sopmalInfo.cscRstde}"/></span>
|
||||
</c:if>
|
||||
</p>
|
||||
<div class="notice__moreInfo">
|
||||
<dl>
|
||||
<dt>메일문의</dt>
|
||||
<dd><c:out value = "${sopmalInfo.emailAtmcSndngDsptchAdres}"/></dd>
|
||||
</dl>
|
||||
<c:if test="${not empty resultMap.nbkkList.acntSetup}">
|
||||
<c:set var="loopBreak" value="false"/>
|
||||
<c:forEach var="acntSetup" items="${resultMap.nbkkList.acntSetup}">
|
||||
<c:if test="${not loopBreak}">
|
||||
<c:if test="${acntSetup.acntDtlDvCd eq '01'}">
|
||||
<dl>
|
||||
<dt>입금계좌</dt>
|
||||
<dd><c:out value="${acntSetup.bankNm}"/> <c:out value="${acntSetup.acntnb}"/></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>예금주</dt>
|
||||
<dd><c:out value="${acntSetup.dpstrNm}"/></dd>
|
||||
</dl>
|
||||
<c:set var="loopBreak" value="true"/>
|
||||
</c:if>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</c:if>
|
||||
<div class="fullBtnSection">
|
||||
<button class="btn md gray2 full moveBbsBtn" value = "use_guidance" auth-dv="REDNG" req-url = "useGuidance">
|
||||
사이트 이용안내
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Top 버튼 -->
|
||||
<div class="quick-menu__to-top">
|
||||
<button><i class="icon icon_quick-to-top"></i>
|
||||
<span class="visually-hidden">위로 가기</span>
|
||||
</button>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<!-- 푸터 -->
|
||||
<jsp:include page="/WEB-INF/views/comm/mobile/Footer.jsp"/>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user