policy-change-contact.vue 2.79 KB

<template>
	<div class="container border">
		<div class="form">
			<div class="form-item">
				<div class="label">
					<div class="icon"><img src="@/assets/images/policy-change-contact/icon-pcc-phone.png"></div>{{$t('policyChangeContact.phone')}}
				</div>
				<div class="ipt-wrap" >
					<!-- <div>  -->
						<input class="ipt mail-ipt" :class="{err : errorTips.e1.length > 0}" type="text" v-model="data.mobile">
						
					<!-- </div> -->
					<div class="pointer" @click="checked1 = !checked1">
						<img v-if="!checked1" class="check-icon pointer" src="@/assets/images/reservation/un-check.png">
						<img v-else class="check-icon pointer" src="@/assets/images/reservation/check.png">
						<span>{{$t("policyChangeContact.checkTips")}}</span>
					</div>
				
				</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="form-item">
				<div class="label">
					<div class="icon"><img src="@/assets/images/policy-change-contact/icon-pcc-location.png"></div>{{$t('policyChangeContact.address')}}
				</div>
				<div class="ipt-wrap">
					<input class="ipt mail-ipt" type="text" :class="{err : errorTips.e2.length > 0}" v-model="data.address">
					<div class="pointer" @click="checked2 = !checked2">
						<img v-if="!checked2" class="check-icon pointer" src="@/assets/images/reservation/un-check.png">
						<img v-else class="check-icon pointer" src="@/assets/images/reservation/check.png">
						<span>{{$t("policyChangeContact.checkTips")}}</span>
					</div>
				</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="form-item">
				<div class="label">
					<div class="icon"><img src="@/assets/images/policy-change-contact/icon-pcc-mail.png"></div>{{$t('policyChangeContact.email')}}
				</div>
				<div class="ipt-wrap">
					<input class="ipt mail-ipt" type="text" :class="{err : errorTips.e3.length > 0}" v-model="data.email">
					<div class="pointer" @click="checked3 = !checked3">
						<img v-if="!checked3" class="check-icon pointer" src="@/assets/images/reservation/un-check.png">
						<img v-else class="check-icon pointer" src="@/assets/images/reservation/check.png">
						<span>{{$t("policyChangeContact.checkTips")}}</span>
					</div>
				</div>

				<div class="validator" v-if="errorTips.e3.length > 0">
					<img src="@/assets/images/common/icon-notice.png" alt="">{{errorTips.e3}}
				</div>
			</div>
		</div>
		<div class="submit-btn" @click="updateContactsHandler">
			{{$t("policyChangeContact.submit")}}
		</div>
	</div>
</template>

<script src="./policy-change-contact.js"></script>
<style lang="scss" scoped>
@import "./policy-change-contact.scss";
</style>