mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 02:16:44 +08:00
【桂冠建议书标识】 修改分享标题
This commit is contained in:
@@ -9,6 +9,7 @@ import { Toast } from 'vant'
|
||||
import config from '@/config'
|
||||
import dataDictionary from '@/assets/js/utils/data-dictionary' //使用数据字典中的险种类型
|
||||
import { weixinShare } from '@/assets/js/utils/wxShare.js'
|
||||
import { queryPersonal } from '@/api/ebiz/laurelClub/laurelClub'
|
||||
export default {
|
||||
data() {
|
||||
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||
@@ -86,13 +87,30 @@ export default {
|
||||
})
|
||||
},
|
||||
appCallBack(data) {
|
||||
let date = new Date()
|
||||
let month = date.getMonth() + 1
|
||||
if (month <= 9) {
|
||||
month = '0' + month
|
||||
}
|
||||
let reqData = {
|
||||
mdType: 'm',
|
||||
monthStr:date.getFullYear() + month
|
||||
}
|
||||
let shareContent;
|
||||
let resData = queryPersonal(reqData)
|
||||
if (resData.content.length) {
|
||||
let ggrade =this.memberConversion(resData.content[0].ggrade);
|
||||
shareContent='国富桂冠人力'+resData.content[0].glevel+'级'+ggrade+resData.content[0].name+'为您量身定制的保险产品,请查收';
|
||||
} else {
|
||||
shareContent='国富为您量身定制的保险产品,请查收';
|
||||
}
|
||||
if (data.trigger == 'right_button_click') {
|
||||
// eslint-disable-next-line no-undef
|
||||
EWebBridge.webCallAppInJs('bridge', {
|
||||
flag: 'share',
|
||||
extra: {
|
||||
title: this.title,
|
||||
content: '国富为您量身定制的保险产品,请查收',
|
||||
content: shareContent,
|
||||
url: location.origin + '/#/proposal/pdf?orderNo=' + localStorage.orderNo + '&token=' + localStorage.token,
|
||||
img: this.$assetsUrl + 'images/logo.png'
|
||||
}
|
||||
|
||||
@@ -300,6 +300,7 @@ import { getAgentInfo } from '@/api/ebiz/my/my.js'
|
||||
import getAge from '@/assets/js/utils/age.js'
|
||||
import dataDictionary from '@/assets/js/utils/data-dictionary'
|
||||
import riskRules from '../common/risk-rules.js'
|
||||
import { queryPersonal } from '@/api/ebiz/laurelClub/laurelClub'
|
||||
export default {
|
||||
data() {
|
||||
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||
@@ -548,12 +549,29 @@ export default {
|
||||
},
|
||||
async sharePeople() {
|
||||
let res = await getSharingToken({ shareType: 'proposal_demonstrate' })
|
||||
let date = new Date()
|
||||
let month = date.getMonth() + 1
|
||||
if (month <= 9) {
|
||||
month = '0' + month
|
||||
}
|
||||
let reqData = {
|
||||
mdType: 'm',
|
||||
monthStr:date.getFullYear() + month
|
||||
}
|
||||
let shareContent;
|
||||
let resData = await queryPersonal(reqData)
|
||||
if (resData.content.length) {
|
||||
let ggrade =this.memberConversion(resData.content[0].ggrade);
|
||||
shareContent='国富桂冠人力'+resData.content[0].glevel+'级'+ggrade+resData.content[0].name+'为您量身定制的保险产品,请查收';
|
||||
} else {
|
||||
shareContent='国富为您量身定制的保险产品,请查收';
|
||||
}
|
||||
if (res.result == '0') {
|
||||
window.EWebBridge.webCallAppInJs('bridge', {
|
||||
flag: 'share',
|
||||
extra: {
|
||||
title: this.wxTitle,
|
||||
content: '国富为您量身定制的保险产品,请查收',
|
||||
content: shareContent,
|
||||
url: location.origin + '/#/proposal/proposalInfo?proposalNo=' + encodeURI(this.proposalNo) + '&token=' + encodeURI(res.content),
|
||||
img: this.$assetsUrl + 'images/logo.png'
|
||||
}
|
||||
@@ -810,6 +828,30 @@ export default {
|
||||
values.push(object[property])
|
||||
}
|
||||
return values
|
||||
},
|
||||
memberConversion(status) {
|
||||
let text
|
||||
switch (status) {
|
||||
case '01':
|
||||
text = '正式会员'
|
||||
break
|
||||
case '02':
|
||||
text = '铜牌会员'
|
||||
break
|
||||
case '03':
|
||||
text = '银牌会员'
|
||||
break
|
||||
case '04':
|
||||
text = '金牌会员'
|
||||
break
|
||||
case '05':
|
||||
text = '白金会员'
|
||||
break
|
||||
case '06':
|
||||
text = '终身会员'
|
||||
break
|
||||
}
|
||||
return text
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
||||
Reference in New Issue
Block a user