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
3144a717
Commit
3144a717
authored
Nov 27, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
0fab8d00
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
35 additions
and
24 deletions
+35
-24
posterlocal.png
image/course/posterlocal.png
+0
-0
postermodul.png
image/course/postermodul.png
+0
-0
index.html
index.html
+1
-1
UploadCourseware.js
src/components/UploadCourseware.js
+7
-7
UploadCourseware.less
src/components/UploadCourseware.less
+9
-9
onlineclasses.js
src/models/onlineclasses.js
+12
-2
CourseDetail.js
src/pages/coursegather/detail/CourseDetail.js
+2
-2
AddCourseModal.js
src/pages/onlineclasses/singleclass/AddCourseModal.js
+1
-1
CourseDetail.js
src/pages/onlineclasses/singleclass/CourseDetail.js
+3
-2
No files found.
image/course/posterlocal.png
0 → 100644
View file @
3144a717
1.1 KB
image/course/postermodul.png
0 → 100644
View file @
3144a717
1.22 KB
index.html
View file @
3144a717
...
...
@@ -17,6 +17,6 @@
</head>
<body>
<div
id=
"root"
></div>
<script
src=
"dist/main.js?1574
779111827
"
charset=
"utf-8"
></script>
<script
src=
"dist/main.js?1574
819925045
"
charset=
"utf-8"
></script>
</body>
</html>
\ No newline at end of file
src/components/UploadCourseware.js
View file @
3144a717
...
...
@@ -89,15 +89,15 @@ class UploadCourseware extends React.Component {
width
=
{
600
}
>
<
div
className
=
{
pageStyle
.
uploadBox
}
style
=
{{
display
:
!
info
.
src
?
'block'
:
'none'
}}
>
<
input
type
=
"file"
className
=
{
pageStyle
.
uploadInput
}
accept
=
".ppt, .pptx, image/*, application/vnd.ms-powerpoint, video/mp4, application/pdf, audio/*"
onChange
=
{
this
.
uploadCourseMateria
}
id
=
"uploadcourseware"
/>
<
div
className
=
{
pageStyle
.
uploadBoxTitle
}
>
可将文件直接拖拽到此处上传或者点击上传
<
/div
>
<
div
className
=
{
pageStyle
.
filetypebox
}
>
<
input
type
=
"file"
className
=
{
pageStyle
.
uploadInput
}
accept
=
".ppt, .pptx, image/*, application/vnd.ms-powerpoint, video/mp4, application/pdf, audio/*"
onChange
=
{
this
.
uploadCourseMateria
}
id
=
"uploadcourseware"
/>
<
div
className
=
{
pageStyle
.
boxotem
}
>
<
img
src
=
{
`
${
__IMGCDN__
}
course/ppt.png`
}
alt
=
""
/>
<
div
className
=
{
pageStyle
.
boxotemname
}
>
支持
ppt
<
/div
>
...
...
src/components/UploadCourseware.less
View file @
3144a717
...
...
@@ -13,6 +13,15 @@
border:2px dashed rgba(194,194,194,1);
margin: 0 auto;
position: relative;
.uploadInput {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
z-index: 2;
opacity: 0;
}
.uploadBoxTitle {
color: #575757;
font-size: 16px;
...
...
@@ -25,15 +34,6 @@
align-items: center;
justify-content: space-around;
position: relative;
.uploadInput {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
z-index: 2;
opacity: 0;
}
.boxotem {
img {
display: block;
...
...
src/models/onlineclasses.js
View file @
3144a717
...
...
@@ -1077,11 +1077,21 @@ export default {
},
});
yield
put
({
type
:
'
findCours
e'
,
type
:
'
updateStat
e'
,
payload
:
{
id
:
addCourseObj
.
id
,
addCourseObj
:
{
...
addCourseObj
,
content
:
JSON
.
stringify
(
info
),
},
coursewareInfo
:
info
,
},
});
// yield put({
// type: 'findCourse',
// payload: {
// id: addCourseObj.id,
// },
// });
yield
put
({
type
:
'selectCourseList'
,
payload
:
{
...
...
src/pages/coursegather/detail/CourseDetail.js
View file @
3144a717
...
...
@@ -353,11 +353,11 @@ class CourseDetailForm extends React.Component {
{
!
addCourseObj
.
poster
?
<
div
className
=
{
pageStyle
.
posterWrap
}
>
<
div
className
=
{
pageStyle
.
posterUploadBox
}
onClick
=
{
choosePoster
}
>
<
img
src
=
{
`
${
__IMGCDN__
}
/course/
check
.png`
}
alt
=
"从素材库选择"
/>
<
img
src
=
{
`
${
__IMGCDN__
}
/course/
postermodul
.png`
}
alt
=
"从素材库选择"
/>
<
div
className
=
{
pageStyle
.
tip
}
>
选择模板
<
/div
>
<
/div
>
<
div
className
=
{
pageStyle
.
posterUploadBox
}
style
=
{{
marginRight
:
30
}}
>
<
img
src
=
{
`
${
__IMGCDN__
}
/course/
uploadImg
.png`
}
alt
=
"上传图片"
/>
<
img
src
=
{
`
${
__IMGCDN__
}
/course/
posterlocal
.png`
}
alt
=
"上传图片"
/>
<
div
className
=
{
pageStyle
.
tip
}
>
本地上传
<
/div
>
<
input
type
=
"file"
...
...
src/pages/onlineclasses/singleclass/AddCourseModal.js
View file @
3144a717
...
...
@@ -86,7 +86,7 @@ class AddCourseModalForm extends React.Component {
is_encrypt
:
is_encrypt
&&
is_encrypt
===
true
?
1
:
2
,
type
,
password
,
start_time
:
moment
(
time
[
0
]
).
format
(
'YYYY-MM-DD HH:mm'
),
start_time
:
moment
(
time
).
format
(
'YYYY-MM-DD HH:mm'
),
},
});
}
...
...
src/pages/onlineclasses/singleclass/CourseDetail.js
View file @
3144a717
...
...
@@ -323,6 +323,7 @@ class CourseDetailForm extends React.Component {
};
const
{
textLength
}
=
this
.
state
;
const
{
title
}
=
addCourseObj
;
console
.
log
(
addCourseObj
,
'addCourseObj'
);
const
selectBefore
=
(
<
div
>
{
title
.
length
+
textLength
}
/40</
div
>
);
...
...
@@ -441,11 +442,11 @@ class CourseDetailForm extends React.Component {
{
!
addCourseObj
.
poster
?
<
div
className
=
{
pageStyle
.
posterWrap
}
>
<
div
className
=
{
pageStyle
.
posterUploadBox
}
onClick
=
{
choosePoster
}
>
<
img
src
=
{
`
${
__IMGCDN__
}
/course/
check
.png`
}
alt
=
"从素材库选择"
/>
<
img
src
=
{
`
${
__IMGCDN__
}
/course/
postermodul
.png`
}
alt
=
"从素材库选择"
/>
<
div
className
=
{
pageStyle
.
tip
}
>
选择模板
<
/div
>
<
/div
>
<
div
className
=
{
pageStyle
.
posterUploadBox
}
style
=
{{
marginRight
:
30
}}
>
<
img
src
=
{
`
${
__IMGCDN__
}
/course/
uploadImg
.png`
}
alt
=
"上传图片"
/>
<
img
src
=
{
`
${
__IMGCDN__
}
/course/
posterlocal
.png`
}
alt
=
"上传图片"
/>
<
div
className
=
{
pageStyle
.
tip
}
>
本地上传
<
/div
>
<
input
type
=
"file"
...
...
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