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
e9694759
Commit
e9694759
authored
Sep 05, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判断星星为几颗
parent
48e7f898
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
12 deletions
+15
-12
audio.vue
src/components/newLesson/audio.vue
+6
-4
video.vue
src/components/newLesson/video.vue
+6
-5
main.js
src/main.js
+3
-3
No files found.
src/components/newLesson/audio.vue
View file @
e9694759
...
...
@@ -778,10 +778,12 @@
lessonDetail
.
nowTime
=
nowTime
;
lessonDetail
.
star_num
=
res
.
total_star_num
;
localStorage
.
setItem
(
"lessonDetail"
,
JSON
.
stringify
(
lessonDetail
));
if
(
(
Number
(
lookTime
)
+
Number
(
lessonDetail
.
total_watch_time
))
/
60
<
7
)
{
// if (
// (Number(lookTime) + Number(lessonDetail.total_watch_time)) / 60
<
// 7
// )
if
(
res
.
total_star_num
>=
2
)
{
this
.
popupVisible2
=
true
;
// debugger
}
else
{
...
...
src/components/newLesson/video.vue
View file @
e9694759
...
...
@@ -148,7 +148,7 @@
import
audioPerfect
from
"../../assets/perfect.mp3"
;
import
leftIcon
from
"../../assets/shop/left.png"
;
import
{
Toast
}
from
"vant"
;
// import videojs from "videojs";
export
default
{
name
:
"play"
,
components
:
{
...
...
@@ -352,10 +352,11 @@
lessonDetail
.
nowTime
=
nowTime
;
lessonDetail
.
star_num
=
res
.
total_star_num
;
localStorage
.
setItem
(
"lessonDetail"
,
JSON
.
stringify
(
lessonDetail
));
if
(
(
Number
(
lookTime
)
+
Number
(
lessonDetail
.
total_watch_time
))
/
60
<
7
)
{
// if (
// (Number(lookTime) + Number(lessonDetail.total_watch_time)) / 60
<
// 7
// )
if
(
res
.
total_star_num
>=
2
)
{
this
.
popupVisible
=
true
;
}
else
{
// 用户看课统计
...
...
src/main.js
View file @
e9694759
...
...
@@ -39,9 +39,9 @@ Vue.config.errorHandler = errorHandler;
Vue
.
prototype
.
$throw
=
(
error
)
=>
errorHandler
(
error
,
this
);
Vue
.
prototype
.
$common
=
common
//VConsole关闭屏蔽代码
//
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