Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
biz.qingxiao.com
Commits
89aab13d
Commit
89aab13d
authored
Nov 25, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'最新代码提交'
parent
bb14bb52
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
46 additions
and
51 deletions
+46
-51
index.html
index.html
+1
-1
UploadCourseware.js
src/components/UploadCourseware.js
+0
-1
coursegatherindex.js
src/models/coursegatherindex.js
+3
-0
uploadcourseware.js
src/models/uploadcourseware.js
+39
-38
CommentList.js
src/pages/coursegather/detail/CommentList.js
+0
-1
CourseDetail.js
src/pages/coursegather/detail/CourseDetail.js
+0
-1
AddCourseModal.js
src/pages/coursegather/index/AddCourseModal.js
+0
-1
index.js
src/pages/coursegather/index/index.js
+1
-1
ReplyModal.js
src/pages/onlineclasses/ReplyModal.js
+0
-1
ThemeEditor.js
src/pages/onlineclasses/ThemeEditor.js
+0
-1
AddCourseModal.js
src/pages/onlineclasses/singleclass/AddCourseModal.js
+0
-1
CommentList.js
src/pages/onlineclasses/singleclass/CommentList.js
+0
-1
CourseDetail.js
src/pages/onlineclasses/singleclass/CourseDetail.js
+0
-1
index.js
src/pages/onlineclasses/singleclass/index.js
+1
-1
singleDetail.js
src/pages/onlineclasses/singleclass/singleDetail.js
+1
-1
No files found.
index.html
View file @
89aab13d
...
...
@@ -17,6 +17,6 @@
</head>
<body>
<div
id=
"root"
></div>
<script
src=
"dist/main.js?157466
4499625
"
charset=
"utf-8"
></script>
<script
src=
"dist/main.js?157466
9055988
"
charset=
"utf-8"
></script>
</body>
</html>
\ No newline at end of file
src/components/UploadCourseware.js
View file @
89aab13d
...
...
@@ -75,7 +75,6 @@ class UploadCourseware extends React.Component {
info
,
chooseFromCourseMateria
,
}
=
this
.
props
;
console
.
log
(
info
,
'1111111'
);
return
(
<
Modal
visible
=
{
visible
}
...
...
src/models/coursegatherindex.js
View file @
89aab13d
...
...
@@ -85,6 +85,9 @@ export default {
courseVisible
:
false
,
},
});
yield
put
(
routerRedux
.
push
({
pathname
:
`/sjd/gatherdetail/
${
data
.
id
}
`
,
}));
if
(
successCallback
&&
(
typeof
successCallback
==
'function'
))
{
successCallback
();
}
...
...
src/models/uploadcourseware.js
View file @
89aab13d
...
...
@@ -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
})
{
...
...
src/pages/coursegather/detail/CommentList.js
View file @
89aab13d
...
...
@@ -34,7 +34,6 @@ class CommentListForm extends React.Component {
};
}
componentDidMount
()
{
// 挂载
pageIn
(
'轻校-线上课堂'
);
}
componentDidUpdate
()
{
}
...
...
src/pages/coursegather/detail/CourseDetail.js
View file @
89aab13d
...
...
@@ -34,7 +34,6 @@ class CourseDetailForm extends React.Component {
};
}
componentDidMount
()
{
// 挂载
pageIn
(
'轻校-线上课堂'
);
}
componentDidUpdate
()
{
}
...
...
src/pages/coursegather/index/AddCourseModal.js
View file @
89aab13d
...
...
@@ -40,7 +40,6 @@ class AddCourseModalForm extends React.Component {
};
}
componentDidMount
()
{
// 挂载
pageIn
(
'轻校-线上课堂'
);
}
componentDidUpdate
()
{
}
...
...
src/pages/coursegather/index/index.js
View file @
89aab13d
...
...
@@ -15,7 +15,7 @@ import AddCourseModal from './AddCourseModal';
import
{
pageIn
}
from
'../../../utils/index'
;
class
StaticCenter
extends
React
.
Component
{
componentDidMount
()
{
// 挂载
pageIn
(
'轻校-
素材库
'
);
pageIn
(
'轻校-
专栏
'
);
}
componentDidUpdate
()
{
}
...
...
src/pages/onlineclasses/ReplyModal.js
View file @
89aab13d
...
...
@@ -27,7 +27,6 @@ class ReplyModal extends React.Component {
};
}
componentDidMount
()
{
// 挂载
pageIn
(
'轻校-线上课堂'
);
}
componentDidUpdate
()
{
}
...
...
src/pages/onlineclasses/ThemeEditor.js
View file @
89aab13d
...
...
@@ -15,7 +15,6 @@ class ThemeEditor extends React.Component {
};
}
componentDidMount
()
{
// 挂载
pageIn
(
'轻校-线上课堂'
);
}
componentDidUpdate
()
{
}
...
...
src/pages/onlineclasses/singleclass/AddCourseModal.js
View file @
89aab13d
...
...
@@ -33,7 +33,6 @@ class AddCourseModalForm extends React.Component {
};
}
componentDidMount
()
{
// 挂载
pageIn
(
'轻校-线上课堂'
);
}
componentDidUpdate
()
{
}
...
...
src/pages/onlineclasses/singleclass/CommentList.js
View file @
89aab13d
...
...
@@ -34,7 +34,6 @@ class CommentListForm extends React.Component {
};
}
componentDidMount
()
{
// 挂载
pageIn
(
'轻校-线上课堂'
);
}
componentDidUpdate
()
{
}
...
...
src/pages/onlineclasses/singleclass/CourseDetail.js
View file @
89aab13d
...
...
@@ -35,7 +35,6 @@ class CourseDetailForm extends React.Component {
};
}
componentDidMount
()
{
// 挂载
pageIn
(
'轻校-线上课堂'
);
}
componentDidUpdate
()
{
}
...
...
src/pages/onlineclasses/singleclass/index.js
View file @
89aab13d
...
...
@@ -30,7 +30,7 @@ class ClassMgtForm extends React.Component {
};
}
componentDidMount
()
{
// 挂载
pageIn
(
'轻校-
线上课堂
'
);
pageIn
(
'轻校-
单课
'
);
}
componentDidUpdate
()
{
}
...
...
src/pages/onlineclasses/singleclass/singleDetail.js
View file @
89aab13d
...
...
@@ -37,7 +37,7 @@ class singleDetailForm extends React.Component {
};
}
componentDidMount
()
{
// 挂载
pageIn
(
'轻校-
线上课堂
'
);
pageIn
(
'轻校-
课堂详情
'
);
}
componentDidUpdate
()
{
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment