Merge branch 'kangsun' into 'dev'
[FO] 개인정보 수정 중 See merge request korea-research/korea-research!27
This commit is contained in:
@@ -85,13 +85,13 @@
|
||||
</div>
|
||||
<div class="component-input">
|
||||
<div class="input-field">
|
||||
<input type="text" placeholder=0000 th:field="*{tel2}" maxlength="4"
|
||||
<input type="text" th:field="*{tel2}" maxlength="4"
|
||||
oninput="this.value=this.value.replace(/[^0-9]/g,'')"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="component-input">
|
||||
<div class="input-field">
|
||||
<input type="text" placeholder=0000 th:field="*{tel3}" maxlength="4"
|
||||
<input type="text" th:field="*{tel3}" maxlength="4"
|
||||
oninput="this.value=this.value.replace(/[^0-9]/g,'')"/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -123,8 +123,7 @@
|
||||
</div>
|
||||
<div class="select-scroll">
|
||||
<ul class="">
|
||||
<li class="option" data-value="010">010</li>
|
||||
<li class="option" data-value="011">011</li>
|
||||
<li class="option" data-value="010" th:field="*{phone2}">010</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -132,13 +131,13 @@
|
||||
</div>
|
||||
<div class="component-input">
|
||||
<div class="input-field">
|
||||
<input type="text" id="temp_input_0006" placeholder=0000 th:field="*{phone2}"
|
||||
<input type="text" id="temp_input_0006" th:field="*{phone2}"
|
||||
maxlength="4" oninput="this.value=this.value.replace(/[^0-9]/g,'')">
|
||||
</div>
|
||||
</div>
|
||||
<div class="component-input">
|
||||
<div class="input-field">
|
||||
<input type="text" id="temp_input_0007" placeholder=0000 th:field="*{phone3}"
|
||||
<input type="text" id="temp_input_0007" th:field="*{phone3}"
|
||||
maxlength="4" oninput="this.value=this.value.replace(/[^0-9]/g,'')">
|
||||
</div>
|
||||
</div>
|
||||
@@ -155,24 +154,26 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div id="regionMainCodeId" class="component-select bottom-sheet" data-props-default="시/도 선택"
|
||||
<div id="regionMainCodeId" class="component-select bottom-sheet" data-props-default="지역 선택"
|
||||
data-props-type="bottomSheet">
|
||||
<input type="hidden" th:field="*{regionMainCode}" data-type="select">
|
||||
<input type="hidden1" name="regionMainCode" data-type="select" th:value="${userInfo.regionMainCode}">
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt">선택</span>
|
||||
</button>
|
||||
<div class="select-options">
|
||||
<div class="select-header">
|
||||
<p>시/도 선택</p>
|
||||
<p>지역 선택</p>
|
||||
<button type="button" class="select-close">
|
||||
<span class="hide-txt">닫기</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="select-scroll">
|
||||
|
||||
<ul class="">
|
||||
<th:block th:each="item : ${regionMainList}">
|
||||
<li class="option" th:data-value="${item.id}"
|
||||
th:text="${item.codeText}">option1
|
||||
th:text="${item.codeText}"
|
||||
th:selected="${item.id eq userInfo.regionMainCode ? 'current' : ''}">option1
|
||||
</li>
|
||||
</th:block>
|
||||
</ul>
|
||||
@@ -185,14 +186,14 @@
|
||||
|
||||
<div class="select-group">
|
||||
<div id="regionSubCodeId" class="component-select bottom-sheet"
|
||||
data-props-default="시/군/구 선택" data-props-type="bottomSheet">
|
||||
data-props-default="세부지역 선택" data-props-type="bottomSheet">
|
||||
<input type="hidden" th:field="*{regionSubCode}" data-type="select">
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt">선택</span>
|
||||
</button>
|
||||
<div class="select-options">
|
||||
<div class="select-header">
|
||||
<p>시/군/구 선택</p>
|
||||
<p>세부지역 선택</p>
|
||||
<button type="button" class="select-close">
|
||||
<span class="hide-txt">닫기</span>
|
||||
</button>
|
||||
@@ -277,6 +278,10 @@
|
||||
|
||||
<section layout:fragment="script">
|
||||
<script th:inline="javascript">
|
||||
$(function() {
|
||||
//formControl.init();
|
||||
});
|
||||
|
||||
let ENV = {
|
||||
httpUrl: {
|
||||
root: /*[[#{uri.front.info.user.path}]]*/'rootUrl',
|
||||
@@ -297,6 +302,18 @@
|
||||
},
|
||||
_bindUI() {
|
||||
ENV.module.confirmPopup = document.querySelector(".confirmPopup").ui;
|
||||
|
||||
const $select1 = document.querySelector('#regionMainCodeId');
|
||||
const selectboxInstance1 = new etUI.components.SelectBox();
|
||||
selectboxInstance1.core.init($select1, {
|
||||
selectItemCallback({selectValue, dataValue}){
|
||||
console.log('selectItemCallback', selectValue, dataValue)
|
||||
$('input[name="regionMainCode"]').val(dataValue);
|
||||
}
|
||||
});
|
||||
|
||||
// selectboxInstance1.update();
|
||||
selectboxInstance1.setValue($('input[name=regionMainCode]').val());
|
||||
},
|
||||
confirmPopup() {
|
||||
ENV.module.confirmPopup.open();
|
||||
|
||||
Reference in New Issue
Block a user