|
@@ -1,9 +1,10 @@
|
|
|
<script setup>
|
|
|
-import {onMounted, onUpdated, ref} from 'vue'
|
|
|
+import {onMounted, onUpdated, ref,computed} from 'vue'
|
|
|
import { ElMessageBox } from 'element-plus'
|
|
|
import moment from 'moment';
|
|
|
import 'moment/dist/locale/zh-cn'
|
|
|
import AudioBox from './components/AudioBox.vue'
|
|
|
+import SharePoster from '@/components/SharePoster.vue'
|
|
|
import {apiReportDetail,apiReportMoreRecmd,apiReportDetailBanner} from '@/api/report'
|
|
|
import {apiGetWechatQRCode} from '@/api/common'
|
|
|
import { useRoute , onBeforeRouteUpdate} from 'vue-router';
|
|
@@ -250,6 +251,18 @@ getQRCodeImg()
|
|
|
|
|
|
let showDisclaimers=ref(false)//显示免责声明
|
|
|
|
|
|
+const code_scene=computed(()=>{
|
|
|
+ return JSON.stringify({reportId:reportId.value})
|
|
|
+})
|
|
|
+
|
|
|
+const posterParams=computed(()=>{
|
|
|
+ return {
|
|
|
+ report_type:info.value.report_info.classify_name_first,
|
|
|
+ report_title:`【第${info.value.report_info.stage}期 | ${info.value.report_info.classify_name_second}】${info.value.report_info.title}`,
|
|
|
+ report_abstract:info.value.report_info.content
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
@@ -391,6 +404,19 @@ let showDisclaimers=ref(false)//显示免责声明
|
|
|
<div style="margin-bottom:10px">4、在任何情况下,本公司不对客户/接受人/接受机构因使用报告中内容所引致的一切损失负责任,客户/接受人/接受机构需自行承担全部风险。</div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <!-- 生成海报 -->
|
|
|
+ <Teleport to="body">
|
|
|
+ <SharePoster
|
|
|
+ :shareData="{
|
|
|
+ type:'report_detail',
|
|
|
+ code_page:'pages-report/reportDetail',
|
|
|
+ code_scene:code_scene,
|
|
|
+ data:posterParams
|
|
|
+ }"
|
|
|
+ v-if="info&&info.auth_ok"
|
|
|
+ ></SharePoster>
|
|
|
+ </Teleport>
|
|
|
</template>
|
|
|
|
|
|
<style lang="scss" scoped>
|