Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
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
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
f27f3a69
Commit
f27f3a69
authored
Jul 06, 2021
by
wufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:完成学习详情模态框功能
parent
5870fa6f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
src/modules/course-manage/video-course/components/LearningDetailModal.jsx
+2
-3
src/modules/course-manage/video-course/components/LearningDetailModal.less
+2
-6
No files found.
src/modules/course-manage/video-course/components/LearningDetailModal.jsx
View file @
f27f3a69
...
@@ -36,7 +36,6 @@ class LearningDetailModal extends React.Component {
...
@@ -36,7 +36,6 @@ class LearningDetailModal extends React.Component {
const
{
title
,
onClose
,
onOk
}
=
this
.
props
;
const
{
title
,
onClose
,
onOk
}
=
this
.
props
;
const
{
courseChapterList
}
=
this
.
state
;
const
{
courseChapterList
}
=
this
.
state
;
return
(
return
(
<
div
className=
"learning-detail-modal"
>
<
Modal
<
Modal
footer=
{
null
}
footer=
{
null
}
visible=
{
true
}
visible=
{
true
}
...
@@ -48,6 +47,7 @@ class LearningDetailModal extends React.Component {
...
@@ -48,6 +47,7 @@ class LearningDetailModal extends React.Component {
}
}
onCancel=
{
onClose
}
onCancel=
{
onClose
}
onOk=
{
onOk
}
onOk=
{
onOk
}
className=
"learning-detail-modal"
>
>
<
div
className=
"course-chapter__list"
>
<
div
className=
"course-chapter__list"
>
<
If
condition=
{
courseChapterList
.
length
>
0
}
>
<
If
condition=
{
courseChapterList
.
length
>
0
}
>
...
@@ -63,7 +63,7 @@ class LearningDetailModal extends React.Component {
...
@@ -63,7 +63,7 @@ class LearningDetailModal extends React.Component {
src=
"https://image.xiaomaiketang.com/xm/TKwbQGYDBR.png"
src=
"https://image.xiaomaiketang.com/xm/TKwbQGYDBR.png"
alt=
""
alt=
""
/>
/>
<
div
className=
"course-ware__name"
>
{
item
.
name
}
</
div
>
<
div
className=
"course-ware__name"
>
{
item
.
courseChapterName
&&
item
.
courseChapterName
.
replace
(
'.MP4'
,
''
)
}
</
div
>
</
div
>
</
div
>
<
div
className=
{
`progress ${item.progress === 100 ? 'finish' :''}`
}
>
{
`${item.progress === 100 ? '已完成' : `
$
{
item
.
progress
}
%
`}`
}
</
div
>
<
div
className=
{
`progress ${item.progress === 100 ? 'finish' :''}`
}
>
{
`${item.progress === 100 ? '已完成' : `
$
{
item
.
progress
}
%
`}`
}
</
div
>
...
@@ -73,7 +73,6 @@ class LearningDetailModal extends React.Component {
...
@@ -73,7 +73,6 @@ class LearningDetailModal extends React.Component {
</
If
>
</
If
>
</
div
>
</
div
>
</
Modal
>
</
Modal
>
</
div
>
);
);
}
}
}
}
...
...
src/modules/course-manage/video-course/components/LearningDetailModal.less
View file @
f27f3a69
...
@@ -14,21 +14,17 @@
...
@@ -14,21 +14,17 @@
color: #666666;
color: #666666;
line-height: 20px;
line-height: 20px;
margin-bottom: 28px;
margin-bottom: 28px;
cursor: pointer;
&:hover {
color: #2966ff;
}
&__index {
&__index {
width: 20px;
width: 20px;
}
}
&__img {
&__img {
width: 20px;
width: 20px;
height: 20px;
height: 20px;
margin-left: 1
6
px;
margin-left: 1
2
px;
margin-right: 8px;
margin-right: 8px;
}
}
&__name {
&__name {
width:
7
00px;
width:
5
00px;
}
}
}
}
.progress {
.progress {
...
...
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