mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 13:26:44 +08:00
GFRS-454【0326】 建议书优化2.0 初版代码备份提交_4 --提交人:阳华祥
This commit is contained in:
@@ -7,6 +7,7 @@ const exhibition = () => import('@/views/ebiz/proposal/Exhibition')
|
||||
const companyProfile = () => import('@/views/ebiz/proposal/CompanyProfile')
|
||||
const pdf = () => import('@/views/ebiz/proposal/PDF')
|
||||
const proposalInfo = () => import('@/views/ebiz/proposal/ProposalInfo')
|
||||
const caluePdf = () => import('@/views/ebiz/proposal/CaluePDF')
|
||||
export default [
|
||||
{
|
||||
path: '/proposal/list',
|
||||
@@ -76,5 +77,13 @@ export default [
|
||||
meta: {
|
||||
title: 'PDF预览'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/proposal/caluePdf',
|
||||
name: 'caluePdf',
|
||||
component: caluePdf,
|
||||
meta: {
|
||||
title: '条款PDF查看'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
59
src/views/ebiz/proposal/CaluePDF.vue
Normal file
59
src/views/ebiz/proposal/CaluePDF.vue
Normal file
@@ -0,0 +1,59 @@
|
||||
<template>
|
||||
<div class="pdf">
|
||||
<iframe style="width:100vw;height:100vh" :src="pdfUrl"></iframe>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { makePdf } from '@/api/ebiz/proposal/proposal.js'
|
||||
import { Toast } from 'vant'
|
||||
import config from '@/config'
|
||||
import dataDictionary from '@/assets/js/utils/data-dictionary' //使用数据字典中的险种类型
|
||||
import { weixinShare } from '@/assets/js/utils/wxShare.js'
|
||||
export default {
|
||||
data() {
|
||||
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||
return {
|
||||
pdfUrl: '',
|
||||
isWeixin,
|
||||
title: ''
|
||||
}
|
||||
},
|
||||
components: {
|
||||
[Toast.name]: Toast
|
||||
},
|
||||
created() {
|
||||
this.init()
|
||||
},
|
||||
mounted() {},
|
||||
methods: {
|
||||
async init() {
|
||||
let pdfUrl = location.showCaluePDFUrl
|
||||
this.pdfUrl = location.origin + '/pdfjs/web/viewer.html?file=' + pdfUrl
|
||||
},
|
||||
// 分享按钮
|
||||
filterBtn() {
|
||||
window.EWebBridge.webCallAppInJs('webview_right_button', {
|
||||
btns: [
|
||||
{
|
||||
img: this.$assetsUrl + 'images/share@3x.png'
|
||||
}
|
||||
]
|
||||
})
|
||||
},
|
||||
appCallBack(data) {
|
||||
if (data.trigger == 'right_button_click') {
|
||||
// eslint-disable-next-line no-undef
|
||||
EWebBridge.webCallAppInJs('bridge', {
|
||||
flag: 'share',
|
||||
extra: {
|
||||
title: this.title,
|
||||
content: '国富为您量身定制的保险产品,请查收',
|
||||
url: location.origin + '/#/proposal/pdf?orderNo=' + localStorage.orderNo + '&token=' + localStorage.token,
|
||||
img: this.$assetsUrl + 'images/logo.png'
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user