123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940 |
- <script setup>
- import {ref,onMounted,computed,nextTick} from 'vue'
- import {
- apiChapterDetail,
- apiChapterTickerValue,
- apiReportMoreRecmd,
- apiReportDetailBanner,
- apiRddpShareImg,
- apiReportPPtImgs,
- apiPublicBannerMark,
- apiPublicBannerList
- } from '@/api/report'
- import {apiApplyPermission} from '@/api/user'
- import {apiGetWechatQRCode} from '@/api/common'
- import { ElMessageBox } from 'element-plus'
- import moment from 'moment';
- import AudioBox from './components/AudioBox.vue'
- import SharePoster from '@/components/SharePoster.vue'
- import Comment from '@/components/Comment.vue'
- import preLoadImg from '@/utils/preLoadImg.js'
- import { useRoute,onBeforeRouteUpdate,useRouter } from 'vue-router';
- import { useStore } from 'vuex'
- import CollectBox from '@/components/CollectBox.vue'
- import collectIcon from '@/assets/collect2.png'
- import collectSIcon from '@/assets/collect2-s.png'
- import {useWaterMark} from '@/hooks/waterMark.js'
- import {addTokenToIframe} from '@/utils/common.js'
- import reportCancel from './components/reportCancel.vue'
- import ReportContent from './components/ReportContent.vue'
- const route=useRoute()
- const router=useRouter()
- const store=useStore()
- const waterMarkEl=ref('')//水印盒子
- let chapterId=ref(route.query.chapterId||'') //章节id
- let frompage=ref(route.query.frompage||'')//如果来自报告详情页 则展示底部章节列表
- //获取报告对应的ppt图片
- let pptImgs=ref([])
- let showPreViewPPT=ref(false)
- let preViewPPTIndex=ref(0)
- const getReportPPTImgs=async (e)=>{
- const res=await apiReportPPtImgs({
- report_id:Number(e.report_id),
- report_chapter_id:Number(e.report_chapter_id)
- })
- if(res.code===200){
- pptImgs.value=res.data||[]
- if(res.data&&res.data.length>0){
- preLoadImg(res.data)
- }
- }
- }
- //获取晨报中指标数据
- let tickerInfo=ref(null)
- let tickerHead=ref([])
- const getTickerValue=async ()=>{
- const res=await apiChapterTickerValue({report_chapter_id:Number(chapterId.value)})
- if(res.code===200){
- if(!res.data||!res.data.list) return
- tickerInfo.value=res.data
- if(res.data.ticker_title.report_chapter_type_id===17){
- tickerHead.value=[
- {
- label:res.data.ticker_title.ticker_title,
- key:'base_column_name'
- },
- {
- label:'公布日期',
- key:'date'
- },
- {
- label:'最新值',
- key:'ticker_value'
- },
- {
- label:'上期值',
- key:'last_value'
- }
- ]
- }else{
- tickerHead.value=[
- {
- label:res.data.ticker_title.ticker_title,
- key:'base_column_name'
- },
- {
- label:res.data.list[0].date,
- key:'ticker_value'
- },
- {
- label:'当日涨跌',
- key:'dd_value'
- },
- {
- label:'一周涨跌',
- key:'ww_value'
- },
- {
- label:'一月涨跌',
- key:'mm_value'
- }
- ]
- }
- }
- }
- // 获取章节报告详情
- let info=ref(null)
- let audioData=ref(null)
- let isReportPublishCancel=ref(false)//报告取消发布了
- const headImgStyle = ref([])//版头style
- const endImgStyle = ref([])//版尾style
- const layoutBaseInfo = ref({
- 研报标题:'',
- 研报作者:'',
- 创建时间:''
- })
- const getChapterReportDetail=async ()=>{
- console.log(chapterId.value);
- info.value=null
- const res=await apiChapterDetail({
- report_chapter_id:Number(chapterId.value)
- })
- if(res.code===200){
- info.value=res.data
-
- headImgStyle.value=res.data.report_chapter_item.head_style?JSON.parse(res.data.report_chapter_item.head_style):[]
- endImgStyle.value=res.data.report_chapter_item.end_style?JSON.parse(res.data.report_chapter_item.end_style):[]
- layoutBaseInfo.value['研报标题']=res.data.report_chapter_item.title
- layoutBaseInfo.value['研报作者']=res.data.report_chapter_item.author
- // 已发布已通过的报告才显示发布时间
- layoutBaseInfo.value['创建时间']=moment(res.data.report_chapter_item.publish_time).format('YYYY.MM.DD HH:mm')
- 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)
- audioData.value={
- auth_ok:res.data.auth_ok,
- video_name:res.data.report_chapter_item.video_name,
- video_size:res.data.report_chapter_item.video_size,
- video_play_seconds:res.data.report_chapter_item.video_play_seconds,
- video_url:res.data.report_chapter_item.video_url,
- reportId:res.data.report_chapter_item.report_chapter_id+res.data.report_chapter_item.report_id
- }
- document.title=res.data.report_chapter_item.classify_name_first
- if(res.data.auth_ok&&res.data.report_chapter_item.classify_name_first==='晨报'){
- getTickerValue()
- }
- if(res.data.auth_ok){
- // 设置水印
- nextTick(()=>{
- useWaterMark(store.state.userInfo.mobile,waterMarkEl)
- })
- }
-
- // 获取详情如果为联系销售根据判断条件是否主动申请一次
- if(!res.data.auth_ok){
- if(info.value.permission_check.type=='contact'&&!info.value.permission_check.customer_info.has_apply){
- if(info.value.permission_check.customer_info.status=='冻结'||(info.value.permission_check.customer_info.status=='试用'&&info.value.permission_check.customer_info.is_suspend==1)){
- apiApplyPermission({
- company_name:info.value.permission_check.customer_info.company_name,
- real_name:info.value.permission_check.customer_info.name,
- source:4,
- from_page:'报告详情'
- }).then(res=>{
- if(res.code===200){
- console.log('主动申请成功');
- }
- })
- }
- }
- }
- // 获取侧边更多推荐
- if(res.data.auth_ok&&frompage.value=='reportdetail'){
- getAsideMoreRecmd(res.data.report_chapter_item)
- getAsideBanner(res.data.report_chapter_item)
- getReportPPTImgs(res.data.report_chapter_item)
- }
- //向小程序发送分享数据
- //处理分享标题
- // 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')})`
- let shareTitle='',shareImg='',imgText='';
- const shareTime=moment(res.data.report_chapter_item.publish_time).format('MMDD')
- if(res.data.report_chapter_item.abstract){
- shareTitle=res.data.report_chapter_item.abstract
- imgText=`<div style="font-size:78px">第${res.data.report_chapter_item.stage}期 | ${res.data.report_chapter_item.title}(${shareTime})</div>`
- }else{
- shareTitle=res.data.report_chapter_item.title
- 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>`
- }
- const rddpImgRes=await apiRddpShareImg({
- pars:JSON.stringify({
- title:imgText,
- time_format:moment(res.data.report_chapter_item.publish_time).format('YYYY/MM/DD'),
- background_img:res.data.report_chapter_item.share_bg_img
- })
- })
- if(rddpImgRes.code===200){
- shareImg=rddpImgRes.data
- }
- const postData={
- path:'/pages-report/chapterDetail',
- params:{
- chapterId:chapterId.value
- },
- title:shareTitle,
- shareImg:shareImg
- }
- wx.miniProgram.postMessage({ data: postData })
- getQRCodeImg()
- }else if(res.code===4002){
- isReportPublishCancel.value=true
- }
- }
- 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.push({
- path:'/report/detail',
- query:{
- reportId:item.ReportId
- }
- })
- }
- //侧边栏报告合集
- 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 handleAsideBanner=(data)=>{
- router.push({
- path:'/report/list',
- query:{
- classifyId:data.ClassifyIdFirst,
- classifyName:data.ClassifyNameFirst
- }
- })
- }
- //点击底部切换章节
- const handleChangeChapter=(item)=>{
- chapterId.value=item.report_chapter_id
- document.body.scrollTop=document.documentElement.scrollTop=0
- getChapterReportDetail()
- }
- // 获取小程序码
- let QRCodeImg=ref('')
- const getQRCodeImg=async ()=>{
- const res=await apiGetWechatQRCode({
- CodeScene:JSON.stringify({chapterId:chapterId.value}),
- CodePage:'pages-report/chapterDetail'
- })
- if(res.code===200){
- QRCodeImg.value=res.data
- }
- }
- let preViewImgs=ref([])
- let preViewImgIndex=ref(0)
- let showPreViewImg=ref(false)
- onMounted(()=>{
- $(document).on('click', '.rich-content img',function(event) {
- let imgArray = [];
- let curImageSrc = $(this).attr('src');
- let oParent = $(this).parent();
- if (curImageSrc && !oParent.attr('href')) {
- if(preViewImgs.value.length===0){
- $('.rich-content img').each(function(index, el) {
- let itemSrc = $(this).attr('src');
- imgArray.push(itemSrc);
- });
- preViewImgs.value=imgArray
- }
- preViewImgIndex.value=preViewImgs.value.indexOf(curImageSrc)||0
- showPreViewImg.value=true
- }
- })
- //getBannerlist()
- })
- onBeforeRouteUpdate((to,from)=>{
- console.log(to.query);
- chapterId.value=to.query.chapterId
- getChapterReportDetail()
- getQRCodeImg()
- })
- // 无权限点击申请
- const handleGoApply=async ()=>{
- if(store.state.userInfo.is_bind===0){
- ElMessageBox({
- title:`温馨提示`,
- message:'为了优化您的用户体验,<br>请登录后查看更多信息!',
- dangerouslyUseHTMLString: true,
- center: true,
- confirmButtonText:'去登录',
- confirmButtonClass:'self-elmessage-confirm-btn',
- showCancelButton:true,
- cancelButtonText:'取消',
- cancelButtonClass:'self-elmessage-cancel-btn'
- }).then(res=>{
- wx.miniProgram.reLaunch({url:'/pages/login'})
- }).catch(()=>{})
- return
- }
- if(info.value.permission_check.type=='apply'){
- if(info.value.permission_check.customer_info.has_apply){// 已经申请过
- const htmlStr=`<p>您已提交过申请,请耐心等待</p>`
- ElMessageBox({
- title:'温馨提醒',
- message:htmlStr,
- center: true,
- dangerouslyUseHTMLString: true,
- confirmButtonText:'知道了',
- confirmButtonClass:'self-elmessage-confirm-btn'
- })
- }else{
- if(!info.value.permission_check.customer_info.status||info.value.permission_check.customer_info.status!='流失'||info.value.permission_check.customer_info.status!='关闭'){
- router.push({
- path:'/apply/permission',
- query:{
- source:4,
- fromPage:'报告详情'
- }
- })
- }else{//主动调一次申请权限接口
- const res=await apiApplyPermission({
- company_name:info.value.permission_check.customer_info.company_name,
- real_name:info.value.permission_check.customer_info.name,
- source:4,
- from_page:'报告详情'
- })
- if(res.code===200){
- getChapterReportDetail()
- const htmlStr=`<p>申请已提交</p><p>请等待销售人员与您联系</p>`
- ElMessageBox({
- title:'温馨提醒',
- message:htmlStr,
- center: true,
- dangerouslyUseHTMLString: true,
- confirmButtonText:'知道了',
- confirmButtonClass:'self-elmessage-confirm-btn'
- })
- }
- }
- }
-
- }
- }
- let showDisclaimers=ref(false)//显示免责声明
- // banner data
- const bannerDataList =ref([])
- /* 点击了banner */
- const bannerClickHandler = async (item) => {
- if(store.state.userInfo.is_bind===0){
- ElMessageBox({
- title:`温馨提示`,
- message:'为了优化您的用户体验,<br>请登录后查看更多信息!',
- dangerouslyUseHTMLString: true,
- center: true,
- confirmButtonText:'去登录',
- confirmButtonClass:'self-elmessage-confirm-btn',
- showCancelButton:true,
- cancelButtonText:'取消',
- cancelButtonClass:'self-elmessage-cancel-btn'
- }).then(res=>{
- wx.miniProgram.reLaunch({url:'/pages/login'})
- }).catch(()=>{})
- return
- }
- let source = sessionStorage.getItem('platformSource')
- const res = await apiPublicBannerMark({
- first_source: source == 'xcx' ? 2 : 3, //一级来源 1小程序移动 2小程序pc 3研报官网
- second_source: 2 ,//二级来源 1首页 2研报详情页
- id:item.id
- })
- if(res.code ==200){
- router.push({
- path:'/report/disseminatePage',
- query: {
- imgBg: item.jump_url_pc,
- enable: item.enable,
- id: item.id,
- title: item.remark
- }
- })
- }
- }
- // banner 获取列表
- const getBannerlist = async () => {
- const res = await apiPublicBannerList()
- if(res.code ==200){
- bannerDataList.value = res.data
- }
- }
- const code_scene=computed(()=>{
- return JSON.stringify({chapterId:chapterId.value})
- })
- const posterParams=computed(()=>{
- return {
- report_type:info.value.report_chapter_item.classify_name_first,
- 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')})`,
- report_abstract:info.value.report_chapter_item.content
- }
- })
- </script>
- <template>
- <div class="report-chapter-detail-page" v-if="info">
- <div class="hasrightaside-box">
- <div class="content-box">
- <!-- <template v-if="bannerDataList.length > 0">
- <el-carousel height="90px" style="margin-bottom:20px;" :interval="4000" :indicator-position="bannerDataList.length==0?'none':''" :arrow="bannerDataList.length==0?'never':''">
- <el-carousel-item @click="bannerClickHandler(item)" v-for="item in bannerDataList" :key="item.id">
- <img style="width:100%;height:100%;cursor:pointer;" :src="item.image_url_pc" alt="">
- </el-carousel-item>
- </el-carousel>
- </template> -->
- <div class="report-box">
- <div :style="{backgroundColor:info.report_chapter_item.canvas_color||''}">
- <!-- 无版头板尾显示标题 -->
- <template v-if="(!info.report_chapter_item.head_img) && (!info.report_chapter_item.end_img)">
- <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>
- <div class="time">
- <span>{{info.report_chapter_item.author}}</span>
- <span>{{moment(info.report_chapter_item.publish_time).format('YYYY.MM.DD HH:mm')}}</span>
- </div>
- </template>
- <!-- 拼接版头 -->
- <div class="html-head-img-box" v-if="info.auth_ok&&info.report_chapter_item.head_img">
- <img :src="info.report_chapter_item.head_img" alt="" style="display:block;width:100%">
- <div class="head-layout-item" v-for="item in headImgStyle" :key="item.value"
- :style="{fontFamily:item.family,fontSize:(item.size*2)+'px',fontWeight:item.weight,textAlign:item.align,color:item.color,
- width:item.width,height:item.height,left:item.left,top:item.top
- }">
- {{ layoutBaseInfo[item.value] }}
- </div>
- </div>
- <div class="flex tips" style="position:relative">
- <div>
- <div class="abstract" v-if="info.report_chapter_item.abstract">摘要:{{info.report_chapter_item.abstract}}</div>
- <div>
- <span>*注:请务必阅读</span>
- <span style="color:#F3A52F;margin-left:20px;cursor: pointer;" @click="showDisclaimers=true">免责声明</span>
- </div>
- </div>
- </div>
- <template v-if="!info.report_chapter_item.report_video_url">
- <AudioBox :data="audioData" v-if="info.report_chapter_item.video_url&&info.report_chapter_item.video_play_seconds>0"></AudioBox>
- </template>
- <div id="report-rich-content" class="no-select-text rich-content" ref="waterMarkEl">
- <ReportContent :html="info.report_chapter_item.content" v-if="info.auth_ok"></ReportContent>
- <div v-html="info.report_chapter_item.content_sub" v-else ></div>
- <!-- 隐藏的水印 -->
- <div class="hide-watermark-box">
- <div v-for="item in 20" :key="item">{{$store.state.userInfo.mobile}}</div>
- </div>
- </div>
- <!-- 指标数据模块 -->
- <div class="ticker-wrap" v-if="tickerInfo">
- <div class="top-title">{{tickerInfo.ticker_title.report_chapter_type_name}}数据表</div>
- <div class="table-box">
- <div class="table-row table-head">
- <div class="table-item" v-for="item in tickerHead" :key="item.key">{{item.label}}</div>
- </div>
- <div class="table-row table-body" v-for="(tr,index) in tickerInfo.list" :key="tr.base_column_name">
- <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>
- </div>
- </div>
- <div v-if="tickerInfo.ticker_title.report_chapter_type_id ===26" style="text-align:center;font-weight:bold">注:与新加坡TSR20相关数据均取展示日期前一交易日数据</div>
- </div>
- <!-- 拼接版尾 -->
- <div class="html-end-img-box" v-if="info.auth_ok&&info.report_chapter_item.end_img">
- <img :src="info.report_chapter_item.end_img" alt="" style="display:block;width:100%">
- <div class="head-layout-item" v-for="item in endImgStyle" :key="item.value"
- :style="{fontFamily:item.family,fontSize:(item.size*2)+'px',fontWeight:item.weight,textAlign:item.align,color:item.color,
- width:item.width,height:item.height,left:item.left,top:item.top
- }">
- {{ layoutBaseInfo[item.value] }}
- </div>
- </div>
- </div>
- <!-- 无权限 -->
- <div class="no-auth-wrap" v-if="!info.auth_ok">
- <div class="apply-box" v-if="info.permission_check.type=='apply'">
- <div>您暂无权限查看报告,若想查看请申请开通</div>
- <div class="global-main-btn btn" @click="handleGoApply">立即申请</div>
- </div>
- <div class="apply-box" v-else>
- <div>您暂无权限查看报告 </div>
- <div>若想查看请联系对口销售:{{info.permission_check.name}}--{{info.permission_check.mobile}}</div>
- </div>
- </div>
- </div>
- <!-- 章节列表 -->
- <div class="chapter-list-wrap" v-if="frompage=='reportdetail'">
- <div class="top-name">更多</div>
- <div class="flex list">
- <div
- :class="['item',item.report_chapter_id==chapterId&&'active']"
- v-for="item in info.report_chapter_menu_list"
- :key="item.report_chapter_id"
- @click="handleChangeChapter(item)"
- >
- <img :src="item.report_chapter_id==chapterId?item.pc_selected_thumb:item.pc_unselected_thumb" alt="">
- <span>{{item.report_chapter_type_name}}</span>
- </div>
- </div>
- </div>
- <!-- 评论点赞模块 -->
- <Comment
- v-if="info.auth_ok"
- :data="{
- report_id:info.report_chapter_item.report_id,
- report_chapter_id:info.report_chapter_item.report_chapter_id,
- old_report_id:0,
- old_report_chapter_id:0,
- like_enabled:info.like_enabled,
- like_num:info.like_num
- }"
- />
- <!-- 右侧悬浮操作栏 -->
- <div class="right-fix-opt-box">
- <!-- 收藏 -->
- <CollectBox
- :type="1"
- :primaryId="info.report_chapter_item.report_id"
- :collectId="info.collection_id"
- :extendId="info.report_chapter_item.report_chapter_id"
- @change="e=>info.collection_id=e"
- v-if="info&&info.auth_ok"
- >
- <img class="collect-icon" :src="info.collection_id>0?collectSIcon:collectIcon" alt="">
- </CollectBox>
- <!-- ppt -->
- <img class="ppt-icon" src="@/assets/ppt-icon.png" v-if="pptImgs.length>0" @click="showPreViewPPT=true" alt="">
- <!-- 生成海报 -->
- <SharePoster
- :shareData="{
- type:'report_detail',
- code_page:'pages-report/chapterDetail',
- code_scene:code_scene,
- data:posterParams
- }"
- :style="{position:'static',display:'inline-block'}"
- v-if="info&&info.auth_ok"
- >
- </SharePoster>
- </div>
- </div>
- <div class="right-aside-box" v-if="info.auth_ok&&frompage=='reportdetail'">
- <div class="fix-top">
- <div class="share-box">
- <div class="label">分享</div>
- <el-popover
- :width="200"
- popper-style="box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;"
- >
- <template #reference><div class="icon"></div></template>
- <template #default>
- <img :src="QRCodeImg" class="share-xcx-img" alt="" style="width: 150px;display: block;margin: 0 auto;">
- </template>
- </el-popover>
- </div>
- <div class="hot-box" style="margin-top: 40px;" v-if="banner">
- <div class="label">{{banner.Type}}</div>
- <div class="img-con" :style="'background-image:url('+banner.ImgUrl+')'" @click="handleAsideBanner(banner)">
- <div class="title">{{banner.ClassifyNameFirst.substring(0, 12)}}</div>
- <!-- <span class="stage">第{{banner.Stage}}期</span> -->
- </div>
- </div>
- <div class="recmd-box" style="margin-top: 40px;">
- <div class="label">更多推荐</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>
- </div>
- </div>
- </div>
- <report-cancel v-if="isReportPublishCancel"/>
- <!-- 图片预览 -->
- <el-image-viewer
- v-if="showPreViewImg"
- :initial-index="preViewImgIndex"
- @close="showPreViewImg=false"
- :url-list="preViewImgs"
- />
- <!-- 预览ppt -->
- <div class="ppt-preview-box" v-if="showPreViewPPT">
- <el-image-viewer
- v-if="showPreViewPPT"
- :initial-index="preViewPPTIndex"
- @close="showPreViewPPT=false"
- :url-list="pptImgs"
- />
- </div>
- <!-- 免责申明 -->
- <el-dialog v-model="showDisclaimers" title="免责声明" center draggable width="40%">
- <div class="disclaimers-box">
- <div style="margin-bottom:10px">1、本报告仅供弘则弥道(上海)投资咨询有限公司正式签约的机构客户使用,不会因接收人/接收机构收到本报告而将其视为客户。</div>
- <div style="margin-bottom:10px">2、本报告根据国际和行业通行的准则,以合法渠道获得这些信息,尽可能保证可靠、准确和完整,但并不保证报告所述信息的准确性和完整性,也不保证本报告所包含的信息或建议在本报告发出后不会发生任何变更。本报告中所提供的信息仅供参考。</div>
- <div style="margin-bottom:10px">3、报告中的内容不对投资者做出的最终操作建议做任何的担保,也没有任何形式的分享投资收益或者分担投资损失的书面或口头承诺。不作为客户在投资、法律、会计或税务等方面的最终操作建议,也不作为道义的、责任的和法律的依据或者凭证,无论是否已经明示或者暗示。</div>
- <div style="margin-bottom:10px">4、在任何情况下,本公司不对客户/接收人/接收机构因使用报告中内容所引致的一切损失负责任,客户/接收人/接收机构需自行承担全部风险。</div>
- </div>
- </el-dialog>
- </template>
- <style lang="scss" scoped>
- .report-chapter-detail-page{
- .content-box{
- flex: 1;
- padding-right: 30px;
- }
-
- .report-box{
- .title{
- display: inline;
- font-size: 24px;
- font-weight: bold;
- margin-left: -14px;
- }
- .time{
- color: #666;
- margin-top: 20px;
- margin-bottom: 30px;
- font-size: 16px;
- span:last-child{
- float: right;
- }
- }
- .tips{
- font-size: 18px;
- margin-bottom: 30px;
- &::before{
- content: '';
- width: 6px;
- // height: 30px;
- display: inline-block;
- background-color: #F3A52F;
- margin-right: 10px;
- // position: relative;
- // top: 10px;
- }
- @media screen and (min-width: 1600px){
- ::v-deep(.el-image-viewer__close){
- top: 10vh;
- right: calc(50% - 700px);
- }
- ::v-deep(.el-image-viewer__next){
- right: calc(50% - 700px);
- }
- ::v-deep(.el-image-viewer__prev){
- left: calc(50% - 700px);
- }
- }
- }
- .abstract{
- font-size: 18px;
- // font-weight: bold;
- margin-bottom: 20px;
- // margin-top: 20px;
- // display: flex;
- // align-items: center;
- // &::before{
- // flex-shrink: 0;
- // content: '';
- // display: block;
- // width: 6px;
- // min-height: 30px;
- // background-color: #F3A52F;
- // margin-right: 10px;
- // position: relative;
- // }
- }
- .rich-content{
- margin-top: 30px;
- line-height: 1.8;
- font-size: 18px;
- :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(ul,ol,li,p){
- font-size: 18px !important;
- line-height: 1.8 !important;
- background-color: rgba(255, 255, 255, 0) !important;
- }
- :deep(iframe){
- width: 100% !important;
- }
- }
- }
- .right-fix-opt-box{
- position: fixed;
- right: 33px;
- bottom: 150px;
- z-index: 1000;
- .ppt-icon{
- width: 54px;
- height: 54px;
- object-fit: cover;
- display: block;
- margin: 0 auto;
- }
- .collect-icon{
- width: 57px;
- height: 57px;
- object-fit: cover;
- display: block;
- margin: 0 auto;
- }
- }
- .no-auth-wrap{
- text-align: center;
- color: #F3A52F;
- margin-top: -140px;
- padding-top: 140px;
- min-height: 200px;
- position: relative;
- z-index: 5;
- background: linear-gradient(360deg, #FFFFFF 60%, rgba(255, 255, 255, 0) 88%);
- .btn{
- width: 218px;
- margin-left: auto;
- margin-right: auto;
- margin-top: 20px;
- }
- }
- .chapter-list-wrap{
- .top-name{
- text-align: center;
- color: #F3A52F;
- font-size: 18px;
- margin-bottom: 50px;
- &::before,&::after{
- content: '';
- display: inline-block;
- width: 83px;
- height: 1px;
- background-color: #F3A52F;
- vertical-align: middle;
- margin: 0 22px;
- }
- }
- .list{
- flex-wrap: wrap;
- .item{
- display: flex;
- justify-content: center;
- align-items: center;
- width: 148px;
- height: 36px;
- background-color: #F7F7F7;
- border-radius: 4px;
- margin-right: 20px;
- margin-bottom: 20px;
- cursor: pointer;
- img{
- width: 20px;
- height: 20px;
- }
- }
- .active{
- background-color: #F3A52F;
- color: #fff;
- }
- }
- }
- .ticker-wrap{
- margin-top: 30px;
- .top-title{
- text-align: center;
- font-size: 20px;
- font-weight: bold;
- vertical-align: middle;
- &::before,&::after{
- content: '';
- display: inline-block;
- width: 100px;
- height: 2px;
- background-color:rgb(204, 204, 204);
- vertical-align: middle;
- margin: 0 20px;
- }
- }
- .table-box{
- margin: 20px 0;
- &::-webkit-scrollbar{
- width: 0;
- }
- overflow: auto hidden;
- .table-row{
- display: flex;
- width: 100%;
- }
- .table-item{
- padding: 10px;
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .table-head{
- color: #fff;
- background-color: rgb(58, 76, 115);
- .table-item{
- &:first-child{
- position: sticky;
- left: 0;
- z-index: 5;
- border-right-color: rgb(58, 76, 115);
- }
- background-color: rgb(58, 76, 115);
- }
- }
- .table-body{
- .table-item{
- background-color: #fff;
- &:first-child{
- position: sticky;
- left: 0;
- z-index: 5;
- }
- }
- .grey{
- background-color: #ddd;
- }
- .minus{
- color: #006600;
- }
- }
- }
- }
- .right-aside-box{
- .hot-box{
- .img-con{
- position: relative;
- .title{
- padding:17px 15px;
- font-size: 16px;
- font-weight: bold;
- color: #fff;
- width: 105px;
- }
- .stage{
- position: absolute;
- bottom: 27px;
- left: 16px;
- color: #F3A52F;
- font-size: 12px;
- }
- }
- }
- }
- }
- .disclaimers-box{
- max-height: 60vh;
- overflow: auto;
- }
- .html-head-img-box,.html-end-img-box{
- margin-bottom: 10px;
- position: relative;
- overflow: hidden;
- .head-layout-item{
- position: absolute;
- overflow: hidden;
- box-sizing: border-box
- }
- }
- </style>
|