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
7fd867e3
Commit
7fd867e3
authored
Dec 02, 2022
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
学习统计点击不收回去
parent
c5a78da9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pages/learningStatistics/learningStatistics.vue
+3
-3
No files found.
pages/learningStatistics/learningStatistics.vue
View file @
7fd867e3
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
</view>
</view>
<view
class=
"progressBottomBox"
>
<view
class=
"progressBottomBox"
>
<text>
{{
item
.
fileTitle
}}
</text>
<text>
{{
item
.
fileTitle
}}
</text>
<i
class=
"iconfont icon-youjiantou"
v-if=
"item.packFileId"
@
click=
"userCoursePackBar(item.packFileId,item.orderId)"
:style=
"
{transform: item['state'] ? 'rotate(90deg)' : 'rotate(-90deg)' }">
</i>
<i
class=
"iconfont icon-youjiantou"
v-if=
"item.packFileId"
@
click=
"userCoursePackBar(item.packFileId,item.orderId
,item.state
)"
:style=
"
{transform: item['state'] ? 'rotate(90deg)' : 'rotate(-90deg)' }">
</i>
</view>
</view>
</view>
</view>
<!-- 小课 -->
<!-- 小课 -->
...
@@ -170,12 +170,12 @@
...
@@ -170,12 +170,12 @@
}
}
})
})
},
},
userCoursePackBar
(
packFileId
,
orderId
){
userCoursePackBar
(
packFileId
,
orderId
,
state
){
if
(
!
packFileId
||
!
orderId
){
if
(
!
packFileId
||
!
orderId
){
return
false
;
return
false
;
}
}
this
.
userStudyCountList
.
barInfos
.
forEach
(
item
=>
item
.
state
=
false
);
this
.
userStudyCountList
.
barInfos
.
forEach
(
item
=>
item
.
state
=
false
);
this
.
userStudyCountList
.
barInfos
.
filter
(
item
=>
item
.
orderId
==
orderId
)[
0
].
state
=
tru
e
;
this
.
userStudyCountList
.
barInfos
.
filter
(
item
=>
item
.
orderId
==
orderId
)[
0
].
state
=
!
stat
e
;
api
.
userCoursePackBar
({
userId
:
this
.
userId
,
packFileId
:
packFileId
,
orderId
:
orderId
}).
then
(
res
=>
{
api
.
userCoursePackBar
({
userId
:
this
.
userId
,
packFileId
:
packFileId
,
orderId
:
orderId
}).
then
(
res
=>
{
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
this
.
userCoursePackBarList
=
res
[
'data'
][
'barInfos'
];
this
.
userCoursePackBarList
=
res
[
'data'
][
'barInfos'
];
...
...
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