Commit f75022f7 authored by 郭志伟's avatar 郭志伟

fix: 80万额度;其他险种数据回显处理;泰康协议条款补充

parent d34bd1ec
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Description: 华贵大麦2020定期寿险 * @Description: 华贵大麦2020定期寿险
* @Date: 2020-07-27 15:46:37 * @Date: 2020-07-27 15:46:37
* @LastEditors: gzw * @LastEditors: gzw
* @LastEditTime: 2020-08-20 14:51:17 * @LastEditTime: 2020-08-20 18:03:46
*/ */
import goodsBg from "@/assets/images/goods/detail/shouxian/bg.png"; import goodsBg from "@/assets/images/goods/detail/shouxian/bg.png";
...@@ -107,6 +107,7 @@ export default { ...@@ -107,6 +107,7 @@ export default {
insuredAmountOptions: [ insuredAmountOptions: [
{ label: "30万", value: "300000" }, { label: "30万", value: "300000" },
{ label: "50万", value: "500000" }, { label: "50万", value: "500000" },
{ label: "80万", value: "800000" },
{ label: "100万", value: "1000000" }, { label: "100万", value: "1000000" },
{ label: "150万", value: "1500000" }, { label: "150万", value: "1500000" },
{ label: "200万", value: "2000000" }, { label: "200万", value: "2000000" },
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Description: 泰康600万医疗保障 * @Description: 泰康600万医疗保障
* @Date: 2020-07-27 15:46:37 * @Date: 2020-07-27 15:46:37
* @LastEditors: gzw * @LastEditors: gzw
* @LastEditTime: 2020-08-20 10:33:55 * @LastEditTime: 2020-08-20 18:27:48
*/ */
import goodsBg from "@/assets/images/goods/detail/yiliaoxian/bg.png"; import goodsBg from "@/assets/images/goods/detail/yiliaoxian/bg.png";
...@@ -99,15 +99,15 @@ export default { ...@@ -99,15 +99,15 @@ export default {
popupArray: [ popupArray: [
{ {
title: "保险条款", title: "保险条款",
url: "http://mangguo-contract.qthbx.com/huatai-bao-xian-tiao-kuan-v1/" url: "http://mangguo-contract.qthbx.com/tai-kang-bai-mo-yi-liao-bao-xian-tiao-kuan-v1/"
}, },
{ {
title: "健康告知", title: "健康告知",
url: "http://mangguo-contract.qthbx.com/huatai-jian-kang-gao-zhi-v1/" url: "http://mangguo-contract.qthbx.com/taikang-jian-kang-gao-zhi-v1/"
}, },
{ {
title: "投保须知及声明", title: "投保须知及声明",
url: "http://mangguo-contract.qthbx.com/huatai-toubaoxuzhi-v1/" url: "http://mangguo-contract.qthbx.com/tai-kang-bai-mo-yi-liao-tou-bao-xu-zhi-ji-sheng-ming-v1/"
}, },
{ {
title: "平台服务协议", title: "平台服务协议",
......
...@@ -267,7 +267,7 @@ export default { ...@@ -267,7 +267,7 @@ export default {
selfIdNo, selfIdNo,
selfPhone, selfPhone,
selfSecId, selfSecId,
payType, amountInsured,
autoRenewPolicy autoRenewPolicy
} = this.formData; } = this.formData;
this.subFormData = { this.subFormData = {
...@@ -285,10 +285,14 @@ export default { ...@@ -285,10 +285,14 @@ export default {
idNo: selfIdNo idNo: selfIdNo
}, },
productItem: { productItem: {
payType amountInsured
}, },
autoRenewPolicy: autoRenewPolicy autoRenewPolicy: autoRenewPolicy
}; };
if (relation === "1") {
this.subFormData.holderUserInfo.relation = relation;
delete this.subFormData.insuredUserInfo;
}
}, },
async getDetail() { async getDetail() {
this.goodId = this.$route.query.id; this.goodId = this.$route.query.id;
......
...@@ -212,8 +212,10 @@ export default { ...@@ -212,8 +212,10 @@ export default {
}, },
autoRenewPolicy: autoRenewPolicy autoRenewPolicy: autoRenewPolicy
}; };
console.log(subFormData);
if (relation === "1") { if (relation === "1") {
subFormDataCache.holderUserInfo.socialSecurity = !!Number(selfSocialSecurity); subFormDataCache.holderUserInfo.socialSecurity = !!Number(selfSocialSecurity);
subFormDataCache.holderUserInfo.relation = relation;
} else { } else {
subFormDataCache.insuredUserInfo = { subFormDataCache.insuredUserInfo = {
userInfoSecId: userInfoSecId ? userInfoSecId : undefined, userInfoSecId: userInfoSecId ? userInfoSecId : undefined,
......
...@@ -95,6 +95,7 @@ import localStorage from "@/service/localStorage"; ...@@ -95,6 +95,7 @@ import localStorage from "@/service/localStorage";
import Detail from "@/api/detail.taikang.yiliaobaozhang"; import Detail from "@/api/detail.taikang.yiliaobaozhang";
import { isIdNo } from "@/service/validation"; import { isIdNo } from "@/service/validation";
let socialSecurityCache = "";
export default { export default {
name: "GoodsDetail-MI", name: "GoodsDetail-MI",
mixins: [detailPayMixin, detailLoginMixin], mixins: [detailPayMixin, detailLoginMixin],
...@@ -218,9 +219,11 @@ export default { ...@@ -218,9 +219,11 @@ export default {
}, },
onSubmit() { onSubmit() {
if (localStorage.get("mongoToken")) { if (localStorage.get("mongoToken")) {
socialSecurityCache = this.formData.socialSecurity;
this.goInsureState = true; this.goInsureState = true;
this.$refs.insureForm.getFamilyList(); this.$refs.insureForm.getFamilyList();
} else { } else {
socialSecurityCache = this.formData.socialSecurity;
const { selfPhone, selfCode } = this.formData; const { selfPhone, selfCode } = this.formData;
this.login(selfPhone, selfCode).then(() => { this.login(selfPhone, selfCode).then(() => {
this.goInsureState = true; this.goInsureState = true;
...@@ -251,6 +254,9 @@ export default { ...@@ -251,6 +254,9 @@ export default {
this.generateOrder(); this.generateOrder();
}, },
generateFormData() { generateFormData() {
if (!this.formData.socialSecurity) {
this.formData.socialSecurity = socialSecurityCache;
}
const subFormData = JSON.parse(JSON.stringify(this.formData)); const subFormData = JSON.parse(JSON.stringify(this.formData));
const { const {
userInfoSecId, userInfoSecId,
...@@ -280,8 +286,12 @@ export default { ...@@ -280,8 +286,12 @@ export default {
autoRenewPolicy: autoRenewPolicy autoRenewPolicy: autoRenewPolicy
}; };
if (relation === "1") { if (relation === "1") {
this.subFormData.holderUserInfo.socialSecurity = !!Number(selfSocialSecurity); this.subFormData.holderUserInfo.socialSecurity = !Number(
this.subFormData.productItem.socialSecurity = !!Number(selfSocialSecurity); selfSocialSecurity || socialSecurityCache
);
this.subFormData.productItem.socialSecurity = !Number(
selfSocialSecurity || socialSecurityCache
);
} else { } else {
this.subFormData.insuredUserInfo = { this.subFormData.insuredUserInfo = {
userInfoSecId: userInfoSecId ? userInfoSecId : undefined, userInfoSecId: userInfoSecId ? userInfoSecId : undefined,
...@@ -292,6 +302,9 @@ export default { ...@@ -292,6 +302,9 @@ export default {
}; };
this.subFormData.productItem.socialSecurity = !!Number(socialSecurity); this.subFormData.productItem.socialSecurity = !!Number(socialSecurity);
} }
if (relation === "1") {
delete this.subFormData.insuredUserInfo;
}
}, },
async getDetail() { async getDetail() {
this.goodId = this.$route.query.id; this.goodId = this.$route.query.id;
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
return { return {
formData: {}, formData: {},
sexOptions, sexOptions,
countOptions: insuredAmountOptions.filter((item, index) => index > 1), countOptions: insuredAmountOptions,
termOptions, termOptions,
paywayOptions, paywayOptions,
benefitOptions: benefitOptions.filter((item, index) => index > 0) benefitOptions: benefitOptions.filter((item, index) => index > 0)
...@@ -108,6 +108,7 @@ export default { ...@@ -108,6 +108,7 @@ export default {
.policy-form { .policy-form {
padding: 0; padding: 0;
@{deep} .cr-cell { @{deep} .cr-cell {
padding: 8px 0 !important;
&__title { &__title {
width: 75px !important; width: 75px !important;
} }
......
...@@ -292,13 +292,11 @@ export default { ...@@ -292,13 +292,11 @@ export default {
: "0" : "0"
} }
}; };
if (!this.formData.socialSecurity) { if (!this.formData.socialSecurity && this.radioOptions.medicalOptions) {
try { try {
this.formData.insuredUserInfo.socialSecurity = this[ this.formData.socialSecurity = localStorage.get(this.autoSaveKey).socialSecurity;
this.autoSaveKey + "Cache"
].socialSecurity;
} catch (e) { } catch (e) {
console.log("缓存中不存在"); //
} }
} }
}, },
......
...@@ -778,11 +778,11 @@ export default { ...@@ -778,11 +778,11 @@ export default {
AUTO_SAVE_TARGET + "Cache" AUTO_SAVE_TARGET + "Cache"
].insuredUserInfo.socialSecurity; ].insuredUserInfo.socialSecurity;
} catch (e) { } catch (e) {
console.log("缓存中不存在"); //
} }
} }
if (relation) { if (relation) {
this.formData.insuredUserInfo.relation = relation; this.formData.insuredUserInfo.relation = "" + relation;
} }
this.calFee(); this.calFee();
this.$forceUpdate(); this.$forceUpdate();
...@@ -810,6 +810,12 @@ export default { ...@@ -810,6 +810,12 @@ export default {
res.forEach(item => { res.forEach(item => {
if (item.productNo === this.formData.productNo) { if (item.productNo === this.formData.productNo) {
this.headerInfo.price[0] = item.downPayPrice; this.headerInfo.price[0] = item.downPayPrice;
const price = this.headerInfo.price;
price[1] = "元/起";
this.goodActionInfo = {
title: price
};
this.goodBuyModalInfo = [{ title: `保费`, value: `${price[0]}${price[1]}` }];
} }
}); });
} }
......
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