Commit c553fbd8 by zhangleyuan

feat:修改课程状态文案显示

parent 3994dbd0
...@@ -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 15:53:46 * @LastEditTime: 2021-03-09 19: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: "未成功开课",
......
...@@ -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">&#xe834;</span> <span className="icon iconfont tip">&#xe834;</span>
} }
{ record.courseType==="LIVE" &&
<span className="course-state">{courseStateShow[record.courseState].title}</span> <span className="course-state">{courseStateShow[record.courseState].title}</span>
}
</div> </div>
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment