chore: 合理化属性名称

This commit is contained in:
hz
2025-10-29 14:54:33 +08:00
parent 873a10fb63
commit ef717e8bba
2 changed files with 7 additions and 7 deletions

View File

@@ -1,9 +1,9 @@
<template>
<div class="calculate-premium-container pt10 pb100 redRadioCheckbox">
<!--投保人信息详情-->
<insured-message-info :insuredInfo="saleInsuredInfo" v-if="persionMessageInfo" type="applicant" />
<insured-message-info :msgInfo="saleInsuredInfo" v-if="persionMessageInfo" type="applicant" />
<!--被保人信息详情-->
<insured-message-info :insuredInfo="saleInsuredPersonInfo" v-if="persionMessageInfo" type="insured" />
<insured-message-info :msgInfo="saleInsuredPersonInfo" v-if="persionMessageInfo" type="insured" />
<div v-for="(item, index) in chooseProducts" :key="index" class="ph10 bg-white">
<div class="flex justify-content-s align-items-c border-bottom pv10">

View File

@@ -17,7 +17,7 @@ export default {
}
},
props: {
insuredInfo: {
msgInfo: {
type: Object,
default: () => ({
birthday: '',
@@ -47,7 +47,7 @@ export default {
},
methods: {
async handleApplyRelation({ id }) {
this.insuredInfo.relationToAppnt = id
this.msgInfo.relationToAppnt = id
this.popupShow = false
},
handleApplyBirthday() {},
@@ -62,7 +62,7 @@ export default {
<div class="insured-message-container">
<van-field
v-if="type === 'insured'"
:value="insuredInfo.relationToAppnt | idToText('relationToAppnt')"
:value="msgInfo.relationToAppnt | idToText('relationToAppnt')"
readonly
required
label="是投保人的"
@@ -77,13 +77,13 @@ export default {
:label=" factorLabel + '出生日期'"
required
:name="factorLabel+'出生日期'"
:value.sync="insuredInfo.birthday"
:value.sync="msgInfo.birthday"
:maxDate="new Date()"
type="date"
:flag="true"
@confirm="handleApplyBirthday"
/>
<select-radio required :radios="sexRadio" :label="factorLabel+'性别'" :name="factorLabel+'性别'" :value.sync="insuredInfo.sex" />
<select-radio required :radios="sexRadio" :label="factorLabel+'性别'" :name="factorLabel+'性别'" :value.sync="msgInfo.sex" />
<!-- 字段选择 -->
<van-popup v-model="popupShow" position="bottom">