mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 20:26:43 +08:00
学平险和意外险卡单投保流程增加外国人永久居住证的规则校验
This commit is contained in:
@@ -601,8 +601,7 @@
|
|||||||
>元
|
>元
|
||||||
</van-button
|
</van-button
|
||||||
>
|
>
|
||||||
<van-goods-action-button type='danger' text='立即投保' @click='nextStep' v-no-more-click='1000'
|
<van-goods-action-button type='danger' text='立即投保' @click='nextStep' v-no-more-click='1000' style='border-radius: 0em; width: 50%; height: 40px' />
|
||||||
style='border-radius: 0em; width: 50%; height: 40px' />
|
|
||||||
</van-goods-action>
|
</van-goods-action>
|
||||||
<!-- <van-dialog v-model="showDialog" title="温馨提示" message="被保险人年龄与所投保的方案不一致,请核实。" show-cancel-button @confirm="nextStep" confirmButtonText="继续投保" cancelButtonText="核对信息"> -->
|
<!-- <van-dialog v-model="showDialog" title="温馨提示" message="被保险人年龄与所投保的方案不一致,请核实。" show-cancel-button @confirm="nextStep" confirmButtonText="继续投保" cancelButtonText="核对信息"> -->
|
||||||
|
|
||||||
@@ -675,6 +674,7 @@ import Vue from 'vue'
|
|||||||
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant'
|
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant'
|
||||||
import riskRules from '../common/risk-rules'
|
import riskRules from '../common/risk-rules'
|
||||||
import occupationList from '@/components/ebiz/occipation/data/occupation'
|
import occupationList from '@/components/ebiz/occipation/data/occupation'
|
||||||
|
import {idNoCheck8} from "../sale/js/verification";
|
||||||
|
|
||||||
DataDictionary.relationToAppnt = DataDictionary.relationToAppnt.slice(0, 4)
|
DataDictionary.relationToAppnt = DataDictionary.relationToAppnt.slice(0, 4)
|
||||||
Vue.use(Checkbox).use(CheckboxGroup)
|
Vue.use(Checkbox).use(CheckboxGroup)
|
||||||
@@ -2055,6 +2055,16 @@ export default {
|
|||||||
// return this.$toast('户口本的证件号码长度应等于18位')
|
// return this.$toast('户口本的证件号码长度应等于18位')
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
else if (this.userInfo.idType == '8') {
|
||||||
|
if (idNoCheck8(this.userInfo,'cardList').text){
|
||||||
|
return this.$toast(idNoCheck8(this.userInfo,'cardList').text)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (this.insuredInfo.idType == '8') {
|
||||||
|
if (idNoCheck8(this.insuredInfo,'cardList').text){
|
||||||
|
return this.$toast(idNoCheck8(this.insuredInfo,'cardList').text)
|
||||||
|
}
|
||||||
|
}
|
||||||
let insuredAge = utilsAge.getAge(this.insuredInfo.birthday, new Date())
|
let insuredAge = utilsAge.getAge(this.insuredInfo.birthday, new Date())
|
||||||
console.log('计算年龄', insuredAge)
|
console.log('计算年龄', insuredAge)
|
||||||
//如果证件类型是身份证或户口本
|
//如果证件类型是身份证或户口本
|
||||||
|
|||||||
Reference in New Issue
Block a user