-
-
复制视频地址
+
+
+
+
+
+
-
-
- 共 {count} 个视频
{
(admin || is_teacher) &&
-
+
{
upload ?
this.uploadVideo(false)}>取消
:
上传视频
}
+ this.setliveVisibel(true)}>直播设置
}
-
+
+
{
- upload ?
-
- :
-
-
- {
- videos && videos.length > 0 ?
-
- {
- videos.map((item,key)=>{
- return(
- //
-
-
- )
- })
- }
-
- :
-
- }
-
- {
- count > PAGE_SIZE &&
-
- }
-
+ type === "video" ?
+
+ :
+
}
-
+
)
}
diff --git a/public/react/src/modules/courses/Video/VideoItem.js b/public/react/src/modules/courses/Video/VideoItem.js
deleted file mode 100644
index f8aba0183..000000000
--- a/public/react/src/modules/courses/Video/VideoItem.js
+++ /dev/null
@@ -1,45 +0,0 @@
-import React,{ Component } from "react";
-import moment from 'moment';
-import playIcon from '../../user/usersInfo/video/images/play.png'
-
-import { Tooltip } from 'antd';
-
-class VideoItem extends Component{
- render(){
- const { item , onEditVideo} = this.props;
- return(
-
-

-
-

-
-
-
20 ? item.title : ''}
- >{item.title}
-
- {moment(item.published_at || item.created_at).format('YYYY-MM-DD HH:mm:ss')}
-
-
-
-
- )
- }
-}
-export default VideoItem;
\ No newline at end of file
diff --git a/public/react/src/modules/courses/Video/video.css b/public/react/src/modules/courses/Video/video.css
index 12c1350b3..0163d072b 100644
--- a/public/react/src/modules/courses/Video/video.css
+++ b/public/react/src/modules/courses/Video/video.css
@@ -1,7 +1,6 @@
.videoContent{
display: flex;
flex-wrap: wrap;
- margin-top: 20px;
align-items: flex-start;
}
.videoContent > div{
@@ -48,4 +47,80 @@
font-size: 16px;
color: #4CACFF !important;
margin-left: 6px;
+}
+
+.leftMenu{
+ float: left;
+ border:none;
+ font-size: 18px;
+}
+
+.liveItem{
+ padding: 30px 30px 15px 30px;
+ background: #fff;
+ margin-bottom: 10px;
+}
+.livesMain{
+ justify-content: space-between;
+}
+.lineMiddle{
+ display: flex;
+ align-items: center;
+}
+.liveAuthor{
+ width: 36px;
+ height: 36px;
+ border-radius: 50%;
+ margin-right: 20px;
+}
+.labels{
+ display: block;
+ padding: 0px 16px;
+ height: 24px;
+ line-height: 24px;
+ font-size: 12px;
+ margin-left: 20px;
+ border-radius: 16px;
+}
+.labels.living{
+ border:1px solid #FF5555;
+ color: #FF5555;
+}
+.labels.lived{
+ border:1px solid #999999;
+ color: #999999;
+}
+.btns
+{
+ display: block;
+ height: 34px;
+ line-height: 34px;
+ padding: 0px 26px;
+ border-radius: 4px;
+}
+.btns.going{
+ background: #5091FF;
+ color: #fff;
+}
+.btns.ect{
+ background: #CCCCCC;
+ color: #fff;
+}
+.liveDesc{
+ flex:1;
+ margin-right: 30px;
+ text-overflow: -o-ellipsis-lastline;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ line-clamp: 2;
+ -webkit-box-orient: vertical;
+}
+
+.liveModal .ant-modal-body{
+ padding:10px 20px 20px 20px;
+}
+.liveModal .ant-modal-body .task-popup-content{
+ padding:0px;
}
\ No newline at end of file
diff --git a/public/react/src/modules/user/usersInfo/video/VideoUploadList.js b/public/react/src/modules/user/usersInfo/video/VideoUploadList.js
index 1857770a9..0ca13731b 100644
--- a/public/react/src/modules/user/usersInfo/video/VideoUploadList.js
+++ b/public/react/src/modules/user/usersInfo/video/VideoUploadList.js
@@ -51,7 +51,6 @@ function VideoUploadList (props) {
const _beforeunload = beforeunload // .bind(this, noUploads, state)
const username = props.match.params.username || props.CourseUser;
- console.log("username",username);
const { showNotification, history } = props;
const uploaderOptions = {
@@ -260,7 +259,7 @@ function VideoUploadList (props) {
上传内容协议,不得上传未经他人授权的作品
const { flag } = props;
return (
-