819

parent 5579b863
......@@ -247,7 +247,6 @@ export default {
console.log(el.url)
})
}
this.secClarity = false;
},
scrollFn(index) {
......@@ -430,18 +429,21 @@ export default {
console.log(this.currentTime,431)
// if(this.currentTime){
// }
// this.$refs.videoDom.addEventListener("loadedmetadata", ()=>
// this.$refs.videoDom.load()
// document.getElementById('myVideo').addEventListener("loadeddata", function () {//加载完成事件,调用函数
// document.getElementById('myVideo').play(); //自动播放
// document.getElementById('myVideo').currentTime = 300; //跳转
// })
// this.$refs.videoDom.addEventListener("canplay", ()=>
// {
// console.log(230)
// this.$refs.videoDom.play()
// this.$refs.videoDom.currentTime = 300
// // this.$refs.videoDom.play()
// // this.$refs.videoDom.currentTime = 300
// })
// setTimeout(() => {
// this.$refs.videoDom.play()
// this.$refs.videoDom.currentTime = 300
// }, 300);
// document.getElementById('myVideo').play()
// document.getElementById('myVideo').currentTime=300
setTimeout(() => {
this.$refs.videoDom.play()
this.$refs.videoDom.currentTime = 300
}, 300);
this.$sa.track("watchClick", {
dayModule: JSON.parse(
localStorage.getItem("lessonDetail")
......
......@@ -37,9 +37,9 @@ Vue.component('scroll', scroll);
// Vue.prototype.$throw = (error)=> errorHandler(error,this);
/* eslint-disable no-new */
// Vue.prototype.testAttr = 'testAttr'
// if (process.env.NODE_ENV != 'production') {
// new VConsole();
// }
if (process.env.NODE_ENV != 'production') {
new VConsole();
}
router.beforeEach((to, from, next) => {
next()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment