|
@@ -1,5 +1,5 @@
|
|
|
<script setup>
|
|
|
-import {onMounted, onUpdated, ref,computed} from 'vue'
|
|
|
+import {onMounted, onUpdated, ref,computed,nextTick} from 'vue'
|
|
|
import { ElMessageBox } from 'element-plus'
|
|
|
import moment from 'moment';
|
|
|
import 'moment/dist/locale/zh-cn'
|
|
@@ -12,12 +12,15 @@ import {apiApplyPermission} from '@/api/user'
|
|
|
import preLoadImg from '@/utils/preLoadImg.js'
|
|
|
import { useRoute , onBeforeRouteUpdate,useRouter} from 'vue-router';
|
|
|
import { useStore } from 'vuex';
|
|
|
+import {useWaterMark} from '@/hooks/waterMark.js'
|
|
|
moment.locale('zh-cn')
|
|
|
|
|
|
const route=useRoute()
|
|
|
const router=useRouter()
|
|
|
const store=useStore()
|
|
|
|
|
|
+const waterMarkEl=ref('')//水印盒子
|
|
|
+
|
|
|
let reportId=ref(route.query.reportId||'')
|
|
|
|
|
|
//获取报告对应的ppt图片
|
|
@@ -81,6 +84,11 @@ const getReportDetail=async ()=>{
|
|
|
getAsideMoreRecmd(res.data.report_info)
|
|
|
getAsideBanner(res.data.report_info)
|
|
|
getReportPPTImgs()
|
|
|
+
|
|
|
+ // 设置水印
|
|
|
+ nextTick(()=>{
|
|
|
+ useWaterMark(store.state.userInfo.mobile,waterMarkEl)
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
//向小程序发送分享数据
|
|
@@ -437,7 +445,7 @@ const formatTitle=(e)=>{
|
|
|
<AudioBox :data="audioData" v-if="info.report_info.video_url&&info.report_info.video_play_seconds>0"></AudioBox>
|
|
|
<!-- <div class="abstract" v-if="info.report_info.abstract">摘要:{{info.report_info.abstract}}</div> -->
|
|
|
|
|
|
- <div class="rich-content">
|
|
|
+ <div class="rich-content" ref="waterMarkEl">
|
|
|
<div v-html="info.report_info.content" v-if="info.auth_ok"></div>
|
|
|
<div v-html="info.report_info.content_sub" v-else></div>
|
|
|
</div>
|
|
@@ -611,16 +619,19 @@ const formatTitle=(e)=>{
|
|
|
margin-top: 30px;
|
|
|
line-height: 1.8;
|
|
|
font-size: 18px;
|
|
|
+ position: relative;
|
|
|
:deep(img){
|
|
|
width: 100% !important;
|
|
|
}
|
|
|
:deep(span){
|
|
|
font-size: 18px !important;
|
|
|
line-height: 1.8 !important;
|
|
|
+ background-color: rgba(255, 255, 255, 0) !important;
|
|
|
}
|
|
|
:deep(p){
|
|
|
font-size: 18px !important;
|
|
|
line-height: 1.8 !important;
|
|
|
+ background-color: rgba(255, 255, 255, 0) !important;
|
|
|
}
|
|
|
:deep(iframe){
|
|
|
width: 100% !important;
|