|
@@ -7,14 +7,8 @@
|
|
|
<span>FICC团队</span>
|
|
|
<span>{{formatTime(info.report_chapter_item.publish_time)}}</span>
|
|
|
</div>
|
|
|
- <div class="flex audio-wrap">
|
|
|
- <img style="opacity:0.3" src="@/assets/hzyb/report/audio-pause.png" mode="aspectFill" v-if="!info.auth_ok"/>
|
|
|
- <img src="@/assets/hzyb/report/audio-pause.png" mode="aspectFill" v-else/>
|
|
|
- <div>
|
|
|
- <div>{{info.report_chapter_item.video_name}}</div>
|
|
|
- <div style="color: #999999">{{formatVoiceTime(info.report_chapter_item.video_play_seconds)}}</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <!-- 音频模块 -->
|
|
|
+ <AudioBox :audioData="audioData"></AudioBox>
|
|
|
<div class="tips">
|
|
|
<span>注:请务必阅读</span>
|
|
|
<span style="color: #e3b377; margin-left: 20px" @click="showDisclaimers = true">免责声明</span>
|
|
@@ -55,7 +49,7 @@
|
|
|
<van-row gutter="10">
|
|
|
<van-col span="6" v-for="item in info.report_chapter_menu_list" :key="item.report_chapter_id">
|
|
|
<div :class="['item',item.report_chapter_id==chapterId&&'active']" @click="handleChapterChange(item)">
|
|
|
- <image :src="item.report_chapter_type_thumb" mode="aspectFill"/>
|
|
|
+ <img :src="item.report_chapter_type_thumb" mode="aspectFill"/>
|
|
|
<text>{{item.report_chapter_type_name}}</text>
|
|
|
</div>
|
|
|
</van-col>
|
|
@@ -103,6 +97,7 @@ moment.locale('zh-cn')
|
|
|
|
|
|
import {apiChapterDetail,apiChapterTickerValue} from '@/api/hzyb/report'
|
|
|
import {Popup,Image as VanImage,PullRefresh,Col, Row} from 'vant'
|
|
|
+import AudioBox from './components/AudioBox.vue'
|
|
|
export default {
|
|
|
components:{
|
|
|
[Popup.name]:Popup,
|
|
@@ -110,7 +105,8 @@ export default {
|
|
|
[PullRefresh.name]:PullRefresh,
|
|
|
[Col.name]:Col,
|
|
|
[Row.name]:Row,
|
|
|
- [PullRefresh.name]:PullRefresh
|
|
|
+ [PullRefresh.name]:PullRefresh,
|
|
|
+ AudioBox
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -118,6 +114,7 @@ export default {
|
|
|
chapterId:0,
|
|
|
fromPage:'',//如果是从首页(home)来的则隐藏底部切换
|
|
|
info:null,
|
|
|
+ audioData:{},//音频数据
|
|
|
|
|
|
tickerInfo:null,
|
|
|
tickerHead:[],
|
|
@@ -160,6 +157,12 @@ export default {
|
|
|
const res=await apiChapterDetail({report_chapter_id:Number(this.chapterId)})
|
|
|
if(res.code===200){
|
|
|
this.info=res.data
|
|
|
+ this.audioData={
|
|
|
+ auth_ok:res.data.auth_ok,
|
|
|
+ video_name:res.data.report_chapter_item.video_name,
|
|
|
+ video_play_seconds:res.data.report_chapter_item.video_play_seconds,
|
|
|
+ video_url:res.data.report_chapter_item.video_url
|
|
|
+ }
|
|
|
document.title=res.data.report_chapter_item.classify_name_first
|
|
|
if(res.data.report_chapter_item.classify_name_first==='晨报'){
|
|
|
this.getTickerValue()
|
|
@@ -171,7 +174,7 @@ export default {
|
|
|
async getTickerValue(){
|
|
|
const res=await apiChapterTickerValue({report_chapter_id:Number(this.chapterId)})
|
|
|
if(res.code===200){
|
|
|
- if(!res.data.list) return
|
|
|
+ if(!res.data||!res.data.list) return
|
|
|
this.tickerInfo=res.data
|
|
|
if(res.data.ticker_title.report_chapter_type_id===17){
|
|
|
this.tickerHead=[
|
|
@@ -337,21 +340,6 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
font-size: 28px;
|
|
|
}
|
|
|
- .audio-wrap{
|
|
|
- height: 160px;
|
|
|
- background: #FAF7EE;
|
|
|
- border-radius: 16px;
|
|
|
- margin-top: 20px;
|
|
|
- padding: 10px 31px;
|
|
|
- margin-bottom: 31px;
|
|
|
- align-items: center;
|
|
|
- img{
|
|
|
- width: 110px;
|
|
|
- height: 110px;
|
|
|
- display: block;
|
|
|
- margin-right: 16px;
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
.tips{
|
|
|
font-size: 34px;
|
|
@@ -410,7 +398,7 @@ export default {
|
|
|
width: 76px;
|
|
|
height: 76px;
|
|
|
right: 34px;
|
|
|
- bottom: 100px;
|
|
|
+ bottom: 150px;
|
|
|
}
|
|
|
.chapter-list-wrap {
|
|
|
background-color: #f5f6fa;
|
|
@@ -449,7 +437,7 @@ export default {
|
|
|
padding-top: 20px;
|
|
|
border-radius: 8px;
|
|
|
overflow: hidden;
|
|
|
- image{
|
|
|
+ img{
|
|
|
width: 88px;
|
|
|
height: 88px;
|
|
|
display: block;
|