Commit ad47ec6c authored by baixian's avatar baixian

youhua

parent 3dea1c54
...@@ -18,5 +18,5 @@ ...@@ -18,5 +18,5 @@
</head> </head>
<body> <body>
<div id="root"></div> <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> </html>
\ No newline at end of file
...@@ -27,7 +27,7 @@ export default { ...@@ -27,7 +27,7 @@ export default {
source_type: '', source_type: '',
invent_student_count: '', invent_student_count: '',
invent_clock_count: '', invent_clock_count: '',
banner: '', banner: 'http://shangjiadao.oss-cn-hangzhou.aliyuncs.com/qingxiao/biz/image/common/defaultCourseImg.png',
source_id: 0, source_id: 0,
introduce: '', introduce: '',
subject_title: '', subject_title: '',
...@@ -187,7 +187,7 @@ export default { ...@@ -187,7 +187,7 @@ export default {
source_type: '', source_type: '',
invent_student_count: '', invent_student_count: '',
invent_clock_count: '', invent_clock_count: '',
banner: '', banner: 'http://shangjiadao.oss-cn-hangzhou.aliyuncs.com/qingxiao/biz/image/common/defaultCourseImg.png',
source_id: 0, source_id: 0,
introduce: '', introduce: '',
subject_title: '', subject_title: '',
...@@ -413,7 +413,7 @@ export default { ...@@ -413,7 +413,7 @@ export default {
source_type: '', source_type: '',
invent_student_count: '', invent_student_count: '',
invent_clock_count: '', invent_clock_count: '',
banner: '', banner: 'http://shangjiadao.oss-cn-hangzhou.aliyuncs.com/qingxiao/biz/image/common/defaultCourseImg.png',
source_id: 0, source_id: 0,
introduce: '', introduce: '',
subject_title: '', subject_title: '',
......
...@@ -12,7 +12,7 @@ import { ...@@ -12,7 +12,7 @@ import {
Divider, Divider,
Switch, Switch,
TimePicker, TimePicker,
Collapse, Empty,
DatePicker, DatePicker,
Select, Radio, InputNumber, Input, message, Select, Radio, InputNumber, Input, message,
} from 'antd'; } from 'antd';
...@@ -54,7 +54,7 @@ class ThemeClassForm extends React.Component { ...@@ -54,7 +54,7 @@ class ThemeClassForm extends React.Component {
source_type: '', source_type: '',
invent_student_count: '', invent_student_count: '',
invent_clock_count: '', invent_clock_count: '',
banner: '', banner: 'http://shangjiadao.oss-cn-hangzhou.aliyuncs.com/qingxiao/biz/image/common/defaultCourseImg.png',
source_id: 0, source_id: 0,
introduce: '', introduce: '',
subject_title: '', subject_title: '',
...@@ -219,6 +219,20 @@ class ThemeClassForm extends React.Component { ...@@ -219,6 +219,20 @@ class ThemeClassForm extends React.Component {
) )
} }
</div> </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 <div
className={pageStyle.footerBox} className={pageStyle.footerBox}
style={{ style={{
...@@ -227,7 +241,6 @@ class ThemeClassForm extends React.Component { ...@@ -227,7 +241,6 @@ class ThemeClassForm extends React.Component {
}} }}
> >
<div> <div>
<Button ghost type="primary" style={{ marginRight: 15 }} onClick={this.handleLastStep}>取消</Button>
<Button type="primary" loading={themeSortLoading} onClick={this.saveThemeSort}>保存</Button> <Button type="primary" loading={themeSortLoading} onClick={this.saveThemeSort}>保存</Button>
</div> </div>
</div> </div>
......
...@@ -99,4 +99,11 @@ ...@@ -99,4 +99,11 @@
transition: 0.1s width; transition: 0.1s width;
z-index: 20; z-index: 20;
text-align: center; 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