infomation-improve.vue 3.74 KB
 

<template>
	<div class="content">
		<modal-comp :visible="modalVisiable" :show-confirm="false" :icon="modalIcon" :content="modalContent" :confirm="modalCallback" :overlay="modalCallback"></modal-comp>
		<div class="ebg">
			<img src="@/assets/images/common/login-bg.png">
		</div>
		<div class="top-space"></div>
		<div class="box">
			<div class="login">
				<div class="login-tit">{{$t('infomationImprove.title')}}</div>
				<div class="login-tit-space-1"></div>
				<div class="gird-g form">

					<div class="pure-u-1 form-item">
						<div class="label">
							<img src="@/assets/images/improve-infomation/icon-improve-infomation-user.png"> {{$t('infomationImprove.t1')}}
						</div>
						<div class="ipt-wrap">
							<input class="ipt" :class="{err : errorTips.e1.length > 0}" type="text" v-model="information.cnName">
						</div>
						<div class="validator" v-if="errorTips.e1.length > 0 ">
							<img src="@/assets/images/common/icon-notice.png" alt=""> {{errorTips.e1}}
						</div>
					</div>

					<div class="pure-u-1 form-item">
						<div class="label">
							<img src="@/assets/images/improve-infomation/icon-improve-infomation-user.png"> {{$t('infomationImprove.t2')}}
						</div>
						<div class="ipt-wrap">
							<div class="down-arrow"></div>
							<select class="ipt"  :class="{err : errorTips.e2.length > 0}" v-model="information.sex">
								<template v-if="sexCandidates">
									<option v-for="(item,index) in sexCandidates" :key="index" :value="item.value">{{item.name}}</option>
								</template>
							</select>
						</div>
						<div class="validator" v-if="errorTips.e2.length > 0 ">
							<img src="@/assets/images/common/icon-notice.png" alt=""> {{errorTips.e2}}
						</div>
					</div>

					<div class="pure-u-1 form-item">
						<div class="label">
							<img src="@/assets/images/improve-infomation/icon-improve-infomation-date.png"> {{$t('infomationImprove.t3')}}
						</div>
						<div class="ipt-wrap">
							<input class="ipt" type="date" :class="{err : errorTips.e3.length > 0}" v-model="birthDate">
						</div>
						<div class="validator" v-if="errorTips.e3.length > 0 ">
							<img src="@/assets/images/common/icon-notice.png" alt="">  {{errorTips.e3}}
						</div>
					</div>

					<div class="pure-u-1 form-item">
						<div class="label">
							<img src="@/assets/images/improve-infomation/icon-improve-infomation-card.png"> {{$t('infomationImprove.t4')}}
						</div>
						<div class="ipt-wrap">
							<div class="down-arrow"></div>
							<select class="ipt"  :class="{err : errorTips.e4.length > 0}"  v-model="information.idType">
								<template v-if="idTypeCandidates">
									<option v-for="(item,index) in idTypeCandidates" :key="index" :value="item.value">{{item.name}}</option>
								</template>
							</select>
						</div>
						<div class="validator" v-if="errorTips.e4.length > 0 ">
							<img src="@/assets/images/common/icon-notice.png" alt="">  {{errorTips.e4}}
						</div>
					</div>

					<div class="pure-u-1 form-item">
						<div class="label">
							<img src="@/assets/images/improve-infomation/icon-improve-infomation-card.png"> {{$t('infomationImprove.t5')}}
						</div>
						<div class="ipt-wrap">
							<input class="ipt" type="text"  :class="{err : errorTips.e5.length > 0}" v-model="information.idNo">
						</div>
						<div class="validator" v-if="errorTips.e5.length > 0 ">
							<img src="@/assets/images/common/icon-notice.png" alt="">  {{errorTips.e5}}
						</div>
					</div>

				</div>

				<div class="login-btn-wrap">
					<div @click="onUpdateHandler()" class="login-submit pointer">{{$t('infomationImprove.submit')}}</div>
				</div>
			</div>

		</div>
	</div>
</template>

<script src="./infomation-improve.js"></script>
<style lang="scss" scoped>
@import "./infomation-improve.scss";
</style>