|
|
@@ -38,7 +38,7 @@
|
|
|
<div class="form_field">
|
|
|
<label class="input_label sr-only">아이디</label>
|
|
|
<div class="input_wrap form_full">
|
|
|
- <input type="text" id="custId" name="custId" placeholder="아이디" class="form_control" required="required" data-valid-type="alphaNumeric" data-valid-name="아이디"/><!-- class "usable" 추가 --> <!-- 잘못기입된 경우 class "err" 추가 -->
|
|
|
+ <input type="text" id="custId" name="custId" placeholder="아이디 (4~12자)" class="form_control" required="required" data-valid-type="alphaNumeric" data-valid-name="아이디" minlength="4" maxlength="12"/>
|
|
|
<span class="usable" style="display:block;"></span><!-- display:block / display:none 으로 control -->
|
|
|
</div>
|
|
|
<div id="dupCustIdDiv" class="help_block hide">
|
|
|
@@ -81,7 +81,7 @@
|
|
|
<div class="form_field">
|
|
|
<label class="input_label sr-only">비밀번호 확인</label>
|
|
|
<div class="input_wrap form_full">
|
|
|
- <input type="password" id="confirmPassword" name="confirmPassword" placeholder="비밀번호 확인" class="form_control" ><!-- 잘못기입된 경우 class "err" 추가 -->
|
|
|
+ <input type="password" id="confirmPassword" name="confirmPassword" placeholder="비밀번호 확인" class="form_control" minlength="8" maxlength="20" required="required" data-valid-name="비밀번호"/><!-- 잘못기입된 경우 class "err" 추가 -->
|
|
|
<!-- case (비밀번호확인 틀렸을경우,비밀번호 일치할경우) -->
|
|
|
<div class="help_block">
|
|
|
<!-- 비밀번호확인 틀렸을경우 -->
|
|
|
@@ -101,7 +101,7 @@
|
|
|
<div class="form_field">
|
|
|
<label class="input_label sr-only">이메일</label>
|
|
|
<div class="input_wrap form_full">
|
|
|
- <input type="text" id="email" name="email" placeholder="이메일" class="form_control"/><!-- 잘못기입된 경우 class "err" 추가 -->
|
|
|
+ <input type="text" id="email" name="email" placeholder="이메일" class="form_control" maxlength="30"/><!-- 잘못기입된 경우 class "err" 추가 -->
|
|
|
<!-- case (이메일 형식이 바르지않을경우,이미 가입되어있는 이메일인경우) -->
|
|
|
<div class="help_block">
|
|
|
<!-- 이메일 형식이 바르지않을경우 -->
|
|
|
@@ -129,7 +129,7 @@
|
|
|
<div class="form_field">
|
|
|
<label class="input_label sr-only">휴대폰번호</label>
|
|
|
<div class="input_wrap form_full">
|
|
|
- <input type="text" name="userTell" placeholder="휴대폰번호" class="form_control" id="txtTell">
|
|
|
+ <input type="text" id="cellPhnno" name="cellPhnno" placeholder="휴대폰번호" class="form_control"/>
|
|
|
<!-- case (휴대폰번호 형식이 맞지 않을경우,이미 가입되어있는 핸드폰번호일경우) -->
|
|
|
<div class="help_block">
|
|
|
<!-- 휴대폰번호 형식이 맞지 않을경우 -->
|
|
|
@@ -138,7 +138,9 @@
|
|
|
<!-- 이미 가입되어있는 핸드폰번호일경우 -->
|
|
|
<p class="t_err">I***D로 가입된 핸드폰 번호 입니다.</p>
|
|
|
<div class="mt20">
|
|
|
- <button type="button" class="btn btn_default btn_sm"><span>휴대폰 인증</span></button>
|
|
|
+ <button type="button" class="btn btn_default btn_sm">
|
|
|
+ <span>휴대폰 인증</span>
|
|
|
+ </button>
|
|
|
</div>
|
|
|
<!-- //이미 가입되어있는 핸드폰번호일경우 -->
|
|
|
</div>
|
|
|
@@ -150,8 +152,8 @@
|
|
|
</div>
|
|
|
<div class="desc_wrap t_c mt20">
|
|
|
<p>
|
|
|
- 본인은 만 14세 이상이며 <a href="" target="_blank">STYLE24이용약관<i class="ico ico_blank ml5"></i></a>, <a href="" target="_blank">개인정보 수집 및 이용<i class="ico ico_blank ml5"></i></a>,<br>
|
|
|
- <a href="" target="_blank">개인정보 취급 위탁<i class="ico ico_blank ml5"></i></a> 내용을 확인 하였으며,동의합니다.
|
|
|
+ 본인은 만 14세 이상이며 <a href="javascript:void(0)" target="_blank">STYLE24이용약관<i class="ico ico_blank ml5"></i></a>, <a href="javascript:void(0)" target="_blank">개인정보 수집 및 이용<i class="ico ico_blank ml5"></i></a>,<br>
|
|
|
+ <a href="javascript:void(0)" target="_blank">개인정보 취급 위탁<i class="ico ico_blank ml5"></i></a> 내용을 확인 하였으며,동의합니다.
|
|
|
</p>
|
|
|
</div>
|
|
|
</form>
|
|
|
@@ -177,13 +179,27 @@
|
|
|
});
|
|
|
|
|
|
var fnIdConfirmCallBack = function (result) {
|
|
|
- let $dupCustIdDiv = $('dupCustIdDiv');
|
|
|
if (result.isFind) { // 중복된 아이디가 존재
|
|
|
- $dupCustIdDiv.show();
|
|
|
+ fnDisplayCustIdDiv(false);
|
|
|
} else {
|
|
|
+ fnDisplayCustIdDiv(true);
|
|
|
+ }
|
|
|
+ };
|
|
|
|
|
|
+ var fnDisplayCustIdDiv = function (bool) {
|
|
|
+ let $dupCustIdDiv = $('#dupCustIdDiv');
|
|
|
+ let $custId = $('#custId');
|
|
|
+ if (bool) { // 사용가능
|
|
|
+ $custId.removeClass('err'); //잘못기입된 경우
|
|
|
+ $custId.addClass('usable');
|
|
|
+ $('.usable').show();
|
|
|
+ } else { // 사용가능 하지 않음
|
|
|
+ $custId.addClass('err'); //잘못기입된 경우
|
|
|
+ $custId.removeClass('usable');
|
|
|
+ $dupCustIdDiv.show();
|
|
|
+ $('.usable').hide();
|
|
|
}
|
|
|
- }
|
|
|
+ };
|
|
|
|
|
|
/*]]>*/
|
|
|
</script>
|