|
|
|
@ -148,7 +148,7 @@
|
|
|
|
|
timerPrss: null, |
|
|
|
|
showAutoBox: false, |
|
|
|
|
is_duration: true, |
|
|
|
|
playThisId:route.params.playid |
|
|
|
|
playThisId:route.params.videoid |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
// 获取视频 待删 MARKET-4168 |
|
|
|
@ -191,6 +191,7 @@
|
|
|
|
|
|
|
|
|
|
// 列表点击切换视频 |
|
|
|
|
const getvideo_click = async (id, replay=0) => { |
|
|
|
|
|
|
|
|
|
state.playThisId = id; |
|
|
|
|
state.is_duration = false; |
|
|
|
|
clearInterval(state.timerTxt); |
|
|
|
@ -199,7 +200,7 @@
|
|
|
|
|
state.ckPlayer.videoClear(); |
|
|
|
|
state.ckPlayer = null; |
|
|
|
|
document.getElementById("VideoPlay").innerHTML = ""; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTimeout(function () { |
|
|
|
|
getvideoDom(id, replay); |
|
|
|
|
getNextId(id); |
|
|
|
@ -215,7 +216,7 @@
|
|
|
|
|
* @replay 1=重播 |
|
|
|
|
* @resOne 1=第一次进入页面播放 |
|
|
|
|
**/ |
|
|
|
|
const getvideoDom = async (id, replay=0, resOne=0) => { |
|
|
|
|
const getvideoDom = async (id, replay=0, resOne=0) => { |
|
|
|
|
|
|
|
|
|
// 获取视频 |
|
|
|
|
const res = await getVideo(classid, id); |
|
|
|
@ -224,7 +225,7 @@
|
|
|
|
|
state.video = res.data; |
|
|
|
|
state.play_title = res.data.title; |
|
|
|
|
state.videoObject.video = res.data.videourl; |
|
|
|
|
state.arrVideo.push(res.data); |
|
|
|
|
state.arrVideo.push(res.data); |
|
|
|
|
|
|
|
|
|
if (res.data.playtime > 0) { |
|
|
|
|
state.videoObject.seek = res.data.playtime; |
|
|
|
@ -326,7 +327,7 @@
|
|
|
|
|
// 重置新id |
|
|
|
|
state.logid = res.data.logid; |
|
|
|
|
state.videoid = res.data.id; |
|
|
|
|
console.log('videoid',state.videoid); |
|
|
|
|
console.log('log_videoid',state.videoid); |
|
|
|
|
|
|
|
|
|
// 修改路由 |
|
|
|
|
let winState = { url: id }; |
|
|
|
|