|
@@ -753,9 +753,13 @@ var orderGiftInfoSet = function() {
|
|
|
} else {
|
|
} else {
|
|
|
$(this).parent().parent().find("input[name=recipNm]").attr("readOnly", true);
|
|
$(this).parent().parent().find("input[name=recipNm]").attr("readOnly", true);
|
|
|
$(this).parent().parent().find("input[name=recipPhnno]").attr("readOnly", true);
|
|
$(this).parent().parent().find("input[name=recipPhnno]").attr("readOnly", true);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 2021.06.03
|
|
// 2021.06.03
|
|
|
- window.style24.getContact();
|
|
|
|
|
|
|
+ if (_osType === 'A') {
|
|
|
|
|
+ window.style24.getContact();
|
|
|
|
|
+ } else if (_osType === 'I') {
|
|
|
|
|
+ window.webkit.messageHandlers.getContact.postMessage({"dummy":"dummy"});
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -767,11 +771,18 @@ var orderGiftInfoSet = function() {
|
|
|
|
|
|
|
|
// 2021.06.03 어플 callback 함수 호출
|
|
// 2021.06.03 어플 callback 함수 호출
|
|
|
function contactInfo(jsonString) {
|
|
function contactInfo(jsonString) {
|
|
|
- let jsonObj = JSON.parse(jsonString);
|
|
|
|
|
- var phnno = jsonObj.contact.phnno;
|
|
|
|
|
- phnno = phnno.replace(/[^0-9]/g, "").replace(/(^02|^0505|^1[0-9]{3}|^0[0-9]{2})([0-9]+)?([0-9]{4})$/,"$1-$2-$3").replace("--", "-");
|
|
|
|
|
-
|
|
|
|
|
- $("#orderForm #orderGiftInfo input[name=recipNm]").val(jsonObj.contact.name);
|
|
|
|
|
|
|
+ let data = JSON.parse(jsonString);
|
|
|
|
|
+
|
|
|
|
|
+ // IOS는 디코딩 처리 필요
|
|
|
|
|
+ if (_osType === 'I') {
|
|
|
|
|
+ data = JSON.parse(decodeURIComponent(escape(atob(jsonString))));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 핸드폰번호 input 넘버타입으로 대쉬 제거 처리
|
|
|
|
|
+ var phnno = data.contact.phnno.replaceAll('-', '');
|
|
|
|
|
+ //phnno = phnno.replace(/[^0-9]/g, "").replace(/(^02|^0505|^1[0-9]{3}|^0[0-9]{2})([0-9]+)?([0-9]{4})$/,"$1-$2-$3").replace("--", "-");
|
|
|
|
|
+
|
|
|
|
|
+ $("#orderForm #orderGiftInfo input[name=recipNm]").val(data.contact.name);
|
|
|
$("#orderForm #orderGiftInfo input[name=recipPhnno]").val(phnno);
|
|
$("#orderForm #orderGiftInfo input[name=recipPhnno]").val(phnno);
|
|
|
}
|
|
}
|
|
|
|
|
|