|
@@ -1,14 +1,18 @@
|
|
<script setup>
|
|
<script setup>
|
|
import Comment from '@/components/Comment.vue'
|
|
import Comment from '@/components/Comment.vue'
|
|
import moment from 'moment'
|
|
import moment from 'moment'
|
|
-import {ref,onMounted} from 'vue'
|
|
|
|
|
|
+import {ref,onMounted,nextTick} from 'vue'
|
|
import { useRoute ,useRouter} from 'vue-router'
|
|
import { useRoute ,useRouter} from 'vue-router'
|
|
import { useStore } from 'vuex';
|
|
import { useStore } from 'vuex';
|
|
|
|
+import {useWaterMark} from '@/hooks/waterMark.js'
|
|
|
|
+
|
|
const route=useRoute()
|
|
const route=useRoute()
|
|
const router=useRouter()
|
|
const router=useRouter()
|
|
const store=useStore()
|
|
const store=useStore()
|
|
moment.locale('zh-cn')
|
|
moment.locale('zh-cn')
|
|
|
|
|
|
|
|
+const waterMarkEl=ref('')//水印盒子
|
|
|
|
+
|
|
import {apiGetReportDetail} from '@/api/activity'
|
|
import {apiGetReportDetail} from '@/api/activity'
|
|
let info=ref(null)
|
|
let info=ref(null)
|
|
const getInfo=async ()=>{
|
|
const getInfo=async ()=>{
|
|
@@ -17,7 +21,12 @@ const getInfo=async ()=>{
|
|
info.value=res.data
|
|
info.value=res.data
|
|
if(['day','week'].includes(res.data.research_report_info.type)){
|
|
if(['day','week'].includes(res.data.research_report_info.type)){
|
|
store.commit('modifyBreadCrumb',res.data.research_report_info.type=='day'?'晨报':'周报')
|
|
store.commit('modifyBreadCrumb',res.data.research_report_info.type=='day'?'晨报':'周报')
|
|
|
|
+ }else{
|
|
|
|
+ nextTick(()=>{
|
|
|
|
+ useWaterMark(store.state.userInfo.mobile,waterMarkEl)
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
getInfo()
|
|
getInfo()
|
|
@@ -133,7 +142,7 @@ let showDisclaimers=ref(false)
|
|
</div>
|
|
</div>
|
|
<div class="sub-title">摘要:{{info.research_report_info.researchReportName.substring(info.research_report_info.researchReportName.indexOf('】')+1)}}</div>
|
|
<div class="sub-title">摘要:{{info.research_report_info.researchReportName.substring(info.research_report_info.researchReportName.indexOf('】')+1)}}</div>
|
|
</div>
|
|
</div>
|
|
- <div class="section content-wrap">
|
|
|
|
|
|
+ <div class="section content-wrap" ref="waterMarkEl">
|
|
<div class="item" v-for="item in info.ResearchReportTypeContentList" :key="item.sort">
|
|
<div class="item" v-for="item in info.ResearchReportTypeContentList" :key="item.sort">
|
|
<h2 class="content-title">{{item.content_type?item.content_type:'核心观点'}}</h2>
|
|
<h2 class="content-title">{{item.content_type?item.content_type:'核心观点'}}</h2>
|
|
<div v-html="item.content" class="content-text" @click="clickContent"></div>
|
|
<div v-html="item.content" class="content-text" @click="clickContent"></div>
|