password-reset.vue 3.83 KB

<template>
	<div class="content">
		<div class="ebg">
			<img src="@/assets/images/password-reset/password-reset-bg.png">
		</div>
		<div class="top-space"></div>
		<div class="box">

			<!-- 输入用户信息 -->
			<div v-if="type == 1" class="login">
				<div class="login-tit">{{$t('passwordReset.type1.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/register/icon-register-phone.png"> {{$t('passwordReset.type1.t1')}}
						</div>
						<div class="ipt-wrap">
							<input :placeholder="$t('passwordReset.type1.t1Placeholder')" class="ipt" type="password" v-model="values.password">
						</div>
						<div class="validator">
							<img src="@/assets/images/common/icon-notice.png" alt=""> 验证提示
						</div>
					</div>
				</div>
				<div @click="onRegisterHandler()" class="login-submit pointer">{{$t('passwordReset.type1.submit')}}</div>
			</div>

			<!-- 找回密码 -->
			<div v-if="type == 2" class="login">
				<div class="login-tit">{{$t('passwordReset.type2.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/register/icon-register-phone.png"> {{$t('passwordReset.type2.t1Placeholder')}}
						</div>
						<div class="ipt-wrap">
							<input :placeholder="$t('passwordReset.type2.t1Placeholder')" class="ipt" type="password" v-model="values.password">
						</div>
						<div class="validator">
							<img src="@/assets/images/common/icon-notice.png" alt=""> 验证提示
						</div>
					</div>
				</div>
				<div @click="onRegisterHandler()" class="login-submit pointer">{{$t('passwordReset.type2.submit')}}</div>
			</div>

			<!-- 核对信息 -->
			<div v-if="type == 3" class="login">
				<div class="login-tit">{{$t('passwordReset.type3.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/register/icon-register-phone.png"> {{$t('passwordReset.type3.t1')}}
						</div>
						<div class="ipt-wrap">
							<input  class="ipt disable" type="password" v-model="values.password">
						</div>
					</div>
				</div>
				<div @click="onRegisterHandler()" class="login-submit pointer">{{$t('passwordReset.type3.submit')}}</div>
			</div>

			<!-- 重置密码 -->
			<div v-if="type == 4" class="login">
				<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.type4.t1')}}
						</div>
						<div class="ipt-wrap">
							<input :placeholder="$t('passwordReset.type4.t1Placeholder')" class="ipt" type="password" v-model="values.password">
						</div>
						<div class="validator">
							<img src="@/assets/images/common/icon-notice.png" alt=""> 验证提示
						</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.passwordRepeat">
						</div>
						<div class="validator">
							<img src="@/assets/images/common/icon-notice.png" alt=""> 验证提示
						</div>
					</div>
				</div>
				<div @click="onRegisterHandler()" class="login-submit pointer">{{$t('passwordReset.type4.submit')}}</div>
			</div>
		</div>
	</div>
</template>

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