register.vue 2.83 KB

<template>
	<div class="content">
		<div class="ebg">
			<img src="@/assets/images/common/login-bg.png">
		</div>
		<div class="top-space"></div>
		<div class="step">
			<img v-if="type == 1" src="@/assets/images/register/register-step-1.png">
			<img v-if="type == 2" src="@/assets/images/register/register-step-2.png">
		</div>
		<div class="box">
			<div v-if="type == 1" class="login">
				<div class="login-tit">{{$t('register.title')}}</div>
				<div class="gird-g form">
					<div class="pure-u-1 form-item">
						<div class="ipt-wrap">
							<img class="down-arrow" src="@/assets/images/reservation/re-down-arrow.png" alt="">
							<select class="ipt">
								<template v-if="locale == 'zh'">
									<option>香港手机号</option>
								</template>
								<template v-else>
									<option>香港手機號</option>
								</template>
							</select>
						</div>
					</div>
					<div class="pure-u-1 form-item">
						<div class="ipt-wrap">
							<div class="ipt ipt2">
								<div class="region-tel">+852</div>
								<input :placeholder="$t('register.mobilePlaceholder')" class="ipt-tel" type="text">
							</div>
						</div>
					</div>
					<div class="pure-u-1 form-item">
						<div class="ipt-wrap">
							<div class="ipt ipt2">
								<input :placeholder="$t('register.verifyCodePlaceholder')" class="ipt-code" type="text">
								<div class="veri-btn pointer">{{$t('register.verifyCodeGet')}}</div>
							</div>
						</div>
					</div>
				</div>
				<div class="login-protocol">
					<img @click="onCheckHandler()" class="check pointer" src="@/assets/images/login/login-check.png">{{$t('register.agree')}}
					<span @click="onProtocolHandler()" class="protocol pointer">{{$t('register.protocol')}}</span>
				</div>
				<div @click="onSubmitHandler()" class="login-submit pointer">{{$t('register.register')}}</div>
			</div>
			<div v-if="type == 2" class="login">
				<div class="login-tit">{{$t('register.title2')}}</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('register.newPassword')}}
						</div>
						<div class="ipt-wrap">
							<input :placeholder="$t('register.newPasswordPlaceholder')"  class="ipt" type="text">
						</div>
					</div>
					<div class="pure-u-1 form-item">
						<div class="label">
							<img src="@/assets/images/register/icon-register-lock.png"> {{$t('register.newPasswordSure')}}
						</div>
						<div class="ipt-wrap">
							<input :placeholder="$t('register.newPasswordSurePlaceholder')"  class="ipt" type="text">
						</div>
					</div>
				</div>
				<div @click="onSubmitHandler()" class="login-submit pointer">{{$t('register.sure')}}</div>
			</div>
		</div>
	</div>
</template>

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