|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<van-pull-refresh v-model="loading" disabled style="min-height:100vh">
|
|
<van-pull-refresh v-model="loading" disabled style="min-height:100vh">
|
|
- <div class="report-detail-page" v-if="info" :style="{paddingBottom:$store.state.hzyb.audioData.url&&'80px'}">
|
|
|
|
|
|
+ <div class="report-detail-page" @click="closeAttention" v-if="info" :style="{paddingBottom:$store.state.hzyb.audioData.url&&'80px'}">
|
|
<!-- 晨报、周报章节 -->
|
|
<!-- 晨报、周报章节 -->
|
|
<div class="chapter-list-wrap" v-if="['晨报','周报'].includes(info.report_info.classify_name_first)">
|
|
<div class="chapter-list-wrap" v-if="['晨报','周报'].includes(info.report_info.classify_name_first)">
|
|
<div class="top-box" :style="'background-image:url(' + info.report_info.banner_url + ')'">
|
|
<div class="top-box" :style="'background-image:url(' + info.report_info.banner_url + ')'">
|
|
@@ -14,11 +14,16 @@
|
|
<div>{{formatChapterTime(info.report_info.publish_time,'year-month')}}</div>
|
|
<div>{{formatChapterTime(info.report_info.publish_time,'year-month')}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="num">第{{info.report_info.stage}}期</div>
|
|
|
|
|
|
+ <div class="audio-play-list-box" @click="handleGoSetAudioList" v-if="info.report_info.classify_name_first=='周报'&&info.auth_ok">播放清单</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>
|
|
|
|
+ <div :class="['stage-num',info.report_info.classify_name_first=='晨报'?'stage-num-day':'']">第{{info.report_info.stage}}期</div>
|
|
</div>
|
|
</div>
|
|
<div class="list-box">
|
|
<div class="list-box">
|
|
- <div class="flex item" v-for="(item,index) in chapterList" :key="item.report_chapter_id" @click="goChapterDetail(item)">
|
|
|
|
|
|
+ <div class="flex item" v-for="item in chapterList" :key="item.report_chapter_id" @click="goChapterDetail(item)">
|
|
<div class="img-box">
|
|
<div class="img-box">
|
|
<van-image class="img" :src="item.report_chapter_type_thumb" mode="aspectFill" />
|
|
<van-image class="img" :src="item.report_chapter_type_thumb" mode="aspectFill" />
|
|
</div>
|
|
</div>
|
|
@@ -29,6 +34,11 @@
|
|
</div>
|
|
</div>
|
|
<div class="van-multi-ellipsis--l2 sub-title">{{item.title}}</div>
|
|
<div class="van-multi-ellipsis--l2 sub-title">{{item.title}}</div>
|
|
<div class="update-time">更新至:{{formatChapterTime(item.publish_time,'year-month-day')}}</div>
|
|
<div class="update-time">更新至:{{formatChapterTime(item.publish_time,'year-month-day')}}</div>
|
|
|
|
+ <div
|
|
|
|
+ :class="['audio-icon-box',item.video_url==$store.state.hzyb.audioData.list[$store.state.hzyb.audioData.index]?.url?'audio-icon-box_active':'']"
|
|
|
|
+ v-if="info.report_info.classify_name_first=='周报'&&item.is_close==0"
|
|
|
|
+ @click.stop="handlePlayWeekAudio(item)"
|
|
|
|
+ ></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -228,7 +238,9 @@ export default {
|
|
shareData:{},//分享的数据传给ppt页
|
|
shareData:{},//分享的数据传给ppt页
|
|
|
|
|
|
collectIcon,
|
|
collectIcon,
|
|
- collectIcons
|
|
|
|
|
|
+ collectIcons,
|
|
|
|
+
|
|
|
|
+ showAttention:false,//是否显示配置播放清单提示
|
|
}
|
|
}
|
|
},
|
|
},
|
|
beforeCreate(){
|
|
beforeCreate(){
|
|
@@ -242,6 +254,7 @@ export default {
|
|
this.fromPage = this.$route.query.fromPage || ''
|
|
this.fromPage = this.$route.query.fromPage || ''
|
|
this.getDetail()
|
|
this.getDetail()
|
|
this.getUserInfo()
|
|
this.getUserInfo()
|
|
|
|
+
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
$(document).on('click', '.rich-content img',function(event) {
|
|
$(document).on('click', '.rich-content img',function(event) {
|
|
@@ -262,6 +275,43 @@ export default {
|
|
window.removeEventListener('scroll',this.loadMoreHandle)
|
|
window.removeEventListener('scroll',this.loadMoreHandle)
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 点击开始播放周报的列表中的音频
|
|
|
|
+ handlePlayWeekAudio(e){
|
|
|
|
+ const arr=[]
|
|
|
|
+ this.chapterList.forEach(item=>{
|
|
|
|
+ if(item.is_close==0){
|
|
|
|
+ arr.push({
|
|
|
|
+ url:item.video_url,
|
|
|
|
+ videoTime:item.video_play_seconds,
|
|
|
|
+ videoName:item.video_name,
|
|
|
|
+ videoImg:'https://hzstatic.hzinsights.com/static/yb_wx/report_list_zhou.png'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ console.log(arr);
|
|
|
|
+ let index=0
|
|
|
|
+ arr.forEach((_item,idx)=>{
|
|
|
|
+ if(_item.url==e.video_url) index=idx
|
|
|
|
+ })
|
|
|
|
+ this.$store.commit('hzyb/addAudio',{
|
|
|
|
+ list:arr,
|
|
|
|
+ index:index
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 设置周报的播放清单
|
|
|
|
+ handleGoSetAudioList(){
|
|
|
|
+ wx.miniProgram.navigateTo({
|
|
|
|
+ url:`/pages-report/audioPlayListSet?reportId=${this.reportId}`,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ closeAttention(){
|
|
|
|
+ if(this.info.report_info.classify_name_first=='晨报'&&!this.info.auth_ok) return
|
|
|
|
+ localStorage.setItem('showAttention','true')
|
|
|
|
+ this.showAttention=false
|
|
|
|
+ },
|
|
|
|
+
|
|
//背景音频播放报告音频
|
|
//背景音频播放报告音频
|
|
handlePlayAudioBG(){
|
|
handlePlayAudioBG(){
|
|
wx.miniProgram.navigateTo({
|
|
wx.miniProgram.navigateTo({
|
|
@@ -372,33 +422,6 @@ export default {
|
|
let imgText=''//分享图上需要显示的内容
|
|
let imgText=''//分享图上需要显示的内容
|
|
|
|
|
|
const shareTime=moment(res.data.report_info.publish_time).format('MMDD')
|
|
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){
|
|
if(res.data.report_info.abstract){
|
|
shareTitle=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>`
|
|
imgText=`<div style="font-size:78px">第${res.data.report_info.stage}期 | ${res.data.report_info.title}(${shareTime})</div>`
|
|
@@ -432,6 +455,17 @@ export default {
|
|
shareImg:shareImg
|
|
shareImg:shareImg
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ // 周报判断是否要显示提示
|
|
|
|
+ if(res.data.report_info.classify_name_first=='周报'){
|
|
|
|
+ const showAtt=localStorage.getItem('showAttention')||""
|
|
|
|
+ if(showAtt){
|
|
|
|
+ this.showAttention=false
|
|
|
|
+ }else{
|
|
|
|
+ this.showAttention=true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -816,7 +850,7 @@ export default {
|
|
left: 34px;
|
|
left: 34px;
|
|
right: 34px;
|
|
right: 34px;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
- align-items: flex-end;
|
|
|
|
|
|
+ align-items: center;
|
|
.time-box{
|
|
.time-box{
|
|
align-items: center;
|
|
align-items: center;
|
|
font-size: 24px;
|
|
font-size: 24px;
|
|
@@ -827,8 +861,53 @@ export default {
|
|
margin-right: 15px;
|
|
margin-right: 15px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ .audio-play-list-box{
|
|
|
|
+ background-color: #E3B377;
|
|
|
|
+ color: #fff;
|
|
|
|
+ font-size: 24px;
|
|
|
|
+ width: 180px;
|
|
|
|
+ line-height: 52px;
|
|
|
|
+ border-radius: 25px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+ .attention-box{
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 110%;
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ color: #333;
|
|
|
|
+ box-shadow: 0px 0px 10px 4px rgba(0, 0, 0, 0.16);
|
|
|
|
+ padding: 20px 54px 20px 20px;
|
|
|
|
+ border-radius: 8px;
|
|
|
|
+ .close-icon{
|
|
|
|
+ width: 24px;
|
|
|
|
+ height: 24px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 50%;
|
|
|
|
+ transform: translateY(-50%);
|
|
|
|
+ right: 20px;
|
|
|
|
+ }
|
|
|
|
+ &::after{
|
|
|
|
+ content: '';
|
|
|
|
+ display:block;
|
|
|
|
+ width: 0;
|
|
|
|
+ height: 0;
|
|
|
|
+ border: 10px solid transparent;
|
|
|
|
+ border-top-color: #fff;
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: -20px;
|
|
|
|
+ right: 20px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .stage-num{
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 350px;
|
|
|
|
+ right: 34px;
|
|
|
|
+ }
|
|
|
|
+ .stage-num-day{
|
|
|
|
+ bottom: 70px;
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
.list-box{
|
|
.list-box{
|
|
margin-top: -50px;
|
|
margin-top: -50px;
|
|
@@ -887,11 +966,21 @@ export default {
|
|
color: #999;
|
|
color: #999;
|
|
}
|
|
}
|
|
.update-time{
|
|
.update-time{
|
|
|
|
+ color: #D4D4D4;
|
|
|
|
+ font-size: 24px;
|
|
|
|
+ margin-top: 5px;
|
|
|
|
+ }
|
|
|
|
+ .audio-icon-box{
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 0;
|
|
top: 0;
|
|
right: 0;
|
|
right: 0;
|
|
- color: #D4D4D4;
|
|
|
|
- font-size: 20px;
|
|
|
|
|
|
+ width: 44px;
|
|
|
|
+ height: 40px;
|
|
|
|
+ background-image: url('@/assets/hzyb/report/icon-1.png');
|
|
|
|
+ background-size: cover;
|
|
|
|
+ }
|
|
|
|
+ .audio-icon-box_active{
|
|
|
|
+ background-image: url('@/assets/hzyb/report/icon-2.png');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|