Merge branch 'feature/GFRS-2015【待确定】开门红需求-电投改造' into release/20201210

This commit is contained in:
yang.huaxiang
2020-12-10 10:17:26 +08:00
19 changed files with 721 additions and 49 deletions

View File

@@ -2,18 +2,16 @@
<div class="main-risk-list-container pt10 redRadioCheckbox">
<van-radio-group v-model="result">
<van-cell-group>
<van-cell v-for="(item, index) in list" clickable @click="result = item" :key="index">
<van-cell v-for="(item, index) in list" clickable @click="result = item" :key="index" v-show="checkItemShow(item)">
<p slot="default">
<van-tag plain class="green fs12 mr10">{{ item.productType }}</van-tag>
<span class="c-gray-dark fs14">{{ item.riskName }}</span>
</p>
<van-radio checked-color="red" slot="right-icon" :name="item" />
</van-cell>
<van-cell> </van-cell>
<van-cell> </van-cell>
</van-cell-group>
</van-radio-group>
<div class="white_block"></div>
<van-button class="bottom-btn" type="danger" @click="nextStep">完成</van-button>
</div>
</template>
@@ -40,7 +38,8 @@ export default {
result: '',
delList: [],
radioVal: '',
isFrom: localStorage.isFrom
isFrom: localStorage.isFrom,
activeFlag: ''
}
},
async mounted() {
@@ -61,6 +60,8 @@ export default {
this.specilFlag = '1'
}
// ------------------------专为桂企写死--end---------------//
// 处理活动产品
this.activeFlag = res.orderDTO.orderInfoDTO.activeType
}
resolve(this.getMainRiskList())
},
@@ -74,6 +75,20 @@ export default {
}
},
methods: {
checkItemShow(item) {
if (this.activeFlag != 'KMH') {
return true
}
let showFlag = false
if (item.activeLst && item.activeLst.length > 0) {
item.activeLst.forEach(subItem => {
if (subItem == 'KMH') {
showFlag = true
}
})
}
return showFlag
},
//获取主险列表
async getMainRiskList() {
let mainRiskCodes = localStorage.mainRiskCodes && JSON.parse(localStorage.mainRiskCodes)
@@ -335,4 +350,9 @@ export default {
}
}
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped>
.white_block {
width: 100%;
height: 11.73333vw;
}
</style>