구독서비스 결제 적용(모바일)
This commit is contained in:
@@ -1528,20 +1528,20 @@
|
||||
html += ' </div>';
|
||||
html += ' </td>';
|
||||
html += ' </tr>';
|
||||
html += ' <tr>';
|
||||
html += ' <th><span class="orderInfo__title">배송비쿠폰</span></th>';
|
||||
html += ' <td>';
|
||||
html += ' <div class="cartItem__footer">';
|
||||
html += ' <div class="select-box">';
|
||||
html += ' <select name="dlvylcCouponList' + count + '" id="dlvylcCouponList' + count + '" class="lg dlvylcCouponList" title="배송지 쿠폰할인">';
|
||||
html += ' <option value="" selected>선택</option>';
|
||||
html += ' </select>';
|
||||
html += ' </div>';
|
||||
html += ' </div>';
|
||||
html += ' <div class="dlvyMultiAlertArea">';
|
||||
html += ' </div>';
|
||||
html += ' </td>';
|
||||
html += ' </tr>';
|
||||
// html += ' <tr>';
|
||||
// html += ' <th><span class="orderInfo__title">배송비쿠폰</span></th>';
|
||||
// html += ' <td>';
|
||||
// html += ' <div class="cartItem__footer">';
|
||||
// html += ' <div class="select-box">';
|
||||
// html += ' <select name="dlvylcCouponList' + count + '" id="dlvylcCouponList' + count + '" class="lg dlvylcCouponList" title="배송지 쿠폰할인">';
|
||||
// html += ' <option value="" selected>선택</option>';
|
||||
// html += ' </select>';
|
||||
// html += ' </div>';
|
||||
// html += ' </div>';
|
||||
// html += ' <div class="dlvyMultiAlertArea">';
|
||||
// html += ' </div>';
|
||||
// html += ' </td>';
|
||||
// html += ' </tr>';
|
||||
html += ' </tbody>';
|
||||
html += ' </table>';
|
||||
html += ' </div>';
|
||||
@@ -2031,7 +2031,7 @@
|
||||
// tr += ' <input type="hidden" class="product-mbrInnb" value="' + fn_nvl(goods.mbrInnb, '') + '"/>';
|
||||
tr += ' </td>';
|
||||
tr += ' <td class="qyTd">';
|
||||
tr += ' <span>' + 1 + '</span>';
|
||||
tr += ' <span>' + goods.qy + '</span>';
|
||||
tr += ' </td>';
|
||||
tr += ' <td>';
|
||||
tr += ' <span class="cartItem__discountPrice"><span class="cartItem__discountMinus">(-)</span><span class="comma product-dscntAmt-text">' + 0 + '</span><span class="priceUnit">' + curUnit + '</span></span>';
|
||||
@@ -2462,7 +2462,7 @@
|
||||
let setle = {};
|
||||
|
||||
// let dlvylc = JSON.parse(localStorage.getItem('dlvylc'));
|
||||
//
|
||||
|
||||
// if (!fn_is_empty(dlvylc)) {
|
||||
// dlvylc = Object.assign({}, fn_get_dlvylc_data(), dlvylc);
|
||||
// } else {
|
||||
@@ -2706,15 +2706,43 @@
|
||||
/* 선물하기 > 정합성 검사 종료 */
|
||||
|
||||
} else {
|
||||
// console.log("dlvylcDvCd : ",dlvylcDvCd);
|
||||
if ('New' === dlvylcDvCd) {
|
||||
const dlvylcAreaCd2 = $('#dlvylcForm').find('input[name="dlvylcAreaCd"]').val();
|
||||
console.log("dlvylcAreaCd(new) : ",dlvylcAreaCd2);
|
||||
|
||||
|
||||
$('#dlvylcForm').find('.rqrd').each(function () {
|
||||
const val = $(this).val();
|
||||
|
||||
if (fn_is_empty(val)) {
|
||||
const name = $(this).attr('name');
|
||||
const title = $(this).attr('title');
|
||||
|
||||
alert(title + '을 입력해 주십시요');
|
||||
if('JP' !== dlvylcAreaCd2 || 'cstmclerCd' !== name ) {
|
||||
const title = $(this).attr('title');
|
||||
|
||||
alert(title + '을 입력해 주십시요');
|
||||
|
||||
$('#dlvylcForm').find('input[name="' + name + '"]').focus();
|
||||
|
||||
isValid = false;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
const dlvylcAreaCd = $('#dlvylcAreaCd').val();
|
||||
// console.log("dlvylcAreaCd(dft) : ",dlvylcAreaCd);
|
||||
|
||||
if('KR' === dlvylcAreaCd){
|
||||
// console.log("KR");
|
||||
|
||||
const val = $('#cstmclerCd').val();
|
||||
|
||||
if (fn_is_empty(val)) {
|
||||
|
||||
alert('개인통관번호를 입력해 주십시요');
|
||||
|
||||
$('#dlvylcForm').find('input[name="' + name + '"]').focus();
|
||||
|
||||
@@ -2722,7 +2750,7 @@
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3099,7 +3127,7 @@
|
||||
'sopmalCd': sopmalCd,
|
||||
'subsvcInnb': item.subsvcInnb.toString(),
|
||||
// 'goodsOptnInnb': item.goodsOptnInnb.toString(),
|
||||
'qy': item.qy.toString(),
|
||||
'qy': item.qy.toString()
|
||||
};
|
||||
|
||||
storageGoodsList.push(goods);
|
||||
@@ -3121,9 +3149,9 @@
|
||||
return sum + Number(item.selpric || 0); // 계산된 결제금액
|
||||
}, 0);
|
||||
|
||||
if (setleAmtFromOrder != setleAmtFromSubsvc) {
|
||||
if (setleAmtFromOrder !== setleAmtFromSubsvc.toString()) {
|
||||
alert(ordrCheckMsg);
|
||||
// location.reload();
|
||||
location.reload();
|
||||
return false;
|
||||
}
|
||||
/* ********************* 실 결제금액 세팅 결제금액 비교 종료 ********************* */
|
||||
@@ -3235,7 +3263,7 @@
|
||||
|
||||
// let enuri = localStorage.getItem('enuri');
|
||||
// let useMlgAmt = 0;
|
||||
//
|
||||
|
||||
// if (enuri) {
|
||||
// let parsedUseMlg = JSON.parse(enuri);
|
||||
// if (parsedUseMlg && parsedUseMlg.useMlgAmt) {
|
||||
@@ -3249,9 +3277,9 @@
|
||||
|
||||
let totalDscntAmt = 0;
|
||||
|
||||
/*goodsDscntDtlsList.forEach(item => {
|
||||
totalDscntAmt += item.dscntAmt;
|
||||
});*/
|
||||
// goodsDscntDtlsList.forEach(item => {
|
||||
// totalDscntAmt += item.dscntAmt;
|
||||
// });
|
||||
|
||||
let goodsDscntAmt = 0;
|
||||
|
||||
@@ -3679,21 +3707,21 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span class="orderInfo__title">배송비쿠폰</span></th>
|
||||
<td>
|
||||
<div class="cartItem__footer">
|
||||
<div class="select-box">
|
||||
<select name="dlvylcCouponList" id="dlvylcCouponList" class="lg dlvylcCouponList" title="배송지 쿠폰할인">
|
||||
<option value="" selected>선택</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dlvyMultiAlertArea">
|
||||
<%-- <tr>--%>
|
||||
<%-- <th><span class="orderInfo__title">배송비쿠폰</span></th>--%>
|
||||
<%-- <td>--%>
|
||||
<%-- <div class="cartItem__footer">--%>
|
||||
<%-- <div class="select-box">--%>
|
||||
<%-- <select name="dlvylcCouponList" id="dlvylcCouponList" class="lg dlvylcCouponList" title="배송지 쿠폰할인">--%>
|
||||
<%-- <option value="" selected>선택</option>--%>
|
||||
<%-- </select>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- <div class="dlvyMultiAlertArea">--%>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<%-- </div>--%>
|
||||
<%-- </td>--%>
|
||||
<%-- </tr>--%>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user