Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
e41cb573
Commit
e41cb573
authored
Dec 13, 2022
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改app不能监测到总时长,修改柱状图不显示
parent
b3a0d43b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
pages/courseDetail/courseDetail.vue
+3
-2
pages/learningStatistics/learningStatistics.vue
+4
-3
No files found.
pages/courseDetail/courseDetail.vue
View file @
e41cb573
...
...
@@ -420,7 +420,7 @@
},
20
*
1000
)
}
},
pause
()
{
pause
(
e
)
{
// 暂停播放
if
(
this
.
timer
)
{
clearInterval
(
this
.
timer
)
...
...
@@ -432,7 +432,7 @@
this
.
saveVideoPlayback
();
}
},
ended
()
{
ended
(
e
)
{
// 播放到末尾
if
(
this
.
timer
)
{
clearInterval
(
this
.
timer
)
...
...
@@ -440,6 +440,7 @@
this
.
saveVideoPlayback
();
},
timeupdate
(
e
)
{
this
.
totalTime
=
e
.
detail
.
duration
;
// 播放进度变化
this
.
viewTime
=
e
.
detail
.
currentTime
>
this
.
totalTime
?
this
.
totalTime
:
e
.
detail
.
currentTime
;
if
(
this
.
courseInfo
.
status
===
1
)
{
...
...
pages/learningStatistics/learningStatistics.vue
View file @
e41cb573
...
...
@@ -162,11 +162,12 @@
categories
.
push
(
this
.
studyInfos
[
j
].
month
.
split
(
'-'
)[
1
]);
data
.
push
({
value
:
this
.
studyInfos
[
j
][
'studyTime'
],
color
:
'#9EB4FF'
});
}
this
.
currentDate
=
this
.
month
=
this
.
studyInfos
[
this
.
studyInfos
.
length
-
1
].
month
;
this
.
month
=
this
.
studyInfos
[
this
.
studyInfos
.
length
-
1
].
month
;
this
.
currentDate
=
new
Date
(
this
.
month
).
toDateString
();
}
this
.
chartData
.
categories
=
categories
;
this
.
chartData
.
series
=
[{
name
:
'月'
,
data
:
data
}];
this
.
userStudyTime
()
this
.
userStudyTime
()
;
}
})
},
...
...
@@ -217,7 +218,7 @@
this
.
userStudyTime
();
}
},
onLoa
d
()
{
mounte
d
()
{
this
.
userStudyCount
()
}
}
...
...
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