|
|
@@ -259,7 +259,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<h4 class="subH3">교환 상품 배송지</h4>
|
|
|
- <div class="tbl type1">
|
|
|
+ <div class="tbl type1" id="recipLocation">
|
|
|
<input type="hidden" name="recipNm" th:value="${deliveryAddrInfo.recipNm}">
|
|
|
<input type="hidden" name="recipPhnno" th:value="${deliveryAddrInfo.recipPhnno}">
|
|
|
<input type="hidden" name="recipZipcode" th:value="${deliveryAddrInfo.recipZipcode}">
|
|
|
@@ -510,6 +510,25 @@
|
|
|
data.selfGoodsYn = oneData.selfGoodsYn;
|
|
|
data.shipCompCd = $('#exchangeForm input[name=shipCompCd]').val();
|
|
|
|
|
|
+ // 2021.11.09 card007 휴대폰번호 유효성검증 추가
|
|
|
+ if (wdGb == 'W' && !gagajf.checkPhnno(data.chgerPhnno)) {
|
|
|
+ mcxDialog.alert("회수지 휴대폰 번호가 유효하지 않습니다.");
|
|
|
+
|
|
|
+ let offset = $('#chgerLocation').offset();
|
|
|
+ $('html, body').animate({scrollTop : offset.top - 100}, 0);
|
|
|
+
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (!gagajf.checkPhnno(data.recipPhnno)) {
|
|
|
+ mcxDialog.alert("교환배송지 휴대폰 번호가 유효하지 않습니다.");
|
|
|
+
|
|
|
+ let offset = $('#recipLocation').offset();
|
|
|
+ $('html, body').animate({scrollTop : offset.top - 150}, 0);
|
|
|
+
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
let jsonData = JSON.stringify(data);
|
|
|
|
|
|
// 교환 처리
|