Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
f252263a
Commit
f252263a
authored
Jul 14, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理线上课预览
parent
2e908029
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
src/modules/course-manage/modal/PreviewCourseModal.jsx
+2
-2
src/modules/course-manage/video-course/AddVideoCourse.jsx
+8
-2
No files found.
src/modules/course-manage/modal/PreviewCourseModal.jsx
View file @
f252263a
/*
* @Author: 吴文洁
* @Date: 2020-07-23 14:54:16
* @LastEditors:
fusanqiasng
* @LastEditTime: 2021-0
5-24 21:02:21
* @LastEditors:
Please set LastEditors
* @LastEditTime: 2021-0
7-14 11:42:47
* @Description: 大班直播课预览弹窗
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
...
...
src/modules/course-manage/video-course/AddVideoCourse.jsx
View file @
f252263a
...
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2020-08-05 10:07:47
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-07-14
09:59:00
* @LastEditTime: 2021-07-14
11:39:18
* @Description: 线上课新增/编辑页
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -338,12 +338,18 @@ class AddVideoCourse extends React.Component {
})
}
}
else
{
let
_mediaName
=
folderName
;
if
(
folderFormat
===
'PDF'
){
_mediaName
=
folderName
.
replace
(
'.pdf'
,
''
)
}
else
{
_mediaName
=
folderName
.
replace
(
'.doc'
,
''
)
&&
folderName
.
replace
(
'.docx'
,
''
)
}
const
suffix
=
_
.
last
(
folderName
.
split
(
'.'
)).
toUpperCase
();
_courseChapterList
.
push
({
mediaContent
:
resourceId
,
contentType
:
'SCHEDULE'
,
mediaType
:
suffix
,
mediaName
:
folder
Name
,
mediaName
:
_media
Name
,
resourceId
,
mediaUrl
:
ossUrl
,
sort
:
_courseChapterList
.
length
...
...
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