Commit f27f3a69 by wufan

feat:完成学习详情模态框功能

parent 5870fa6f
......@@ -36,7 +36,6 @@ class LearningDetailModal extends React.Component {
const { title, onClose, onOk } = this.props;
const { courseChapterList } = this.state;
return (
<div className="learning-detail-modal">
<Modal
footer={null}
visible={true}
......@@ -48,6 +47,7 @@ class LearningDetailModal extends React.Component {
}
onCancel={onClose}
onOk={onOk}
className="learning-detail-modal"
>
<div className="course-chapter__list">
<If condition={courseChapterList.length > 0}>
......@@ -63,7 +63,7 @@ class LearningDetailModal extends React.Component {
src="https://image.xiaomaiketang.com/xm/TKwbQGYDBR.png"
alt=""
/>
<div className="course-ware__name">{item.name}</div>
<div className="course-ware__name">{item.courseChapterName && item.courseChapterName.replace('.MP4','')}</div>
</div>
<div className={`progress ${item.progress === 100 ? 'finish' :''}`}>{`${item.progress === 100 ? '已完成' : `${item.progress}%`}`}</div>
......@@ -73,7 +73,6 @@ class LearningDetailModal extends React.Component {
</If>
</div>
</Modal>
</div>
);
}
}
......
......@@ -14,21 +14,17 @@
color: #666666;
line-height: 20px;
margin-bottom: 28px;
cursor: pointer;
&:hover {
color: #2966ff;
}
&__index {
width: 20px;
}
&__img {
width: 20px;
height: 20px;
margin-left: 16px;
margin-left: 12px;
margin-right: 8px;
}
&__name {
width: 700px;
width: 500px;
}
}
.progress {
......
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