819

parent 5579b863
...@@ -247,7 +247,6 @@ export default { ...@@ -247,7 +247,6 @@ export default {
console.log(el.url) console.log(el.url)
}) })
} }
this.secClarity = false; this.secClarity = false;
}, },
scrollFn(index) { scrollFn(index) {
...@@ -430,18 +429,21 @@ export default { ...@@ -430,18 +429,21 @@ export default {
console.log(this.currentTime,431) console.log(this.currentTime,431)
// if(this.currentTime){ // 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) // console.log(230)
// this.$refs.videoDom.play() // // this.$refs.videoDom.play()
// this.$refs.videoDom.currentTime = 300 // // this.$refs.videoDom.currentTime = 300
// }) // })
// setTimeout(() => { setTimeout(() => {
// this.$refs.videoDom.play() this.$refs.videoDom.play()
// this.$refs.videoDom.currentTime = 300 this.$refs.videoDom.currentTime = 300
// }, 300); }, 300);
// document.getElementById('myVideo').play()
// document.getElementById('myVideo').currentTime=300
this.$sa.track("watchClick", { this.$sa.track("watchClick", {
dayModule: JSON.parse( dayModule: JSON.parse(
localStorage.getItem("lessonDetail") localStorage.getItem("lessonDetail")
......
...@@ -37,9 +37,9 @@ Vue.component('scroll', scroll); ...@@ -37,9 +37,9 @@ Vue.component('scroll', scroll);
// Vue.prototype.$throw = (error)=> errorHandler(error,this); // Vue.prototype.$throw = (error)=> errorHandler(error,this);
/* eslint-disable no-new */ /* eslint-disable no-new */
// Vue.prototype.testAttr = 'testAttr' // Vue.prototype.testAttr = 'testAttr'
// if (process.env.NODE_ENV != 'production') { if (process.env.NODE_ENV != 'production') {
// new VConsole(); new VConsole();
// } }
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
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