fix : 구독서비스 결제 적용
This commit is contained in:
@@ -703,11 +703,15 @@
|
||||
|
||||
if (radioValue === 'Default') {
|
||||
if ($(this).is(':checked')) {
|
||||
$('#recpntNm').val($('#mbrNm').val());
|
||||
$('.recpntNm_ordrInfo_text').text($('#mbrNm').val());
|
||||
$('#recpntNm').val($('#mbrNm').val());
|
||||
$('.recpntNm_ordrInfo_text').text($('#mbrNm').val());
|
||||
|
||||
$('#recpntMbtlnb').val($('#mbtlnb').val());
|
||||
$('.recpntMbtlnb_ordrInfo_text').text($('#mbtlnb').val());
|
||||
|
||||
$('#cstmclerCd').val($('#cstmclerCd').val());
|
||||
$('.cstmclerCd_ordrInfo_text').text($('#cstmclerCd').val());
|
||||
|
||||
$('#recpntMbtlnb').val($('#mbtlnb').val());
|
||||
$('.recpntMbtlnb_ordrInfo_text').text($('#mbtlnb').val());
|
||||
} else {
|
||||
|
||||
let data = {
|
||||
@@ -726,6 +730,8 @@
|
||||
$('.recpntNm_ordrInfo_text').text($('#recpntNm').val());
|
||||
$('#recpntMbtlnb').val(parseJson.dftDlvylc.mbtlnb);
|
||||
$('.recpntMbtlnb_ordrInfo_text').text($('#recpntMbtlnb').val());
|
||||
$('#cstmclerCd').val(parseJson.dftDlvylc.cstmclerCd);
|
||||
$('.cstmclerCd_ordrInfo_text').text($('#cstmclerCd').val());
|
||||
|
||||
}
|
||||
});
|
||||
@@ -1503,6 +1509,12 @@
|
||||
html += ' <input type="text" name="recpntMbtlnb" oninput="fn_set_event(this, \'keyup\', fn_fmt_telno)" maxlength="13" class="new rqrd input-text number" title="휴대폰번호" placeholder="휴대폰번호 입력 (’-’ 없이)">';
|
||||
html += ' </td>';
|
||||
html += ' </tr>';
|
||||
html += ' <tr class="">';
|
||||
html += ' <th> <span class="orderInfo__title">개인통관번호</span></th>';
|
||||
html += ' <td>';
|
||||
html += ' <input type="text" name="cstmclerCd" maxlength="13" class="m-input" title="개인통관번호" placeholder="P로 시작하는 13자리 부호를 입력하세요">';
|
||||
html += ' </td>';
|
||||
html += ' </tr>';
|
||||
html += ' <!-- 신규 배송지 선택 시 End -->';
|
||||
html += ' <tr>';
|
||||
html += ' <th><span class="orderInfo__title">배송요청사항</span></th>';
|
||||
@@ -1766,6 +1778,8 @@
|
||||
|
||||
$('.presentArea').hide();
|
||||
$('.presentArea').find('input').prop('disabled', true);
|
||||
$('.cstmclerArea').hide();
|
||||
$('.cstmclerArea').find('input').prop('disabled', true);
|
||||
$('.presentShowArea').show();
|
||||
$('.presentShowArea').find('input').prop('disabled', false);
|
||||
|
||||
@@ -1786,6 +1800,8 @@
|
||||
if (dlvylcDvCd === 'New') {
|
||||
$('.presentArea').show();
|
||||
$('.presentArea').find('input').prop('disabled', false);
|
||||
$('.cstmclerArea').show();
|
||||
$('.cstmclerArea').find('input').prop('disabled', false);
|
||||
$('.presentShowArea').hide();
|
||||
$('.presentShowArea').find('input').prop('disabled', true);
|
||||
}
|
||||
@@ -1836,6 +1852,17 @@
|
||||
$(form).find('input[name="dlvylcAdresDtl"]').val(data.dtlAdres);
|
||||
$(form).find('input[name="dlvylcAdres"]').val('01' === $(form).find('input[name="dlvylcAdresDvCd"]').val() ? $(form).find('input[name="dlvylcRnmAdres"]').val() : $(form).find('input[name="dlvylcLnbAdres"]').val());
|
||||
|
||||
let dlvylcAreaCd = $(form).find('input[name="dlvylcAreaCd"]').val();
|
||||
|
||||
if('JP' === dlvylcAreaCd){
|
||||
|
||||
$('.cstmclerArea').hide();
|
||||
$('.cstmclerArea').find('input').prop('disabled', true);
|
||||
} else {
|
||||
$('.cstmclerArea').show();
|
||||
$('.cstmclerArea').find('input').prop('disabled', false);
|
||||
}
|
||||
|
||||
// 배송지 정보 세팅 이후 결제예정금액 재계산
|
||||
fn_get_setle_amt();
|
||||
}
|
||||
@@ -2742,7 +2769,7 @@
|
||||
|
||||
if (fn_is_empty(val)) {
|
||||
|
||||
alert('개인통관번호를 입력해 주십시요');
|
||||
alert('개인통관번호를 입력해 주십시오');
|
||||
|
||||
$('#dlvylcForm').find('input[name="' + name + '"]').focus();
|
||||
|
||||
@@ -3626,6 +3653,28 @@
|
||||
<span class="orderInfo__text recpntMbtlnb_ordrInfo_text"><c:out value="${dftDlvylc.mbtlnb}"/></span>
|
||||
</td>
|
||||
</tr>
|
||||
<c:choose>
|
||||
<c:when test="${dftDlvylc.dlvylcAreaCd eq 'KR'}">
|
||||
<tr class="deliveryAddressDefault">
|
||||
<th><span class="orderInfo__title">개인통관번호</span></th>
|
||||
<td>
|
||||
<input type="hidden" id="cstmclerCd" class="dft" value="<c:out value="${dftDlvylc.cstmclerCd}"/>">
|
||||
<%-- <span class="orderInfo__text cstmclerCd_ordrInfo_text"><c:out value="${dftDlvylc.cstmclerCd}"/></span>--%>
|
||||
<c:choose>
|
||||
<c:when test="${not empty dftDlvylc.cstmclerCd}">
|
||||
<input type="text" name="cstmclerCd" maxlength="13" class="orderInfo__text cstmclerCd_ordrInfo_text" title="개인통관번호" value="<c:out value="${dftDlvylc.cstmclerCd}"/>" placeholder="배송지 관리에서 입력하세요.">
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="text" name="cstmclerCd" maxlength="13" class="orderInfo__text cstmclerCd_ordrInfo_text" title="개인통관번호" value="<c:out value="${dftDlvylc.cstmclerCd}"/>" placeholder="배송지 관리에서 입력하세요." readonly>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</tr>
|
||||
</td>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="hidden" id="cstmclerCd" name="cstmclerCd" class="dft" value="<c:out value="${dftDlvylc.cstmclerCd}"/>">
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<!-- 기본 배송지 선택 시 End -->
|
||||
<!-- 신규 배송지 선택 시 Start -->
|
||||
<tr class="deliveryAddressNew" style="display:none;">
|
||||
@@ -3658,6 +3707,12 @@
|
||||
<input type="text" name="recpntMbtlnb" oninput="fn_set_event(this, 'keyup', fn_fmt_telno)" maxlength="13" class="new rqrd input-text number rqrd_gift" title="휴대폰번호" placeholder="휴대폰번호 입력 (’-’ 없이)" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="deliveryAddressNew cstmclerArea" style="display:none;">
|
||||
<th> <span class="orderInfo__title">개인통관번호</span></th>
|
||||
<td>
|
||||
<input type="text" name="cstmclerCd" maxlength="13" class="new rqrd input-text rqrd_gift" title="개인통관번호" placeholder="배송지 관리에서 입력하세요." readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- 신규 배송지 선택 시 End -->
|
||||
<tr class="presentShowArea" style="display:none;">
|
||||
<th> <span class="orderInfo__title">선물메세지</span></th>
|
||||
@@ -3944,7 +3999,7 @@
|
||||
</div>
|
||||
</form>
|
||||
<div class="infoBox">
|
||||
<div class="infoBox__title">예상 적립혜택</div>
|
||||
<div class="infoBox" id="saveMlg">예상 적립혜택</div>
|
||||
<ul class="infoBox__list">
|
||||
<li> 구매 확정 시 <i id="accmlMlgAmtSapn"></i> 적립
|
||||
<c:forEach var="ntc" items="${data.mlgAccmlNtcList}">
|
||||
|
||||
Reference in New Issue
Block a user