소스 검색

晨报章节列表修改

jwyu 2 년 전
부모
커밋
02cbb83e15
1개의 변경된 파일19개의 추가작업 그리고 37개의 파일을 삭제
  1. 19 37
      src/views/hzyb/report/Detail.vue

+ 19 - 37
src/views/hzyb/report/Detail.vue

@@ -14,13 +14,13 @@
                             <div>{{formatChapterTime(info.report_info.publish_time,'year-month')}}</div>
                         </div>
                     </div>
-                    <div class="audio-play-list-box" @click="handleGoSetAudioList">播放清单</div>
+                    <div class="audio-play-list-box" @click="handleGoSetAudioList" v-if="info.report_info.classify_name_first=='周报'">播放清单</div>
                     <div class="attention-box" v-if="showAttention">
                         点击<span style="color:#E3B377">播放清单</span>,打开章节列表,进行<span style="color:#E3B377">播放清单配置</span>
                         <img class="close-icon" src="@/assets/hzyb/report/close.png" alt="" @click.stop="closeAttention">
                     </div>
                 </div>
-                <div class="stage-num">第{{info.report_info.stage}}期</div>
+                <div :class="['stage-num',info.report_info.classify_name_first=='晨报'?'stage-num-day':'']">第{{info.report_info.stage}}期</div>
             </div>
             <div class="list-box">
                 <div class="flex item" v-for="item in chapterList" :key="item.report_chapter_id" @click="goChapterDetail(item)">
@@ -255,12 +255,6 @@ export default {
         this.getDetail()
         this.getUserInfo()
 
-        const showAtt=localStorage.getItem('showAttention')||""
-        if(showAtt){
-            this.showAttention=false
-        }else{
-            this.showAttention=true
-        }
     },
     mounted(){
         $(document).on('click', '.rich-content img',function(event) {
@@ -290,7 +284,7 @@ export default {
                         url:item.video_url,
                         videoTime:item.video_play_seconds,
                         videoName:item.video_name,
-                        videoImg:item.report_chapter_type_thumb
+                        videoImg:'https://hzstatic.hzinsights.com/static/yb_wx/report_list_zhou.png'
                     })
                 }
             })
@@ -313,6 +307,7 @@ export default {
         },
 
         closeAttention(){
+            if(this.info.report_info.classify_name_first=='晨报') return
             localStorage.setItem('showAttention','true')
             this.showAttention=false
         },
@@ -427,33 +422,6 @@ export default {
                 let imgText=''//分享图上需要显示的内容
                 
                 const shareTime=moment(res.data.report_info.publish_time).format('MMDD')
-                //需求修改
-                // if(['晨报','周报'].includes(res.data.report_info.classify_name_first)){
-                //     shareTitle=`【${res.data.report_info.classify_name_first}】${res.data.report_info.title}(${shareTime})`
-                // }else{
-                //     // 专栏类报告
-                //     if(res.data.report_show_type==2){
-                //         const abstract=res.data.report_info.abstract?`:${res.data.report_info.abstract}`:''
-                //         if(res.data.report_info.classify_name_second==res.data.report_info.title){
-                //             shareTitle=`${res.data.report_info.title}(${shareTime})${abstract}`
-                //         }else{
-                //             shareTitle=`【${res.data.report_info.classify_name_second}】${res.data.report_info.title}(${shareTime})`
-                //         }
-                //     }else{
-                //         shareTitle=`【${res.data.report_info.classify_name_second}】${res.data.report_info.title}(${shareTime})`
-                //     }
-                // }
-                // // 日度点评
-                // if(res.data.report_info.classify_name_first==='日度点评'){
-                //     shareTitle=res.data.report_info.abstract||'FICC日度点评'
-                //     const rddpImgRes=await apiRddpShareImg({
-                //         title:`【第${res.data.report_info.stage}期】${res.data.report_info.title}(${shareTime})`
-                //     })
-                //     if(rddpImgRes.code===200){
-                //         shareImg=rddpImgRes.data
-                //     }
-                // }
-
                 if(res.data.report_info.abstract){
                     shareTitle=res.data.report_info.abstract
                     imgText=`<div style="font-size:78px">第${res.data.report_info.stage}期 | ${res.data.report_info.title}(${shareTime})</div>`
@@ -487,6 +455,17 @@ export default {
                         shareImg:shareImg
                     } 
                 });
+
+                // 周报判断是否要显示提示
+                if(res.data.report_info.classify_name_first=='周报'){
+                    const showAtt=localStorage.getItem('showAttention')||""
+                    if(showAtt){
+                        this.showAttention=false
+                    }else{
+                        this.showAttention=true
+                    }
+                }
+                
             }
         },
 
@@ -918,9 +897,12 @@ export default {
             }
             .stage-num{
                 position: absolute;
-                top: 30px;
+                bottom: 350px;
                 right: 34px;
             }
+            .stage-num-day{
+                bottom: 70px;
+            }
             
         }
         .list-box{