|
@@ -1,6 +1,11 @@
|
|
|
<script setup>
|
|
|
import {ref,onMounted} from 'vue'
|
|
|
-import {apiChapterDetail,apiChapterTickerValue,apiReportMoreRecmd} from '@/api/report'
|
|
|
+import {
|
|
|
+ apiChapterDetail,
|
|
|
+ apiChapterTickerValue,
|
|
|
+ apiReportMoreRecmd,
|
|
|
+ apiReportDetailBanner
|
|
|
+} from '@/api/report'
|
|
|
import {apiApplyPermission} from '@/api/user'
|
|
|
import {apiGetWechatQRCode} from '@/api/common'
|
|
|
import { ElMessageBox } from 'element-plus'
|
|
@@ -68,15 +73,6 @@ const getTickerValue=async ()=>{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 侧边栏更多推荐
|
|
|
-let moreRecmdList=ref([])
|
|
|
-const getAsideMoreRecmd=async (reportId)=>{
|
|
|
- const res=await apiReportMoreRecmd({reportId:Number(reportId)})
|
|
|
- if(res.code===200){
|
|
|
- moreRecmdList.value=res.data
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
// 获取章节报告详情
|
|
|
let info=ref(null)
|
|
|
let audioData=ref(null)
|
|
@@ -119,7 +115,8 @@ const getChapterReportDetail=async ()=>{
|
|
|
|
|
|
// 获取侧边更多推荐
|
|
|
if(res.data.auth_ok){
|
|
|
- getAsideMoreRecmd(res.data.report_chapter_item.report_id)
|
|
|
+ getAsideMoreRecmd(res.data.report_chapter_item)
|
|
|
+ getAsideBanner(res.data.report_chapter_item)
|
|
|
}
|
|
|
|
|
|
//向小程序发送分享数据
|
|
@@ -136,6 +133,42 @@ const getChapterReportDetail=async ()=>{
|
|
|
}
|
|
|
getChapterReportDetail()
|
|
|
|
|
|
+// 侧边栏更多推荐
|
|
|
+let moreRecmdList=ref([])
|
|
|
+const getAsideMoreRecmd=async (data)=>{
|
|
|
+ const res=await apiReportMoreRecmd({
|
|
|
+ reportId:Number(data.report_id),
|
|
|
+ classify_name_first:data.classify_name_first
|
|
|
+ })
|
|
|
+ if(res.code===200){
|
|
|
+ moreRecmdList.value=res.data
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// 点击侧边栏更多推荐
|
|
|
+const handleClickAsideRecmd=item=>{
|
|
|
+ router.replace({
|
|
|
+ query:{
|
|
|
+ chapterId:item.ReportChapterID
|
|
|
+ }
|
|
|
+ })
|
|
|
+ chapterId.value=item.ReportChapterID
|
|
|
+ getChapterReportDetail()
|
|
|
+ getQRCodeImg()
|
|
|
+}
|
|
|
+
|
|
|
+//侧边栏报告合集
|
|
|
+let banner=ref(null)
|
|
|
+const getAsideBanner=async (data)=>{
|
|
|
+ const res=await apiReportDetailBanner({
|
|
|
+ reportId:Number(data.report_id),
|
|
|
+ classify_name_first:data.classify_name_first
|
|
|
+ })
|
|
|
+ if(res.code===200){
|
|
|
+ banner.value=res.data
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
//点击底部切换章节
|
|
|
const handleChangeChapter=(item)=>{
|
|
|
chapterId.value=item.report_chapter_id
|
|
@@ -223,7 +256,6 @@ const handleGoApply=async ()=>{
|
|
|
|
|
|
let showDisclaimers=ref(false)//显示免责声明
|
|
|
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
@@ -303,22 +335,19 @@ let showDisclaimers=ref(false)//显示免责声明
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="hot-box" style="margin-top: 60px;">
|
|
|
- <div class="label">热门栏目</div>
|
|
|
+ <div class="label">报告合集</div>
|
|
|
<div class="img-con"></div>
|
|
|
</div>
|
|
|
<div class="recmd-box" style="margin-top: 60px;">
|
|
|
<div class="label">更多推荐</div>
|
|
|
- <div class="recmd-item">
|
|
|
- <div class="title">股债日评</div>
|
|
|
- <div>178 | 关注中美领导交流</div>
|
|
|
- </div>
|
|
|
- <div class="recmd-item">
|
|
|
- <div class="title">股债日评</div>
|
|
|
- <div>178 | 关注中美领导交流</div>
|
|
|
- </div>
|
|
|
- <div class="recmd-item">
|
|
|
- <div class="title">股债日评</div>
|
|
|
- <div>178 | 关注中美领导交流</div>
|
|
|
+ <div
|
|
|
+ class="recmd-item"
|
|
|
+ v-for="item in moreRecmdList"
|
|
|
+ :key="item.ReportChapterID"
|
|
|
+ @click="handleClickAsideRecmd(item)"
|
|
|
+ >
|
|
|
+ <div class="title">{{item.ClassifyNameFirst}}</div>
|
|
|
+ <div>{{item.Stage}} | {{item.Title}}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|