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
a70c3bfb
Commit
a70c3bfb
authored
Sep 05, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成今日学习
parent
14bb003f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
audio.vue
src/components/newLesson/audio.vue
+1
-1
evaluate.vue
src/components/newLesson/evaluate.vue
+5
-5
video.vue
src/components/newLesson/video.vue
+1
-1
No files found.
src/components/newLesson/audio.vue
View file @
a70c3bfb
...
...
@@ -782,7 +782,7 @@
// (Number(lookTime) + Number(lessonDetail.total_watch_time)) / 60
<
// 7
// )
if
(
res
.
total_star_num
>
=
2
)
{
if
(
res
.
total_star_num
<
=
2
)
{
this
.
popupVisible2
=
true
;
// debugger
...
...
src/components/newLesson/evaluate.vue
View file @
a70c3bfb
...
...
@@ -106,11 +106,11 @@
* @param category_id
* @param periods_id
*/
async
subUserLessonFn
(
elementId
,
category_id
,
periods_id
)
{
async
subUserLessonFn
(
elementId
,
category_id
,
periods_id
,
page_id
)
{
let
nowTime
=
Date
.
parse
(
new
Date
()),
// 时间
lessonDetail
=
JSON
.
parse
(
localStorage
.
getItem
(
"lessonDetail"
)),
// 获取延长时间
lookTime
=
(
nowTime
-
lessonDetail
.
nowTime
)
/
1000
,
watchLog
=
{
page_type
:
0
,
page_id
:
7
,
stay_time
:
lookTime
};
watchLog
=
{
page_type
:
0
,
page_id
:
page_id
,
stay_time
:
lookTime
};
const
subUserLessonDatac
=
await
subUserLessonApi
(
elementId
,
category_id
,
periods_id
,
watchLog
)
this
.
totalStarNum
=
subUserLessonDatac
.
total_star_num
},
...
...
@@ -126,7 +126,7 @@
if
(
this
.
myHtmlCode
.
length
>
15
&&
this
.
myHtmlCode
.
length
<
100
)
{
// 提交评价页面
const
postUserGrowthAddData
=
await
postUserGrowthAddApi
(
classQuery
.
elementId
,
classQuery
.
category_id
,
classQuery
.
periods_id
,
data
)
this
.
subUserLessonFn
(
classQuery
.
elementId
,
classQuery
.
category_id
,
classQuery
.
periods_id
)
this
.
subUserLessonFn
(
classQuery
.
elementId
,
classQuery
.
category_id
,
classQuery
.
periods_id
,
7
)
// 删除缓存
localStorage
.
removeItem
(
"cache"
);
// 展示网页生成图片
...
...
@@ -136,7 +136,7 @@
this
.
$sa
.
track
(
'buttonClick'
,{
tabTitle
:
'评价'
,
moduleTitle
:
'评价'
,
buttonType
:
'点击'
,
buttonType
:
'点击
wwwww
'
,
buttonName
:
'提交成长记录加一颗星'
});
}
else
{
...
...
@@ -155,7 +155,7 @@
*/
skipTextClick
()
{
let
classQuery
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"classQuery"
))
this
.
subUserLessonFn
(
classQuery
.
elementId
,
classQuery
.
category_id
,
classQuery
.
periods_id
)
this
.
subUserLessonFn
(
classQuery
.
elementId
,
classQuery
.
category_id
,
classQuery
.
periods_id
,
0
)
this
.
shareShow
=
true
this
.
audioFn
()
// 声音时间
this
.
$sa
.
track
(
'buttonClick'
,{
...
...
src/components/newLesson/video.vue
View file @
a70c3bfb
...
...
@@ -356,7 +356,7 @@
// (Number(lookTime) + Number(lessonDetail.total_watch_time)) / 60
<
// 7
// )
if
(
res
.
total_star_num
>
=
2
)
{
if
(
res
.
total_star_num
<
=
2
)
{
this
.
popupVisible
=
true
;
}
else
{
// 用户看课统计
...
...
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