【定制学平险卡单产品】 幼儿园年龄最小限制到2 提示

This commit is contained in:
dwq
2021-08-12 16:16:31 +08:00
parent 6276c11a84
commit ff37169e05

View File

@@ -1588,9 +1588,9 @@ export default {
let insuredInfoAge = utilsAge.getAge(this.insuredInfo.birthday, new Date())
if (this.itemProductDTOS.productCode === 'GFRS_M0049') {
//幼儿园:3岁≤被保险人≤7岁
//幼儿园:2岁≤被保险人≤7岁
if(insuredInfoAge<2||insuredInfoAge>7){
return this.$toast('被保险人年龄应为3岁-7岁请重新选择。')
return this.$toast('被保险人年龄应为2岁-7岁请重新选择。')
}
}else if (this.itemProductDTOS.productCode === 'GFRS_M0048') {
//义务教育5岁≤被保险人≤18岁