Commit ad47ec6c authored by baixian's avatar baixian

youhua

parent 3dea1c54
......@@ -18,5 +18,5 @@
</head>
<body>
<div id="root"></div>
<script type="text/javascript" src="/dist/main.1abd42.js"></script></body>
<script type="text/javascript" src="/dist/main.e85a5f.js"></script></body>
</html>
\ No newline at end of file
......@@ -27,7 +27,7 @@ export default {
source_type: '',
invent_student_count: '',
invent_clock_count: '',
banner: '',
banner: 'http://shangjiadao.oss-cn-hangzhou.aliyuncs.com/qingxiao/biz/image/common/defaultCourseImg.png',
source_id: 0,
introduce: '',
subject_title: '',
......@@ -187,7 +187,7 @@ export default {
source_type: '',
invent_student_count: '',
invent_clock_count: '',
banner: '',
banner: 'http://shangjiadao.oss-cn-hangzhou.aliyuncs.com/qingxiao/biz/image/common/defaultCourseImg.png',
source_id: 0,
introduce: '',
subject_title: '',
......@@ -413,7 +413,7 @@ export default {
source_type: '',
invent_student_count: '',
invent_clock_count: '',
banner: '',
banner: 'http://shangjiadao.oss-cn-hangzhou.aliyuncs.com/qingxiao/biz/image/common/defaultCourseImg.png',
source_id: 0,
introduce: '',
subject_title: '',
......
......@@ -12,7 +12,7 @@ import {
Divider,
Switch,
TimePicker,
Collapse,
Empty,
DatePicker,
Select, Radio, InputNumber, Input, message,
} from 'antd';
......@@ -54,7 +54,7 @@ class ThemeClassForm extends React.Component {
source_type: '',
invent_student_count: '',
invent_clock_count: '',
banner: '',
banner: 'http://shangjiadao.oss-cn-hangzhou.aliyuncs.com/qingxiao/biz/image/common/defaultCourseImg.png',
source_id: 0,
introduce: '',
subject_title: '',
......@@ -219,6 +219,20 @@ class ThemeClassForm extends React.Component {
)
}
</div>
<div className={pageStyle.empty}>
{courseList.length == 0 &&
<Empty
description={
<span>
暂未设置课程,快去添加课程吧
</span>
}
image={Empty.PRESENTED_IMAGE_SIMPLE}
>
<Button onClick={this.goAddCourse} type="primary">添加课程</Button>
</Empty>
}
</div>
<div
className={pageStyle.footerBox}
style={{
......@@ -227,7 +241,6 @@ class ThemeClassForm extends React.Component {
}}
>
<div>
<Button ghost type="primary" style={{ marginRight: 15 }} onClick={this.handleLastStep}>取消</Button>
<Button type="primary" loading={themeSortLoading} onClick={this.saveThemeSort}>保存</Button>
</div>
</div>
......
......@@ -99,4 +99,11 @@
transition: 0.1s width;
z-index: 20;
text-align: center;
}
.empty {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
min-height: 50vh;
}
\ No newline at end of file
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