Commit 0bdf25bb authored by 郭志伟's avatar 郭志伟

Merge branch 'fix/goods' into 'master'

Fix/goods

See merge request !85
parents a21bf51d fbfc9905
let protocol = window.location.protocol; let protocol = window.location.protocol;
export default { export default {
basicHost: "http://yapi.quantgroups.com/mock/329/", // basicHost: "http://yapi.quantgroups.com/mock/329/",
// basicHost: "https://hathaway-mg.liangkebang.net/", basicHost: "https://hathaway-mg.liangkebang.net/",
// basicHost: "http://192.168.29.211:8964/", // basicHost: "http://192.168.29.211:8964/",
wxAppId: "wx514de17b23d53a20", wxAppId: "wx514de17b23d53a20",
shenceUrl: `${protocol}//bn.xyqb.com/sa?project=default`, // 神策数据请求地址 shenceUrl: `${protocol}//bn.xyqb.com/sa?project=default`, // 神策数据请求地址
......
...@@ -222,3 +222,16 @@ export function getRealAge(strBirthday) { ...@@ -222,3 +222,16 @@ export function getRealAge(strBirthday) {
} }
return returnAge; //返回周岁年龄 return returnAge; //返回周岁年龄
} }
export function getBirthDate(idCard) {
let birthday = "";
if (idCard) {
if (idCard.length == 15) {
birthday = "19" + idCard.substr(6, 6);
} else if (idCard.length == 18) {
birthday = idCard.substr(6, 8);
}
birthday = birthday.replace(/(.{4})(.{2})/, "$1-$2-");
}
return birthday;
}
...@@ -175,7 +175,7 @@ export default { ...@@ -175,7 +175,7 @@ export default {
birthday: "1990-01-01", birthday: "1990-01-01",
socialSecurity: "", socialSecurity: "",
annualIncome: "10万", annualIncome: "10万",
loan: "房贷", loan: "贷款",
addressCode: "北京市,北京市", addressCode: "北京市,北京市",
questionType: "", questionType: "",
userName: "", userName: "",
...@@ -270,7 +270,7 @@ export default { ...@@ -270,7 +270,7 @@ export default {
], ],
// 贷款 // 贷款
loanOptions: [ loanOptions: [
"房贷", "贷款",
"1000元", "1000元",
"2000元", "2000元",
"3000元", "3000元",
...@@ -280,7 +280,7 @@ export default { ...@@ -280,7 +280,7 @@ export default {
"7000元", "7000元",
"8000元", "8000元",
"9000元", "9000元",
"1万元以上", "1万元",
"1万元以上" "1万元以上"
], ],
solveOptions: [ solveOptions: [
...@@ -300,8 +300,11 @@ export default { ...@@ -300,8 +300,11 @@ export default {
currentStep(val) { currentStep(val) {
this.$forceUpdate(); this.$forceUpdate();
if (val === 3) { if (val === 3) {
if (this.formData.annualIncome === "10万") {
this.setPickerDefaultVal("income", "10万", this.incomeOptions);
this.$refs["income"].refreshColumns(); this.$refs["income"].refreshColumns();
} }
}
if (val === 4) { if (val === 4) {
this.$refs["loan"].refreshColumns(); this.$refs["loan"].refreshColumns();
} }
...@@ -310,7 +313,6 @@ export default { ...@@ -310,7 +313,6 @@ export default {
} }
} }
}, },
mounted() {},
methods: { methods: {
nextQuestion() { nextQuestion() {
const { currentStep, stepTips, formData } = this; const { currentStep, stepTips, formData } = this;
...@@ -344,6 +346,15 @@ export default { ...@@ -344,6 +346,15 @@ export default {
} }
this.formData[type] = value; this.formData[type] = value;
}, },
setPickerDefaultVal(refName, value, options) {
setTimeout(() => {
const $picker = this.$refs[refName];
$picker.setColumnIndex(
0,
options.findIndex(item => item === value)
);
});
},
async onSubmit() { async onSubmit() {
const { formData } = this; const { formData } = this;
const { socialSecurity, gender } = formData; const { socialSecurity, gender } = formData;
......
...@@ -97,6 +97,7 @@ import localStorage from "@/service/localStorage"; ...@@ -97,6 +97,7 @@ import localStorage from "@/service/localStorage";
import Detail from "@/api/detail.zhongan.yiwai"; import Detail from "@/api/detail.zhongan.yiwai";
import { trail, list } from "@/api/product"; import { trail, list } from "@/api/product";
import { isIdNo } from "@/service/validation"; import { isIdNo } from "@/service/validation";
import { getRealAge, getBirthDate } from "@/service/utils";
export default { export default {
name: "GoodsDetail-AI", name: "GoodsDetail-AI",
...@@ -141,9 +142,10 @@ export default { ...@@ -141,9 +142,10 @@ export default {
payType: "1", payType: "1",
amountInsured: "1000000", amountInsured: "1000000",
autoRenewPolicy: false, autoRenewPolicy: false,
read: true read: false
}, },
goInsureState: false goInsureState: false,
isCalPrice: false
}; };
}, },
watch: { watch: {
...@@ -222,6 +224,10 @@ export default { ...@@ -222,6 +224,10 @@ export default {
this.popupShow = true; this.popupShow = true;
}, },
onSubmit() { onSubmit() {
if (!this.isCalPrice) {
this.$notify({ type: "warn", message: "被保人年龄不在可投保范围,请仔细核对" });
return;
}
if (localStorage.get("mongoToken")) { if (localStorage.get("mongoToken")) {
this.$refs.insureForm.getFamilyList_I().then(() => { this.$refs.insureForm.getFamilyList_I().then(() => {
this.getIsRead(); this.getIsRead();
...@@ -306,6 +312,26 @@ export default { ...@@ -306,6 +312,26 @@ export default {
delete this.subFormData.insuredUserInfo; delete this.subFormData.insuredUserInfo;
} }
}, },
getRealIdNo() {
const { relation, userInfoSecId: userId, idNo: idNoMask } = this.formData;
const { selfSecId: holderUserId, selfIdNo: holderIdNoMask } = this.formData;
let currentIdNo = !relation || relation === "1" ? holderIdNoMask : idNoMask;
const currentUserId = !relation || relation === "1" ? holderUserId : userId;
const familyList = this.$refs["insureForm"].familyList;
if (!currentIdNo) return "";
currentIdNo =
currentIdNo.indexOf("**") > -1
? familyList.find(item => item.userInfoSecId === currentUserId).idNo
: currentIdNo;
return currentIdNo;
},
checkAgeInRange() {
const currentIdNo = this.getRealIdNo();
if (!currentIdNo) return;
const birthday = getBirthDate(currentIdNo);
const realAge = getRealAge(birthday);
return realAge >= 18 && realAge <= 65;
},
async getDetail() { async getDetail() {
this.goodId = this.$route.query.id; this.goodId = this.$route.query.id;
const res = await list(); const res = await list();
...@@ -325,7 +351,8 @@ export default { ...@@ -325,7 +351,8 @@ export default {
let idNoWho = !relation || relation === "1" ? selfIdNo : idNo; let idNoWho = !relation || relation === "1" ? selfIdNo : idNo;
let idWho = !relation || relation === "1" ? selfSecId : userInfoSecId; let idWho = !relation || relation === "1" ? selfSecId : userInfoSecId;
idWho = idNoWho.indexOf("**") > -1 ? idWho || undefined : undefined; idWho = idNoWho.indexOf("**") > -1 ? idWho || undefined : undefined;
if (!idNoWho && !amountInsured) return; this.isCalPrice = this.checkAgeInRange();
if (!this.isCalPrice || (!idNoWho && !amountInsured)) return;
const _param = { const _param = {
productNo: this.goodId, productNo: this.goodId,
productUserInfo: { productUserInfo: {
...@@ -338,6 +365,7 @@ export default { ...@@ -338,6 +365,7 @@ export default {
} }
} }
}; };
try {
const res = await trail(_param); const res = await trail(_param);
if (res) { if (res) {
price[0] = res.downPayPrice; price[0] = res.downPayPrice;
...@@ -348,6 +376,10 @@ export default { ...@@ -348,6 +376,10 @@ export default {
this.goodBuyModalInfo = [{ title: `每年保费`, value: `${price[0]}元` }]; this.goodBuyModalInfo = [{ title: `每年保费`, value: `${price[0]}元` }];
noticeCellInfo[amountInsured][2].value = `${price[0] + price[1]}`; noticeCellInfo[amountInsured][2].value = `${price[0] + price[1]}`;
} }
this.isCalPrice = true;
} catch (error) {
this.isCalPrice = false;
}
} }
} }
}; };
......
...@@ -90,10 +90,12 @@ import ProtocolRead from "./modules/ProtocolRead"; ...@@ -90,10 +90,12 @@ import ProtocolRead from "./modules/ProtocolRead";
import NavTab from "./modules/NavTab"; import NavTab from "./modules/NavTab";
import detailLoginMixin from "./modules/detailLogin.mixin"; import detailLoginMixin from "./modules/detailLogin.mixin";
import fromNow from "date-fns/formatDistanceToNowStrict";
import localStorage from "@/service/localStorage"; import localStorage from "@/service/localStorage";
import Detail from "@/api/detail.huatai.zhongjixian"; import Detail from "@/api/detail.huatai.zhongjixian";
import { trail, list } from "@/api/product"; import { trail, list } from "@/api/product";
import { isIdNo } from "@/service/validation"; import { isIdNo } from "@/service/validation";
import { getRealAge, getBirthDate } from "@/service/utils";
export default { export default {
name: "GoodsDetail-CII", name: "GoodsDetail-CII",
...@@ -138,9 +140,10 @@ export default { ...@@ -138,9 +140,10 @@ export default {
payType: "1", payType: "1",
amountInsured: "300000", amountInsured: "300000",
autoRenewPolicy: false, autoRenewPolicy: false,
read: true read: false
}, },
goInsureState: false goInsureState: false,
isCalPrice: false
}; };
}, },
watch: { watch: {
...@@ -281,6 +284,10 @@ export default { ...@@ -281,6 +284,10 @@ export default {
this.popupShow = true; this.popupShow = true;
}, },
onSubmit() { onSubmit() {
if (!this.isCalPrice) {
this.$notify({ type: "warn", message: "被保人年龄不在可投保范围,请仔细核对" });
return;
}
if (localStorage.get("mongoToken")) { if (localStorage.get("mongoToken")) {
this.$refs.insureForm.getFamilyList_I().then(() => { this.$refs.insureForm.getFamilyList_I().then(() => {
this.getIsRead(); this.getIsRead();
...@@ -322,6 +329,26 @@ export default { ...@@ -322,6 +329,26 @@ export default {
nextStep() { nextStep() {
this.$router.push({ path: "/goods/inform" }); this.$router.push({ path: "/goods/inform" });
}, },
getRealIdNo() {
const { relation, userInfoSecId: userId, idNo: idNoMask } = this.formData;
const { selfSecId: holderUserId, selfIdNo: holderIdNoMask } = this.formData;
let currentIdNo = !relation || relation === "1" ? holderIdNoMask : idNoMask;
const currentUserId = !relation || relation === "1" ? holderUserId : userId;
const familyList = this.$refs["insureForm"].familyList;
if (!currentIdNo) return "";
currentIdNo =
currentIdNo.indexOf("**") > -1
? familyList.find(item => item.userInfoSecId === currentUserId).idNo
: currentIdNo;
return currentIdNo;
},
checkAgeInRange() {
const currentIdNo = this.getRealIdNo();
if (!currentIdNo) return;
const birthday = getBirthDate(currentIdNo);
const isOverMonth = birthday && parseInt(fromNow(new Date(birthday), { unit: "day" })) >= 30;
return isOverMonth && getRealAge(birthday) <= 50;
},
async getDetail() { async getDetail() {
this.goodId = this.$route.query.id; this.goodId = this.$route.query.id;
const res = await list(); const res = await list();
...@@ -348,7 +375,8 @@ export default { ...@@ -348,7 +375,8 @@ export default {
userInfoSecId userInfoSecId
} = this.formData; } = this.formData;
let idNoWho = !relation || relation === "1" ? selfIdNo : idNo; let idNoWho = !relation || relation === "1" ? selfIdNo : idNo;
if (!idNoWho || !payType) return; this.isCalPrice = this.checkAgeInRange();
if (!idNoWho || !payType || !this.isCalPrice) return;
const _param = { const _param = {
productNo: this.goodId, productNo: this.goodId,
productUserInfo: { productUserInfo: {
...@@ -363,7 +391,7 @@ export default { ...@@ -363,7 +391,7 @@ export default {
} }
} }
}; };
try {
const res = await trail(_param); const res = await trail(_param);
if (res) { if (res) {
price[2] = payType === "2" ? "" : "首月"; price[2] = payType === "2" ? "" : "首月";
...@@ -385,6 +413,10 @@ export default { ...@@ -385,6 +413,10 @@ export default {
price[0] + price[0] +
price[1]}${subPrice[0] ? subPrice[2] + subPrice[0] + subPrice[1] : ""}`; price[1]}${subPrice[0] ? subPrice[2] + subPrice[0] + subPrice[1] : ""}`;
} }
this.isCalPrice = true;
} catch (error) {
this.isCalPrice = false;
}
} }
} }
}; };
......
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
:options="[]" :options="[]"
:text-bold="true" :text-bold="true"
v-model="read" v-model="read"
:show-radio="false"
:cell-data="noticeCellInfo" :cell-data="noticeCellInfo"
@cell-click="openIframePupop" @cell-click="openIframePupop"
> >
......
...@@ -90,8 +90,10 @@ import NavTab from "./modules/NavTab"; ...@@ -90,8 +90,10 @@ import NavTab from "./modules/NavTab";
import detailPayMixin from "./modules/detailPay.mixin"; import detailPayMixin from "./modules/detailPay.mixin";
import detailLoginMixin from "./modules/detailLogin.mixin"; import detailLoginMixin from "./modules/detailLogin.mixin";
import fromNow from "date-fns/formatDistanceToNowStrict";
import { trail, list } from "@/api/product"; import { trail, list } from "@/api/product";
import localStorage from "@/service/localStorage"; import localStorage from "@/service/localStorage";
import { getRealAge, getBirthDate } from "@/service/utils";
import Detail from "@/api/detail.taikang.yiliaobaozhang"; import Detail from "@/api/detail.taikang.yiliaobaozhang";
import { isIdNo } from "@/service/validation"; import { isIdNo } from "@/service/validation";
...@@ -140,10 +142,11 @@ export default { ...@@ -140,10 +142,11 @@ export default {
payType: "1", payType: "1",
planValue: "3", planValue: "3",
autoRenewPolicy: false, autoRenewPolicy: false,
read: true read: false
}, },
goodActionShow: false, goodActionShow: false,
goInsureState: false goInsureState: false,
isCalPrice: false
}; };
}, },
watch: { watch: {
...@@ -217,6 +220,10 @@ export default { ...@@ -217,6 +220,10 @@ export default {
this.popupShow = true; this.popupShow = true;
}, },
onSubmit() { onSubmit() {
if (!this.isCalPrice) {
this.$notify({ type: "warning", message: "被保人年龄不在可投保范围,请仔细核对" });
return;
}
if (localStorage.get("mongoToken")) { if (localStorage.get("mongoToken")) {
socialSecurityCache = this.formData.socialSecurity; socialSecurityCache = this.formData.socialSecurity;
this.$refs.insureForm.getFamilyList_I().then(() => { this.$refs.insureForm.getFamilyList_I().then(() => {
...@@ -315,6 +322,26 @@ export default { ...@@ -315,6 +322,26 @@ export default {
delete this.subFormData.insuredUserInfo; delete this.subFormData.insuredUserInfo;
} }
}, },
getRealIdNo() {
const { relation, userInfoSecId: userId, idNo: idNoMask } = this.formData;
const { selfSecId: holderUserId, selfIdNo: holderIdNoMask } = this.formData;
let currentIdNo = !relation || relation === "1" ? holderIdNoMask : idNoMask;
const currentUserId = !relation || relation === "1" ? holderUserId : userId;
const familyList = this.$refs["insureForm"].familyList;
if (!currentIdNo) return "";
currentIdNo =
currentIdNo.indexOf("**") > -1
? familyList.find(item => item.userInfoSecId === currentUserId).idNo
: currentIdNo;
return currentIdNo;
},
checkAgeInRange() {
const currentIdNo = this.getRealIdNo();
if (!currentIdNo) return;
const birthday = getBirthDate(currentIdNo);
const isOverMonth = birthday && parseInt(fromNow(new Date(birthday), { unit: "day" })) >= 30;
return isOverMonth && getRealAge(birthday) <= 60;
},
async getDetail() { async getDetail() {
this.goodId = this.$route.query.id; this.goodId = this.$route.query.id;
const res = await list(); const res = await list();
...@@ -332,7 +359,8 @@ export default { ...@@ -332,7 +359,8 @@ export default {
let { price, subPrice } = this.headerInfo; let { price, subPrice } = this.headerInfo;
const { idNo, socialSecurity, payType, userInfoSecId, relation, selfIdNo } = this.formData; const { idNo, socialSecurity, payType, userInfoSecId, relation, selfIdNo } = this.formData;
let idNoWho = !relation || relation === "1" ? selfIdNo : idNo; let idNoWho = !relation || relation === "1" ? selfIdNo : idNo;
if (!idNoWho || !payType || !socialSecurity) return; this.isCalPrice = this.checkAgeInRange();
if (!idNoWho || !payType || !socialSecurity || !this.isCalPrice) return;
const _param = { const _param = {
productNo: this.goodId, productNo: this.goodId,
productUserInfo: { productUserInfo: {
...@@ -347,6 +375,7 @@ export default { ...@@ -347,6 +375,7 @@ export default {
} }
} }
}; };
try {
const res = await trail(_param); const res = await trail(_param);
if (res) { if (res) {
price[2] = payType === "2" ? "" : "首月"; price[2] = payType === "2" ? "" : "首月";
...@@ -368,6 +397,10 @@ export default { ...@@ -368,6 +397,10 @@ export default {
price[0] + price[0] +
price[1]}${subPrice[0] ? subPrice[2] + subPrice[0] + subPrice[1] : ""}`; price[1]}${subPrice[0] ? subPrice[2] + subPrice[0] + subPrice[1] : ""}`;
} }
this.isCalPrice = true;
} catch (error) {
this.isCalPrice = false;
}
} }
} }
}; };
......
...@@ -4,13 +4,14 @@ ...@@ -4,13 +4,14 @@
<slot></slot> <slot></slot>
<template v-slot:footer> <template v-slot:footer>
<div class="insure-form-pact" slot="footer"> <div class="insure-form-pact" slot="footer">
<cr-field name="pact"> <cr-field name="pact" v-show="showRadio">
<template #input> <template #input>
<cr-checkbox shape="round" icon-size="13px" v-model="pact" checked-color="#FFC842"> <cr-checkbox shape="round" icon-size="13px" v-model="pact" checked-color="#FFC842">
投保前请阅读 投保前请阅读
</cr-checkbox> </cr-checkbox>
</template> </template>
</cr-field> </cr-field>
<div v-show="!showRadio"></div>
<div class="insure-form-pact-link"> <div class="insure-form-pact-link">
<a <a
href="javascript:;" href="javascript:;"
...@@ -50,6 +51,10 @@ export default { ...@@ -50,6 +51,10 @@ export default {
return ["查看完整费率表"]; return ["查看完整费率表"];
} }
}, },
showRadio: {
type: Boolean,
default: true
},
protocolData: { protocolData: {
type: Array, type: Array,
default() { default() {
......
...@@ -527,7 +527,7 @@ import autoSaveForm from "@/mixins/autoSaveForm.mixin"; ...@@ -527,7 +527,7 @@ import autoSaveForm from "@/mixins/autoSaveForm.mixin";
import liCalFee from "@/views/Goods/Detail/modules/liCalFee.mixin"; import liCalFee from "@/views/Goods/Detail/modules/liCalFee.mixin";
import { addDays, addYears, format as dateFormat } from "date-fns"; import { addDays, addYears, format as dateFormat } from "date-fns";
import debounce from "lodash/debounce"; import debounce from "lodash/debounce";
import { getRealAge } from "@/service/utils"; import { getRealAge, getBirthDate } from "@/service/utils";
import localStorage from "@/service/localStorage"; import localStorage from "@/service/localStorage";
import { mapState, mapActions } from "vuex"; import { mapState, mapActions } from "vuex";
import Detail from "@/api/detail.huagui.shouxian"; import Detail from "@/api/detail.huagui.shouxian";
...@@ -586,7 +586,7 @@ export default { ...@@ -586,7 +586,7 @@ export default {
goodBuyModalInfo: [], goodBuyModalInfo: [],
mongoToken: localStorage.get("mongoToken"), mongoToken: localStorage.get("mongoToken"),
policyFormData: JSON.parse(sessionStorage.getItem("policyFormData") || "{}"), policyFormData: JSON.parse(sessionStorage.getItem("policyFormData") || "{}"),
pact: true, pact: false,
formData: { formData: {
insuredUserInfo: { insuredUserInfo: {
relation: "", relation: "",
...@@ -706,7 +706,7 @@ export default { ...@@ -706,7 +706,7 @@ export default {
age() { age() {
const currentIdNo = this.getRealIdNo(); const currentIdNo = this.getRealIdNo();
if (!currentIdNo) return; if (!currentIdNo) return;
const birthday = this.getBirthDate(currentIdNo); const birthday = getBirthDate(currentIdNo);
const userAge = birthday ? getRealAge(birthday) : ""; const userAge = birthday ? getRealAge(birthday) : "";
return isNaN(userAge) ? 18 : userAge; return isNaN(userAge) ? 18 : userAge;
}, },
...@@ -794,13 +794,20 @@ export default { ...@@ -794,13 +794,20 @@ export default {
this.onRelationCancel(); this.onRelationCancel();
}, },
onFormSubmit() { onFormSubmit() {
this.goInsureState = true; this.getIsRead();
}, },
onFormFailed(errorInfo) { onFormFailed(errorInfo) {
console.log(errorInfo); console.log(errorInfo);
const { errors } = errorInfo; const { errors } = errorInfo;
this.$notify({ type: "warning", message: errors[0].message }); this.$notify({ type: "warning", message: errors[0].message });
}, },
getIsRead() {
if (this.pact) {
this.nextStep();
} else {
this.goInsureState = true;
}
},
nextStep() { nextStep() {
this.subFormData = JSON.parse(JSON.stringify(this.formData)); this.subFormData = JSON.parse(JSON.stringify(this.formData));
const { socialSecurity, longTerm, relation } = this.subFormData.insuredUserInfo; const { socialSecurity, longTerm, relation } = this.subFormData.insuredUserInfo;
...@@ -906,19 +913,6 @@ export default { ...@@ -906,19 +913,6 @@ export default {
} }
this.$forceUpdate(); this.$forceUpdate();
}, },
getBirthDate(idCard) {
let birthday = "";
if (idCard) {
if (idCard.length == 15) {
birthday = "19" + idCard.substr(6, 6);
} else if (idCard.length == 18) {
birthday = idCard.substr(6, 8);
}
birthday = birthday.replace(/(.{4})(.{2})/, "$1-$2-");
}
return birthday;
},
getRealIdNo() { getRealIdNo() {
const { relation, userInfoSecId: userId, idNo: idNoMask } = this.formData.insuredUserInfo; const { relation, userInfoSecId: userId, idNo: idNoMask } = this.formData.insuredUserInfo;
const { userInfoSecId: holderUserId, idNo: holderIdNoMask } = this.formData.holderUserInfo; const { userInfoSecId: holderUserId, idNo: holderIdNoMask } = this.formData.holderUserInfo;
...@@ -934,7 +928,7 @@ export default { ...@@ -934,7 +928,7 @@ export default {
setEffectiveDate: debounce(function() { setEffectiveDate: debounce(function() {
const currentIdNo = this.getRealIdNo(); const currentIdNo = this.getRealIdNo();
if (!currentIdNo) return; if (!currentIdNo) return;
const birthday = this.getBirthDate(currentIdNo); const birthday = getBirthDate(currentIdNo);
const birthdayArr = birthday.split("-"); const birthdayArr = birthday.split("-");
const currentdayArr = dateFormat(new Date(), "yyyy-MM-dd").split("-"); const currentdayArr = dateFormat(new Date(), "yyyy-MM-dd").split("-");
const nextDate = const nextDate =
...@@ -945,7 +939,7 @@ export default { ...@@ -945,7 +939,7 @@ export default {
}), }),
resetFormItemVal(key, val) { resetFormItemVal(key, val) {
const currentIdNo = this.getRealIdNo(); const currentIdNo = this.getRealIdNo();
const birthday = this.getBirthDate(currentIdNo); const birthday = getBirthDate(currentIdNo);
if (birthday && this.formData.productItem[key] === val && val) { if (birthday && this.formData.productItem[key] === val && val) {
switch (key) { switch (key) {
case "amountInsured": case "amountInsured":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment