|
@@ -6,7 +6,7 @@ import 'moment/dist/locale/zh-cn'
|
|
import AudioBox from './components/AudioBox.vue'
|
|
import AudioBox from './components/AudioBox.vue'
|
|
import SharePoster from '@/components/SharePoster.vue'
|
|
import SharePoster from '@/components/SharePoster.vue'
|
|
import Comment from '@/components/Comment.vue'
|
|
import Comment from '@/components/Comment.vue'
|
|
-import {apiReportDetail,apiReportMoreRecmd,apiReportDetailBanner,apiRddpShareImg} from '@/api/report'
|
|
|
|
|
|
+import {apiReportDetail,apiReportMoreRecmd,apiReportDetailBanner,apiRddpShareImg,apiReportPPtImgs} from '@/api/report'
|
|
import {apiGetWechatQRCode} from '@/api/common'
|
|
import {apiGetWechatQRCode} from '@/api/common'
|
|
import { useRoute , onBeforeRouteUpdate,useRouter} from 'vue-router';
|
|
import { useRoute , onBeforeRouteUpdate,useRouter} from 'vue-router';
|
|
import { useStore } from 'vuex';
|
|
import { useStore } from 'vuex';
|
|
@@ -18,6 +18,19 @@ const store=useStore()
|
|
|
|
|
|
let reportId=ref(route.query.reportId||'')
|
|
let reportId=ref(route.query.reportId||'')
|
|
|
|
|
|
|
|
+//获取报告对应的ppt图片
|
|
|
|
+const pptIcon=new URL('../../assets/ppt-icon.png', import.meta.url).href
|
|
|
|
+let pptImgs=ref([])
|
|
|
|
+const getReportPPTImgs=async ()=>{
|
|
|
|
+ const res=await apiReportPPtImgs({
|
|
|
|
+ report_id:Number(reportId.value),
|
|
|
|
+ report_chapter_id:0
|
|
|
|
+ })
|
|
|
|
+ if(res.code===200){
|
|
|
|
+ pptImgs.value=res.data||[]
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
// 获取报告详情
|
|
// 获取报告详情
|
|
let info=ref(null)
|
|
let info=ref(null)
|
|
let audioData=ref(null)
|
|
let audioData=ref(null)
|
|
@@ -62,6 +75,7 @@ const getReportDetail=async ()=>{
|
|
if(res.data.auth_ok){
|
|
if(res.data.auth_ok){
|
|
getAsideMoreRecmd(res.data.report_info)
|
|
getAsideMoreRecmd(res.data.report_info)
|
|
getAsideBanner(res.data.report_info)
|
|
getAsideBanner(res.data.report_info)
|
|
|
|
+ getReportPPTImgs()
|
|
}
|
|
}
|
|
|
|
|
|
//向小程序发送分享数据
|
|
//向小程序发送分享数据
|
|
@@ -381,7 +395,7 @@ const formatTitle=(e)=>{
|
|
<span>FICC团队</span>
|
|
<span>FICC团队</span>
|
|
<span>{{moment(info.report_info.publish_time).format('YYYY.MM.DD HH:mm')}}</span>
|
|
<span>{{moment(info.report_info.publish_time).format('YYYY.MM.DD HH:mm')}}</span>
|
|
</div>
|
|
</div>
|
|
- <div class="flex tips">
|
|
|
|
|
|
+ <div class="flex tips" style="position:relative">
|
|
<div>
|
|
<div>
|
|
<div class="abstract" v-if="info.report_info.abstract">摘要:{{info.report_info.abstract}}</div>
|
|
<div class="abstract" v-if="info.report_info.abstract">摘要:{{info.report_info.abstract}}</div>
|
|
<div>
|
|
<div>
|
|
@@ -389,6 +403,15 @@ const formatTitle=(e)=>{
|
|
<span style="color:#F3A52F;margin-left:20px;cursor: pointer;" @click="showDisclaimers=true">免责声明</span>
|
|
<span style="color:#F3A52F;margin-left:20px;cursor: pointer;" @click="showDisclaimers=true">免责声明</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <el-image
|
|
|
|
+ style="width: 24px; height: 24px;position: absolute;right:0;bottom:0"
|
|
|
|
+ :src="pptIcon"
|
|
|
|
+ :preview-src-list="pptImgs"
|
|
|
|
+ :initial-index="0"
|
|
|
|
+ fit="cover"
|
|
|
|
+ preview-teleported
|
|
|
|
+ v-if="pptImgs.length>0"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
<!-- 音频模块 -->
|
|
<!-- 音频模块 -->
|
|
<AudioBox :data="audioData" v-if="info.report_info.video_url&&info.report_info.video_play_seconds>0"></AudioBox>
|
|
<AudioBox :data="audioData" v-if="info.report_info.video_url&&info.report_info.video_play_seconds>0"></AudioBox>
|