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
c553fbd8
Commit
c553fbd8
authored
Mar 09, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改课程状态文案显示
parent
3994dbd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
src/modules/plan-manage/components/TrainingTask.jsx
+4
-4
src/modules/plan-manage/modal/UserLearnDetailModal.jsx
+5
-3
No files found.
src/modules/plan-manage/components/TrainingTask.jsx
View file @
c553fbd8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: zhangleyuan
* @Author: zhangleyuan
* @Date: 2021-02-20 16:45:51
* @Date: 2021-02-20 16:45:51
* @LastEditors: zhangleyuan
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-03-09 1
5:53:46
* @LastEditTime: 2021-03-09 1
9:54:25
* @Description: 描述一下
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -29,13 +29,13 @@ const CourseType = {
...
@@ -29,13 +29,13 @@ const CourseType = {
};
};
const
courseStateShow
=
{
const
courseStateShow
=
{
UN_START
:
{
UN_START
:
{
title
:
"待开
课
"
,
title
:
"待开
播
"
,
},
},
STARTING
:
{
STARTING
:
{
title
:
"
上课
中"
,
title
:
"
直播
中"
,
},
},
FINISH
:
{
FINISH
:
{
title
:
"
已完成
"
,
title
:
"
回放
"
,
},
},
EXPIRED
:
{
EXPIRED
:
{
title
:
"未成功开课"
,
title
:
"未成功开课"
,
...
...
src/modules/plan-manage/modal/UserLearnDetailModal.jsx
View file @
c553fbd8
...
@@ -20,13 +20,13 @@ const CourseType = {
...
@@ -20,13 +20,13 @@ const CourseType = {
};
};
const
courseStateShow
=
{
const
courseStateShow
=
{
UN_START
:
{
UN_START
:
{
title
:
"待开
课
"
,
title
:
"待开
播
"
,
},
},
STARTING
:
{
STARTING
:
{
title
:
"
上课
中"
,
title
:
"
直播
中"
,
},
},
FINISH
:
{
FINISH
:
{
title
:
"
已完成
"
,
title
:
"
回放
"
,
},
},
EXPIRED
:
{
EXPIRED
:
{
title
:
"未成功开课"
,
title
:
"未成功开课"
,
...
@@ -163,7 +163,9 @@ class UserLearnDetailModal extends React.Component {
...
@@ -163,7 +163,9 @@ class UserLearnDetailModal extends React.Component {
{
record
.
courseState
===
"EXPIRED"
&&
{
record
.
courseState
===
"EXPIRED"
&&
<
span
className=
"icon iconfont tip"
>

</
span
>
<
span
className=
"icon iconfont tip"
>

</
span
>
}
}
{
record
.
courseType
===
"LIVE"
&&
<
span
className=
"course-state"
>
{
courseStateShow
[
record
.
courseState
].
title
}
</
span
>
<
span
className=
"course-state"
>
{
courseStateShow
[
record
.
courseState
].
title
}
</
span
>
}
</
div
>
</
div
>
)
)
}
}
...
...
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