被保险人大于等于18周岁(含),前端需展示手机号码、电子邮箱,且非必填

This commit is contained in:
liyuetong
2021-08-20 19:57:22 +08:00
parent 3a65836029
commit 374cc79f9d

View File

@@ -1916,10 +1916,12 @@ export default {
//GFRS-2641--被保险人大于等于18周岁前端需展示手机号码、电子邮箱且非必填
if(this.insuredInfo.birthday){
let age = utilsAge.getAge(this.insuredInfo.birthday, new Date())
if(age <= 17){
this.isLessEighteen = false //是否小于18周岁不含
}else{
this.isLessEighteen = true //是否小于18周岁不含
if(this.itemProductDTOS.productCode != 'GFRS_M0052'){
if(age <= 17){
this.isLessEighteen = false //是否小于18周岁不含
}else{
this.isLessEighteen = true //是否小于18周岁不含
}
}
//GFRS-2641--被保险人年龄小于20周岁不含婚姻状况默认为未婚
if(age < 20){