显示校验

This commit is contained in:
邓晓坤
2019-10-14 17:24:39 +08:00
parent eea9a81e8f
commit bb15f8a28a

View File

@@ -980,17 +980,14 @@ export default {
// 3.受益人与被保人关系为其他 // 3.受益人与被保人关系为其他
if (window.localStorage.getItem('fromAddBeneficiaryInfo') && window.localStorage.getItem('trialList').prem >= '200000') { if (window.localStorage.getItem('fromAddBeneficiaryInfo') && window.localStorage.getItem('trialList').prem >= '200000') {
let beneficiaryInfoList = JSON.parse(window.localStorage.getItem('beneficiaryInfo')) let beneficiaryInfoList = JSON.parse(window.localStorage.getItem('beneficiaryInfo'))
for (let index = 0; index < beneficiaryInfoList.length; index++) { beneficiaryInfoList.map(item => {
// const element = beneficiaryInfoList[index] if (item.relationToInsured == '5') {
if (beneficiaryInfoList[index].relationToInsured == '5') {
return true return true
} else {
return false
} }
} })
// return true return false
} else { } else {
return true return false
} }
}, },
listenChange() { listenChange() {