Commit 85ef9c6d authored by 郭志伟's avatar 郭志伟

fix: 试算goodAction,“起”是无用的,次月加个没有时不显示

parent 5fd8de46
...@@ -319,14 +319,18 @@ export default { ...@@ -319,14 +319,18 @@ export default {
const res = await trail(_param); const res = await trail(_param);
if (res) { if (res) {
price[0] = res.downPayPrice; price[0] = res.downPayPrice;
subPrice[1] = "元/月";
subPrice[0] = res.regularPrice; subPrice[0] = res.regularPrice;
this.goodActionInfo = { this.goodActionInfo = {
title: price, title: price,
sub: subPrice sub: subPrice[0] ? subPrice : ""
}; };
this.goodBuyModalInfo = [ this.goodBuyModalInfo = [
{ title: `${price[2]}保费`, value: `${price[0]}${price[1]}` }, { title: `${price[2]}保费`, value: `${price[0]}${price[1]}` },
{ title: `${subPrice[2]}保费`, value: `${subPrice[0]}${subPrice[1]}${subPrice[3]}` } {
title: `${subPrice[2]}保费`,
value: subPrice[0] ? `${subPrice[0]}${subPrice[1]}${subPrice[3]}` : ""
}
]; ];
} }
} }
......
...@@ -271,6 +271,7 @@ export default { ...@@ -271,6 +271,7 @@ export default {
}; };
const res = await trail(_param); const res = await trail(_param);
if (res) { if (res) {
price[1] = "元/年";
price[0] = res.regularPrice; price[0] = res.regularPrice;
this.goodActionInfo = { title: price }; this.goodActionInfo = { title: price };
} }
......
...@@ -39,47 +39,50 @@ export default { ...@@ -39,47 +39,50 @@ export default {
}, },
methods: { methods: {
conform() { conform() {
this.$router.push(`/policy/detail/123`); // this.$router.push(`/policy/detail/123`);
// this.generateFormData(); this.generateFormData();
// this.generateOrder(); this.generateOrder();
}, },
generateFormData() { generateFormData() {
const subFromData = JSON.parse(JSON.stringify(this.formData));
const { const {
productNo,
userInfoSecId, userInfoSecId,
name, name,
idNo, idNo,
relation, relation,
// socialSecurity, socialSecurity,
// selfSocialSecurity, selfSocialSecurity,
selfName, selfName,
selfIdNo, selfIdNo,
selfPhone, selfPhone,
selfSecId, selfSecId,
payType, payType,
autoRenewPolicy autoRenewPolicy
} = this.formData; } = subFromData;
this.subFromData = { this.subFromData = {
insuredUserInfo: { productNo: this.goodId,
userInfoSecId: userInfoSecId ?? null,
name,
idNo,
relation
// socialSecurity: socialSecurity ? !!Number(socialSecurity) : null
},
productNo,
holderUserInfo: { holderUserInfo: {
phoneNo: selfPhone, phoneNo: selfPhone,
userInfoSecId: selfSecId, userInfoSecId: selfSecId ? selfSecId : null,
name: selfName, name: selfName,
idNo: selfIdNo idNo: selfIdNo
// socialSecurity: selfSocialSecurity ? !!Number(selfSocialSecurity) : null
}, },
productItem: { productItem: {
payType: payType ? payType : null payType
}, },
autoRenewPolicy: autoRenewPolicy autoRenewPolicy: autoRenewPolicy
}; };
if (relation === "1") {
this.subFromData.holderUserInfo.socialSecurity = !!Number(selfSocialSecurity);
} else {
this.subFromData.insuredUserInfo = {
userInfoSecId: userInfoSecId ? userInfoSecId : undefined,
name,
idNo,
relation,
socialSecurity: !!Number(socialSecurity)
};
}
} }
} }
}; };
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<cr-tabbar-item>少儿</cr-tabbar-item> <cr-tabbar-item>少儿</cr-tabbar-item>
</cr-tabbar> </cr-tabbar>
</cr-sticky> </cr-sticky>
<good-list :list="list" /> <good-list :list="list" :style="{ opacity: goodsList.length > 0 ? 1 : 0 }" />
<ai-test-tip @click.native="showLayer = true" /> <ai-test-tip @click.native="showLayer = true" />
<copyright :logo="true" /> <copyright :logo="true" />
<tabbar></tabbar> <tabbar></tabbar>
......
...@@ -721,6 +721,7 @@ export default { ...@@ -721,6 +721,7 @@ export default {
}; };
const res = await trail(_param); const res = await trail(_param);
if (res) { if (res) {
price[1] = "元/年";
price[0] = res.downPayPrice; price[0] = res.downPayPrice;
this.goodActionInfo = { this.goodActionInfo = {
title: price title: price
......
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