mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 07:46:43 +08:00
证件类型验证修改
This commit is contained in:
@@ -112,7 +112,7 @@
|
||||
v-validate="'required|mobileLength11|mobileStartWith1|mobile'"
|
||||
maxlength="11"
|
||||
/>
|
||||
<van-field v-model="userInfo.authCode" center clearable label name="短信验证码" placeholder="请输入短信验证码" v-validate="'required'" maxlength="6">
|
||||
<van-field v-model="userInfo.authCode" center clearable label name="短信验证码" placeholder="请输入短信验证码" maxlength="6">
|
||||
<van-button slot="button" size="small" type="danger" @click="getCode" :disabled="codeDisabled" v-no-more-click="1000">
|
||||
{{ codeDisabled ? `${countDown}s后重新获取` : '发送验证码' }}
|
||||
</van-button>
|
||||
@@ -313,23 +313,12 @@
|
||||
clearable
|
||||
maxlength="5"
|
||||
/> -->
|
||||
<van-field
|
||||
v-model="homeName"
|
||||
readonly
|
||||
label="联系地址"
|
||||
name="联系地址"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@click="homeShow = true"
|
||||
/>
|
||||
<van-field v-model="homeName" readonly label="联系地址" name="联系地址" required right-icon="arrow" placeholder="请选择" @click="homeShow = true" />
|
||||
<van-field
|
||||
v-model="userInfo.homeAddress"
|
||||
label
|
||||
name="详细地址"
|
||||
placeholder="具体到街道、门牌号、楼号、单元号、室号"
|
||||
v-validate="'required|homeAddressNum|homeAddressCh'"
|
||||
clearable
|
||||
maxlength="30"
|
||||
style="font-size: 3.5vw;"
|
||||
@@ -667,7 +656,10 @@ export default {
|
||||
// this.columns = DataDictionary.degree
|
||||
// break
|
||||
case '4':
|
||||
this.columns = [{ id: 0, text: '有' }, { id: 1, text: '无' }]
|
||||
this.columns = [
|
||||
{ id: 0, text: '有' },
|
||||
{ id: 1, text: '无' }
|
||||
]
|
||||
break
|
||||
case '5':
|
||||
this.columns = DataDictionary.taxIdentity
|
||||
@@ -953,7 +945,7 @@ export default {
|
||||
console.log('证件类型是身份证')
|
||||
|
||||
if (this.userInfo.nativeplace != '1') {
|
||||
return this.$toast('证件类型”为“身份证,国籍必须为中国哦')
|
||||
return this.$toast('证件类型”为“身份证,国籍必须为中国大陆哦')
|
||||
}
|
||||
|
||||
//校验性别是否与身份证号码位相符
|
||||
@@ -1110,7 +1102,9 @@ export default {
|
||||
|
||||
// 通过国籍判断 证件是否符合要求
|
||||
// 如果是国籍选择中国大陆
|
||||
if (this.userInfo.nativeplace == '1') {
|
||||
console.log('nativeplace', this.userInfo.nativeplace)
|
||||
|
||||
if (this.userInfo.nativeplace <= '4') {
|
||||
// “身份证”或“台湾居民来往大陆通行证”或“港澳居民来往内地通行证”
|
||||
let obj = {
|
||||
'1': true,
|
||||
@@ -1156,7 +1150,7 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
this.infoUpdate()
|
||||
//this.infoUpdate()
|
||||
// console.log('success')
|
||||
} else {
|
||||
return this.$toast(this.$validator.errors.all()[0])
|
||||
|
||||
Reference in New Issue
Block a user