diff --git a/src/views/ebiz/productFlowImprove/ProductDetail.vue b/src/views/ebiz/productFlowImprove/ProductDetail.vue index bbddafbe9..02c1fee5a 100644 --- a/src/views/ebiz/productFlowImprove/ProductDetail.vue +++ b/src/views/ebiz/productFlowImprove/ProductDetail.vue @@ -7,24 +7,28 @@ -
+
- + + + @click="handleViewDocClick(item.url, item.type, item.name)" + > + + - -
- 制作建议书 - 立即投保 +
+ 立即投保
+
@@ -53,7 +57,7 @@ export default { docuList: [], // 产品资料文件 introductImages: [], // 产品特色图片 itemProductDTOS: [], // 产品信息 - branchType:'3', + branchType: '3' } }, created() { @@ -66,19 +70,19 @@ export default { this.isCheck = res.result }) }, - mounted(){ + mounted() { this.getAgentInfo() }, methods: { - getAgentInfo(){ - getAgentInfo({}).then(res=>{ - if(res.result == 0){ - console.log('getAgentInfo',res) + getAgentInfo() { + getAgentInfo({}).then(res => { + if (res.result == 0) { + console.log('getAgentInfo', res) this.branchType = res.branchType } }) }, - goDocu(url, type, name) { + handleViewDocClick(url, type, name) { let pdfUrl = encodeURIComponent(url) this.$jump({ flag: 'h5', @@ -126,7 +130,7 @@ export default { localStorage.chooseProductCodes = '' //置空所选险种 let path = `/sale/insuredInfo` let flagPermission = { - flag:true + flag: true } if (this.$route.params.productDetailCode == 'GFRSPRO_M0024' || this.$route.params.productDetailCode == 'GFRSPRO_M0040') { flagPermission = await riskRules.getProductSellPermissionList('GFRS_M0040', this) @@ -136,7 +140,7 @@ export default { flagPermission = await riskRules.getProductSellPermissionList('GFRS_M0044', this) let specilFlag = '1' path = `${path}?specilFlag=${specilFlag}` - }else if (this.$route.params.productDetailCode == 'GFRSPRO_M0051') { + } else if (this.$route.params.productDetailCode == 'GFRSPRO_M0051') { flagPermission = await riskRules.getProductSellPermissionList('GFRS_M0051', this) let specilFlag = '1' path = `${path}?specilFlag=${specilFlag}` @@ -148,7 +152,7 @@ export default { return this.$toast(flagPermission.resultMessage) } // 从产品列表进入时,存储所选产品的code--如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品 - localStorage.productCodeChooseFromList = this.itemProductDTOS[0].productCode // 跳转到投保建议 + localStorage.productCodeChooseFromList = this.itemProductDTOS[0].productCode // 跳转到投保建议 this.$jump({ flag: 'h5', extra: { @@ -185,29 +189,8 @@ export default {