Commit 87685ba1 authored by wangxuelai's avatar wangxuelai

''

parent 90a9e645
......@@ -17,6 +17,6 @@
</head>
<body>
<div id="root"></div>
<script src="dist/main.js?1574907675933" charset="utf-8"></script>
<script src="dist/main.js?1574908459032" charset="utf-8"></script>
</body>
</html>
\ No newline at end of file
......@@ -17,11 +17,11 @@ const MediaCard = (props) => {
}
<div className={pageStyle.infobox}>
<div className={pageStyle.deleteIcon} onClick={() => course.deleteCourse(info)}><Icon type="delete" /></div>
<div className={pageStyle.topbox}>
<div className={pageStyle.topbox} onClick={() => method.gogatherdetail(info.id)}>
<div className={pageStyle.title}>{info.title}</div>
<div className={pageStyle.time}>{info.created_at}</div>
</div>
<div className={pageStyle.bottombox}>
<div className={pageStyle.bottombox} onClick={() => method.gogatherdetail(info.id)}>
<div className={pageStyle.bluedot} />
<div className={pageStyle.coursecount}><span style={{ color: 'red', paddingRight: '2px' }}>{info.sub_courses_count}</span>个课程</div>
</div>
......
......@@ -134,8 +134,13 @@ class StaticCenter extends React.Component {
<Button type="primary" className={pageStyle.uploadbtn} onClick={this.toAddGather}> </Button>
</div>
{gatherListTotal == 0 &&
<div className={pageStyle.noEmpty}>
<Empty />
<div className={pageStyle.noData}>
<img className={pageStyle.defaultImg} src={`${__IMGCDN__}course/gatherempty.png`} alt="缺省图" />
<h3>创建专栏</h3>
<h5>两步完成专栏开设</h5>
<p>1.选取一个有吸引力的标题<span style={{ opacity: 0 }}> 付;</span></p>
<p>2.选择专栏类型,免费 或者 付费</p>
<Button type="primary" className={pageStyle.createBtn} onClick={this.toAddGather}>立即创建</Button>
</div>}
{gatherListTotal > 0 &&
<div>
......
......@@ -46,3 +46,36 @@
margin-right: 11px;
}
}
.noData {
width: 100%;
text-align: center;
padding-bottom: 12%;
padding-top: 85px;
.defaultImg {
width: 110px;
height: 110px;
background-color: #E0E0E0;
margin: 0 0 24px 0;
border-radius: 50%;
}
&>h3 {
font-size:22px;
font-weight:bold;
color:#1D1D1D;
margin-bottom: 50px;
}
&>h5 {
font-size:22px;
color:#1D1D1D;
margin-bottom: 60px;
}
&>p {
font-size: 16px;
color: #505050;
font-weight:400;
margin-bottom: 13px;
}
.createBtn {
margin-top: 20px;
}
}
\ No newline at end of file
......@@ -324,14 +324,14 @@ class ClassMgtForm extends React.Component {
item.cover ? <img onClick={() => this.goEditCourseStatic(item.id, 1)} className={pageStyle.itemImg} alt="图片" src={imagify(item.cover)} /> :
<img onClick={() => this.goEditCourseStatic(item.id, 1)} className={pageStyle.itemImg} src={`${__IMGCDN__}course/courseDefaultImg.png`} alt="" />}
title={
<div className={pageStyle.itemTitleWrap}>
<div className={pageStyle.itemTitle}>{item.title}</div>
<div className={pageStyle.itemTitleWrap} >
<div className={pageStyle.itemTitle} onClick={() => this.goEditCourseStatic(item.id, 1)}>{item.title}</div>
<div className={pageStyle.deleteIcon} onClick={() => this.deleteCourse(item)}><Icon type="delete" /></div>
</div>
}
description={
<div>
<div className={pageStyle.itemTime}>{item.created_at}</div>
<div className={pageStyle.itemTime} onClick={() => this.goEditCourseStatic(item.id, 1)}>{item.created_at}</div>
<div>
<span title={(item.content && JSON.parse(item.content) && JSON.parse(item.content).src) ? JSON.parse(item.content).properties.name : ''} className="hreflink" style={{ paddingRight: '20px', color: '#2194FF', lineHeight: 1 }} onClick={() => this.toUploadCourseWare(item)}>{(item.content && JSON.parse(item.content) && JSON.parse(item.content).src) ? '编辑课件' : '上传课件'}</span>
<span className="hreflink" style={{ color: '#2194FF', lineHeight: 1 }} onClick={() => this.goEditCourse(item.id, 2)}>管理课程</span>
......
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