mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 20:26:44 +08:00
pdf页面默认执行代码逻辑修改2
This commit is contained in:
@@ -9,6 +9,7 @@ import { Toast } from 'vant'
|
|||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
import dataDictionary from '@/assets/js/utils/data-dictionary' //使用数据字典中的险种类型
|
import dataDictionary from '@/assets/js/utils/data-dictionary' //使用数据字典中的险种类型
|
||||||
import { weixinShare } from '@/assets/js/utils/wxShare.js'
|
import { weixinShare } from '@/assets/js/utils/wxShare.js'
|
||||||
|
import { getAgentInfo } from '@/api/ebiz/my/my.js'
|
||||||
import { queryPersonal } from '@/api/ebiz/laurelClub/laurelClub'
|
import { queryPersonal } from '@/api/ebiz/laurelClub/laurelClub'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -16,7 +17,8 @@ export default {
|
|||||||
return {
|
return {
|
||||||
pdfUrl: '',
|
pdfUrl: '',
|
||||||
isWeixin,
|
isWeixin,
|
||||||
title: ''
|
title: '',
|
||||||
|
agent:{}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -75,6 +77,21 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
let agentResult = await getAgentInfo({}) //调取代理人查询接口
|
||||||
|
if (agentResult.result == '0'){
|
||||||
|
let { agent } = this
|
||||||
|
let { name } = agentResult
|
||||||
|
agent.name = name
|
||||||
|
}
|
||||||
|
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 shareContent;
|
||||||
let resData = await queryPersonal(reqData)
|
let resData = await queryPersonal(reqData)
|
||||||
if (resData.content.length&&resData.content[0].glevel>0&&resData.content[0].ggrade) {
|
if (resData.content.length&&resData.content[0].glevel>0&&resData.content[0].ggrade) {
|
||||||
|
|||||||
Reference in New Issue
Block a user