2026-01-25 작업
This commit is contained in:
@@ -92,17 +92,17 @@ function fn_selectUser() {
|
||||
$("#channel").parent().find('button').text(data.userDetail[0].channelName);
|
||||
$("#channelCd").val(channel);
|
||||
}
|
||||
// $("#email").val(data.userDetail[0].email);
|
||||
$("#email").val(data.userDetail[0].email);
|
||||
$("#userNumber").text(data.userDetail[0].userNumber);
|
||||
$("#birthday").val(data.userDetail[0].birthday);
|
||||
$("#nationality").val(nationality);
|
||||
$("#userName").val(data.userDetail[0].userName);
|
||||
// $("#address").val(
|
||||
// (data.userDetail && data.userDetail[0]
|
||||
// ? (data.userDetail[0].zipCode ? '(' + data.userDetail[0].zipCode + ') ' : '') + (data.userDetail[0].address || '')
|
||||
// : '')
|
||||
// );
|
||||
// $("#addressDetails").val(data.userDetail[0].addressDetails);
|
||||
$("#address").val(
|
||||
(data.userDetail && data.userDetail[0]
|
||||
? (data.userDetail[0].zipCode ? '(' + data.userDetail[0].zipCode + ') ' : '') + (data.userDetail[0].address || '')
|
||||
: '')
|
||||
);
|
||||
$("#addressDetails").val(data.userDetail[0].addressDetails);
|
||||
$("#identity").text(data.userDetail[0].identity);
|
||||
$("#phoneNumber").val(fn_setFormatPhone(data.userDetail[0].phoneNumber??''));
|
||||
$("#phoneNumber2").val(fn_setFormatPhone(data.userDetail[0].phoneNumber2??''));
|
||||
@@ -160,7 +160,9 @@ function fn_selectUser() {
|
||||
document.getElementById("fatPercent").innerText = (userPhysical.fatPercent || '-') + '%';
|
||||
document.getElementById("bmi").innerText = (userPhysical.bmi || '-') + ' kg/m2';
|
||||
}
|
||||
|
||||
console.log(data);
|
||||
$("#introName").val(data.userDetail[0].introName);
|
||||
$("#introName").val(data.userDetail[0].introName);
|
||||
} else {
|
||||
modalEvent.danger("조회 오류", data.msgDesc);
|
||||
}
|
||||
@@ -236,8 +238,8 @@ function fn_updateUser() {
|
||||
let etc = $("#etc").val();
|
||||
let birthday = $("#birthday").val();
|
||||
//우편번호
|
||||
// let address = $("#address").val();
|
||||
// let addressDetails = $("#addressDetails").val().trim();
|
||||
let address = $("#address").val();
|
||||
let addressDetails = $("#addressDetails").val().trim();
|
||||
// let zipCode = '';
|
||||
// let streetAddress= '';
|
||||
// let regex = /\((\d+)\)(.+)/;
|
||||
@@ -251,7 +253,7 @@ function fn_updateUser() {
|
||||
// let regPassport = /^[A-PR-WYa-pr-wy][1-9]\d\s?\d{4}[1-9]$/; // 대략적인 여권번호 형식
|
||||
let regForeigner = /^[0-9]{6}-[5-8][0-9]{6}$/; // 외국인 등록번호 형식
|
||||
let regPhone = /^[0-9]{8,11}$/; // 전화번호 형식
|
||||
// let regEmail = /^([0-9a-zA-Z_\.-]+)@([0-9a-zA-Z_-]+)(\.[0-9a-zA-Z_-]+){1,2}$/; // 이메일 형식
|
||||
let regEmail = /^([0-9a-zA-Z_\.-]+)@([0-9a-zA-Z_-]+)(\.[0-9a-zA-Z_-]+){1,2}$/; // 이메일 형식
|
||||
let identification = $("#identification .selected").attr("id");
|
||||
let introUserId = document.getElementById('recommendUserId').dataset.userId??'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user