Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
h5-base
Commits
80612b8d
Commit
80612b8d
authored
Aug 20, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
819
parent
5579b863
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
+15
-13
video.vue
src/components/newLesson/video.vue
+12
-10
main.js
src/main.js
+3
-3
No files found.
src/components/newLesson/video.vue
View file @
80612b8d
...
...
@@ -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"
)
...
...
src/main.js
View file @
80612b8d
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment