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
ec78e102
Commit
ec78e102
authored
Aug 16, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
814
parent
9fe973ed
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
+16
-10
buy.vue
src/components/buy/buy.vue
+1
-0
index.vue
src/components/buy/index.vue
+2
-2
video.vue
src/components/newLesson/video.vue
+13
-8
No files found.
src/components/buy/buy.vue
View file @
ec78e102
...
...
@@ -369,6 +369,7 @@
}
});
getGoodsDetailApi
(
this
.
shopId
).
then
(
data
=>
{
// debugger
data
.
desc
=
JSON
.
parse
(
data
.
desc
);
data
.
goods_desc
=
JSON
.
parse
(
data
.
goods_desc
);
data
.
share_desc
=
JSON
.
parse
(
data
.
share_desc
);
...
...
src/components/buy/index.vue
View file @
ec78e102
...
...
@@ -315,7 +315,7 @@ export default {
// this.refIcon =
// this.
},
goToBuyPage
()
{
goToBuyPage
(
type
)
{
let
query
=
{
shopId
:
this
.
shopId
,
invite_code
:
this
.
invite_code
};
let
invite
=
this
.
invite_code
;
this
.
$sa
.
track
(
"buyCourse"
,
{
...
...
@@ -628,7 +628,7 @@ export default {
this
.
$sa
.
track
(
"ViewRegisterpage"
,
{});
},
1000
);
}
else
{
this
.
goToBuyPage
();
this
.
goToBuyPage
(
type
);
}
}
}
...
...
src/components/newLesson/video.vue
View file @
ec78e102
...
...
@@ -230,40 +230,42 @@ export default {
localStorage
.
setItem
(
"clarityType"
,
this
.
clarityType
);
this
.
showObj
.
video
.
forEach
(
el
=>
{
el
.
url
=
el
.
url
.
slice
(
0
,
el
.
url
.
indexOf
(
'_'
))
+
'_'
+
this
.
clarityType
+
el
.
url
.
slice
(
-
4
)
console
.
log
(
el
.
url
)
})
this
.
$refs
.
videoDom
.
load
()
this
.
$refs
.
videoDom
.
addEventListener
(
"loadedmetadata"
,
function
()
{
//
console.log(230)
// that.$refs.videoDom.currentTime=
1
0
console
.
log
(
230
)
// that.$refs.videoDom.currentTime=
2
0
})
}
else
if
(
a
==
"720"
)
{
this
.
clarityType
=
720
;
localStorage
.
setItem
(
"clarityType"
,
this
.
clarityType
);
this
.
showObj
.
video
.
forEach
(
el
=>
{
el
.
url
=
el
.
url
.
slice
(
0
,
el
.
url
.
indexOf
(
'_'
))
+
'_'
+
this
.
clarityType
+
el
.
url
.
slice
(
-
4
)
console
.
log
(
el
.
url
)
})
this
.
$refs
.
videoDom
.
load
()
// debugger
this
.
$refs
.
videoDom
.
addEventListener
(
"loadedmetadata"
,
function
()
{
//
console.log(230)
// that.$refs.videoDom.currentTime=
1
0
console
.
log
(
230
)
// that.$refs.videoDom.currentTime=
2
0
})
}
else
{
this
.
clarityType
=
540
;
localStorage
.
setItem
(
"clarityType"
,
this
.
clarityType
);
this
.
showObj
.
video
.
forEach
(
el
=>
{
el
.
url
=
el
.
url
.
slice
(
0
,
el
.
url
.
indexOf
(
'_'
))
+
'_'
+
this
.
clarityType
+
el
.
url
.
slice
(
-
4
)
console
.
log
(
el
.
url
)
})
this
.
$refs
.
videoDom
.
load
()
this
.
$refs
.
videoDom
.
addEventListener
(
"loadedmetadata"
,
function
()
{
//
console.log(230)
// that.$refs.videoDom.currentTime=
1
0
console
.
log
(
230
)
// that.$refs.videoDom.currentTime=
2
0
})
}
this
.
secClarity
=
false
;
...
...
@@ -512,6 +514,9 @@ export default {
change
:
this
.
contentData
.
content
.
change
};
}
// this.showObj.video.forEach(el=>{
// el.url = el.url+'?/avvod/m3u8'
// })
// console.log(this.$refs.itembox)
// console.log(this.showObj.video.length)
if
(
this
.
$refs
.
itembox
&&
this
.
showObj
.
video
.
length
)
{
...
...
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