diff --git a/src/views/ebiz/common/MainRiskList.vue b/src/views/ebiz/common/MainRiskList.vue index 81d4cdd36..b7b3839f4 100644 --- a/src/views/ebiz/common/MainRiskList.vue +++ b/src/views/ebiz/common/MainRiskList.vue @@ -200,13 +200,21 @@ export default { } this.list = resultData.content.mainRiskDTOS //------------------------专为惠企写死--begin---------------// - if (this.list.length > 0 && this.specilFlag == '1' && localStorage.isFrom == 'sale') { + // if (this.list.length > 0 && this.specilFlag == '1' && localStorage.isFrom == 'sale') { + // this.result = this.list.find(v => { + // return v.riskProductCode == 'GFRS_M0040' + // }) + // } + + // ------------------------专为惠企写死--end---------------// + //如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品 + if (this.list.length > 0) { + console.log(localStorage.productCodeChooseFromList) this.result = this.list.find(v => { - return v.riskProductCode == 'GFRS_M0040' + return v.riskProductCode == localStorage.productCodeChooseFromList }) } - // ------------------------专为惠企写死--end---------------// - + if (this.list.length == 0) { this.$dialog({ message: '暂无可选产品!' }).then(() => { this.$jump({ @@ -258,12 +266,19 @@ export default { } this.list = resultData.mainRiskDTOS //------------------------专为惠企写死--begin---------------// - if (this.list.length > 0 && this.specilFlag == '1' && localStorage.isFrom == 'sale') { + // if (this.list.length > 0 && this.specilFlag == '1' && localStorage.isFrom == 'sale') { + // this.result = this.list.find(v => { + // return v.riskProductCode == 'GFRS_M0040' + // }) + // } + // ------------------------专为惠企写死--end---------------// + // 如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品 + if (this.list.length > 0) { + console.log(localStorage.productCodeChooseFromList) this.result = this.list.find(v => { - return v.riskProductCode == 'GFRS_M0040' + return v.riskProductCode == localStorage.productCodeChooseFromList }) } - // ------------------------专为惠企写死--end---------------// if (this.list.length == 0) { this.$dialog({ message: '暂无可选产品!' }).then(() => { diff --git a/src/views/ebiz/cooperativeUnit/CooperativeDetail.vue b/src/views/ebiz/cooperativeUnit/CooperativeDetail.vue index 0add9e072..d2e1dac59 100644 --- a/src/views/ebiz/cooperativeUnit/CooperativeDetail.vue +++ b/src/views/ebiz/cooperativeUnit/CooperativeDetail.vue @@ -50,7 +50,8 @@ export default { isCheck: 0, //查看是否有权限 active: 2, docuList: [], // 产品资料文件 - introductImages: [] // 产品特色图片 + introductImages: [], // 产品特色图片 + itemProductDTOS: [], // 产品信息 } }, created() { @@ -83,10 +84,10 @@ export default { // this.$jump({ // flag: 'h5', // extra: { - // url: location.origin + '/#/product/productDocument' + // url: location.origin + '/#/cooperativeUnit/CooperativeDocument' // }, // routerInfo: { - // path: `/product/productDocument` + // path: `/cooperativeUnit/CooperativeDocument` // } // }) }, @@ -131,6 +132,8 @@ export default { //校验该代理人是否有该产品的售卖权限 return this.$toast('抱歉,您没有该产品的销售权限!') } + // 从产品列表进入时,存储所选产品的code--如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品 + localStorage.productCodeChooseFromList = this.itemProductDTOS[0].productCode // 跳转到投保建议 this.$jump({ flag: 'h5', @@ -155,6 +158,7 @@ export default { this.introductImages = res.productShowInfo.introductImages // 获取产品资料文件 this.docuList = res.productShowInfo.documents + this.itemProductDTOS = res.productShowInfo.itemProductDTOS } } }, diff --git a/src/views/ebiz/cooperativeUnit/CooperativeList.vue b/src/views/ebiz/cooperativeUnit/CooperativeList.vue index 3b6c7dd6a..237c0f99e 100644 --- a/src/views/ebiz/cooperativeUnit/CooperativeList.vue +++ b/src/views/ebiz/cooperativeUnit/CooperativeList.vue @@ -175,10 +175,10 @@ export default { this.$jump({ flag: 'h5', extra: { - url: location.origin + `/#/product/ProductDetail/${productCode}` + url: location.origin + `/#/cooperativeUnit/cooperativeDetail/${productCode}` }, routerInfo: { - path: `/product/ProductDetail/${productCode}` + path: `/cooperativeUnit/cooperativeDetail/${productCode}` } }) } diff --git a/src/views/ebiz/product/ProductDetail.vue b/src/views/ebiz/product/ProductDetail.vue index 0add9e072..9ff9be2e2 100644 --- a/src/views/ebiz/product/ProductDetail.vue +++ b/src/views/ebiz/product/ProductDetail.vue @@ -50,7 +50,8 @@ export default { isCheck: 0, //查看是否有权限 active: 2, docuList: [], // 产品资料文件 - introductImages: [] // 产品特色图片 + introductImages: [], // 产品特色图片 + itemProductDTOS: [], // 产品信息 } }, created() { @@ -131,7 +132,8 @@ export default { //校验该代理人是否有该产品的售卖权限 return this.$toast('抱歉,您没有该产品的销售权限!') } - // 跳转到投保建议 + // 从产品列表进入时,存储所选产品的code--如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品 + localStorage.productCodeChooseFromList = this.itemProductDTOS[0].productCode // 跳转到投保建议 this.$jump({ flag: 'h5', extra: { @@ -155,6 +157,7 @@ export default { this.introductImages = res.productShowInfo.introductImages // 获取产品资料文件 this.docuList = res.productShowInfo.documents + this.itemProductDTOS = res.productShowInfo.itemProductDTOS } } },