Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dcebc546
authored
Jul 21, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复学习中心
1 parent
d72c1310
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
78 additions
and
20 deletions
assets/css/sprite.scss
assets/images/sprite.png
components/HomeFrame/components/Study/LearnStatistics.vue
components/HomeFrame/components/Study/MyTask.vue
components/HomeFrame/components/Study/RecommendCourse.vue
pages/common/serviceDetail/index.vue
pages/common/studyDetail/detail.vue
pages/common/studyDetail/shortCourse.vue
assets/css/sprite.scss
View file @
dcebc54
...
@@ -59,6 +59,10 @@
...
@@ -59,6 +59,10 @@
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3674339300937766
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.09505541346973571
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3674339300937766
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.09505541346973571
);}
.icon-day-points
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.027280477408354646
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.027280477408354646
);
.icon-day-points
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.027280477408354646
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.027280477408354646
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.30008525149190113
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5839727195225917
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.30008525149190113
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5839727195225917
);}
.icon-defeat-detail
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.030690537084398978
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.030690537084398978
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5268542199488491
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.35038363171355497
);}
.icon-defeat-summary
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.030690537084398978
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.030690537084398978
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.12148337595907928
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5839727195225917
);}
.icon-detail-btn
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
.icon-detail-btn
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.2855924978687127
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.32608695652173914
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.2855924978687127
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.32608695652173914
);}
.icon-dress-code
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.007246376811594203
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.007885763000852515
);
.icon-dress-code
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.007246376811594203
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.007885763000852515
);
...
@@ -92,7 +96,7 @@
...
@@ -92,7 +96,7 @@
.icon-icon-arrow
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-icon-arrow
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5907928388746803
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.624467178175618
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5907928388746803
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.624467178175618
);}
.icon-icon-close
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.030690537084398978
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.030690537084398978
);
.icon-icon-close
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.030690537084398978
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.030690537084398978
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
5268542199488491
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3503836317135549
7
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
1585677749360614
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.583972719522591
7
);}
.icon-icon-copy
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-icon-copy
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6108269394714407
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.624467178175618
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6108269394714407
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.624467178175618
);}
.icon-icon-instructions
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-icon-instructions
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
...
@@ -125,6 +129,8 @@
...
@@ -125,6 +129,8 @@
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4620630861040068
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4620630861040068
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
.icon-js-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.05456095481670929
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
.icon-js-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.05456095481670929
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3674339300937766
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3269394714407502
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3674339300937766
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3269394714407502
);}
.icon-learn-bg
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.18073316283034954
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.05285592497868713
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.15302642796248933
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.13256606990622335
);}
.icon-level
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.027280477408354646
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.027280477408354646
);
.icon-level
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.027280477408354646
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.027280477408354646
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3674339300937766
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5839727195225917
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3674339300937766
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5839727195225917
);}
.icon-locker-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.1466325660699062
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.20119352088661552
);
.icon-locker-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.1466325660699062
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.20119352088661552
);
...
@@ -311,9 +317,3 @@
...
@@ -311,9 +317,3 @@
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5490196078431373
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.624467178175618
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5490196078431373
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.624467178175618
);}
.icon-zj-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-zj-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6547314578005116
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.36061381074168797
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6547314578005116
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.36061381074168797
);}
\ No newline at end of file
\ No newline at end of file
.icon-defeat-summary
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.030690537084398978
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.030690537084398978
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.12148337595907928
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5839727195225917
);}
.icon-defeat-detail
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.030690537084398978
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.030690537084398978
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.1585677749360614
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5839727195225917
);}
.icon-learn-bg
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.18073316283034954
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.05285592497868713
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.15302642796248933
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.13256606990622335
);}
\ No newline at end of file
\ No newline at end of file
assets/images/sprite.png
View file @
dcebc54
2.49 MB
|
W:
|
H:
2.49 MB
|
W:
|
H:
2-up
Swipe
Onion skin
components/HomeFrame/components/Study/LearnStatistics.vue
View file @
dcebc54
...
@@ -24,16 +24,16 @@
...
@@ -24,16 +24,16 @@
<view
:class=
"['unit', isBeisen ? '' : 'blue-unit']"
>
{{
<view
:class=
"['unit', isBeisen ? '' : 'blue-unit']"
>
{{
item
.
unit
}}
</view>
item
.
unit
}}
</view>
</view>
</view>
<view
style=
"position: relative;
"
v-if=
"dataInfo[item.key] || dataInfo[item.key] == 0"
>
<view
class=
"progress-bar-box
"
v-if=
"dataInfo[item.key] || dataInfo[item.key] == 0"
>
<view
:class=
"['progress-bar', isBeisen ? '' : 'big-margin']"
></view>
<view
:class=
"['progress-bar', isBeisen ? '' : 'big-margin']"
></view>
<view
:class=
"['progress-bar-value', isBeisen ? '' : 'big-top']"
<view
:class=
"['progress-bar-value', isBeisen ? '' : 'big-top']"
:style=
"
{ width:
item.finish ? `${item.finish
}%` : '0' }">
</view>
:style=
"
{ width:
dataInfo[item.key] ? `${dataInfo[item.key]
}%` : '0' }">
</view>
</view>
</view>
<view
:class=
"['progress-item-finish', isBeisen ? '' : 'big-margin']"
>
<view
:class=
"['progress-item-finish', isBeisen ? '' : 'big-margin']"
>
<template
v-if=
"dataInfo[item.key] || dataInfo[item.key] == 0"
>
<template
v-if=
"dataInfo[item.key] || dataInfo[item.key] == 0"
>
<view>
本周已有
</view>
<view>
本周已有
</view>
<view
class=
"progress-text"
>
<view
class=
"progress-text"
>
<view
class=
"number"
>
{{
dataInfo
[
item
.
ratio
]
||
dataInfo
[
item
.
ratio
]
==
0
?
dataInfo
[
item
.
ratio
]
:
'-'
}}
%
</view>
的
学员完成学习
<view
class=
"number"
>
{{
dataInfo
[
item
.
ratio
]
||
dataInfo
[
item
.
ratio
]
==
0
?
dataInfo
[
item
.
ratio
]
:
'-'
}}
%
</view>
学员完成学习
</view>
</view>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
...
@@ -248,9 +248,12 @@ export default {
...
@@ -248,9 +248,12 @@ export default {
}
}
}
}
}
}
.progress-bar-box
{
.progress-bar
{
position
:
relative
;
width
:
calc
(
100%
-
#{
toRpx
(
68
)}
);
width
:
calc
(
100%
-
#{
toRpx
(
68
)}
);
}
.progress-bar
{
width
:
100%
;
height
:
toRpx
(
12
);
height
:
toRpx
(
12
);
border-radius
:
toRpx
(
8
);
border-radius
:
toRpx
(
8
);
opacity
:
0.35
;
opacity
:
0.35
;
...
...
components/HomeFrame/components/Study/MyTask.vue
View file @
dcebc54
...
@@ -361,9 +361,9 @@ export default {
...
@@ -361,9 +361,9 @@ export default {
handleTaskItemClick
(
item
)
{
handleTaskItemClick
(
item
)
{
console
.
log
(
item
)
console
.
log
(
item
)
const
{
courseType
,
id
}
=
item
const
{
courseType
,
id
}
=
item
//
if (courseType == 1) {
if
(
courseType
==
1
)
{
//
uni.$track.add({eventCode: 'app_short_course', businessId: id, pagePath: '/pages/equity/index'})
uni
.
$track
.
add
({
eventCode
:
'app_short_course'
,
businessId
:
id
,
pagePath
:
'/pages/equity/index'
})
//
}
}
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/common/studyDetail/
${
courseType
==
1
?
'shortCourse'
:
'longCourse'
}
?row=
${
encodeURIComponent
(
JSON
.
stringify
(
item
))}
&completeStatus=
${
this
.
tabIndex
}
`
,
url
:
`/pages/common/studyDetail/
${
courseType
==
1
?
'shortCourse'
:
'longCourse'
}
?row=
${
encodeURIComponent
(
JSON
.
stringify
(
item
))}
&completeStatus=
${
this
.
tabIndex
}
`
,
fail
:
(
err
)
=>
{
fail
:
(
err
)
=>
{
...
...
components/HomeFrame/components/Study/RecommendCourse.vue
View file @
dcebc54
...
@@ -40,7 +40,7 @@ export default {
...
@@ -40,7 +40,7 @@ export default {
nothing
:
false
,
nothing
:
false
,
total
:
0
,
total
:
0
,
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
9
,
pageSize
:
12
,
scrollTop
:
0
,
scrollTop
:
0
,
}
}
}
,
}
,
...
@@ -97,9 +97,10 @@ export default {
...
@@ -97,9 +97,10 @@ export default {
}
}
}
,
}
,
startStudy
(
item
,
index
)
{
startStudy
(
item
,
index
)
{
let
{
pageNum
,
total
,
nothing
=
'nothing'
,
pageSize
}
=
this
;
uni
.
$track
.
add
({
eventCode
:
'app_recommend_course'
,
businessId
:
item
.
id
,
pagePath
:
'/pages/equity/index'
}
)
uni
.
$track
.
add
({
eventCode
:
'app_recommend_course'
,
businessId
:
item
.
id
,
pagePath
:
'/pages/equity/index'
}
)
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/common/studyDetail/detail?type=recommendation&index=${index
}
&recommendCourseList=${encodeURIComponent(JSON.stringify(this.recommendCourseList))
}
`
url
:
`/pages/common/studyDetail/detail?type=recommendation&index=${index
}
&recommendCourseList=${encodeURIComponent(JSON.stringify(this.recommendCourseList))
}
&pageNum=${pageNum
}
&pageSize=${pageSize
}
&total=${total
}
`
}
)
}
)
}
}
}
}
...
...
pages/common/serviceDetail/index.vue
View file @
dcebc54
...
@@ -380,6 +380,7 @@ export default {
...
@@ -380,6 +380,7 @@ export default {
break
break
case
3
:
case
3
:
console
.
log
(
'短课程学习跳转'
)
console
.
log
(
'短课程学习跳转'
)
uni
.
$track
.
add
({
eventCode
:
'app_short_course'
,
businessId
:
item
.
id
,
pagePath
:
'/pages/common/serviceDetail/index'
})
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/common/studyDetail/shortCourse?row=
${
encodeURIComponent
(
JSON
.
stringify
(
item
))}
&completeStatus=
${
item
.
completeStatus
}
`
,
url
:
`/pages/common/studyDetail/shortCourse?row=
${
encodeURIComponent
(
JSON
.
stringify
(
item
))}
&completeStatus=
${
item
.
completeStatus
}
`
,
fail
:
(
err
)
=>
{
fail
:
(
err
)
=>
{
...
...
pages/common/studyDetail/detail.vue
View file @
dcebc54
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<view
class=
"detail-content-left"
>
<view
class=
"detail-content-left"
>
<view
class=
"title"
>
课程列表
</view>
<view
class=
"title"
>
课程列表
</view>
<view
class=
"scroll-view-box"
>
<view
class=
"scroll-view-box"
>
<scroll-view
class=
"scroll-view"
scroll-y
>
<scroll-view
class=
"scroll-view"
scroll-y
@
scrolltolower=
"pageonReachBottom"
>
<view
:class=
"['scroll-view-item', selectedIndex == index ? 'active' : '']"
<view
:class=
"['scroll-view-item', selectedIndex == index ? 'active' : '']"
v-for=
"(item, index) in getCourseList"
:key=
"index"
@
click=
"openCourse(index, item)"
>
v-for=
"(item, index) in getCourseList"
:key=
"index"
@
click=
"openCourse(index, item)"
>
<template
v-if=
"type === 'long'"
>
<template
v-if=
"type === 'long'"
>
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
<
view
class
=
"item-content"
>
<
view
class
=
"item-content"
>
<
view
class
=
"recommendation-title"
>
{{
item
.
courseName
}}
<
/view
>
<
view
class
=
"recommendation-title"
>
{{
item
.
courseName
}}
<
/view
>
<
view
class
=
"item-info"
>
<
view
class
=
"item-info"
>
<
view
class
=
"item-info-label"
>
{{
rowData
.
courseTotalCount
?
`${rowData.courseTotalCount
}
节`
:
'-'
}}
|
{{
rowData
.
totalDuration
?
`${rowData
.totalDuration
}
min`
:
'-'
}}
<
/view
>
<
view
class
=
"item-info-label"
>
{{
item
.
courseTotalCount
?
`${item.courseTotalCount
}
节`
:
'-'
}}
|
{{
item
.
totalDuration
?
`${item
.totalDuration
}
min`
:
'-'
}}
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
view
class
=
"item-btn"
@
click
=
"openCourse(index, item)"
>
<
view
class
=
"item-btn"
@
click
=
"openCourse(index, item)"
>
...
@@ -55,6 +55,9 @@
...
@@ -55,6 +55,9 @@
<
/view
>
<
/view
>
<
/template
>
<
/template
>
<
/view
>
<
/view
>
<
template
v
-
if
=
"nothing"
>
<
view
class
=
"end-text"
>
到底了!
<
/view
>
<
/template
>
<
/scroll-view
>
<
/scroll-view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
...
@@ -86,6 +89,8 @@ export default {
...
@@ -86,6 +89,8 @@ export default {
selectedIndex
:
0
,
selectedIndex
:
0
,
jumpUrl
:
''
,
jumpUrl
:
''
,
webviewHistory
:
[],
webviewHistory
:
[],
pageData
:
{
}
,
nothing
:
false
,
}
}
}
,
}
,
computed
:
{
computed
:
{
...
@@ -100,6 +105,11 @@ export default {
...
@@ -100,6 +105,11 @@ export default {
}
,
}
,
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
type
=
options
.
type
;
this
.
type
=
options
.
type
;
this
.
pageData
=
{
pageNum
:
options
.
pageNum
,
pageSize
:
options
.
pageSize
,
total
:
options
.
total
}
this
.
selectedIndex
=
options
.
index
;
this
.
selectedIndex
=
options
.
index
;
if
(
options
.
courseList
)
this
.
courseList
=
JSON
.
parse
(
decodeURIComponent
(
options
.
courseList
));
if
(
options
.
courseList
)
this
.
courseList
=
JSON
.
parse
(
decodeURIComponent
(
options
.
courseList
));
if
(
options
.
recommendCourseList
)
this
.
recommendCourseList
=
JSON
.
parse
(
decodeURIComponent
(
options
.
recommendCourseList
));
if
(
options
.
recommendCourseList
)
this
.
recommendCourseList
=
JSON
.
parse
(
decodeURIComponent
(
options
.
recommendCourseList
));
...
@@ -193,7 +203,45 @@ export default {
...
@@ -193,7 +203,45 @@ export default {
}
;
}
;
setTimeout
(
retrySetWebviewStyle
,
100
);
setTimeout
(
retrySetWebviewStyle
,
100
);
}
,
pageonReachBottom
()
{
console
.
log
(
'到底了'
,
this
.
pageData
,
pageNum
<
Math
.
ceil
(
total
/
pageSize
));
const
{
pageNum
,
pageSize
,
total
}
=
this
.
pageData
;
if
(
pageNum
<
Math
.
ceil
(
total
/
pageSize
))
{
this
.
pageData
.
pageNum
=
Number
(
this
.
pageData
.
pageNum
)
+
1
;
this
.
getCourseTaskPage
();
}
else
{
this
.
nothing
=
true
;
}
}
,
// 获取我的任务接口, completeStatus: 完成状态 0=待完成 1=已完成, courseType: 课程类型 1=短课程 2=长课程
async
getCourseTaskPage
()
{
try
{
uni
.
showLoading
({
mask
:
true
}
)
const
{
pageNum
,
pageSize
}
=
this
.
pageData
const
params
=
{
recommendStatus
:
1
,
// 推荐状态 0=无推荐 1=推荐课程
pageNum
,
pageSize
}
}
const
res
=
await
uni
.
$api
.
commonApi
.
getCourseTaskPage
(
params
)
if
(
pageNum
==
1
)
{
this
.
recommendCourseList
=
res
.
list
}
else
{
this
.
recommendCourseList
=
this
.
recommendCourseList
.
concat
(
res
.
list
)
}
uni
.
hideLoading
()
this
.
total
=
res
.
total
this
.
nothing
=
res
.
length
?
true
:
false
}
catch
(
error
)
{
uni
.
showToast
({
title
:
error
,
icon
:
"none"
,
}
);
}
}
,
}
}
}
}
<
/script
>
<
/script
>
...
@@ -405,4 +453,10 @@ export default {
...
@@ -405,4 +453,10 @@ export default {
}
}
}
}
}
}
.
end
-
text
{
color
:
#
999
;
text
-
align
:
center
;
padding
:
toRpx
(
30
)
0
;
font
-
size
:
toRpx
(
24
);
}
<
/style>
<
/style>
\ No newline at end of file
\ No newline at end of file
pages/common/studyDetail/shortCourse.vue
View file @
dcebc54
...
@@ -279,7 +279,6 @@ export default {
...
@@ -279,7 +279,6 @@ export default {
this
.
rowData
=
rowData
this
.
rowData
=
rowData
this
.
completeStatus
=
options
.
completeStatus
this
.
completeStatus
=
options
.
completeStatus
if
(
!
this
.
rowData
.
taskDeadline
)
this
.
rowData
.
taskDeadline
=
rowData
.
finishTime
if
(
!
this
.
rowData
.
taskDeadline
)
this
.
rowData
.
taskDeadline
=
rowData
.
finishTime
uni
.
$track
.
add
({
eventCode
:
'app_short_course'
,
businessId
:
rowData
.
id
,
pagePath
:
'/pages/equity/index'
})
this
.
getShortCourseDetail
(
rowData
.
id
)
this
.
getShortCourseDetail
(
rowData
.
id
)
if
(
this
.
completeStatus
==
0
)
{
if
(
this
.
completeStatus
==
0
)
{
this
.
initCountdown
()
this
.
initCountdown
()
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment