ChapterDetail.vue 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940
  1. <script setup>
  2. import {ref,onMounted,computed,nextTick} from 'vue'
  3. import {
  4. apiChapterDetail,
  5. apiChapterTickerValue,
  6. apiReportMoreRecmd,
  7. apiReportDetailBanner,
  8. apiRddpShareImg,
  9. apiReportPPtImgs,
  10. apiPublicBannerMark,
  11. apiPublicBannerList
  12. } from '@/api/report'
  13. import {apiApplyPermission} from '@/api/user'
  14. import {apiGetWechatQRCode} from '@/api/common'
  15. import { ElMessageBox } from 'element-plus'
  16. import moment from 'moment';
  17. import AudioBox from './components/AudioBox.vue'
  18. import SharePoster from '@/components/SharePoster.vue'
  19. import Comment from '@/components/Comment.vue'
  20. import preLoadImg from '@/utils/preLoadImg.js'
  21. import { useRoute,onBeforeRouteUpdate,useRouter } from 'vue-router';
  22. import { useStore } from 'vuex'
  23. import CollectBox from '@/components/CollectBox.vue'
  24. import collectIcon from '@/assets/collect2.png'
  25. import collectSIcon from '@/assets/collect2-s.png'
  26. import {useWaterMark} from '@/hooks/waterMark.js'
  27. import {addTokenToIframe} from '@/utils/common.js'
  28. import reportCancel from './components/reportCancel.vue'
  29. import ReportContent from './components/ReportContent.vue'
  30. const route=useRoute()
  31. const router=useRouter()
  32. const store=useStore()
  33. const waterMarkEl=ref('')//水印盒子
  34. let chapterId=ref(route.query.chapterId||'') //章节id
  35. let frompage=ref(route.query.frompage||'')//如果来自报告详情页 则展示底部章节列表
  36. //获取报告对应的ppt图片
  37. let pptImgs=ref([])
  38. let showPreViewPPT=ref(false)
  39. let preViewPPTIndex=ref(0)
  40. const getReportPPTImgs=async (e)=>{
  41. const res=await apiReportPPtImgs({
  42. report_id:Number(e.report_id),
  43. report_chapter_id:Number(e.report_chapter_id)
  44. })
  45. if(res.code===200){
  46. pptImgs.value=res.data||[]
  47. if(res.data&&res.data.length>0){
  48. preLoadImg(res.data)
  49. }
  50. }
  51. }
  52. //获取晨报中指标数据
  53. let tickerInfo=ref(null)
  54. let tickerHead=ref([])
  55. const getTickerValue=async ()=>{
  56. const res=await apiChapterTickerValue({report_chapter_id:Number(chapterId.value)})
  57. if(res.code===200){
  58. if(!res.data||!res.data.list) return
  59. tickerInfo.value=res.data
  60. if(res.data.ticker_title.report_chapter_type_id===17){
  61. tickerHead.value=[
  62. {
  63. label:res.data.ticker_title.ticker_title,
  64. key:'base_column_name'
  65. },
  66. {
  67. label:'公布日期',
  68. key:'date'
  69. },
  70. {
  71. label:'最新值',
  72. key:'ticker_value'
  73. },
  74. {
  75. label:'上期值',
  76. key:'last_value'
  77. }
  78. ]
  79. }else{
  80. tickerHead.value=[
  81. {
  82. label:res.data.ticker_title.ticker_title,
  83. key:'base_column_name'
  84. },
  85. {
  86. label:res.data.list[0].date,
  87. key:'ticker_value'
  88. },
  89. {
  90. label:'当日涨跌',
  91. key:'dd_value'
  92. },
  93. {
  94. label:'一周涨跌',
  95. key:'ww_value'
  96. },
  97. {
  98. label:'一月涨跌',
  99. key:'mm_value'
  100. }
  101. ]
  102. }
  103. }
  104. }
  105. // 获取章节报告详情
  106. let info=ref(null)
  107. let audioData=ref(null)
  108. let isReportPublishCancel=ref(false)//报告取消发布了
  109. const headImgStyle = ref([])//版头style
  110. const endImgStyle = ref([])//版尾style
  111. const layoutBaseInfo = ref({
  112. 研报标题:'',
  113. 研报作者:'',
  114. 创建时间:''
  115. })
  116. const getChapterReportDetail=async ()=>{
  117. console.log(chapterId.value);
  118. info.value=null
  119. const res=await apiChapterDetail({
  120. report_chapter_id:Number(chapterId.value)
  121. })
  122. if(res.code===200){
  123. info.value=res.data
  124. headImgStyle.value=res.data.report_chapter_item.head_style?JSON.parse(res.data.report_chapter_item.head_style):[]
  125. endImgStyle.value=res.data.report_chapter_item.end_style?JSON.parse(res.data.report_chapter_item.end_style):[]
  126. layoutBaseInfo.value['研报标题']=res.data.report_chapter_item.title
  127. layoutBaseInfo.value['研报作者']=res.data.report_chapter_item.author
  128. // 已发布已通过的报告才显示发布时间
  129. layoutBaseInfo.value['创建时间']=moment(res.data.report_chapter_item.publish_time).format('YYYY.MM.DD HH:mm')
  130. info.value.report_chapter_item.content=addTokenToIframe(res.data.report_chapter_item.content,res.data.report_chapter_item.report_id,res.data.report_chapter_item.report_chapter_id)
  131. audioData.value={
  132. auth_ok:res.data.auth_ok,
  133. video_name:res.data.report_chapter_item.video_name,
  134. video_size:res.data.report_chapter_item.video_size,
  135. video_play_seconds:res.data.report_chapter_item.video_play_seconds,
  136. video_url:res.data.report_chapter_item.video_url,
  137. reportId:res.data.report_chapter_item.report_chapter_id+res.data.report_chapter_item.report_id
  138. }
  139. document.title=res.data.report_chapter_item.classify_name_first
  140. if(res.data.auth_ok&&res.data.report_chapter_item.classify_name_first==='晨报'){
  141. getTickerValue()
  142. }
  143. if(res.data.auth_ok){
  144. // 设置水印
  145. nextTick(()=>{
  146. useWaterMark(store.state.userInfo.mobile,waterMarkEl)
  147. })
  148. }
  149. // 获取详情如果为联系销售根据判断条件是否主动申请一次
  150. if(!res.data.auth_ok){
  151. if(info.value.permission_check.type=='contact'&&!info.value.permission_check.customer_info.has_apply){
  152. if(info.value.permission_check.customer_info.status=='冻结'||(info.value.permission_check.customer_info.status=='试用'&&info.value.permission_check.customer_info.is_suspend==1)){
  153. apiApplyPermission({
  154. company_name:info.value.permission_check.customer_info.company_name,
  155. real_name:info.value.permission_check.customer_info.name,
  156. source:4,
  157. from_page:'报告详情'
  158. }).then(res=>{
  159. if(res.code===200){
  160. console.log('主动申请成功');
  161. }
  162. })
  163. }
  164. }
  165. }
  166. // 获取侧边更多推荐
  167. if(res.data.auth_ok&&frompage.value=='reportdetail'){
  168. getAsideMoreRecmd(res.data.report_chapter_item)
  169. getAsideBanner(res.data.report_chapter_item)
  170. getReportPPTImgs(res.data.report_chapter_item)
  171. }
  172. //向小程序发送分享数据
  173. //处理分享标题
  174. // const shareTitle=`【${res.data.report_chapter_item.classify_name_first} | ${res.data.report_chapter_item.type_name}】${res.data.report_chapter_item.title}(${moment(res.data.report_chapter_item.publish_time).format('MMDD')})`
  175. let shareTitle='',shareImg='',imgText='';
  176. const shareTime=moment(res.data.report_chapter_item.publish_time).format('MMDD')
  177. if(res.data.report_chapter_item.abstract){
  178. shareTitle=res.data.report_chapter_item.abstract
  179. imgText=`<div style="font-size:78px">第${res.data.report_chapter_item.stage}期 | ${res.data.report_chapter_item.title}(${shareTime})</div>`
  180. }else{
  181. shareTitle=res.data.report_chapter_item.title
  182. imgText=`<div style="font-size:78px">${moment(res.data.report_chapter_item.publish_time).format('YYYY/MM/DD')}</div><div style="font-size:78px">第${res.data.report_chapter_item.stage}期 | ${res.data.report_chapter_item.classify_name_first} | ${res.data.report_chapter_item.type_name} </div>`
  183. }
  184. const rddpImgRes=await apiRddpShareImg({
  185. pars:JSON.stringify({
  186. title:imgText,
  187. time_format:moment(res.data.report_chapter_item.publish_time).format('YYYY/MM/DD'),
  188. background_img:res.data.report_chapter_item.share_bg_img
  189. })
  190. })
  191. if(rddpImgRes.code===200){
  192. shareImg=rddpImgRes.data
  193. }
  194. const postData={
  195. path:'/pages-report/chapterDetail',
  196. params:{
  197. chapterId:chapterId.value
  198. },
  199. title:shareTitle,
  200. shareImg:shareImg
  201. }
  202. wx.miniProgram.postMessage({ data: postData })
  203. getQRCodeImg()
  204. }else if(res.code===4002){
  205. isReportPublishCancel.value=true
  206. }
  207. }
  208. getChapterReportDetail()
  209. // 侧边栏更多推荐
  210. let moreRecmdList=ref([])
  211. const getAsideMoreRecmd=async (data)=>{
  212. const res=await apiReportMoreRecmd({
  213. reportId:Number(data.report_id),
  214. classify_name_first:data.classify_name_first
  215. })
  216. if(res.code===200){
  217. moreRecmdList.value=res.data
  218. }
  219. }
  220. // 点击侧边栏更多推荐
  221. const handleClickAsideRecmd=item=>{
  222. router.push({
  223. path:'/report/detail',
  224. query:{
  225. reportId:item.ReportId
  226. }
  227. })
  228. }
  229. //侧边栏报告合集
  230. let banner=ref(null)
  231. const getAsideBanner=async (data)=>{
  232. const res=await apiReportDetailBanner({
  233. reportId:Number(data.report_id),
  234. classify_name_first:data.classify_name_first
  235. })
  236. if(res.code===200){
  237. banner.value=res.data
  238. }
  239. }
  240. //点击侧边栏报告合集
  241. const handleAsideBanner=(data)=>{
  242. router.push({
  243. path:'/report/list',
  244. query:{
  245. classifyId:data.ClassifyIdFirst,
  246. classifyName:data.ClassifyNameFirst
  247. }
  248. })
  249. }
  250. //点击底部切换章节
  251. const handleChangeChapter=(item)=>{
  252. chapterId.value=item.report_chapter_id
  253. document.body.scrollTop=document.documentElement.scrollTop=0
  254. getChapterReportDetail()
  255. }
  256. // 获取小程序码
  257. let QRCodeImg=ref('')
  258. const getQRCodeImg=async ()=>{
  259. const res=await apiGetWechatQRCode({
  260. CodeScene:JSON.stringify({chapterId:chapterId.value}),
  261. CodePage:'pages-report/chapterDetail'
  262. })
  263. if(res.code===200){
  264. QRCodeImg.value=res.data
  265. }
  266. }
  267. let preViewImgs=ref([])
  268. let preViewImgIndex=ref(0)
  269. let showPreViewImg=ref(false)
  270. onMounted(()=>{
  271. $(document).on('click', '.rich-content img',function(event) {
  272. let imgArray = [];
  273. let curImageSrc = $(this).attr('src');
  274. let oParent = $(this).parent();
  275. if (curImageSrc && !oParent.attr('href')) {
  276. if(preViewImgs.value.length===0){
  277. $('.rich-content img').each(function(index, el) {
  278. let itemSrc = $(this).attr('src');
  279. imgArray.push(itemSrc);
  280. });
  281. preViewImgs.value=imgArray
  282. }
  283. preViewImgIndex.value=preViewImgs.value.indexOf(curImageSrc)||0
  284. showPreViewImg.value=true
  285. }
  286. })
  287. //getBannerlist()
  288. })
  289. onBeforeRouteUpdate((to,from)=>{
  290. console.log(to.query);
  291. chapterId.value=to.query.chapterId
  292. getChapterReportDetail()
  293. getQRCodeImg()
  294. })
  295. // 无权限点击申请
  296. const handleGoApply=async ()=>{
  297. if(store.state.userInfo.is_bind===0){
  298. ElMessageBox({
  299. title:`温馨提示`,
  300. message:'为了优化您的用户体验,<br>请登录后查看更多信息!',
  301. dangerouslyUseHTMLString: true,
  302. center: true,
  303. confirmButtonText:'去登录',
  304. confirmButtonClass:'self-elmessage-confirm-btn',
  305. showCancelButton:true,
  306. cancelButtonText:'取消',
  307. cancelButtonClass:'self-elmessage-cancel-btn'
  308. }).then(res=>{
  309. wx.miniProgram.reLaunch({url:'/pages/login'})
  310. }).catch(()=>{})
  311. return
  312. }
  313. if(info.value.permission_check.type=='apply'){
  314. if(info.value.permission_check.customer_info.has_apply){// 已经申请过
  315. const htmlStr=`<p>您已提交过申请,请耐心等待</p>`
  316. ElMessageBox({
  317. title:'温馨提醒',
  318. message:htmlStr,
  319. center: true,
  320. dangerouslyUseHTMLString: true,
  321. confirmButtonText:'知道了',
  322. confirmButtonClass:'self-elmessage-confirm-btn'
  323. })
  324. }else{
  325. if(!info.value.permission_check.customer_info.status||info.value.permission_check.customer_info.status!='流失'||info.value.permission_check.customer_info.status!='关闭'){
  326. router.push({
  327. path:'/apply/permission',
  328. query:{
  329. source:4,
  330. fromPage:'报告详情'
  331. }
  332. })
  333. }else{//主动调一次申请权限接口
  334. const res=await apiApplyPermission({
  335. company_name:info.value.permission_check.customer_info.company_name,
  336. real_name:info.value.permission_check.customer_info.name,
  337. source:4,
  338. from_page:'报告详情'
  339. })
  340. if(res.code===200){
  341. getChapterReportDetail()
  342. const htmlStr=`<p>申请已提交</p><p>请等待销售人员与您联系</p>`
  343. ElMessageBox({
  344. title:'温馨提醒',
  345. message:htmlStr,
  346. center: true,
  347. dangerouslyUseHTMLString: true,
  348. confirmButtonText:'知道了',
  349. confirmButtonClass:'self-elmessage-confirm-btn'
  350. })
  351. }
  352. }
  353. }
  354. }
  355. }
  356. let showDisclaimers=ref(false)//显示免责声明
  357. // banner data
  358. const bannerDataList =ref([])
  359. /* 点击了banner */
  360. const bannerClickHandler = async (item) => {
  361. if(store.state.userInfo.is_bind===0){
  362. ElMessageBox({
  363. title:`温馨提示`,
  364. message:'为了优化您的用户体验,<br>请登录后查看更多信息!',
  365. dangerouslyUseHTMLString: true,
  366. center: true,
  367. confirmButtonText:'去登录',
  368. confirmButtonClass:'self-elmessage-confirm-btn',
  369. showCancelButton:true,
  370. cancelButtonText:'取消',
  371. cancelButtonClass:'self-elmessage-cancel-btn'
  372. }).then(res=>{
  373. wx.miniProgram.reLaunch({url:'/pages/login'})
  374. }).catch(()=>{})
  375. return
  376. }
  377. let source = sessionStorage.getItem('platformSource')
  378. const res = await apiPublicBannerMark({
  379. first_source: source == 'xcx' ? 2 : 3, //一级来源 1小程序移动 2小程序pc 3研报官网
  380. second_source: 2 ,//二级来源 1首页 2研报详情页
  381. id:item.id
  382. })
  383. if(res.code ==200){
  384. router.push({
  385. path:'/report/disseminatePage',
  386. query: {
  387. imgBg: item.jump_url_pc,
  388. enable: item.enable,
  389. id: item.id,
  390. title: item.remark
  391. }
  392. })
  393. }
  394. }
  395. // banner 获取列表
  396. const getBannerlist = async () => {
  397. const res = await apiPublicBannerList()
  398. if(res.code ==200){
  399. bannerDataList.value = res.data
  400. }
  401. }
  402. const code_scene=computed(()=>{
  403. return JSON.stringify({chapterId:chapterId.value})
  404. })
  405. const posterParams=computed(()=>{
  406. return {
  407. report_type:info.value.report_chapter_item.classify_name_first,
  408. report_title:`【第${info.value.report_chapter_item.stage}期 | ${info.value.report_chapter_item.classify_name_first} | ${info.value.report_chapter_item.type_name}】${info.value.report_chapter_item.title}(${moment(info.value.report_chapter_item.publish_time).format('MMDD')})`,
  409. report_abstract:info.value.report_chapter_item.content
  410. }
  411. })
  412. </script>
  413. <template>
  414. <div class="report-chapter-detail-page" v-if="info">
  415. <div class="hasrightaside-box">
  416. <div class="content-box">
  417. <!-- <template v-if="bannerDataList.length > 0">
  418. <el-carousel height="90px" style="margin-bottom:20px;" :interval="4000" :indicator-position="bannerDataList.length==0?'none':''" :arrow="bannerDataList.length==0?'never':''">
  419. <el-carousel-item @click="bannerClickHandler(item)" v-for="item in bannerDataList" :key="item.id">
  420. <img style="width:100%;height:100%;cursor:pointer;" :src="item.image_url_pc" alt="">
  421. </el-carousel-item>
  422. </el-carousel>
  423. </template> -->
  424. <div class="report-box">
  425. <div :style="{backgroundColor:info.report_chapter_item.canvas_color||''}">
  426. <!-- 无版头板尾显示标题 -->
  427. <template v-if="(!info.report_chapter_item.head_img) && (!info.report_chapter_item.end_img)">
  428. <div class="title">【第{{info.report_chapter_item.stage}}期 | {{info.report_chapter_item.classify_name_first}} | {{info.report_chapter_item.type_name}}】{{info.report_chapter_item.title}}({{moment(info.report_chapter_item.publish_time).format('MMDD')}})</div>
  429. <div class="time">
  430. <span>{{info.report_chapter_item.author}}</span>
  431. <span>{{moment(info.report_chapter_item.publish_time).format('YYYY.MM.DD HH:mm')}}</span>
  432. </div>
  433. </template>
  434. <!-- 拼接版头 -->
  435. <div class="html-head-img-box" v-if="info.auth_ok&&info.report_chapter_item.head_img">
  436. <img :src="info.report_chapter_item.head_img" alt="" style="display:block;width:100%">
  437. <div class="head-layout-item" v-for="item in headImgStyle" :key="item.value"
  438. :style="{fontFamily:item.family,fontSize:(item.size*2)+'px',fontWeight:item.weight,textAlign:item.align,color:item.color,
  439. width:item.width,height:item.height,left:item.left,top:item.top
  440. }">
  441. {{ layoutBaseInfo[item.value] }}
  442. </div>
  443. </div>
  444. <div class="flex tips" style="position:relative">
  445. <div>
  446. <div class="abstract" v-if="info.report_chapter_item.abstract">摘要:{{info.report_chapter_item.abstract}}</div>
  447. <div>
  448. <span>*注:请务必阅读</span>
  449. <span style="color:#F3A52F;margin-left:20px;cursor: pointer;" @click="showDisclaimers=true">免责声明</span>
  450. </div>
  451. </div>
  452. </div>
  453. <template v-if="!info.report_chapter_item.report_video_url">
  454. <AudioBox :data="audioData" v-if="info.report_chapter_item.video_url&&info.report_chapter_item.video_play_seconds>0"></AudioBox>
  455. </template>
  456. <div id="report-rich-content" class="no-select-text rich-content" ref="waterMarkEl">
  457. <ReportContent :html="info.report_chapter_item.content" v-if="info.auth_ok"></ReportContent>
  458. <div v-html="info.report_chapter_item.content_sub" v-else ></div>
  459. <!-- 隐藏的水印 -->
  460. <div class="hide-watermark-box">
  461. <div v-for="item in 20" :key="item">{{$store.state.userInfo.mobile}}</div>
  462. </div>
  463. </div>
  464. <!-- 指标数据模块 -->
  465. <div class="ticker-wrap" v-if="tickerInfo">
  466. <div class="top-title">{{tickerInfo.ticker_title.report_chapter_type_name}}数据表</div>
  467. <div class="table-box">
  468. <div class="table-row table-head">
  469. <div class="table-item" v-for="item in tickerHead" :key="item.key">{{item.label}}</div>
  470. </div>
  471. <div class="table-row table-body" v-for="(tr,index) in tickerInfo.list" :key="tr.base_column_name">
  472. <div :class="['table-item',index%2==0?'grey':'',tr[td.key]<0?'minus':'']" v-for="td in tickerHead" :key="td.key">{{tr[td.key]}}</div>
  473. </div>
  474. </div>
  475. <div v-if="tickerInfo.ticker_title.report_chapter_type_id ===26" style="text-align:center;font-weight:bold">注:与新加坡TSR20相关数据均取展示日期前一交易日数据</div>
  476. </div>
  477. <!-- 拼接版尾 -->
  478. <div class="html-end-img-box" v-if="info.auth_ok&&info.report_chapter_item.end_img">
  479. <img :src="info.report_chapter_item.end_img" alt="" style="display:block;width:100%">
  480. <div class="head-layout-item" v-for="item in endImgStyle" :key="item.value"
  481. :style="{fontFamily:item.family,fontSize:(item.size*2)+'px',fontWeight:item.weight,textAlign:item.align,color:item.color,
  482. width:item.width,height:item.height,left:item.left,top:item.top
  483. }">
  484. {{ layoutBaseInfo[item.value] }}
  485. </div>
  486. </div>
  487. </div>
  488. <!-- 无权限 -->
  489. <div class="no-auth-wrap" v-if="!info.auth_ok">
  490. <div class="apply-box" v-if="info.permission_check.type=='apply'">
  491. <div>您暂无权限查看报告,若想查看请申请开通</div>
  492. <div class="global-main-btn btn" @click="handleGoApply">立即申请</div>
  493. </div>
  494. <div class="apply-box" v-else>
  495. <div>您暂无权限查看报告 </div>
  496. <div>若想查看请联系对口销售:{{info.permission_check.name}}--{{info.permission_check.mobile}}</div>
  497. </div>
  498. </div>
  499. </div>
  500. <!-- 章节列表 -->
  501. <div class="chapter-list-wrap" v-if="frompage=='reportdetail'">
  502. <div class="top-name">更多</div>
  503. <div class="flex list">
  504. <div
  505. :class="['item',item.report_chapter_id==chapterId&&'active']"
  506. v-for="item in info.report_chapter_menu_list"
  507. :key="item.report_chapter_id"
  508. @click="handleChangeChapter(item)"
  509. >
  510. <img :src="item.report_chapter_id==chapterId?item.pc_selected_thumb:item.pc_unselected_thumb" alt="">
  511. <span>{{item.report_chapter_type_name}}</span>
  512. </div>
  513. </div>
  514. </div>
  515. <!-- 评论点赞模块 -->
  516. <Comment
  517. v-if="info.auth_ok"
  518. :data="{
  519. report_id:info.report_chapter_item.report_id,
  520. report_chapter_id:info.report_chapter_item.report_chapter_id,
  521. old_report_id:0,
  522. old_report_chapter_id:0,
  523. like_enabled:info.like_enabled,
  524. like_num:info.like_num
  525. }"
  526. />
  527. <!-- 右侧悬浮操作栏 -->
  528. <div class="right-fix-opt-box">
  529. <!-- 收藏 -->
  530. <CollectBox
  531. :type="1"
  532. :primaryId="info.report_chapter_item.report_id"
  533. :collectId="info.collection_id"
  534. :extendId="info.report_chapter_item.report_chapter_id"
  535. @change="e=>info.collection_id=e"
  536. v-if="info&&info.auth_ok"
  537. >
  538. <img class="collect-icon" :src="info.collection_id>0?collectSIcon:collectIcon" alt="">
  539. </CollectBox>
  540. <!-- ppt -->
  541. <img class="ppt-icon" src="@/assets/ppt-icon.png" v-if="pptImgs.length>0" @click="showPreViewPPT=true" alt="">
  542. <!-- 生成海报 -->
  543. <SharePoster
  544. :shareData="{
  545. type:'report_detail',
  546. code_page:'pages-report/chapterDetail',
  547. code_scene:code_scene,
  548. data:posterParams
  549. }"
  550. :style="{position:'static',display:'inline-block'}"
  551. v-if="info&&info.auth_ok"
  552. >
  553. </SharePoster>
  554. </div>
  555. </div>
  556. <div class="right-aside-box" v-if="info.auth_ok&&frompage=='reportdetail'">
  557. <div class="fix-top">
  558. <div class="share-box">
  559. <div class="label">分享</div>
  560. <el-popover
  561. :width="200"
  562. popper-style="box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;"
  563. >
  564. <template #reference><div class="icon"></div></template>
  565. <template #default>
  566. <img :src="QRCodeImg" class="share-xcx-img" alt="" style="width: 150px;display: block;margin: 0 auto;">
  567. </template>
  568. </el-popover>
  569. </div>
  570. <div class="hot-box" style="margin-top: 40px;" v-if="banner">
  571. <div class="label">{{banner.Type}}</div>
  572. <div class="img-con" :style="'background-image:url('+banner.ImgUrl+')'" @click="handleAsideBanner(banner)">
  573. <div class="title">{{banner.ClassifyNameFirst.substring(0, 12)}}</div>
  574. <!-- <span class="stage">第{{banner.Stage}}期</span> -->
  575. </div>
  576. </div>
  577. <div class="recmd-box" style="margin-top: 40px;">
  578. <div class="label">更多推荐</div>
  579. <div
  580. class="recmd-item"
  581. v-for="item in moreRecmdList"
  582. :key="item.ReportChapterID"
  583. @click="handleClickAsideRecmd(item)"
  584. >
  585. <div class="title">{{item.ClassifyNameFirst}}</div>
  586. <div>{{item.Stage}} | {{item.Title}}</div>
  587. </div>
  588. </div>
  589. </div>
  590. </div>
  591. </div>
  592. </div>
  593. <report-cancel v-if="isReportPublishCancel"/>
  594. <!-- 图片预览 -->
  595. <el-image-viewer
  596. v-if="showPreViewImg"
  597. :initial-index="preViewImgIndex"
  598. @close="showPreViewImg=false"
  599. :url-list="preViewImgs"
  600. />
  601. <!-- 预览ppt -->
  602. <div class="ppt-preview-box" v-if="showPreViewPPT">
  603. <el-image-viewer
  604. v-if="showPreViewPPT"
  605. :initial-index="preViewPPTIndex"
  606. @close="showPreViewPPT=false"
  607. :url-list="pptImgs"
  608. />
  609. </div>
  610. <!-- 免责申明 -->
  611. <el-dialog v-model="showDisclaimers" title="免责声明" center draggable width="40%">
  612. <div class="disclaimers-box">
  613. <div style="margin-bottom:10px">1、本报告仅供弘则弥道(上海)投资咨询有限公司正式签约的机构客户使用,不会因接收人/接收机构收到本报告而将其视为客户。</div>
  614. <div style="margin-bottom:10px">2、本报告根据国际和行业通行的准则,以合法渠道获得这些信息,尽可能保证可靠、准确和完整,但并不保证报告所述信息的准确性和完整性,也不保证本报告所包含的信息或建议在本报告发出后不会发生任何变更。本报告中所提供的信息仅供参考。</div>
  615. <div style="margin-bottom:10px">3、报告中的内容不对投资者做出的最终操作建议做任何的担保,也没有任何形式的分享投资收益或者分担投资损失的书面或口头承诺。不作为客户在投资、法律、会计或税务等方面的最终操作建议,也不作为道义的、责任的和法律的依据或者凭证,无论是否已经明示或者暗示。</div>
  616. <div style="margin-bottom:10px">4、在任何情况下,本公司不对客户/接收人/接收机构因使用报告中内容所引致的一切损失负责任,客户/接收人/接收机构需自行承担全部风险。</div>
  617. </div>
  618. </el-dialog>
  619. </template>
  620. <style lang="scss" scoped>
  621. .report-chapter-detail-page{
  622. .content-box{
  623. flex: 1;
  624. padding-right: 30px;
  625. }
  626. .report-box{
  627. .title{
  628. display: inline;
  629. font-size: 24px;
  630. font-weight: bold;
  631. margin-left: -14px;
  632. }
  633. .time{
  634. color: #666;
  635. margin-top: 20px;
  636. margin-bottom: 30px;
  637. font-size: 16px;
  638. span:last-child{
  639. float: right;
  640. }
  641. }
  642. .tips{
  643. font-size: 18px;
  644. margin-bottom: 30px;
  645. &::before{
  646. content: '';
  647. width: 6px;
  648. // height: 30px;
  649. display: inline-block;
  650. background-color: #F3A52F;
  651. margin-right: 10px;
  652. // position: relative;
  653. // top: 10px;
  654. }
  655. @media screen and (min-width: 1600px){
  656. ::v-deep(.el-image-viewer__close){
  657. top: 10vh;
  658. right: calc(50% - 700px);
  659. }
  660. ::v-deep(.el-image-viewer__next){
  661. right: calc(50% - 700px);
  662. }
  663. ::v-deep(.el-image-viewer__prev){
  664. left: calc(50% - 700px);
  665. }
  666. }
  667. }
  668. .abstract{
  669. font-size: 18px;
  670. // font-weight: bold;
  671. margin-bottom: 20px;
  672. // margin-top: 20px;
  673. // display: flex;
  674. // align-items: center;
  675. // &::before{
  676. // flex-shrink: 0;
  677. // content: '';
  678. // display: block;
  679. // width: 6px;
  680. // min-height: 30px;
  681. // background-color: #F3A52F;
  682. // margin-right: 10px;
  683. // position: relative;
  684. // }
  685. }
  686. .rich-content{
  687. margin-top: 30px;
  688. line-height: 1.8;
  689. font-size: 18px;
  690. :deep(img){
  691. width: 100% !important;
  692. }
  693. :deep(span){
  694. font-size: 18px !important;
  695. line-height: 1.8 !important;
  696. background-color: rgba(255, 255, 255, 0) !important;
  697. }
  698. :deep(ul,ol,li,p){
  699. font-size: 18px !important;
  700. line-height: 1.8 !important;
  701. background-color: rgba(255, 255, 255, 0) !important;
  702. }
  703. :deep(iframe){
  704. width: 100% !important;
  705. }
  706. }
  707. }
  708. .right-fix-opt-box{
  709. position: fixed;
  710. right: 33px;
  711. bottom: 150px;
  712. z-index: 1000;
  713. .ppt-icon{
  714. width: 54px;
  715. height: 54px;
  716. object-fit: cover;
  717. display: block;
  718. margin: 0 auto;
  719. }
  720. .collect-icon{
  721. width: 57px;
  722. height: 57px;
  723. object-fit: cover;
  724. display: block;
  725. margin: 0 auto;
  726. }
  727. }
  728. .no-auth-wrap{
  729. text-align: center;
  730. color: #F3A52F;
  731. margin-top: -140px;
  732. padding-top: 140px;
  733. min-height: 200px;
  734. position: relative;
  735. z-index: 5;
  736. background: linear-gradient(360deg, #FFFFFF 60%, rgba(255, 255, 255, 0) 88%);
  737. .btn{
  738. width: 218px;
  739. margin-left: auto;
  740. margin-right: auto;
  741. margin-top: 20px;
  742. }
  743. }
  744. .chapter-list-wrap{
  745. .top-name{
  746. text-align: center;
  747. color: #F3A52F;
  748. font-size: 18px;
  749. margin-bottom: 50px;
  750. &::before,&::after{
  751. content: '';
  752. display: inline-block;
  753. width: 83px;
  754. height: 1px;
  755. background-color: #F3A52F;
  756. vertical-align: middle;
  757. margin: 0 22px;
  758. }
  759. }
  760. .list{
  761. flex-wrap: wrap;
  762. .item{
  763. display: flex;
  764. justify-content: center;
  765. align-items: center;
  766. width: 148px;
  767. height: 36px;
  768. background-color: #F7F7F7;
  769. border-radius: 4px;
  770. margin-right: 20px;
  771. margin-bottom: 20px;
  772. cursor: pointer;
  773. img{
  774. width: 20px;
  775. height: 20px;
  776. }
  777. }
  778. .active{
  779. background-color: #F3A52F;
  780. color: #fff;
  781. }
  782. }
  783. }
  784. .ticker-wrap{
  785. margin-top: 30px;
  786. .top-title{
  787. text-align: center;
  788. font-size: 20px;
  789. font-weight: bold;
  790. vertical-align: middle;
  791. &::before,&::after{
  792. content: '';
  793. display: inline-block;
  794. width: 100px;
  795. height: 2px;
  796. background-color:rgb(204, 204, 204);
  797. vertical-align: middle;
  798. margin: 0 20px;
  799. }
  800. }
  801. .table-box{
  802. margin: 20px 0;
  803. &::-webkit-scrollbar{
  804. width: 0;
  805. }
  806. overflow: auto hidden;
  807. .table-row{
  808. display: flex;
  809. width: 100%;
  810. }
  811. .table-item{
  812. padding: 10px;
  813. flex: 1;
  814. display: flex;
  815. align-items: center;
  816. justify-content: center;
  817. }
  818. .table-head{
  819. color: #fff;
  820. background-color: rgb(58, 76, 115);
  821. .table-item{
  822. &:first-child{
  823. position: sticky;
  824. left: 0;
  825. z-index: 5;
  826. border-right-color: rgb(58, 76, 115);
  827. }
  828. background-color: rgb(58, 76, 115);
  829. }
  830. }
  831. .table-body{
  832. .table-item{
  833. background-color: #fff;
  834. &:first-child{
  835. position: sticky;
  836. left: 0;
  837. z-index: 5;
  838. }
  839. }
  840. .grey{
  841. background-color: #ddd;
  842. }
  843. .minus{
  844. color: #006600;
  845. }
  846. }
  847. }
  848. }
  849. .right-aside-box{
  850. .hot-box{
  851. .img-con{
  852. position: relative;
  853. .title{
  854. padding:17px 15px;
  855. font-size: 16px;
  856. font-weight: bold;
  857. color: #fff;
  858. width: 105px;
  859. }
  860. .stage{
  861. position: absolute;
  862. bottom: 27px;
  863. left: 16px;
  864. color: #F3A52F;
  865. font-size: 12px;
  866. }
  867. }
  868. }
  869. }
  870. }
  871. .disclaimers-box{
  872. max-height: 60vh;
  873. overflow: auto;
  874. }
  875. .html-head-img-box,.html-end-img-box{
  876. margin-bottom: 10px;
  877. position: relative;
  878. overflow: hidden;
  879. .head-layout-item{
  880. position: absolute;
  881. overflow: hidden;
  882. box-sizing: border-box
  883. }
  884. }
  885. </style>