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
70a3acc2
Commit
70a3acc2
authored
Jul 09, 2021
by
zhujian
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/wufan/20210701/course-B-reform' into dev
parents
5e2c283c
db004aa7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
13 deletions
+5
-13
src/modules/course-manage/video-course/AddVideoCourse.jsx
+2
-10
src/modules/course-manage/video-course/VideoCourseDetail.tsx
+3
-3
No files found.
src/modules/course-manage/video-course/AddVideoCourse.jsx
View file @
70a3acc2
...
...
@@ -112,7 +112,8 @@ class AddVideoCourse extends React.Component {
})
}
catalogChange
=
(
value
,
categoryName
)
=>
{
catalogChange
=
(
value
,
_categoryName
)
=>
{
const
categoryName
=
_
.
pluck
(
_categoryName
,
'categoryName'
).
join
(
'-'
)
const
changeValueLength
=
value
.
length
switch
(
changeValueLength
)
{
case
1
:
...
...
@@ -527,7 +528,6 @@ class AddVideoCourse extends React.Component {
})
return
}
const
{
instId
,
adminId
}
=
window
.
currentUserInstInfo
const
{
id
,
...
...
@@ -614,14 +614,6 @@ class AddVideoCourse extends React.Component {
resolve
(
false
);
return
;
}
// const textMedia = scheduleMedia.filter((item) => item.mediaType === 'TEXT')
// for (let i = 0, len = textMedia.length; i < len; i++) {
// if (textMedia[i].mediaContentLength && textMedia[i].mediaContentLength.length > 1000) {
// message.warning(`第${i + 1}个文字简介的字数超过了1000个字`)
// resolve(false)
// return false
// }
// }
resolve
(
true
)
})
}
...
...
src/modules/course-manage/video-course/VideoCourseDetail.tsx
View file @
70a3acc2
/*
* @Author: wufan
* @Date: 2020-04-28 18:05:30
* @LastEditors:
wufan
* @LastEditTime: 2021-07-0
5 10:36:15
* @LastEditors:
yuananting
* @LastEditTime: 2021-07-0
9 16:21:13
* @Description: 线上课课程课节详情
*/
...
...
@@ -117,7 +117,7 @@ function VideoCourseDetail(){
{
underscore
.
map
(
courseChapterList
,(
item
:
any
,
index
:
number
)
=>
{
return
<
div
className=
'course-ware'
onClick=
{
()
=>
{
handleScanFileModal
(
"MP4"
,
item
)}
}
key=
{
index
}
>
<
div
className=
"course-ware__index"
>
{
`${index > 9 ? index + 1 : `
0
$
{
index
+
1
}
`} `
}
</
div
>
<
div
className=
"course-ware__index"
>
{
index
<
9
?
`0${index + 1 } `
:
index
+
1
}
</
div
>
<
img
className=
'course-ware__img'
src=
'https://image.xiaomaiketang.com/xm/TKwbQGYDBR.png'
alt=
''
/>
<
div
className=
'course-ware__name'
>
{
item
.
name
}
</
div
>
</
div
>
...
...
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