优化保费计算默认的责任选择

This commit is contained in:
xuxingjun
2024-11-21 13:10:57 +08:00

View File

@@ -102,7 +102,7 @@
<div class="border-bottom" v-if="riskFactor.type == 3">
<div class="pv12 border-bd">{{ riskFactor.name }}</div>
<div class="duty">
<div class="zhe"></div>
<!-- <div class="zhe"></div> -->
<div class="flex justify-content-s border-bd pv10 align-items-c" v-for="(dutyItem, dutyItemIndex) in riskFactor.rules" :key="dutyItemIndex">
<span
v-if="
@@ -174,7 +174,6 @@
:disabled="dutyItem.defaultValue == '0'"
shape="square"
@change="changeChecked(index, riskFactorIndex, dutyItemIndex, dutyItem)"
:class="dutyItemIndex == 1 ? 'checked' : ''"
></van-checkbox>
</div>
</div>
@@ -777,6 +776,7 @@ export default {
} else {
this.chooseProducts = JSON.parse(localStorage.chooseProducts)
}
this.chooseProducts[0].calFactorLst[4].rules[1].necess = true
this.chooseProducts.forEach((item, index) => {
if (item.isCrossChannel == '1') {
this.isCrossChannel = item.isCrossChannel
@@ -2442,13 +2442,14 @@ export default {
dutyCode: dutyItem.duty,
dutyName: dutyItem.dutyName
})
}
})
result.push({
amt: "100000.00",
dutyCode: "jhblxbase21",
dutyName: "基本责任二方案1(身故保险金或全残保险金(保额))"
})
// result.push({
// amt: "100000.00",
// dutyCode: "jhblxbase21",
// dutyName: "基本责任二方案1(身故保险金或全残保险金(保额))"
// })
trialInfo.duty = result
}
})
@@ -3442,24 +3443,24 @@ export default {
}
}
.checked {
color: #fff !important;
background-color: #E9332E !important;
border-color: #E9332E;
}
/deep/ .van-icon {
border-color: #e9332e;
color: #fff !important;
}
.duty {
position: relative;
}
.zhe {
width: 30px;
height: 30px;
position: absolute;
top: 24.66667vw;
right: -4px;
z-index: 9;
}
// .checked {
// color: #fff !important;
// background-color: #E9332E !important;
// border-color: #E9332E;
// }
// /deep/ .van-icon {
// border-color: #e9332e;
// color: #fff !important;
// }
// .duty {
// position: relative;
// }
// .zhe {
// width: 30px;
// height: 30px;
// position: absolute;
// top: 24.66667vw;
// right: -4px;
// z-index: 9;
// }
</style>