infomation-improve.vue
6.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<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="ebg"></div>
<div class="content">
<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('infomationImprove.title')}}</div>
<div class="login-tit-space-1"></div>
<div class="gird-g form">
<div class="pure-u-1 pure-u-md-1-2 form-item">
<div class="label">
<img src="@/assets/images/improve-infomation/icon-improve-infomation-user.png"> {{$t('infomationImprove.t1c1')}}
</div>
<div class="ipt-wrap">
<input class="ipt" :class="{err : errorTips.ln.length > 0}" type="text" v-model="information.lastName">
</div>
<div class="validator" v-if="errorTips.ln.length > 0 ">
<img src="@/assets/images/common/icon-notice.png" alt=""> {{errorTips.ln}}
</div>
</div>
<div class="pure-u-1 pure-u-md-1-2 form-item">
<div class="label">
<img src="@/assets/images/improve-infomation/icon-improve-infomation-user.png"> {{$t('infomationImprove.t1c2')}}
</div>
<div class="ipt-wrap">
<input class="ipt" :class="{err : errorTips.fn.length > 0}" type="text" v-model="information.firstName">
</div>
<div class="validator" v-if="errorTips.fn.length > 0 ">
<img src="@/assets/images/common/icon-notice.png" alt=""> {{errorTips.fn}}
</div>
</div>
<div class="pure-u-1 form-item">
<div class="label">
<img src="@/assets/images/improve-infomation/icon-improve-infomation-sex.png"> {{$t('infomationImprove.t2')}}
</div>
<div class="ipt-wrap">
<div class="down-arrow"></div>
<el-select class="ipt" :class="{err : errorTips.e2.length > 0}" v-model="information.sex">
<template v-if="sexCandidates">
<el-option v-for="(item,index) in sexCandidates" :key="index" :value="item.value" :label="item.name" ></el-option>
</template>
</el-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"> -->
<date-picker class="date" v-model="birthDate" :filtModel="['future','today']"></date-picker>
</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>
<el-select class="ipt" :class="{err : errorTips.e4.length > 0}" v-model="information.idType">
<template v-if="idTypeCandidates">
<el-option v-for="(item,index) in idTypeCandidates" :key="index" :value="item.value" :label="item.name"></el-option>
</template>
</el-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="flex-center validator authTip" v-if="errorModel == 1">
<div class="icon"><img src="@/assets/images/common/icon-notice.png" alt=""></div>
<div>{{$t('customService.auth.defaultTip')}}</div>
</div>
<div class="flex-center validator authTip" v-if="errorModel == 2">
<div class="icon"><img src="@/assets/images/common/icon-notice.png" alt=""></div>
<div>{{$t('customService.auth.notMatch')}}
<span class="contact pointer underLine" @click="toContactUs">{{$t('customService.auth.customService')}}</span>
{{$t('customService.auth.notMatch2')}}
</div>
</div>
<div class="flex-center validator authTip" v-if="errorModel == 3">
<div class="icon"><img src="@/assets/images/common/icon-notice.png" alt=""></div>
<div>
{{$t('customService.auth.notMatch')}}
<span class="contact pointer underLine" @click="toContactUs">{{$t('customService.auth.customService')}}</span>
{{$t('customService.auth.notMatch2')}}
</div>
</div>
<div class="login-btn-wrap">
<div @click="onUpdateHandler()" class="login-submit pointer flex-center mr30" :class="{disabled: submitBtnDisabled}">
<van-loading v-if="loading" />
<span>{{$t('infomationImprove.submit')}}</span>
</div>
<div @click="onSkipHandler()" class="login-submit pointer flex-center">
<span>{{$t('infomationImprove.cancel')}}</span>
</div>
</div>
</template>
</div>
</div>
</div>
</div>
</template>
<script src="./infomation-improve.js"></script>
<style lang="scss" scoped>
@import "./infomation-improve.scss";
</style>