Commit 89aab13d authored by wangxuelai's avatar wangxuelai

'最新代码提交'

parent bb14bb52
......@@ -17,6 +17,6 @@
</head>
<body>
<div id="root"></div>
<script src="dist/main.js?1574664499625" charset="utf-8"></script>
<script src="dist/main.js?1574669055988" charset="utf-8"></script>
</body>
</html>
\ No newline at end of file
......@@ -75,7 +75,6 @@ class UploadCourseware extends React.Component {
info,
chooseFromCourseMateria,
} = this.props;
console.log(info, '1111111');
return (
<Modal
visible={visible}
......
......@@ -85,6 +85,9 @@ export default {
courseVisible: false,
},
});
yield put(routerRedux.push({
pathname: `/sjd/gatherdetail/${data.id}`,
}));
if (successCallback && (typeof successCallback == 'function')) {
successCallback();
}
......
......@@ -102,18 +102,18 @@ export default {
};
const uploadFileData = yield call(uploader.uploadImg, params);
setTimeout(uploaderLoading);
yield put({
type: 'createCourseMateria',
payload: {
content: {
name,
size,
fileType,
},
filename,
type: getFileType(fileType).filetype,
},
});
// yield put({
// type: 'createCourseMateria',
// payload: {
// content: {
// name,
// size,
// fileType,
// },
// filename,
// type: getFileType(fileType).filetype,
// },
// });
yield put({
type: 'updateState',
payload: {
......@@ -145,32 +145,33 @@ export default {
});
}
},
// * uploadCourseware({ payload }, { call, put, select }) {
// const { info } = payload;
// const { addCourseObj } = yield select(state => state.onlineclasses);
// const loadmessage = message.loading('保存中...', 0);
// const data = yield call(courseMateriaAjax.uploadCourseware, {
// content: JSON.stringify(info),
// id: addCourseObj.id,
// });
// setTimeout(loadmessage);
// if (data.code == 200) {
// yield put({
// type: 'updateState',
// payload: {
// visible: false,
// info: {},
// },
// });
// } else {
// yield put({
// type: 'webapp/errorrequestresolve',
// payload: {
// data,
// },
// });
// }
// },
* createCourseMateria({ payload }, { call, put, select }) {
const { sid } = yield select(state => state.webapp);
const {
content, filename, type, uploaderLoading, images,
} = payload;
const createCourseMateriaData = yield call(courseMateriaAjax.createMateria, {
school_id: sid,
type,
src: filename,
content: JSON.stringify({
...content,
images,
}),
});
setTimeout(uploaderLoading);
const { code, data, msg } = createCourseMateriaData;
if (code == 200) {
yield put({
type: 'querymaterialist',
payload: {
params: {},
},
});
} else {
message.error(msg, 1);
}
},
},
reducers: {
updateState(state, { payload }) {
......
......@@ -34,7 +34,6 @@ class CommentListForm extends React.Component {
};
}
componentDidMount() { // 挂载
pageIn('轻校-线上课堂');
}
componentDidUpdate() {
}
......
......@@ -34,7 +34,6 @@ class CourseDetailForm extends React.Component {
};
}
componentDidMount() { // 挂载
pageIn('轻校-线上课堂');
}
componentDidUpdate() {
}
......
......@@ -40,7 +40,6 @@ class AddCourseModalForm extends React.Component {
};
}
componentDidMount() { // 挂载
pageIn('轻校-线上课堂');
}
componentDidUpdate() {
}
......
......@@ -15,7 +15,7 @@ import AddCourseModal from './AddCourseModal';
import { pageIn } from '../../../utils/index';
class StaticCenter extends React.Component {
componentDidMount() { // 挂载
pageIn('轻校-素材库');
pageIn('轻校-专栏');
}
componentDidUpdate() {
}
......
......@@ -27,7 +27,6 @@ class ReplyModal extends React.Component {
};
}
componentDidMount() { // 挂载
pageIn('轻校-线上课堂');
}
componentDidUpdate() {
}
......
......@@ -15,7 +15,6 @@ class ThemeEditor extends React.Component {
};
}
componentDidMount() { // 挂载
pageIn('轻校-线上课堂');
}
componentDidUpdate() {
}
......
......@@ -33,7 +33,6 @@ class AddCourseModalForm extends React.Component {
};
}
componentDidMount() { // 挂载
pageIn('轻校-线上课堂');
}
componentDidUpdate() {
}
......
......@@ -34,7 +34,6 @@ class CommentListForm extends React.Component {
};
}
componentDidMount() { // 挂载
pageIn('轻校-线上课堂');
}
componentDidUpdate() {
}
......
......@@ -35,7 +35,6 @@ class CourseDetailForm extends React.Component {
};
}
componentDidMount() { // 挂载
pageIn('轻校-线上课堂');
}
componentDidUpdate() {
}
......
......@@ -30,7 +30,7 @@ class ClassMgtForm extends React.Component {
};
}
componentDidMount() { // 挂载
pageIn('轻校-线上课堂');
pageIn('轻校-单课');
}
componentDidUpdate() {
}
......
......@@ -37,7 +37,7 @@ class singleDetailForm extends React.Component {
};
}
componentDidMount() { // 挂载
pageIn('轻校-线上课堂');
pageIn('轻校-课堂详情');
}
componentDidUpdate() {
}
......
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