| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143 |
- <!DOCTYPE html>
- <html lang="ko" xmlns:th="http://www.thymeleaf.org"
- xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
- layout:decorator="web/common/layout/PlanningLayoutWeb">
- <!--
- *******************************************************************************
- * @source : PlanningDetailFormWeb.html
- * @desc : 기획전디테일 Page
- *============================================================================
- * Pastelmall
- * Copyright(C) 2020 TSIT, All rights reserved.
- *============================================================================
- * VER DATE AUTHOR DESCRIPTION
- * === =========== ========== =============================================
- * 1.0 2021.3.9 sowon 최초 작성
- *******************************************************************************
- -->
- <body>
- <th:block layout:fragment="content">
- <script src="https://developers.kakao.com/sdk/js/kakao.min.js"></script>
- <div id="container" class="container dp" th:with="frontUrl=${@environment.getProperty('domain.front')}, goodsView=${@environment.getProperty('upload.goods.view')}, planView=${@environment.getProperty('upload.image.view')}">
- <div class="breadcrumb">
- <ul>
- <li class="bread_home"><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MAIN);">홈</a></li>
- <li class="bread_2depth" th:if="${planInfo.planGb == 'P'}" ><a href="javascript:void(0);"onclick="cfnGoToPage(_PAGE_PLANNING_MAIN);">기획전</a></li>
- <li class="bread_2depth" th:if="${planInfo.planGb == 'E'}" ><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_EVENT_MAIN);">이벤트/혜택</a></li>
- <li class="bread_2depth" th:text="${planInfo.planNm}"></li>
- </ul>
- </div>
- <div class="wrap">
- <!-- 상단 프로모션 배너 -->
- <div class="content wide dp_detail_visual">
- <div class="cont_head">
- <div>
- <h3 th:text="${planInfo.planNm}"></h3>
- <div class="period">
- <span th:text="${planInfo.dispStdt}"></span> ~ <span th:text="${planInfo.dispEddt}"></span>
- </div>
- <div class="shareSet">
- <button class="btn_share" data-name="openShare">공유하기</button>
- <div class="shareWrap">
- <div id="layerShare" class="setShare open">
- <span>
- <button type="button" class="kk"
- th:attr="onclick=|cfnSendToKakao('${stylelUrl+'/planning/detail/form?planSq='+planInfo.planSq}', '${planInfo.planNm}', '${planView+ '/'+planInfo.mainImg}');|">
- <span>카카오톡</span>
- </button>
- <button type="button" class="fb"
- th:attr="onclick=|sendSns('facebook', '${stylelUrl+'/planning/detail/form?planSq='+planInfo.planSq}', '${planInfo.planNm}', '', '');|">
- <span>페이스북</span>
- </button>
- <button type="button" class="tw"
- th:attr="onclick=|sendSns('twitter', '${stylelUrl+'/planning/detail/form?planSq='+planInfo.planSq}', '${planInfo.planNm+ '#style24몰'}', '', '');|">
- <span>트위터</span>
- </button>
- <button type="button" class="url btn_copy">
- <span>URL</span>
- </button>
- </span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="cont_body" th:if="${fsrcInfoTop != null}" th:utext="${#strings.replace(#strings.replace(fsrcInfoTop.fsrcPc,'&lt;','<'),'&gt;','>')}">
- <!-- 프로모션배너 type1 -->
- <!-- <div class="promotion_visual type1" th:if="${fsrcInfoTop != null and planInfo.planGb == 'P'}" th:utext="${#strings.replace(#strings.replace(fsrcInfoTop.fsrcPc,'&lt;','<'),'&gt;','>')}"></div> -->
- <!-- <div class="promotion_visual type2" th:if="${fsrcInfoTop != null}" th:utext="${#strings.replace(#strings.replace(fsrcInfoTop.fsrcPc,'&lt;','<'),'&gt;','>')}"></div> -->
- <!-- 프로모션배너 type1 -->
- <!-- 프로모션배너 type2 -->
- <!-- <div class="promotion_visual type2">
- <div class="swiper-container">
- <div class="swiper-wrapper ">
- <div class="swiper-slide">
- <img alt="" src="/images/pc/thumb/bigbanner_slide01.png">
- </div>
- <div class="swiper-slide">
- <img alt="" src="/images/pc/thumb/bigbanner_slide02.png">
- </div>
- </div>
- </div>
- <div class="swiper-button-prev"></div>
- <div class="swiper-button-next"></div>
- <div class="swiper-pagination"></div>
- </div> -->
- <!-- 프로모션배너 type2 -->
- </div>
- </div>
- <!-- //상단 프로모션 배너 -->
-
- <th:block th:each="a, template : ${templateOrd}">
- <th:block th:if="${a.tmplType == 'G082_10'}">
- <div class="content wide dp_review" th:id="${a.tmplType}"></div> <!-- //리뷰 -->
- </th:block>
- <th:block th:if="${a.tmplType == 'G082_20'}">
- <div class="content wide dp_coupon" th:id="${a.tmplType}"></div> <!-- //할인쿠폰 -->
- </th:block>
- <th:block th:if="${a.tmplType == 'G082_30'}">
- <div class="content dp_mid_banner" th:id="${a.tmplType}"></div> <!-- //이미지-->
- </th:block>
- <th:block th:if="${a.tmplType == 'G082_50'}">
- <div class="content dp_special" th:id="${a.tmplType + a.planContSq}"></div>
- </th:block>
- <th:block th:if="${a.tmplType == 'G082_51'}">
- <div class="content dp_special" th:id="${a.tmplType + a.planContSq}"></div>
- </th:block>
- <th:block th:if="${a.tmplType == 'G082_52'}">
- <div class="content dp_special" th:id="${a.tmplType + a.planContSq}"></div>
- </th:block>
- </th:block>
- <div class="coner_item01" th:if="${fsrcInfoBtm != null}" th:utext="${#strings.replace(#strings.replace(fsrcInfoBtm.fsrcPc,'&lt;','<'),'&gt;','>')}"></div>
-
- <!-- 댓글리스트 -->
- <th:block th:if="${planInfo.replyYn == 'Y'}">
- <div class="content wide cmt">
- <div class="cont_body">
- <div class="cmt_wrap">
- <div class="cmt_write">
- <form class="form_wrap">
- <div class="cmt_tarea">
- <textarea class="cmt_ans" name="replyText" id="replyText" placeholder="댓글을 입력해주세요.(500자 이내)" onclick="fnTextConfirm()"></textarea>
- <p class="txt_cnt"><span id="cmt_cnt" class="c_primary">0</span>/500</p>
- </div>
- <div class="cmt_thumb">
- <div class="form_field">
- <div class="imgUpload">
- <label for="fileAdd" class="fileAdd" id="fileAdd_reply">업로드</label>
- <input type="file" id="fileAdd" name="files"/>
- </div>
- </div>
- </div>
- <button type="button" class="btn btn_dark" onclick="fnReplySave()"><span>등록</span></button>
- </form>
- </div>
- <div class="cmt_group" id="replyList">
- </div>
- <div class="paging_wrap">
- <ul class="pageNav" id="paging">
-
- </ul>
- </div>
- </div>
- </div>
- </div>
- </th:block>
-
- <!-- 관련상품 리스트 -->
- <div class="content sticky_nav_list" id="cornerList">
- </div>
-
- <!-- //관련상품 리스트 -->
- <!-- 다른 기획전,이벤트 보기 -->
- <div class="content other_promotion_slide">
- <div class="cont_head">
- <div>
- <h4 th:if="${planInfo.planGb == 'P'}">다른 기획전 보기</h4>
- <h4 th:if="${planInfo.planGb == 'E'}">다른 이벤트 보기</h4>
- <a href="javascript:void(0);" th:if="${planInfo.planGb == 'P'}" onclick="cfnGoToPage(_PAGE_PLANNING_MAIN);">전체보기</a>
- <a href="javascript:void(0);" th:if="${planInfo.planGb == 'E'}" onclick="cfnGoToPage(_PAGE_EVENT_MAIN);">전체보기</a>
- </div>
- </div>
- <div class="cont_body">
- <div class="swiper-container">
- <div class="swiper-wrapper">
- <th:block th:each="PlanData, PlanStat : ${planList}">
- <div class="swiper-slide">
- <a th:onclick="cfnGoToPlanDetail([[${PlanData.planSq}]])">
- <div class="thumb">
- <img th:src="${@environment.getProperty('upload.image.view')+PlanData.mainImg}" alt="${PlanData.planNm}">
- </div>
- <div class="txt">
- <p class="tit" th:text="${PlanData.planNm}"></p>
- </div>
- </a>
- </div>
- </th:block>
- </div>
- </div>
- <div class="swiper-button-prev"></div>
- <div class="swiper-button-next"></div>
- </div>
- </div>
- </div>
- </div>
-
- <div class="modal fade couponInfo_pop" id="couponInfoPop" tabindex="-1" role="dialog" aria-labelledby="couponInfoLabel" aria-hidden="true">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <!-- 쿠폰사용안내 팝업 내용 -->
- </div>
- </div>
- </div>
- <!-- <form id="pollListForm" name="pollListForm" th:action="@{'/planning/event/poll/form'}" th:method="post">
- <input type="hidden" name="planSq" th:value="${planInfo.planSq}"/>
- </form> -->
- <form id="searchForm" name="searchForm" th:action="@{/planning/reply/list}" th:method="post">
- <input type="hidden" name="pageNo" value="1" />
- <input type="hidden" name="planSq" th:value="${planInfo.planSq}" />
- <input type="hidden" name="pageSize" value="10" />
- </form>
- <!-- 댓글 이미지 팝업 -->
- <div class="modal fade thumb_img_pop" id="thumbImgPop" tabindex="-1" role="dialog" aria-labelledby="thumbImgLabel" aria-hidden="true">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header sr-only">
- <h5 class="modal-title" id="thumbImgLabel">이미지 상세보기</h5>
- </div>
- <div class="modal-body">
- <div class="pop_cont">
- <div class="swiper-container">
- <div class="swiper-wrapper">
- <!-- 이미지 슬라이드 영역 -->
- </div>
- </div>
- <div class="swiper-button-next"></div>
- <div class="swiper-button-prev"></div>
- <div class="swiper-pagination"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- //댓글 이미지 팝업 -->
- <script src="/ux/plugins/gaga/gaga.paging.js"></script>
- <script th:inline="javascript">
- let review = [[${reviewInfo}]];
- let coupon = [[${couponInfo}]];
- let plan = [[${planInfo}]];
- let image = [[${imageInfo}]];
- let goods1 = [[${goods1Info}]];
- let goods2 = [[${goods2Info}]];
- let goods4 = [[${goods4Info}]];
- let template =[[${templateOrd}]];
- let replyList = [[${replyList}]];
- let replyCount = [[${replyCount}]];
- let replyAttachList = [[${replyAttachList}]];
- let planCornerGoodsList = [[${planCornerGoodsList}]];
- let planCornerList = [[${planCornerList}]];
- let _mall = [[${@environment.getProperty('domain.front')}]];
- let goodsView =[[${@environment.getProperty('upload.goods.view')}]]
- let imgUrl=[[${@environment.getProperty('upload.image.view')}]];
- if(planCornerList.length>0){
- var html = '';
-
- html += '<div class="cont_head">';
- html += ' <div class="sticky_nav">';
- html += ' <ul> ';
- $.each(planCornerList, function(idx, item) {
- html += ' <li><a href="#brand'+idx+'">'+item.cornerNm+'</a></li>';
- })
-
- html += ' </ul>';
- html += ' </div>';
- html += '</div>';
- html += '<div class="cont_body">';
- html += ' <div class="list_content">';
- $.each(planCornerList, function(idx, item) {
- html += ' <div id="brand'+idx+'">';
- html += ' <div class="item_header">';
- html += ' <h4>'+item.cornerNm+'</h4>';
- html += ' </div>';
- html += ' <div class="itemsGrp">';
- $.each(planCornerGoodsList, function(idx2, item2) {
- html += ' <div class="item_prod">';
- html += ' <div class="item_state">';
- html += ' <button type="button" class="itemLike';
- if(item2.likeIt == 'likeit'){
- html += ' likeit';
- }
- html += ' "';
- html += ' onClick="cfnPutWishList(this);" goodsCd=\''+item2.goodsCd+'\', ithrCd=\'\', contentsLoc=\'\', planDtlSq=\'\'>관심상품 추가</button>';
-
- html += ' <a href="javascript:void(0);" onclick="cfnGoToGoodsDetail(\'' + item2.goodsCd + '\')" class="itemLink">';
- html += ' <div class="itemPic">';
- html += ' <img alt="BLUE-a" class=" vLHTC pd_img" src="'+ goodsView +'/'+item2.sysImgNm +'">';
- html += ' </div>';
- html += ' <p class="itemBrand">'+item2.brandGroupNm+'</p>';
- html += ' <div class="itemName">'+item2.goodsNm+'</div>';
- html += ' <p class="itemPrice">'+item2.currPrice.addComma();
- if (item2.currPrice != item2.listPrice) {
- html += ' <span class="itemPrice_original">'+item2.listPrice.addComma()+'</span>';
- }
- if (item2.dcRate != 0) {
- html += ' <span class=" itemPercent">'+item2.dcRate.addComma()+'%</span>';
- }
-
-
- html += ' </p>';
- html += ' <div class="itemcolorchip">';
- if(!gagajf.isNull(item2.colorChips)){
- var colorArr = item2.colorChips.split(",");
- var colorCd = '';
- var rgbColor = '';
- for(let i=0; i<colorArr.length; i++){
- var colorInfo = colorArr[i].split(":");
- colorCd = colorInfo[0];
- rgbColor = colorInfo[1];
- if(rgbColor=='#FFFFFF'){
- html += ' <span class="chip_color" style="background-color: '+rgbColor+';border:1px solid #aaa;" value="'+colorCd+'">'+colorCd+'</span>';
- }else{
- html += ' <span class="chip_color" style="background-color: '+rgbColor+'" value="'+colorCd+'">'+colorCd+'</span>';
- }
- }
- }
- html += ' </div>';
- if(!gagajf.isNull(item2.icon)){
- var iconArr = item2.icon.split(",");
- var iconGb = '';
- var iconNm = '';
- html += ' <p class="itemBadge">';
- for(let i=0; i<iconArr.length; i++){
- var iconInfo = iconArr[i].split(":");
- iconGb = iconInfo[0];
- iconNm = iconInfo[1];
- html += ' <span class="badge13" value="'+iconGb+'">'+iconNm+' </span>';
- }
- html += ' </p>';
- }
- if(item2.goodsTnm != null){
- html += ' <div class="itemComment">'+item2.goodsTnm+'</div>';
- }
- html += ' </a>';
- html += ' </div>';
- html += ' </div>';
- })
- html += ' </div>';
- html += ' </div>';
- })
-
- html += ' </div>';
- html += ' </div>';
-
-
- $("#cornerList").append(html);
-
- }
- if(review.length>0){
-
- var html = '';
-
- html += ' <div class="cont_head">';
- html += ' <div>';
- html += ' <h4>'+review[0].title+'</h4>';
- html += ' </div>';
- html += ' <div class="cont_body">';
- html += ' <div class="review_list">';
- $.each(review, function(idx, item) {
- html += ' <div class="reviw_box">'
- html += ' <div class="best_review">';
- if(item.reviewSysImg!= null){
- html += ' <a href="javascript:void();" id="btn_pdBestReview_pop" onclick="cfGoodsReviewDetail(\''+item.goodsCd+'\',\'\', \'Y\',\''+item.reviewSq+'\');">';
- }else{
- html += ' <a href="javascript:void();" id="btn_pdBestReview_pop">';
- }
-
- html += ' <div class="pic">';
- if(item.reviewSysImg!= null){
- if (item.fileGb == 'M') {
- html += ' <span class="thumb mov" style="background-image: url('+ imgUrl+item.reviewSysImg +');"></span>';
- }else{
- html += ' <span class="thumb" style="background-image: url('+ imgUrl +item.reviewSysImg +');"></span>';
- }
- }else{
- html += ' <span class="thumb" style="background-image: url('+ goodsView+'/'+item.sysImgNm +');"></span>';
- }
-
- html += ' </div>';
- html += ' <div class="star_score">';
- html += ' <span class="star">';
- html += ' <em class="progbar" style="width:'+(item.score*20)+'%;"></em> <!-- 평점 style로 표기 -->';
- html += ' </span>';
- if(item.bestYn == 'Y'){
- html += '<em class="ico ico_besttag"></em>';
- }
- html += ' </div>';
- html += ' <div class="txt_best_review">';
- html += ' <p>'+item.reviewContent+'</p>';
- html += ' </div>';
- html += ' <div class="info_writer">';
- html += ' <span class="wr_id">'+item.maskingCustId+'</span>';
- html += ' <span class="wr_date">'+item.regDt+'</span>';
- html += ' </div>';
- html += ' </a>';
- html += ' </div>';
- html += ' <div class="review_item">';
- html += ' <div class="item_prod">';
- html += ' <div class="item_state">';
- html += ' <a href="javascript:void(0)" onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\')" class="itemLink">';
- html += ' <div class="itemPic">';
- html += ' <img alt="" class="vLHTC pd_img" src="'+ goodsView +'/'+item.sysImgNm +'">';
- html += ' </div>';
- html += ' <div class="itemName">'+item.goodsNm+'</div>';
- html += ' <p class="itemPrice">'+item.currPrice.addComma()+'</p>';
- html += ' </a>';
- html += ' </div>';
- html += ' </div>';
- html += ' </div>';
- html += ' </div> ';
- });
- html += ' </div> ';
- html += ' </div>';
- html += '</div>';
- $("#G082_10").append(html);
- }
- if(image.length>0){
- var html = '';
-
- html += '<div class="cont_body"> ';
- html += ' <div class="mid_banner">';
- html += ' <div class="swiper-container">';
- html += ' <div class="swiper-wrapper">';
- for (var i = 0; i < image.length; i++) {
- html += ' <div class="swiper-slide">';
- if (image[i].linkOpenGb == 'M') {
- html += ' <a href="http://'+image[i].linkUrl+'" target="_self">><img alt="" src="'+ imgUrl + image[i].itemVal +'"></a>';
- }else{
- html += ' <a href="http://'+image[i].linkUrl+'" target="_blank">><img alt="" src="'+ imgUrl + image[i].itemVal +'"></a>';
- }
-
- html += ' </div>';
- }
- html += ' </div>';
- html += ' </div>';
- html += ' <div class="swiper-button-prev"></div>';
- html += ' <div class="swiper-button-next"></div>';
- html += ' <div class="swiper-pagination"></div>';
- html += ' </div>';
- html += '</div>';
-
-
- $("#G082_30").append(html);
- }
- if(goods1.length>0){
- var array = [];
- for (var j = 0; j < template.length; j++) {
- if(template[j].tmplType == 'G082_50'){
- array.push(template[j].planContSq);
- }
-
- }
-
- for (var i = 0; i < template.length; i++) {
- var html = '';
- if(template[i].tmplType == 'G082_50' && array[0] == template[i].planContSq && typeof array[0] != 'undefined') {
- html += '<div class="cont_head">';
- html += ' <div>';
- html += ' <h4>';
- if (template[i].linkUrl != null && template[i].linkUrl != '') { /* 링크 변경 예정 */
- if (template[i].linkOpenGb == 'M') { //본창
- html += ' <a href="http://'+template[i].linkUrl+'" target="_self">'+template[i].title+' <i class="ico_arrow"></i></a>';
- }else{
- html += ' <a href="http://'+template[i].linkUrl+'" target="_blank">'+template[i].title+' <i class="ico_arrow"></i></a>';
- }
-
- }else{
- html += ' <a href="javascript:void(0)">'+template[i].title+'</a>';
- }
- html += ' </h4>';
- html += ' </div>';
- html += '</div>';
- html += '<div class="cont_body">';
- html += ' <div class="dp_listItems_cont type1">';
- html += ' <ul>';
- $.each(goods1, function(idx, item) {
- if (item.planContSq == template[i].planContSq) {
- html += ' <li>';
- html += ' <div class="dp_listItems">';
- html += ' <div class="dp_listItems_img">';
- html += ' <img src="'+ goodsView +'/'+item.sysImgNm +'" alt="">';
- html += ' </div>';
- html += ' <div class="dp_listItems_info">';
- html += ' <div class="dp_listItems_brand">'+item.brandGroupNm+'</div>';
- html += ' <div class="dp_listItems_name">'+item.goodsNm+'<br></div>';
- html += ' <div class="dp_listItems_price">';
- html += ' <span class="price">'+item.currPrice.addComma()+'</span>';
- if (item.currPrice != item.listPrice) {
- html += ' <del>'+item.listPrice.addComma()+'</del>';
- html += ' <span class="percent">'+Math.floor(item.dcRate)+'%</span>';
- }
- html += ' </div>';
- if(item.goodsTnm != null){
- html += ' <div class="itemComment">'+item.goodsTnm+'</div>';
- }
- html += ' <div class="ui_row">';
- html += ' <button type="button" class="btn btn_default" onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\')"><span>자세히 보기</span></button>';
- html += ' </div>';
- html += ' </div>';
- html += ' </div>';
- html += ' </li>';
- }
- });
- html += ' </ul>';
- html += ' </div> ';
- html += '</div>';
- $("#G082_50" +array[0]).append(html);
- }
- if($("#G082_50" +template[i].planContSq).length){
- array.shift();
- }
- }
- }
- if(goods2.length>0){
- var array = [];
- for (var j = 0; j < template.length; j++) {
- if(template[j].tmplType == 'G082_51'){
- array.push(template[j].planContSq);
- }
- }
- for (var i = 0; i < template.length; i++) {
- var html = '';
-
- if(template[i].tmplType == 'G082_51' && array[0] == template[i].planContSq && typeof array[0] != 'undefined'){
- html += '<div class="cont_head">';
- html += ' <div>';
- html += ' <h4>';
- if (template[i].linkUrl != null && template[i].linkUrl != '') { /* 링크 변경 예정 */
- if (template[i].linkOpenGb == 'M') { //본창
- html += ' <a href="http://'+template[i].linkUrl+'" target="_self">'+template[i].title+' <i class="ico_arrow"></i></a>';
- }else{
- html += ' <a href="http://'+template[i].linkUrl+'" target="_blank">'+template[i].title+' <i class="ico_arrow"></i></a>';
- }
- }else{
- html+=' <a href="javascript:void(0)">'+template[i].title+'</a>';
- }
- html += ' </h4>';
- html += ' </div>';
- html += '</div>';
- html += '<div class="cont_body">';
- html += ' <div class="dp_listItems_cont type2">';
- html += ' <div class="swiper-container">';
- html += ' <div class="swiper-wrapper">';
- $.each(goods2, function(idx, item) {
- if (item.planContSq == template[i].planContSq) {
- html += ' <div class="swiper-slide">';
- html += ' <div class="item_prod">';
- html += ' <div class="item_state">';
- html += ' <a onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\')" class="itemLink">';
- html += ' <div class="itemPic">';
- html += ' <img alt="BLUE-a" class=" vLHTC pd_img" src="'+ goodsView +'/'+item.sysImgNm +'">';
- html += ' </div>';
- html += ' <p class="itemBrand">'+item.brandGroupNm+'</p>';
- html += ' <div class="itemName">'+item.goodsNm+'</div>';
- html += ' <p class="itemPrice">'+item.currPrice.addComma();
- if (item.currPrice != item.listPrice) {
- html+=' <span class="itemPrice_original">'+item.listPrice.addComma()+'</span>';
- html+=' <span class=" itemPercent">'+Math.floor(item.dcRate)+'%</span>';
- }
- html += ' </p>';
- if(item.goodsTnm != null){
- html += ' <div class="itemComment">'+item.goodsTnm+'</div>';
- }
- html += ' </a>';
- html += ' </div>';
- html += ' </div>';
- html += ' </div> ';
- }
- });
- html += ' </div>';
- html += ' </div>';
- html += ' <div class="swiper-button-prev"></div>';
- html += ' <div class="swiper-button-next"></div>';
- html += ' <div class="swiper-pagination"></div>';
- html += ' </div> ';
- html += '</div>';
- $("#G082_51" +array[0]).append(html);
- }
-
- if($("#G082_51" +template[i].planContSq).length){
- array.shift();
- }
- }
- }
- if(goods4.length>0){
- var array = [];
- for (var j = 0; j < template.length; j++) {
- if(template[j].tmplType == 'G082_52'){
- array.push(template[j].planContSq);
- }
- }
- for (var i = 0; i < template.length; i++) {
- var html = '';
- if(template[i].tmplType == 'G082_52' && array[0] == template[i].planContSq && typeof array[0] != 'undefined'){
- html += '<div class="cont_head">';
- html += '<div>';
- html += ' <h4>';
- if (template[i].linkUrl != null && template[i].linkUrl != '') { /* 링크 변경 예정 */
- if (template[i].linkOpenGb == "M") { //본창
- html += ' <a href="http://'+template[i].linkUrl+'" target="_self">'+template[i].title+' <i class="ico_arrow"></i></a>';
- }else{
- html += ' <a href="http://'+template[i].linkUrl+'" target="_blank">'+template[i].title+' <i class="ico_arrow"></i></a>';
- }
- }else{
- html+=' <a href="javascript:void(0)">'+template[i].title+'</a>';
- }
- html += ' </h4>';
- html += ' </div>';
- html += '</div>';
- html += '<div class="cont_body">';
- html += ' <!-- 상품 노출 4열 type3 -->';
- html += ' <div class="dp_listItems_cont type3">';
- html += ' <div class="swiper-container">';
- html += ' <div class="swiper-wrapper">';
- $.each(goods4, function(idx, item) {
- if (item.planContSq == template[i].planContSq) {
- html += ' <div class="swiper-slide">';
- html += ' <div class="item_prod">';
- html += ' <div class="item_state">';
- html += ' <a onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\')" class="itemLink">';
- html += ' <div class="itemPic">';
- html += ' <img alt="BLUE-a" class=" vLHTC pd_img" src="'+ goodsView +'/'+item.sysImgNm +'">';
- html += ' </div>';
- html += ' <p class="itemBrand">'+item.brandGroupNm+'</p>';
- html += ' <div class="itemName">'+item.goodsNm+'</div>';
- html += ' <p class="itemPrice">'+item.currPrice.addComma();
- if (item.currPrice != item.listPrice) {
- html+=' <span class="itemPrice_original">'+item.listPrice.addComma()+'</span>';
- html+=' <span class=" itemPercent">'+Math.floor(item.dcRate)+'%</span>';
- }
- html += ' </p>';
- if(item.goodsTnm != null){
- html += ' <div class="itemComment">'+item.goodsTnm+'</div>';
- }
- html += ' </a>';
- html += ' </div>';
- html += ' </div>';
- html += ' </div>';
- }
- });
- html += ' </div>';
- html += ' </div>';
- html += ' <div class="swiper-button-prev"></div>';
- html += ' <div class="swiper-button-next"></div>';
- html += ' <div class="swiper-pagination"></div>';
- html += ' </div> ';
- html += '</div>';
- $("#G082_52" +array[0]).append(html);
-
- }
- if($("#G082_52" +template[i].planContSq).length){
- array.shift();
- }
- }
- }
- if(coupon.length>0){
- var html = '';
-
- html += '<div class="cont_head">';
- html += ' <div>';
- html += ' <h4>'+coupon[0].title+'</h4>';
- html += ' </div>';
- html += '</div>';
- html += '<div class="cont_body">';
- html += ' <div class="coupon_list">';
- html += ' <ul>';
- $.each(coupon, function(idx, item) {
- html += ' <li>';
- html += ' <div class="coupon">';
- html += ' <div>';
- html += ' <p class="cp_name">'+item.cpnNm+'</p>';
- html += ' <p class="cp_cont">';
- html += ' <span><em>'+item.dcVal+'</em>'+item.dcWay+'</span>';
- html += ' </p>';
- html += ' <p class="cp_condition">'+item.useCondition;
- html += ' <span>'+item.issueCondition+'</span>';
- html += ' </p>';
- html += ' </div>';
- if (item.couponStat == '쿠폰받기') {
- html += ' <button type="button" id="coupon_'+item.cpnId+'" class="btn btn_dark btn_block btn_coupon_down" onclick="fnPlanCouponDown('+item.cpnId+')">'; /* btn_coupon_done */
- html += ' <span>쿠폰받기</span>'; /* 받기완료 */
- html += ' </button>';
- }else{
- html += ' <button type="button"';
- html += ' class="btn btn_dark btn_block btn_coupon_done" disabled>';
- html += ' <span>받기완료</span>';
- html += ' </button>';
- }
- html += ' </div>';
- html += ' <button type="button" class="btn_underline" id="btn_couponInfo_pop" onclick="useInfoCoupon('+item.cpnId+')">';
- html += ' <span>사용안내</span>';
- html += ' </button>';
- html += ' </li>';
- });
- html += ' </ul>';
- html += ' </div>';
- html += '</div>';
- html += '<div class="content dp_announce line"> ';
- html += ' <div class="cont_head"> ';
- html += ' <div> ';
- html += ' <h4>유의사항</h4> ';
- html += ' </div> ';
- html += ' </div> ';
- html += ' <div class="cont_body"> ';
- html += ' <div class="announce_txt"> ';
- html += ' <div class="note_txt"> ';
- html += ' <img src="/images/pc/ico_content_find.png" alt="유의사항"> ';
- html += ' <p>유의사항</p> ';
- html += ' </div> ';
- html += ' <div class="announce_list"> ';
- html += coupon[0].note;
- html += ' </div> ';
- html += ' </div> ';
- html += ' </div> ';
- html += '</div> ';
-
-
- $("#G082_20").append(html);
- }
- //사용안내 모달
- var useInfoCoupon = function (id) {
- var data = {cpnId : id};
- var jsonData = JSON.stringify(data);
-
- $.ajax( {
- type : "POST",
- url : '/planning/coupon/detailPop',
- data : jsonData,
- contentType: 'application/json',
- dataType : 'html',
- success : function(result) {
- if (result != null) {
- $("#couponInfoPop").html(result);
- $("#couponInfoPop").modal("show");
- }
- }
- });
-
- return false;
- }
- //쿠폰 다운로드
- var fnPlanCouponDown = function(obj){
- if (!cfCheckLogin()) {
- cfnGoToPage(_PAGE_LOGIN);
- return false;
- }
-
- let cpnId = obj;
- gagajf.ajaxJsonSubmit(_PAGE_PLANNING_CPN_DOWNLOAD, JSON.stringify({cpnId: cpnId}), fnPlanCouponCallBack);
- }
- // 쿠폰다운로드 콜백
- var fnPlanCouponCallBack = function(result){
- $('#coupon_'+ result.cpnId).html('<span>받기완료</span>');
- $('#coupon_'+ result.cpnId).attr('disabled', true);
- }
- // 설문조사 참여 버튼 클릭
- var fnJoinConfirm = function () {
- let planSq = plan.planSq;
-
- cfnGoToPollDetail(planSq);
- }
- // 댓글 입력 확인
- var fnTextConfirm = function() {
- //로그인 확인
- if (!cfCheckLogin()) {
- mcxDialog.alert("로그인 후 참여 가능합니다.");
- $("#replyText").val('');
- return false;
- }
- }
- var ajaxReplyList = function () {
- gagaPaging.init('searchForm', fnSearchCallback, 'paging', 10);
- gagaPaging.load(1);
- }
- var fnSearchCallback = function (result) {
- $("#replyList").html('');
- if (result!=null) {
- var html = '';
- html += '<div class="cmt_list_tit">';
- html += ' <strong>댓글</strong><span class="cnt">('+result.replyCount.addComma()+')</span>';
- html += '</div>';
- if (result.replyList.length>0) {
- html += '<ul class="cmt_list">';
- $.each(result.replyList, function (idx, item) {
- html += ' <li>';
- html += ' <div class="cmt_top">';
- html += ' <span class="writer">'+item.maskingCustId+'</span>';
- html += ' <span class="date">'+item.entryDt+'</span>';
- html += ' </div>';
- html += ' <div class="cmt_cont">';
- html += ' <div class="img_wrap clear" onclick="fnImgAttach(this)">';
- if (result.replyAttachList.length>0) {
- for (var i = 0; i < result.replyAttachList.length; i++) {
- if(result.replyAttachList[i].planEntrySq == item.planEntrySq){
- html += ' <span class="pics"><img class="picsThumbs" src="'+ imgUrl +'/'+result.replyAttachList[i].sysFileNm +'"></span>';
- }
- }
- }
-
- html += ' </div>';
- html += ' <p>'+escapeHtml(item.entryVal1)+'</p>';
- if (item.entryCustNo == result.custNo) {
- html += ' <button class="btn btn_default btn_del" value="'+item.planEntrySq+'" onclick="fnDelReply(this.value)"><span>삭제</span></button>';
- }
- html += ' </div>';
- html += ' </li>';
- });
- html += '</ul>';
- }else{
- html += '<div class="nodata" id="replyNoData"> ';
- html += ' <div class="txt_box"> ';
- html += ' <p> ';
- html += ' 등록된 댓글이 없습니다. ';
- html += ' </p> ';
- html += ' </div> ';
- html += '</div> ';
- }
-
- }
- $("#replyList").append(html);
-
- // Create pagination
- gagaPaging.createPagination(result.paging.pageable);
- }
- function escapeHtml(str) {
- var map = {
- '&': '&',
- '<': '<',
- '>': '>',
- '"': '"',
- "'": '''
- };
- return str.replace(/[&<>"']/g, function(m) { return map[m]; });
- }
- // 댓글 삭제
- var fnDelReply = function(obj) {
-
- data = {planEntrySq : obj};
- var jsonData = JSON.stringify(data);
- mcxDialog.confirm("댓글을 삭제 하시겠습니까?", {
- cancelBtnText : "취소",
- sureBtnText : "확인",
- sureBtnClick : function() {
- gagajf.ajaxJsonSubmit('/planning/reply/delete', jsonData,function() {
- ajaxReplyList();
- });
- }
- })
- }
- $('#fileAdd').on('change', function() { fnChooseFile(this); });
- var fnChooseFile = function(obj) {
- var picLength = $(".pics").length;
-
- // multiple 속성이 있으면 files에는 다수의 객체가 할당됨
- var file = obj.files[0];
- if (!gagajf.isNull(file.name)) {
- var extension = "\.(jpg|jpeg|png)$";
- if (!(new RegExp(extension, "i")).test(file.name)) {
- mcxDialog.alertC('이미지는 [jpg, jpeg, png] 파일만 가능합니다.', {
- sureBtnText: "확인",
- sureBtnClick: function() {
- //$(obj).parent('.imgUpload').find('.removes').trigger('click');
- $('.imgUpload').find('span').eq(0).remove();
- }
- });
- return false;
- }
- }
- // 이거 왜 안먹히지
- if (!gagajf.isNull(file.size) && Number(file.size) > (10 * 1000000)) {
- mcxDialog.alertC('이미지는 최대 10MB 이하 파일만 가능합니다.', {
- sureBtnText: "확인",
- sureBtnClick: function() {
- $(obj).parent('.imgUpload').find('.removes').trigger('click');
- }
- });
- return false;
- }
-
- // 파일 업로드
- gagajf.ajaxFileUpload('/common/file/upload?subDir=/reply'
- , file
- , function(result) {
- // 업로드한 파일명 설정
- $(".pics").children().eq(0).append("<input type='hidden' name='orgFileNm' id='orgFileNm"+(picLength+1)+"' value='"+result.oldFileName+"'>");
- $(".pics").children().eq(0).append("<input type='hidden' name='sysFileNm' id='sysFileNm"+(picLength+1)+"' value='"+result.newFileName+"'>");
- }
- );
- }
- // 댓글 등록 버튼 클릭 시
- var fnReplySave = function() {
- var fileLength = $("input[name='sysFileNm']").length;
- var content = $('#replyText').val();
- if (content.length < 2){
- mcxDialog.alert("최소 2자 이상 입력해주세요.");
- return;
- }
-
- var yokList = new Array('<script>','script','D쥐고','D지고','jonna','jot같','mi쳤','ssㅑ','tlqkf','wlfkf','같은새끼','같은새끼','개새끼','개같','개넷','개년','개념빠가','개독','개련','개련','개마이','개부랄','개삼성','개새기','개새끼','개섹','개셈','개소리','개쓰래기','개저씨','계새끼','골빈','골1빈','골빈','괘새끼','껒여','꺼지세요','꺼져요','로꺼져','로꺼져','로꺼.져','꺼.지','나빼썅','나쁜새끼','년놈','늬믜','늬미','니년','니믜','니미럴','닝기리','다꺼져','닥쳐라','닥치세','도라이','뒈져','뒤져버','디져라','디졌','디지고','디질','딴년','또라이','또라인','똘아이','ㅁㅊ','ㅁ친','맘충','보이루','망돌','머갈','먹.금','먹.끔','먹1금','먹금','먹끔','명존','믜칀','믜친','미:놈','미:놈','미1친','미놈','미시친발','미쳣네','미쳤나','미쳤니','미췬','미칀','미친새','미친~','미친개','미친새','미친색','미친ㅋ','미틴','및힌','별창','병1신','병1크','병맛','병신','병크','봊','븅신','빠큐','빡새끼','빻았','빻은','뻐규','뻐큐','뻑유','뻑큐','뻨큐','뼈큐','뽄새','뽄세','삐걱','ㅄ','ㅅ','ㅂ','ㅅ.ㅂ','ㅅ1ㅂ','ㅅ1발','ㅅㄲ네','ㅅㄲ들','ㅅ루','ㅅㅋ','ㅅㅡ루','사새끼','새.끼','새1끼','새1키','새77ㅣ','새끼라','새끼야','새퀴','새킈','새키','색희','색히','샊기','샊히','샹년','섀키','솔1친','솔친','쉬발','쉬버','쉬이바','쉬이이','쉬이이이','쉬펄','슈1발','슈레기','슈발','슈벌','슈우벌','슈ㅣ발','스.루','스벌','스죄','스타죄국','싑창','시1발','시미발친','시미친발','시바','시바류','시바시바','시바알','시바앙','시발','시방새','시벌탱','시볼탱','시부럴','시부렬','시부울','시뷰럴','시뷰렬','시빨','시새발끼','시이발','시친발미','시키가','시팔','시펄','십창','십팔','ㅆ1ㄺ','ㅆ1ㅂ','ㅆㄹㄱ','ㅆㄺ','ㅆㅂ','싸가지없','싸가지없','싸물어','쌉가','쌍년','쌍놈','쌔끼','썅','썌끼','쒸펄','쓰1레기','쓰래기같','쓰레기새','쓰레기새','쓰렉','씝창','씨1발','씨바라','씨바알','씨발','씨방새','씨버럼','씨벌','씨벌탱','씨볼탱','씨부럴','씨부렬','씨뷰럴','씨뷰렬','씨빠빠','씨빨','씨뻘','씨새발끼','씨이발','씨팔','씹귀','씹덕','씹못','씹뻐럴','씹새끼','씹쌔','씹창','씹치','씹팔','씹할','ㅇㅍㅊㅌ','아가리','아닥','아오ㅅㅂ','아오시바','아오ㅅㅂ','아오시바','애미','앰','앰창','얘쁘','얘쁜','얪','에라이퉤','에라이퉷','에라이퉤','에라이퉷','엠뷩신','엠븽신','엠빙신','엠생','엠창','엿같','엿이나','예.질','예1질','예질','옘병','외1퀴','외퀴','웅앵','웅엥','은년','은새끼','이새끼','이따위','이새끼','입털','입털','ㅈ.ㄴ','ㅈㄴ','ㅈㄹ','절라','정병','젖같','젗같','젼나','젼낰','졀라','졀리','졌같은','졏같','조낸','조온','조온나','족까','존나','존나','존','나','존.나','존1','존1나','존귀','존귘','존ㄴ나','존나','존낙','존내','졸라','좁밥','조센징','짱깨','짱개','짱꼴라','꼴라','착짱','죽짱','짱골라','좃','종나','좆','좆까','좇같','죠낸','죠온나','죤나','죤내','죵나','죶','죽어버려','죽여버리고','죽여버리고','죽여불고','죽여뿌고','중립충','줬같은','쥐랄','쥰나','쥰내','쥰니','쥰트','즤랄','지랄','지1랄','지1뢰','지껄이','지들이','지랄','지롤','지뢰','지인지조','짱깨','짱께','쪼녜','쪼다','착짱죽짱','섬숭이','쪽본','쪽1바리','쪽바리','쪽발','쫀맛','쫀1','쫀귀','쫀맛','쫂','쫓같','쬰잘','쬲','찝째끼','창년','창녀','창놈','창넘','처먹','凸','첫빠','쳐마','친년','친놈','친구년','친년','친노마','친놈','손놈','남미새','여미새','혐석','호로새끼','호로잡','화낭년','화냥년','후.려','후1려','후1빨','후려','후빨','ㅗ');
-
- if(yokList.indexOf(content)>=0){
- mcxDialog.alert("입력 불가한 내용을 포함하고 있습니다.");
- $('#replyText').val('');
- $('#cmt_cnt').text(0);
- return;
- }
-
- //파일관련 데이터 담기
- var multiReplyOrgFile = [];
- var multiReplySysFile = [];
- for (var i = 0; i < fileLength; i++) {
- multiReplyOrgFile.push($(".pics").eq(i).find('input[name="orgFileNm"]').val());
- multiReplySysFile.push($(".pics").eq(i).find('input[name="sysFileNm"]').val());
- }
- data = {entryVal1 : content,
- planSq : plan.planSq,
- multiReplyOrgFile : multiReplyOrgFile,
- multiReplySysFile : multiReplySysFile};
- var jsonData = JSON.stringify(data);
- mcxDialog.confirm("댓글을 등록 하시겠습니까?", {
- cancelBtnText : "취소",
- sureBtnText : "확인",
- sureBtnClick : function() {
- gagajf.ajaxJsonSubmit('/planning/reply/save', jsonData,function() {
- ajaxReplyList();
- $('#replyText').val('');
- $('.pics').remove();
- //댓글 작성시 글자 카운트
- $('#cmt_cnt').text(0);
- });
- }
- })
- }
- var fnImgAttach = function (obj) {
- $("#thumbImgPop .swiper-wrapper").empty();
- //var popSlideIndex = $(obj).find('span').length -1;
- var popSlideIndex = 0;
- contactPopSwiper.slideTo(popSlideIndex);
- contactPopSwiper.update();
-
- var contactImglength = $(obj).find('span').length;
- var popImgHtml = "";
- for (i = 0; i < contactImglength; i++) {
-
- var contactImgSrc =$(obj).find('img').eq(i).attr('src');
- popImgHtml += "<div class='swiper-slide'><div class='pop_img' style='background-image:url("+ contactImgSrc +")'></div></div>";
- }
- $("#thumbImgPop .swiper-wrapper").append(popImgHtml);
- $('#thumbImgPop').modal("show");
-
- return false;
- }
- /* SLIDE - 댓글 이미지 팝업 */
- var contactPopSwiper = new Swiper('.thumb_img_pop .swiper-container', {
- navigation: {
- nextEl: '.thumb_img_pop .swiper-button-next',
- prevEl: '.thumb_img_pop .swiper-button-prev',
- },
- pagination: {
- el: '.thumb_img_pop .swiper-pagination',
- clickable: true,
- },
- observer:true,
- observeParents: true,
- });
- $(document).ready( function() {
- ajaxReplyList();
- //공유 버튼 토글
- $("button[data-name=openShare]").on("click", function(){
- $(this).toggleClass("on").next(".shareWrap").toggleClass("on");
- return false;
- });
- //영역밖 클릭으로 공유토글 닫기
- $("body").on('click', function(e) {
- if(!$(".shareWrap.on").parent().has(e.target).length) {
- $("button[data-name=openShare]").removeClass("on");
- $(".shareWrap").removeClass("on");
- };
- });
-
- $('.btn_copy').bind('click', function() {
- copyToClipboard();
- });
- //팝업 - 쿠폰사용안내
- $(document).on('click','#btn_couponInfo_pop',function(e){
- $("#couponInfoPop .modal-content").load("popup_couponInfo.html");
- $("#couponInfoPop").modal("show");
- return false;
- });
- $("#couponInfoPop_close").click(function() {
- $.modal.close();
- });
- //팝업 - 상품 베스트 리뷰 (detail)
- $(document).on('click','#btn_pdBestReview_pop, .area_rv_best .best_review a',function(e){
- $("#pdBestReviewPop .modal-content").load("pd_bestreviewdetail_pop.html");
- $("#pdBestReviewPop").modal("show");
- return false;
- });
- $("#pdBestReviewPop_close").click(function() {
- $.modal.close();
- });
- /* SLIDE - 상단 프로모션 배너 */
- var promotion_visual_slide = new Swiper ('.dp_detail_visual .promotion_visual.type2 .swiper-container', {
- loop: true,
- slidesPerView: 1,
- speed : 1500,
- navigation: {
- nextEl: '.promotion_visual.type2 .swiper-button-next',
- prevEl: '.promotion_visual.type2 .swiper-button-prev',
- },
- pagination: {
- el: '.promotion_visual.type2 .swiper-pagination',
- clickable: true,
- },
- });
- /* SLIDE - 중간 배너 */
- var mid_banner_slide = new Swiper ('.dp_mid_banner .mid_banner .swiper-container', {
- loop: true,
- slidesPerView: 1,
- speed : 1500,
- navigation: {
- nextEl: '.mid_banner .swiper-button-next',
- prevEl: '.mid_banner .swiper-button-prev',
- },
- pagination: {
- el: '.mid_banner .swiper-pagination',
- clickable: true,
- },
- });
- /* SLIDE - 대표상품 슬라이드 2열 상품 */
- var dp_listItems_slide1 = new Swiper ('.dp_listItems_cont.type2 .swiper-container', {
- loop: false,
- slidesPerView: 2,
- slidesPerGroup: 2,
- spaceBetween: 20,
- speed : 800,
- navigation: {
- nextEl: '.dp_listItems_cont.type2 .swiper-button-next',
- prevEl: '.dp_listItems_cont.type2 .swiper-button-prev',
- },
- pagination: {
- el: '.dp_listItems_cont.type2 .swiper-pagination',
- clickable: true,
- },
- });
- /* SLIDE - 대표상품 슬라이드 4열 상품 */
- var dp_listItems_slide2 = new Swiper ('.dp_listItems_cont.type3 .swiper-container', {
- loop: false,
- slidesPerView: 4,
- slidesPerGroup: 4,
- spaceBetween: 20,
- speed : 800,
- navigation: {
- nextEl: '.dp_listItems_cont.type3 .swiper-button-next',
- prevEl: '.dp_listItems_cont.type3 .swiper-button-prev',
- },
- pagination: {
- el: '.dp_listItems_cont.type3 .swiper-pagination',
- clickable: true,
- },
- });
- /* SLIDE - 다른 기획전,이벤트 보기 */
- var other_slide_slide = new Swiper ('.other_promotion_slide .swiper-container', {
- slidesPerView: 5,
- spaceBetween: 20,
- navigation: {
- nextEl: '.other_promotion_slide .swiper-button-next',
- prevEl: '.other_promotion_slide .swiper-button-prev',
- },
- });
-
- // 첨부파일 갯수제한
- $('.imgUpload .fileAdd').click(function(){
- if (!cfCheckLogin()) {
- mcxDialog.alert("로그인 후 참여 가능합니다.");
- $("#replyText").val('');
- return false;
- }
-
- var maxFileLength = 10; /* 최대 파일 갯수를 입력해 주세요 */
- if (imgFiles.length >= maxFileLength) {
- mcxDialog.alert('이미지는 최대' + maxFileLength +'장 까지 첨부 가능합니다.');
- $('#fileAdd').attr("disabled",true);
- } else if(imgFiles.length < maxFileLength){
- $('#fileAdd').removeAttr("disabled");
- }
- });
-
- //댓글 작성시 글자 카운트
- $('.cmt_ans').keyup(function (e){
- var content = $(this).val();
- $('#cmt_cnt').html(content.length);
- if (content.length > 500){
- mcxDialog.alert("최대 500자까지 입력 가능합니다.");
- $(this).val(content.substring(0, 500));
- $('#cmt_cnt').html("500");
- }
- });
-
- });
- </script>
- </th:block>
- </body>
- </html>
|