xg
This commit is contained in:
parent
75ee36d1bc
commit
17be1bea46
@ -79,7 +79,7 @@
|
||||
}
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: `/pagesC/noticedetails/noticedetails?item=${JSON.stringify(item)}&title=${this.title}&videoId=${item.videoId}`
|
||||
url: `/pagesC/noticedetails/noticedetails?item=${JSON.stringify(item)}&title=${this.title}&messageNo=${item.messageNo}`
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
</view>
|
||||
<view class="" style="height: 2rpx;width: 100%;background-color: #f6f6f6;">
|
||||
</view>
|
||||
<video v-if="videoId" id="myVideo" @timeupdate="videoFun" :src="videoId" :initial-time="initial_time"
|
||||
<video v-if="messageNo" id="myVideo" @timeupdate="videoFun" :src="messageNo" :initial-time="initial_time"
|
||||
@ended='ended' />
|
||||
<view class="text">
|
||||
<text>{{currentItem.content}}</text>
|
||||
@ -26,7 +26,7 @@
|
||||
return {
|
||||
currentItem: '',
|
||||
title: '',
|
||||
videoId: null,
|
||||
messageNo: null,
|
||||
video_real_time: 0, //实时播放进度
|
||||
nitial_time: '', //视频跳转进度 秒
|
||||
};
|
||||
@ -40,8 +40,8 @@
|
||||
this.initial_time = '0' //视频进度
|
||||
this.title = options.title
|
||||
this.currentItem = JSON.parse(options.item)
|
||||
if (options.videoId) {
|
||||
this.videoId = baseurl + `/applet/message/preview/${options.videoId}`
|
||||
if (options.messageNo) {
|
||||
this.messageNo = baseurl + `/applet/message/preview/${options.messageNo}`
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user