保费计算 默认选中第二条方案

This commit is contained in:
xuxingjun
2024-11-20 17:47:10 +08:00
parent 4c475ce1eb
commit 87c746bcf4

View File

@@ -102,6 +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="flex justify-content-s border-bd pv10 align-items-c" v-for="(dutyItem, dutyItemIndex) in riskFactor.rules" :key="dutyItemIndex">
<span
v-if="
@@ -173,6 +174,7 @@
:disabled="dutyItem.defaultValue == '0'"
shape="square"
@change="changeChecked(index, riskFactorIndex, dutyItemIndex, dutyItem)"
:class="dutyItemIndex == 1 ? 'checked' : ''"
></van-checkbox>
</div>
</div>
@@ -2442,6 +2444,11 @@ export default {
})
}
})
result.push({
amt: "100000.00",
dutyCode: "jhblxbase21",
dutyName: "基本责任二方案1(身故保险金或全残保险金(保额))"
})
trialInfo.duty = result
}
})
@@ -3434,4 +3441,25 @@ export default {
border: 1px solid red;
}
}
.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>