Explorar el Código

회원 확인 수정

jsshin hace 5 años
padre
commit
d619c69987

+ 1 - 1
src/main/java/com/style24/front/biz/web/TsfMypageController.java

@@ -1175,7 +1175,7 @@ public class TsfMypageController extends TsfBaseController {
 
 		mav.addObject("custId", customer.getCustId());
 
-		mav.addObject("snsType", customer.getSnsType());
+		mav.addObject("snsType", StringUtils.defaultString(customer.getSnsType(), ""));
 
 		// 1.간편가입인데 처음 마이페지로 진입 했을떄
 		if (StringUtils.isNotBlank(customer.getSnsType()) && StringUtils.isBlank(customer.getPasswd())) {

+ 13 - 18
src/main/webapp/WEB-INF/views/web/mypage/MypageCustConfirmFormWeb.html

@@ -44,29 +44,24 @@
 									<col width="*">
 								</colgroup>
 								<tbody>
-									<tr th:if="${snsType ==''}">
-										<th>아이디</th>
-										<td>
-											<div class="form_field">
-												<div class="input_wrap">
-													<input type="text" id="custId" name="custId" class="form_control" th:value="${custId}" readonly="readonly"/>
-												</div>
-											</div>
-										</td>
-									</tr>
-									<tr th:unless="${snsType ==''}">
+									<tr>
 										<th>아이디</th>
 										<td>
 											<div class="form_field">
 												<div class="input_wrap">
-													<th:block th:if="${snsType == 'NV'}">
-														<span>네이버 간편가입회원</span>
-													</th:block>
-													<th:block th:if="${snsType == 'KK'}">
-														<span>카카오 간편가입회원</span>
+													<th:block th:if="${snsType == ''}">
+														<input type="text" id="custId" name="custId" class="form_control" th:value="${custId}" readonly="readonly"/>
 													</th:block>
-													<th:block th:if="${snsType == 'YS'}">
-														<span>YES24 간편가입회원</span>
+													<th:block th:unless="${snsType == ''}">
+														<th:block th:if="${snsType == 'NV'}">
+															<span>네이버 간편가입회원</span>
+														</th:block>
+														<th:block th:if="${snsType == 'KK'}">
+															<span>카카오 간편가입회원</span>
+														</th:block>
+														<th:block th:if="${snsType == 'YS'}">
+															<span>YES24 간편가입회원</span>
+														</th:block>
 													</th:block>
 												</div>
 											</div>