From 856b8a59179325e94343cdc16be4fc7e435d0254 Mon Sep 17 00:00:00 2001
From: lyt
Date: Mon, 10 Apr 2023 16:13:17 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=BB=BA=E8=AE=AE=E4=B9=A6=E5=88=86?=
=?UTF-8?q?=E4=BA=AB=E5=BE=AE=E4=BF=A1=E6=A0=87=E7=AD=BE=E5=86=85=E5=AE=B9?=
=?UTF-8?q?=E8=B0=83=E6=95=B4=E3=80=91=E5=8D=95/=E5=A4=9A=E8=A2=AB?=
=?UTF-8?q?=E4=BF=9D=E4=BA=BA=E5=A4=9A=E4=BA=A7=E5=93=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/ebiz/proposal/ProposalInfo.vue | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/src/views/ebiz/proposal/ProposalInfo.vue b/src/views/ebiz/proposal/ProposalInfo.vue
index 8fb005a92..e74313783 100644
--- a/src/views/ebiz/proposal/ProposalInfo.vue
+++ b/src/views/ebiz/proposal/ProposalInfo.vue
@@ -380,7 +380,7 @@ export default {
agent: {},
mainRiskCodes: [],
time: 5,
- proposalNo:'',
+ proposalNo:''
}
},
filters: {
@@ -542,6 +542,10 @@ export default {
}
} else {
//在app端
+ let agentResult = await getAgentInfo({}) //调取代理人查询接口
+ if (agentResult.result == '0') {
+ this.agent.name = agentResult.name
+ }
params.proposalInfoDTO.proposalNo = this.$CacheUtils.getLocItem('proposalNo')
getDemo(params).then(res => {
this.formatLocal(res)
@@ -579,6 +583,7 @@ export default {
}
},
async sharePeople() {
+ console.log(this.agent,'this.agent.name')
let date = new Date()
let month = date.getMonth() + 1
if (month <= 9) {
@@ -597,14 +602,27 @@ export default {
let ggrade =this.memberConversion(resData.content[0].ggrade);
shareContent='国富桂冠人力'+resData.content[0].glevel+'级'+ggrade+resData.content[0].name+'为您量身定制的保险产品,请查收';
} else {
- shareContent='国富为您量身定制的保险产品,请查收';
+ shareContent = this.agent.name+'为您设计的专属保险计划书,请查阅!因为国富,所以民安!';
+ }
+ let title
+ let riskList = []
+ this.pageShowInfo.insuredDTOs.map(item => {
+ if (item.isMainRisk == '0') { //主险
+ riskList.push(item)
+ }
+ })
+ // 多被保人,单个被保人一个产品
+ if(this.pageShowInfo.insuredDTOs.length > 1 || riskList.length > 1){
+ title='家庭综合保障计划'
+ }else{
+ title= riskList[0].riskName
}
let res = await getSharingToken({ shareType: 'proposal_demonstrate' })
if (res.result == '0') {
window.EWebBridge.webCallAppInJs('bridge', {
flag: 'share',
extra: {
- title: this.wxTitle,
+ title: title,
content: shareContent,
url: location.origin + '/#/proposal/proposalInfo?proposalNo=' + encodeURI(localStorage.proposalNo) + '&token=' + encodeURI(res.content),
img: this.$assetsUrl + 'images/logo.png'