@@ -701,6 +701,7 @@ export default {
path: '/common/selectedProduct'
}
})
+ localStorage.trialList = ''
} else {
this.chooseProducts.splice(index, 1)
}
@@ -839,13 +840,10 @@ export default {
console.log(defalutValue, productIndex, calFactorIndex, min, max)
console.log(this.saleInsuredPersonInfo.age)
console.log(riskFactor)
- console.log(JSON.parse(localStorage.trialList)[0].productCode)
- // debugger
- let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
-
+ let currentEle = localStorage.isTrial !== '' && this.chooseProducts[productIndex].isMainRisk == '0' ? this.chooseProducts[productIndex].productTrialYearDTOS[calFactorIndex] : this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
//改动原因:孝心保产品有对年龄的特殊要求
//添加判断,是否是孝心保产品
- if (JSON.parse(localStorage.trialList)[0].productCode == 'GFRS_M0014') {
+ if (localStorage.trialList != '' && JSON.parse(localStorage.trialList)[0].productCode == 'GFRS_M0014') {
//被保人年龄如果在50-65区间
if (this.saleInsuredPersonInfo.age >= 50 && this.saleInsuredPersonInfo.age <= 65) {
//使用rules规则里的第二条控制保额份数
@@ -885,16 +883,15 @@ export default {
}
}
}
- //isTrial为0 ---暂时为富娃娃两全保险(万能型专配)输入保费校验
+ //isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
} else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '0') {
if (Number(this.defalutAmt) < Number(min) || Number(this.defalutAmt) > Number(max)) {
- // this.$toast(localStorage.hint)
- this.$toast(4444444)
+ this.$toast(`交费期间为${riskFactor.yearWay}年交时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
this.nextStepFlag = true
} else {
if ((Number(this.defalutAmt) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
- this.$toast(localStorage.hint)
+ this.$toast(`超过最低保费部分金额需为1000元整数倍`)
this.nextStepFlag = true
} else {
this.mainRiskInfluenceAddRisk()