|
@@ -1,18 +1,18 @@
|
|
|
<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';
|
|
|
-import useHZRouter from '@/hooks/useHZRouter'
|
|
|
+import { useRoute , onBeforeRouteUpdate,useRouter} from 'vue-router';
|
|
|
import { useStore } from 'vuex';
|
|
|
moment.locale('zh-cn')
|
|
|
|
|
|
const route=useRoute()
|
|
|
-const HZRouter=useHZRouter()
|
|
|
+const router=useRouter()
|
|
|
const store=useStore()
|
|
|
|
|
|
let reportId=ref(route.query.reportId||'')
|
|
@@ -92,7 +92,7 @@ const getAsideMoreRecmd=async (data)=>{
|
|
|
|
|
|
//点击侧边栏更多推荐
|
|
|
const handleClickAsideRecmd=(item)=>{
|
|
|
- HZRouter.replace({
|
|
|
+ router.replace({
|
|
|
query:{
|
|
|
reportId:item.ReportId
|
|
|
}
|
|
@@ -118,7 +118,7 @@ const getAsideBanner=async (data)=>{
|
|
|
//点击侧边栏报告合集
|
|
|
const handleAsideBanner=(data)=>{
|
|
|
if(data.Type=='报告合集'){
|
|
|
- HZRouter.push({
|
|
|
+ router.push({
|
|
|
path:'/report/list',
|
|
|
query:{
|
|
|
classifyId:data.ClassifyIdFirst,
|
|
@@ -126,7 +126,7 @@ const handleAsideBanner=(data)=>{
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
|
- HZRouter.push({
|
|
|
+ router.push({
|
|
|
path:'/report/specialcolumndetail',
|
|
|
query:{
|
|
|
columnId:data.ClassifyIdSecond
|
|
@@ -179,7 +179,7 @@ const getTagColor=(str)=>{
|
|
|
|
|
|
// 跳转章节详情
|
|
|
const goChapterDetail=(item)=>{
|
|
|
- HZRouter.push({
|
|
|
+ router.push({
|
|
|
path:'/report/chapterdetail',
|
|
|
query:{
|
|
|
chapterId:item.report_chapter_id,
|
|
@@ -203,7 +203,7 @@ const handleGoApply=async ()=>{
|
|
|
})
|
|
|
}else{
|
|
|
if(!info.value.permission_check.customer_info.status||info.value.permission_check.customer_info.status!='流失'){
|
|
|
- HZRouter.push({
|
|
|
+ router.push({
|
|
|
path:'/apply/permission',
|
|
|
query:{
|
|
|
source:4,
|
|
@@ -250,6 +250,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 +403,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>
|