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 9201364f
authored
Jul 30, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
710265e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
7 deletions
pages/common/studyDetail/detail.vue
pages/common/studyDetail/longCourse.vue
pages/common/studyDetail/detail.vue
View file @
9201364
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<
/view
>
<
/view
>
<
view
class
=
"item-info"
>
<
view
class
=
"item-info"
>
<
view
class
=
"item-info-label"
>
考试成绩
<
/view
>
<
view
class
=
"item-info-label"
>
考试成绩
<
/view
>
<
view
class
=
"item-info-value"
>
{{
item
.
totalScore
?
'已完成'
:
'待考核'
}}
<
/view
>
<
view
class
=
"item-info-value"
>
{{
item
.
totalScore
?
item
.
totalScore
:
'待考核'
}}
<
/view
>
<
/view
>
<
/view
>
<
view
class
=
"item-info"
>
<
view
class
=
"item-info"
>
<
view
class
=
"item-info-label"
>
课程时长
<
/view
>
<
view
class
=
"item-info-label"
>
课程时长
<
/view
>
...
...
pages/common/studyDetail/longCourse.vue
View file @
9201364
...
@@ -16,7 +16,10 @@
...
@@ -16,7 +16,10 @@
<view
class=
"course-title"
>
{{
rowData
.
taskTitle
||
rowData
.
taskName
}}
</view>
<view
class=
"course-title"
>
{{
rowData
.
taskTitle
||
rowData
.
taskName
}}
</view>
<view
class=
"course-info course-progress"
>
<view
class=
"course-info course-progress"
>
<view
class=
"info-label"
>
任务进度
</view>
<view
class=
"info-label"
>
任务进度
</view>
<view
v-if=
"completeStatus == 1"
class=
"info-progress-text"
>
已完成
</view>
<view
v-if=
"completeStatus == 1"
class=
"info-progress-text green"
>
<view
class=
"dot-value"
></view>
已完成
</view>
<view
class=
"info-progress"
v-else
>
<view
class=
"info-progress"
v-else
>
<view
class=
"info-progress-bar"
:style=
"
{ width: Math.floor(rowData.taskProgress) + '%' }">
</view>
<view
class=
"info-progress-bar"
:style=
"
{ width: Math.floor(rowData.taskProgress) + '%' }">
</view>
<view
class=
"info-progress-text"
>
{{
Math
.
floor
(
rowData
.
taskProgress
)
}}
%
</view>
<view
class=
"info-progress-text"
>
{{
Math
.
floor
(
rowData
.
taskProgress
)
}}
%
</view>
...
@@ -64,8 +67,8 @@
...
@@ -64,8 +67,8 @@
<
view
class
=
"item-title"
>
{{
item
.
courseName
}}
<
/view
>
<
view
class
=
"item-title"
>
{{
item
.
courseName
}}
<
/view
>
<
view
class
=
"item-info"
>
<
view
class
=
"item-info"
>
<
view
class
=
"item-info-label"
>
当前状态
<
/view
>
<
view
class
=
"item-info-label"
>
当前状态
<
/view
>
<
view
:
class
=
"['item-info-value', item.status === 5 ? '' : 'orange']"
>
<
view
:
class
=
"['item-info-value', item.status === 5 ? '
green
' : 'orange']"
>
<
view
v
-
if
=
"item.status !== 5"
class
=
"dot-value
"
><
/view
>
<
view
class
=
"dot-value"
:
class
=
"item.status === 5 ? 'green' : 'orange'
"
><
/view
>
{{
item
.
status
!==
5
?
`${statusMap[item.status]
}
(${(item.progress * 100) || 0
}
%)`
:
'已完成'
}}
{{
item
.
status
!==
5
?
`${statusMap[item.status]
}
(${(item.progress * 100) || 0
}
%)`
:
'已完成'
}}
<
/view
>
<
/view
>
<
/view
>
<
/view
>
...
@@ -330,7 +333,18 @@ export default {
...
@@ -330,7 +333,18 @@ export default {
.
info
-
value
{
.
info
-
value
{
color
:
#
666666
;
color
:
#
666666
;
}
}
.
green
{
display
:
flex
;
align
-
items
:
center
;
color
:
#
2
CCA74
;
.
dot
-
value
{
width
:
toRpx
(
12
);
height
:
toRpx
(
12
);
border
-
radius
:
50
%
;
background
:
#
2
CCA74
;
margin
-
right
:
toRpx
(
8
);
}
}
.
info
-
progress
{
.
info
-
progress
{
width
:
toRpx
(
410
);
width
:
toRpx
(
410
);
height
:
toRpx
(
16
);
height
:
toRpx
(
16
);
...
@@ -345,6 +359,7 @@ export default {
...
@@ -345,6 +359,7 @@ export default {
right
:
toRpx
(
-
72
);
right
:
toRpx
(
-
72
);
transform
:
translateY
(
-
50
%
);
transform
:
translateY
(
-
50
%
);
}
}
.
info
-
progress
-
bar
{
.
info
-
progress
-
bar
{
height
:
100
%
;
height
:
100
%
;
...
@@ -472,7 +487,9 @@ export default {
...
@@ -472,7 +487,9 @@ export default {
display
:
inline
-
flex
;
display
:
inline
-
flex
;
align
-
items
:
center
;
align
-
items
:
center
;
justify
-
content
:
center
;
justify
-
content
:
center
;
&
.
green
{
color
:
#
2
CCA74
;
}
&
.
orange
{
&
.
orange
{
color
:
#
F59619
;
color
:
#
F59619
;
}
}
...
@@ -481,8 +498,15 @@ export default {
...
@@ -481,8 +498,15 @@ export default {
width
:
toRpx
(
12
);
width
:
toRpx
(
12
);
height
:
toRpx
(
12
);
height
:
toRpx
(
12
);
border
-
radius
:
50
%
;
border
-
radius
:
50
%
;
background
:
#
F59619
;
// background: #F59619;
margin
-
right
:
toRpx
(
8
);
margin
-
right
:
toRpx
(
8
);
&
.
green
{
background
:
#
2
CCA74
;
}
&
.
orange
{
background
:
#
F59619
;
}
}
}
}
}
}
}
...
...
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