mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 23:02:52 +08:00
【建议书分享微信标签内容调整】单/多被保人多产品
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user