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
2b24a01e
Commit
2b24a01e
authored
Jun 26, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
626
parent
1f95d35e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
16 deletions
+13
-16
index.vue
src/components/index.vue
+0
-6
index.vue
src/components/newLesson/index.vue
+0
-1
video.vue
src/components/newLesson/video.vue
+12
-7
starRank.vue
src/components/star/starRank.vue
+1
-2
No files found.
src/components/index.vue
View file @
2b24a01e
...
...
@@ -446,10 +446,7 @@ export default {
Toast
.
clear
()
},
initPage
()
{
// sessionStorage.
// console.log(this.couponInfo.money)
// debugger
// console.log(ss)
let
that
=
this
getCourseInfoApi
().
then
(
res
=>
{
console
.
log
(
res
,
'459'
)
...
...
@@ -495,9 +492,6 @@ export default {
this
.
$sa
.
track
(
"view61tipshadow"
,
{});
this
.
$store
.
dispatch
(
'setCouponShadow'
,
false
)
}
// if(!localStorage.getItem('activity')){
// localStorage.setItem('activity');
// }
console
.
log
(
course
)
// console.log(Date.parse(new Date()))
// console.log(Date.parse(new Date('2019/6/4')))
...
...
src/components/newLesson/index.vue
View file @
2b24a01e
...
...
@@ -32,7 +32,6 @@
</div>
</div>
</
template
>
<
script
>
import
{
subUserLessonApi
,
getUserWatchApi
,
getwechatParam
}
from
"../../service/api"
;
import
{
Toast
}
from
'vant'
...
...
src/components/newLesson/video.vue
View file @
2b24a01e
...
...
@@ -136,16 +136,21 @@
let
itemBoxWidth
=
Number
(
getComputedStyle
(
document
.
querySelector
(
'.itemBox'
)).
width
.
replace
(
'px'
,
''
))
console
.
log
(
itemBoxWidth
)
let
difWidth
=
(
parentwidth
/
2
)
-
45
if
(
index
*
this
.
videoWidth
>
difWidth
){
let
indexS
=
index
-
1
if
((
index
*
this
.
videoWidth
-
difWidth
)
<
(
itemBoxWidth
-
parentwidth
)){
this
.
$refs
.
scrollDom
.
scrollTo
(
-
((
index
*
this
.
videoWidth
)
-
difWidth
),
0
,
this
.
videoWidth
)
if
(
this
.
showObj
.
video
.
length
>
3
){
if
(
index
*
this
.
videoWidth
>
difWidth
){
console
.
log
(
140
)
let
indexS
=
index
-
1
if
((
index
*
this
.
videoWidth
-
difWidth
)
<
(
itemBoxWidth
-
parentwidth
)){
this
.
$refs
.
scrollDom
.
scrollTo
(
-
((
index
*
this
.
videoWidth
)
-
difWidth
),
0
,
this
.
videoWidth
)
}
else
{
this
.
$refs
.
scrollDom
.
scrollTo
(
-
(
itemBoxWidth
-
parentwidth
),
0
,
this
.
videoWidth
)
}
}
else
{
this
.
$refs
.
scrollDom
.
scrollTo
(
-
(
itemBoxWidth
-
parentwidth
),
0
,
this
.
videoWidth
)
console
.
log
(
148
)
this
.
$refs
.
scrollDom
.
scrollTo
(
0
,
0
,
this
.
videoWidth
)
}
}
else
{
this
.
$refs
.
scrollDom
.
scrollTo
(
0
,
0
,
this
.
videoWidth
)
}
},
swiperback
(
index
){
this
.
videoIndex
=
index
...
...
src/components/star/starRank.vue
View file @
2b24a01e
...
...
@@ -44,8 +44,7 @@
:initial-swipe=
"tabIndex-1"
:duration=
"1000"
class=
"scroll"
@
change=
"swipeChange"
>
@
change=
"swipeChange"
>
<van-swipe-item
@
click=
"swipeItemClick"
>
<scroll
:style=
"
{maxHeight: height +'px'}"
...
...
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