password-reset.vue 2.67 KB

<template>
	<div>
		<modal-simple-comp :visible="modalSimpleVisiable" :show-confirm="false" :icon="modalIcon" :content="modalContent" :confirm="closeModal" :overlay="closeModal" :close="closeModal"></modal-simple-comp>
		<modal-comp :visible="modalVisiable" :show-confirm="false" :icon="modalIcon" :content="modalContent" :confirm="modalCallback" :overlay="modalCallback"></modal-comp>
		<div class="content">
			<div class="ebg">
				<img src="@/assets/images/common/login-bg.png">
			</div>
			<div class="top-space"></div>
			<div class="box">
				<div class="login">
					<auth @onLogin="userLogin" @onLogout="userLogout"></auth>
					<template v-if="showForm">
						<div class="login-tit">{{$t('passwordReset.type4.title')}}</div>
						<div class="login-tit-space-4"></div>
						<div class="gird-g form">
							<div class="pure-u-1 form-item">
								<div class="label">
									<img src="@/assets/images/register/icon-register-lock.png"> {{$t('passwordReset.oldPwd')}}
								</div>
								<div class="ipt-wrap">
									<input :placeholder="$t('passwordReset.oldPwdPlaceholde')" class="ipt" type="password" v-model="values.oldPwd">
								</div>
								<div class="validator" v-if="step.error0.length > 0 ">
									<img src="@/assets/images/common/icon-notice.png" alt=""> {{step.error0}}
								</div>
							</div>
							<div class="pure-u-1 form-item">
								<div class="label">
									<img src="@/assets/images/register/icon-register-lock.png"> {{$t('passwordReset.type4.t1')}}
								</div>
								<div class="ipt-wrap">
									<input :placeholder="$t('passwordReset.type4.t1Placeholder')" class="ipt" type="password" v-model="values.pwd">
								</div>
								<div class="validator" v-if="step.error1.length > 0 ">
									<img src="@/assets/images/common/icon-notice.png" alt=""> {{step.error1}}
								</div>
							</div>
							<div class="pure-u-1 form-item">
								<div class="label">
									<img src="@/assets/images/register/icon-register-lock.png"> {{$t('passwordReset.type4.t2')}}
								</div>
								<div class="ipt-wrap">
									<input :placeholder="$t('passwordReset.type4.t2Placeholder')" class="ipt" type="password" v-model="values.pwdRepeat">
								</div>
								<div class="validator" v-if="step.error2.length > 0 ">
									<img src="@/assets/images/common/icon-notice.png" alt=""> {{step.error2}}
								</div>
							</div>
						</div>
						<div @click="resetPwd()" class="login-submit pointer" :class="{disabled: submitBtnDisabled}">{{$t('passwordReset.type4.submit')}}</div>
					</template>
				</div>
			</div>
		</div>
	</div>
</template>

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