|
|
@@ -19,12 +19,32 @@
|
|
|
<form class="form_wrap form_full" name="orderGiftForm" id="orderGiftForm">
|
|
|
<main role="" id="" class="container od">
|
|
|
<section class="content od_gift">
|
|
|
- <div class="inner wide">
|
|
|
- <div class="gift_banner">
|
|
|
- <img src="/images/mo/logo_STYLE24_white.png" alt="스타일24 로고">
|
|
|
- <p>고객님께 선물이 도착했습니다!</p>
|
|
|
+ <!-- 배송지 입력기한이 경과 -->
|
|
|
+ <th:block th:if="${orderInfo.giftPackCloseYn} == 'N'">
|
|
|
+ <div class="inner wide">
|
|
|
+ <div class="gift_banner">
|
|
|
+ <img src="/images/mo/logo_STYLE24_white.png" alt="스타일24 로고">
|
|
|
+ <p>고객님께 선물이 도착했습니다!</p>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </th:block>
|
|
|
+ <!-- //배송지 입력기한이 경과 -->
|
|
|
+
|
|
|
+ <!-- 배송지 입력기한이 경과 -->
|
|
|
+ <th:block th:if="${orderInfo.giftPackCloseYn} == 'Y'">
|
|
|
+ <div class="inner wide">
|
|
|
+ <div class="gift_banner timeout">
|
|
|
+ <img src="/images/mo/ico_big_check.png" alt="배송지 입력기한 경과">
|
|
|
+ <p>배송지 입력기한이 경과해<br>선물을 수령하실 수 없습니다.</p>
|
|
|
+ <dl>
|
|
|
+ <dt>배송지 입력기한</dt>
|
|
|
+ <dd th:text="${orderInfo.giftPackCloseDt}"></dd>
|
|
|
+ </dl>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </th:block>
|
|
|
+ <!-- 배송지 입력기한이 경과 -->
|
|
|
+
|
|
|
<div class="inner wide">
|
|
|
<!-- 폴딩리스트 -->
|
|
|
<div class="ui_row">
|
|
|
@@ -69,13 +89,18 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="goods_btn_wrap btn_group_flex">
|
|
|
- <div>
|
|
|
- <button type="button" class="btn btn_default btn_option_pop02">
|
|
|
- <span>옵션변경</span>
|
|
|
- </button>
|
|
|
- </div> <!-- 옵션변경_팝업02 호출 -->
|
|
|
- </div>
|
|
|
+
|
|
|
+ <!-- 배송지 입력기한이 경과 -->
|
|
|
+ <th:block th:if="${orderInfo.giftPackCloseYn} == 'N'">
|
|
|
+ <div class="goods_btn_wrap btn_group_flex">
|
|
|
+ <div>
|
|
|
+ <button type="button" class="btn btn_default btn_option_pop02">
|
|
|
+ <span>옵션변경</span>
|
|
|
+ </button>
|
|
|
+ </div> <!-- 옵션변경_팝업02 호출 -->
|
|
|
+ </div>
|
|
|
+ </th:block>
|
|
|
+ <!-- //배송지 입력기한이 경과 -->
|
|
|
</div>
|
|
|
</th:block>
|
|
|
</div>
|
|
|
@@ -110,217 +135,225 @@
|
|
|
<!-- 폴딩리스트 -->
|
|
|
</div>
|
|
|
|
|
|
- <!-- //배송지 정보 변경불가 -->
|
|
|
- <th:block th:if="${giftAddrInpYn} == 'Y'">
|
|
|
- <div class="inner wide">
|
|
|
- <!-- 폴딩리스트 -->
|
|
|
- <div class="ui_row">
|
|
|
- <div class="foldGroup shipfold">
|
|
|
- <ul>
|
|
|
- <li>
|
|
|
- <div class="fold_head">
|
|
|
- <a href="javascript:void(0)">
|
|
|
- <div class="fold_tit"><span>선물 받으실 분 배송지</span></div>
|
|
|
- <div class="data">
|
|
|
- <span class="recipAddr" th:text="${orderInfo.recipBaseAddr} + ' ' + ${orderInfo.recipDtlAddr}"></span>
|
|
|
- </div>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div class="fold_cont">
|
|
|
- <div class="ship_info">
|
|
|
- <button type="button" id="btn_adrsChange_pop" class="btn_popup"><span>배송지 변경</span></button>
|
|
|
- <dl>
|
|
|
- <div class="company">
|
|
|
- <dt><span class="sr-only">배송지명</span></dt>
|
|
|
- <dd id="recipNm" th:text="${orderInfo.recipNm}"></dd>
|
|
|
- </div>
|
|
|
- <div class="phone">
|
|
|
- <dt><span class="sr-only">휴대폰 번호</span></dt>
|
|
|
- <dd id="recipPhnno" th:text="${orderInfo.recipPhnno}"></dd>
|
|
|
+ <!-- 배송지 입력기한이 경과 -->
|
|
|
+ <th:block th:if="${orderInfo.giftPackCloseYn} == 'N'">
|
|
|
+ <!-- //배송지 정보 변경불가 -->
|
|
|
+ <th:block th:if="${delvRegYn} == 'Y'">
|
|
|
+ <div class="inner wide">
|
|
|
+ <!-- 폴딩리스트 -->
|
|
|
+ <div class="ui_row">
|
|
|
+ <div class="foldGroup shipfold">
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <div class="fold_head">
|
|
|
+ <a href="javascript:void(0)">
|
|
|
+ <div class="fold_tit"><span>선물 받으실 분 배송지</span></div>
|
|
|
+ <div class="data">
|
|
|
+ <span class="recipAddr" th:text="${orderInfo.recipBaseAddr} + ' ' + ${orderInfo.recipDtlAddr}"></span>
|
|
|
</div>
|
|
|
- <div class="addr">
|
|
|
- <dt><span class="sr-only">배송주소</span></dt>
|
|
|
- <dd id="recipAddr" th:text="${orderInfo.recipBaseAddr} + ' ' + ${orderInfo.recipDtlAddr}"></dd>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ <div class="fold_cont">
|
|
|
+ <div class="ship_info">
|
|
|
+ <button type="button" id="btn_adrsChange_pop" class="btn_popup"><span>배송지 변경</span></button>
|
|
|
+ <dl>
|
|
|
+ <div class="company">
|
|
|
+ <dt><span class="sr-only">배송지명</span></dt>
|
|
|
+ <dd id="recipNm" th:text="${orderInfo.recipNm}"></dd>
|
|
|
+ </div>
|
|
|
+ <div class="phone">
|
|
|
+ <dt><span class="sr-only">휴대폰 번호</span></dt>
|
|
|
+ <dd id="recipPhnno" th:text="${orderInfo.recipPhnno}"></dd>
|
|
|
+ </div>
|
|
|
+ <div class="addr">
|
|
|
+ <dt><span class="sr-only">배송주소</span></dt>
|
|
|
+ <dd id="recipAddr" th:text="${orderInfo.recipBaseAddr} + ' ' + ${orderInfo.recipDtlAddr}"></dd>
|
|
|
+ </div>
|
|
|
+ <div class="ship_request">
|
|
|
+ <dt>배송요청 사항</dt>
|
|
|
+ <dd id="delvMemo" th:text="${orderInfo.delvMemo}"></dd>
|
|
|
+ </div>
|
|
|
+ </dl>
|
|
|
+ <div class="btn_group btn_group_flex">
|
|
|
+ <div>
|
|
|
+ <button type="button" class="btn btn_primary" id="btn_plz_delv">
|
|
|
+ <span>선물 배송 요청</span>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="ship_request">
|
|
|
- <dt>배송요청 사항</dt>
|
|
|
- <dd id="delvMemo" th:text="${orderInfo.delvMemo}"></dd>
|
|
|
+ <div class="info_txt">
|
|
|
+ <ul>
|
|
|
+ <li>배송지 등록이 완료되면 선물상품 배송이 시작됩니다.</li>
|
|
|
+ <li>배송이 시작된 후는 배송지 변경이 불가능합니다.</li>
|
|
|
+ <li>배송기한 내(선물받은 날로부터 3일) 배송지 미입력시 선물받기가 불가능합니다.</li>
|
|
|
+ </ul>
|
|
|
</div>
|
|
|
- </dl>
|
|
|
- <div class="btn_group btn_group_flex">
|
|
|
- <div><button type="button" class="btn btn_primary"><span>선물 배송 요청</span></button></div>
|
|
|
- </div>
|
|
|
- <div class="info_txt">
|
|
|
- <ul>
|
|
|
- <li>배송지 등록이 완료되면 선물상품 배송이 시작됩니다.</li>
|
|
|
- <li>배송이 시작된 후는 배송지 변경이 불가능합니다.</li>
|
|
|
- <li>배송기한 내(선물받은 날로부터 3일) 배송지 미입력시 선물받기가 불가능합니다.</li>
|
|
|
- </ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ <!-- 폴딩리스트 -->
|
|
|
</div>
|
|
|
- <!-- 폴딩리스트 -->
|
|
|
- </div>
|
|
|
- </th:block>
|
|
|
- <!-- //배송지 정보 변경불가 -->
|
|
|
-
|
|
|
- <!-- (배송지 변경 클릭 후) 선물 받으실 분 배송지 입력 -->
|
|
|
- <th:block th:if="${giftAddrInpYn} == 'N'">
|
|
|
- <div class="inner wide">
|
|
|
- <div class="ui_row">
|
|
|
- <div class="foldGroup shipfold">
|
|
|
- <ul>
|
|
|
- <li>
|
|
|
- <div class="fold_head">
|
|
|
- <a href="javascript:void(0)">
|
|
|
- <div>
|
|
|
- <div class="fold_tit">
|
|
|
- <div class="lap2"><span>선물 받으실 분 배송지</span></div>
|
|
|
+ </th:block>
|
|
|
+ <!-- //배송지 정보 변경불가 -->
|
|
|
+
|
|
|
+ <!-- (배송지 변경 클릭 후) 선물 받으실 분 배송지 입력 -->
|
|
|
+ <th:block th:if="${delvRegYn} == 'N'">
|
|
|
+ <div class="inner wide">
|
|
|
+ <div class="ui_row">
|
|
|
+ <div class="foldGroup shipfold">
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <div class="fold_head">
|
|
|
+ <a href="javascript:void(0)">
|
|
|
+ <div>
|
|
|
+ <div class="fold_tit">
|
|
|
+ <div class="lap2"><span>선물 받으실 분 배송지</span></div>
|
|
|
+ </div>
|
|
|
+ <div class="data"><span id="recipAddr"></span></div>
|
|
|
</div>
|
|
|
- <div class="data"><span id="recipAddr"></span></div>
|
|
|
- </div>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div class="fold_cont">
|
|
|
- <div class="tbl_wrap">
|
|
|
- <div class="tbl tbl_dlvr">
|
|
|
- <table>
|
|
|
- <colgroup>
|
|
|
- <col width="*">
|
|
|
- </colgroup>
|
|
|
- <tbody>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <span class="sr-only">배송지명(이름 등)</span>
|
|
|
- <input type="text" class="form_control" name="recipNm" placeholder="배송지명(이름 등)" th:value="${orderInfo.recipNm}">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <span class="sr-only">휴대폰 번호</span>
|
|
|
- <input type="text" class="form_control" name="recipPhnno" placeholder="휴대폰 번호" th:value="${orderInfo.recipPhnno}">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <span class="sr-only">배송 주소</span>
|
|
|
- <div class="input_wrap">
|
|
|
- <input type="hidden" class="form_control" name="recipZipcode" placeholder="우편번호" readonly="readonly">
|
|
|
- <input type="hidden" class="form_control" name="recipBaseAddr" placeholder="기본주소" readonly="readonly">
|
|
|
- <input type="text" class="form_control" name="recipAddr" placeholder="배송주소" readonly="readonly">
|
|
|
- <input type="text" class="form_control" name="recipDtlAddr" placeholder="상세주소">
|
|
|
- <button type="button" class="btn btn_sch" onclick="fnOpenDaumAddr();">
|
|
|
- <span class="sr-only">우편번호 찾기</span>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
+ </a>
|
|
|
</div>
|
|
|
- <div class="tbl_wrap">
|
|
|
- <div class="tbl_tit"><h3>배송 요청사항</h3></div>
|
|
|
- <div class="tbl tbl_request">
|
|
|
- <table>
|
|
|
- <colgroup>
|
|
|
- <col width="*">
|
|
|
- </colgroup>
|
|
|
- <tbody>
|
|
|
- <tr>
|
|
|
- <th class="sr-only">문 앞</th>
|
|
|
- <td>
|
|
|
- <div class="form_field">
|
|
|
- <input type="radio" name="radio" id="rdi-12" value="문 앞">
|
|
|
- <label for="rdi-12">
|
|
|
- <span>문 앞</span>
|
|
|
- </label>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th class="sr-only">직접 받고 부재 시 문 앞</th>
|
|
|
- <td>
|
|
|
- <div class="form_field">
|
|
|
- <input type="radio" name="radio" id="rdi-22" value="직접 받고 부재 시 문 앞">
|
|
|
- <label for="rdi-22">
|
|
|
- <span>직접 받고 부재 시 문 앞</span>
|
|
|
- </label>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th class="sr-only">경비실</th>
|
|
|
- <td>
|
|
|
- <div class="form_field">
|
|
|
- <input type="radio" name="radio" id="rdi-32" value="경비실">
|
|
|
- <label for="rdi-32">
|
|
|
- <span>경비실</span>
|
|
|
- </label>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th class="sr-only">택배함</th>
|
|
|
- <td>
|
|
|
- <div class="form_field">
|
|
|
- <input type="radio" name="radio" id="rdi-42" value="택배함">
|
|
|
- <label for="rdi-42">
|
|
|
- <span>택배함</span>
|
|
|
- </label>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th class="sr-only">기타사항</th>
|
|
|
- <td>
|
|
|
- <div class="form_field">
|
|
|
- <input type="radio" name="radio" id="rdi-52" value="기타사항">
|
|
|
- <label for="rdi-52">
|
|
|
- <span>기타사항</span>
|
|
|
- </label>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th class="sr-only">보관 장소만 입력(필수)</th>
|
|
|
- <td>
|
|
|
- <div class="form_text">
|
|
|
- <input type="text" placeholder="보관 장소만 입력 (필수)">
|
|
|
- <p class="desc_txt">보관 장소 외 다른 내용 입력시 통보 없이 삭제 될 수 있습니다.</p>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- <div class="btn_group btn_group_flex">
|
|
|
- <div>
|
|
|
- <button type="button" id="btn_delivery_addr_save" class="btn btn_dark">
|
|
|
- <span>배송지 등록</span>
|
|
|
- </button>
|
|
|
- </div> <!-- 210406_ID 추가 -->
|
|
|
+ <div class="fold_cont">
|
|
|
+ <div class="tbl_wrap">
|
|
|
+ <div class="tbl tbl_dlvr">
|
|
|
+ <table>
|
|
|
+ <colgroup>
|
|
|
+ <col width="*">
|
|
|
+ </colgroup>
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <span class="sr-only">배송지명(이름 등)</span>
|
|
|
+ <input type="text" class="form_control" name="recipNm" placeholder="배송지명(이름 등)" th:value="${orderInfo.recipNm}">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <span class="sr-only">휴대폰 번호</span>
|
|
|
+ <input type="text" class="form_control" name="recipPhnno" placeholder="휴대폰 번호" th:value="${orderInfo.recipPhnno}">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <span class="sr-only">배송 주소</span>
|
|
|
+ <div class="input_wrap">
|
|
|
+ <input type="hidden" class="form_control" name="recipZipcode" placeholder="우편번호" readonly="readonly">
|
|
|
+ <input type="hidden" class="form_control" name="recipBaseAddr" placeholder="기본주소" readonly="readonly">
|
|
|
+ <input type="text" class="form_control" name="recipAddr" placeholder="배송주소" readonly="readonly">
|
|
|
+ <input type="text" class="form_control" name="recipDtlAddr" placeholder="상세주소">
|
|
|
+ <button type="button" class="btn btn_sch" onclick="fnOpenDaumAddr();">
|
|
|
+ <span class="sr-only">우편번호 찾기</span>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="info_txt">
|
|
|
- <ul>
|
|
|
- <li>배송지 등록이 완료되면 선물상품 배송이 시작됩니다.</li>
|
|
|
- <li>배송이 시작된 후는 배송지 변경이 불가능합니다.</li>
|
|
|
- <li>배송기한 내(선물받은 날로부터 3일) 배송지 미입력시 선물받기가 불가능합니다.</li>
|
|
|
- </ul>
|
|
|
+ <div class="tbl_wrap">
|
|
|
+ <div class="tbl_tit"><h3>배송 요청사항</h3></div>
|
|
|
+ <div class="tbl tbl_request">
|
|
|
+ <table>
|
|
|
+ <colgroup>
|
|
|
+ <col width="*">
|
|
|
+ </colgroup>
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <th class="sr-only">문 앞</th>
|
|
|
+ <td>
|
|
|
+ <div class="form_field">
|
|
|
+ <input type="radio" name="rdi-request1" id="rdi-12" value="문 앞">
|
|
|
+ <label for="rdi-12">
|
|
|
+ <span>문 앞</span>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="sr-only">직접 받고 부재 시 문 앞</th>
|
|
|
+ <td>
|
|
|
+ <div class="form_field">
|
|
|
+ <input type="radio" name="rdi-request1" id="rdi-22" value="직접 받고 부재 시 문 앞">
|
|
|
+ <label for="rdi-22">
|
|
|
+ <span>직접 받고 부재 시 문 앞</span>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="sr-only">경비실</th>
|
|
|
+ <td>
|
|
|
+ <div class="form_field">
|
|
|
+ <input type="radio" name="rdi-request1" id="rdi-32" value="경비실">
|
|
|
+ <label for="rdi-32">
|
|
|
+ <span>경비실</span>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="sr-only">택배함</th>
|
|
|
+ <td>
|
|
|
+ <div class="form_field">
|
|
|
+ <input type="radio" name="rdi-request1" id="rdi-42" value="택배함">
|
|
|
+ <label for="rdi-42">
|
|
|
+ <span>택배함</span>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="sr-only">기타사항</th>
|
|
|
+ <td>
|
|
|
+ <div class="form_field">
|
|
|
+ <input type="radio" name="rdi-request1" id="rdi-52" value="기타사항">
|
|
|
+ <label for="rdi-52">
|
|
|
+ <span>기타사항</span>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="sr-only">보관 장소만 입력(필수)</th>
|
|
|
+ <td>
|
|
|
+ <div class="form_text">
|
|
|
+ <input type="text" name="delvMemoText" placeholder="보관 장소만 입력 (필수)" disabled>
|
|
|
+ <p class="desc_txt">보관 장소 외 다른 내용 입력시 통보 없이 삭제 될 수 있습니다.</p>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div class="btn_group btn_group_flex">
|
|
|
+ <div>
|
|
|
+ <button type="button" id="btn_delivery_addr_save" class="btn btn_dark">
|
|
|
+ <span>배송지 등록</span>
|
|
|
+ </button>
|
|
|
+ </div> <!-- 210406_ID 추가 -->
|
|
|
+ </div>
|
|
|
+ <div class="info_txt">
|
|
|
+ <ul>
|
|
|
+ <li>배송지 등록이 완료되면 선물상품 배송이 시작됩니다.</li>
|
|
|
+ <li>배송이 시작된 후는 배송지 변경이 불가능합니다.</li>
|
|
|
+ <li>배송기한 내(선물받은 날로부터 3일) 배송지 미입력시 선물받기가 불가능합니다.</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </th:block>
|
|
|
+ <!-- //(배송지 변경 클릭 후) 선물 받으실 분 배송지 입력 -->
|
|
|
</th:block>
|
|
|
- <!-- //(배송지 변경 클릭 후) 선물 받으실 분 배송지 입력 -->
|
|
|
+ <!-- //배송지 입력기한이 경과 -->
|
|
|
|
|
|
</section>
|
|
|
</main>
|
|
|
@@ -330,8 +363,7 @@
|
|
|
<script th:inline="javascript">
|
|
|
// 배송관련정보 변수선언
|
|
|
var ordNo = [[${orderInfo.ordNo}]] // 배송목록
|
|
|
-var isLogin = [[${isLogin}]]; // 로그인여부
|
|
|
-var delvAddrSq = [[${delvAddrSq}]]; // 배송지번호
|
|
|
+var delvAddrSq = [[${orderInfo.delvAddrSq}]]; // 배송지번호
|
|
|
var giftMsg = [[${orderInfo.giftMsg}]]; // 선물메세지
|
|
|
|
|
|
// item.questContent.replaceAll("\n", "</br>")
|
|
|
@@ -340,6 +372,20 @@ var giftMsg = [[${orderInfo.giftMsg}]]; // 선물메세지
|
|
|
$(document).ready( function() {
|
|
|
// 선물메시지
|
|
|
$("#giftMsg").html(giftMsg.replaceAll("\n", "</br>"));
|
|
|
+
|
|
|
+ // 배송요청사항 버튼기능
|
|
|
+ $("#orderGiftForm input[name=rdi-request1]").each(function(){
|
|
|
+ // 기타기능 버튼기능
|
|
|
+ $(this).on("click", function(){
|
|
|
+ var temp = $(this).parent().find('span').text();
|
|
|
+ $("#orderGiftForm input[name=delvMemoText]").val("");
|
|
|
+ if (temp == "기타사항") {
|
|
|
+ $("#orderGiftForm input[name=delvMemoText]").attr("disabled", false);
|
|
|
+ } else {
|
|
|
+ $("#orderGiftForm input[name=delvMemoText]").attr("disabled", true);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
// 2.1 회원 배송지변경 팝업열기
|
|
|
@@ -362,6 +408,33 @@ $('#btn_adrsChange_pop').on("click", function(){
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+// 배송요청버튼
|
|
|
+$("#btn_plz_delv").on("click", function() {
|
|
|
+
|
|
|
+ mcxDialog.confirm("입력된 주소로 상품이 배송이 시작됩니다. 배송요청을 하시겠습니까?", {
|
|
|
+ cancelBtnText : "취소",
|
|
|
+ sureBtnText : "확인",
|
|
|
+ sureBtnClick: function() {
|
|
|
+ var jsonObj = {
|
|
|
+ "ordNo" : ordNo
|
|
|
+ }
|
|
|
+
|
|
|
+ gagajf.ajaxJsonSubmit(
|
|
|
+ "/order/giftDelvComplete"
|
|
|
+ , JSON.stringify(jsonObj)
|
|
|
+ , function (result) {
|
|
|
+ mcxDialog.alertC("선물 배송 요청이 완료 되었습니다.", {
|
|
|
+ sureBtnText : "확인",
|
|
|
+ sureBtnClick : function() {
|
|
|
+ location.href = "/";
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ )
|
|
|
+ }
|
|
|
+ });
|
|
|
+});
|
|
|
+
|
|
|
// 1.18 배송지정보 설정
|
|
|
var delvAddrSet = function(delvObj) {
|
|
|
|
|
|
@@ -398,7 +471,7 @@ var delvAddrSet = function(delvObj) {
|
|
|
)
|
|
|
}
|
|
|
|
|
|
-//배송지등록버튼
|
|
|
+// 배송지등록버튼
|
|
|
$("#btn_delivery_addr_save").on("click", function(){
|
|
|
|
|
|
// 유효성체크
|
|
|
@@ -406,23 +479,15 @@ $("#btn_delivery_addr_save").on("click", function(){
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- // 기본배송지여부
|
|
|
- var defaultYn = "N";
|
|
|
- if ($("#orderGiftForm input[name=defaultYn]").is(":checked")) {
|
|
|
- defaultYn = "Y";
|
|
|
- }
|
|
|
-
|
|
|
// 기타사항일때 텍스트 등록
|
|
|
var delvMemo = $("#orderGiftForm input[name=rdi-request1]:checked").parent().find('span').text();
|
|
|
if ("기타사항" == delvMemo) {
|
|
|
delvMemo = $("#orderGiftForm input[name=delvMemoText]").val();
|
|
|
}
|
|
|
|
|
|
- // custDelvAddrSq 부모창으로 전달
|
|
|
- var delvObj = {
|
|
|
- "custDelvAddrSq" : 0
|
|
|
- , "dispYn" : "Y"
|
|
|
- , "defaultYn" : defaultYn
|
|
|
+ // 변수값 설정
|
|
|
+ var jsonObj = {
|
|
|
+ "delvAddrSq" : delvAddrSq
|
|
|
, "recipNm" : $("#orderGiftForm input[name=recipNm]").val()
|
|
|
, "recipPhnno" : $("#orderGiftForm input[name=recipPhnno]").val()
|
|
|
, "recipZipcode" : $("#orderGiftForm input[name=recipZipcode]").val()
|
|
|
@@ -431,40 +496,21 @@ $("#btn_delivery_addr_save").on("click", function(){
|
|
|
, "delvMemo" : delvMemo
|
|
|
}
|
|
|
|
|
|
- // 비회원
|
|
|
- if (isLogin == false) {
|
|
|
- // 부모장으로 값 전닫
|
|
|
- delvAddrSet(delvObj);
|
|
|
- // 팝업닫기
|
|
|
- $(".close-modal").trigger("click");
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- var jsonData = JSON.stringify(delvObj);
|
|
|
-
|
|
|
- $.ajax( {
|
|
|
- type : "POST",
|
|
|
- url : '/common/createCustDeliveryAddr',
|
|
|
- data : jsonData,
|
|
|
- dataType : 'html',
|
|
|
- beforeSend : function(xhr, settings) {
|
|
|
- xhr.setRequestHeader("AJAX" , "true");
|
|
|
- xhr.setRequestHeader('Accept' , 'application/json');
|
|
|
- xhr.setRequestHeader('Content-Type' , 'application/json');
|
|
|
- gagajf.showProgressbar(true);
|
|
|
- },
|
|
|
- success : function(result) {
|
|
|
- if (result != null) {
|
|
|
- delvObj.custDelvAddrSq = result;
|
|
|
-
|
|
|
- // 부모장으로 값 전닫
|
|
|
- delvAddrSet(delvObj);
|
|
|
- }
|
|
|
+ gagajf.ajaxJsonSubmit(
|
|
|
+ "/common/updateDeliverAddr"
|
|
|
+ , JSON.stringify(jsonObj)
|
|
|
+ , function (result) {
|
|
|
|
|
|
- // 팝업닫기
|
|
|
- $(".close-modal").trigger("click");
|
|
|
+ gagajf.ajaxJsonSubmit(
|
|
|
+ "/common/updateDeliverAddr"
|
|
|
+ , JSON.stringify(jsonObj)
|
|
|
+ , function (result) {
|
|
|
+ mcxDialog.alert("수정되었습니다.");
|
|
|
+ location.href = "/order/giftComplete?" + "ordNo=" + ordNo;
|
|
|
+ }
|
|
|
+ )
|
|
|
}
|
|
|
- });
|
|
|
+ )
|
|
|
});
|
|
|
|
|
|
// 유효성체크 함수
|
|
|
@@ -515,9 +561,9 @@ var fnOpenDaumAddr = function() {
|
|
|
$('#orderGiftForm input[name=recipDtlAddr]').focus();
|
|
|
|
|
|
cfnCloseDaumAddr();
|
|
|
-
|
|
|
- $("#daumZipcodePop").hide();
|
|
|
+
|
|
|
$("body").css("overflow", "");
|
|
|
+ $(".close-modal").trigger("click");
|
|
|
},
|
|
|
width: '100%'
|
|
|
});
|