online_time
caicai8 5 years ago
parent 10a4a05599
commit 87e0cb846b

@ -11,6 +11,12 @@ function jsCopy(props){
document.execCommand("Copy"); document.execCommand("Copy");
props.showNotification("复制成功!"); props.showNotification("复制成功!");
} }
const $ = window.$;
function getRight(){
var right = parseInt($(".-task-sidebar").css("right"));
return right;
}
class LiveItem extends Component{ class LiveItem extends Component{
constructor(props) { constructor(props) {
super(props); super(props);
@ -42,10 +48,10 @@ class LiveItem extends Component{
} }
alertInfo=()=>{ alertInfo=()=>{
console.log("dddd");
this.setState({ this.setState({
visible:true visible:true
}) })
getRight();
} }
onDialogOkBtnClick=()=>{ onDialogOkBtnClick=()=>{
this.setState({ this.setState({
@ -106,7 +112,7 @@ class LiveItem extends Component{
overflow: hidden!important; overflow: hidden!important;
} }
.-task-sidebar{ .-task-sidebar{
right:42px!important right:${getRight()+7}px!important;
} }
`} `}
</style> </style>
@ -150,7 +156,7 @@ class LiveItem extends Component{
<label className="mr50">{item.author_name}</label> <label className="mr50">{item.author_name}</label>
{ item.platform && <span className="mr50">直播平台{item.platform}</span> } { item.platform && <span className="mr50">直播平台{item.platform}</span> }
{ item.live_time && <span className="mr50">开播时间{item.live_time}</span>} { item.live_time && <span className="mr50">开播时间{item.live_time}</span>}
{ item.duration && <span className="mr50">直播时长{item.duration}分钟</span> } { item.duration && <span className="mr50">直播预计时长{item.duration}分钟</span> }
</span> </span>
<span> <span>
{ {

@ -258,7 +258,7 @@ class LiveNew extends Component{
onChange={this.onChangeTime} onChange={this.onChangeTime}
></DatePicker> ></DatePicker>
</div> </div>
<Form.Item label={`直播时长`}> <Form.Item label={`直播预计时长`}>
{getFieldDecorator('duration', { {getFieldDecorator('duration', {
rules: [], rules: [],
})( })(

@ -14,6 +14,12 @@ import '../css/Courses.css';
import '../publicNav/nav.css'; import '../publicNav/nav.css';
const PAGE_SIZE = 15; const PAGE_SIZE = 15;
const LIVE_PAGE_SIZE = 10; const LIVE_PAGE_SIZE = 10;
const $ = window.$;
function getRight(){
var right = parseInt($(".-task-sidebar").css("right"));
return right;
}
class VideoIndex extends Component{ class VideoIndex extends Component{
constructor(props){ constructor(props){
super(props); super(props);
@ -209,14 +215,11 @@ class VideoIndex extends Component{
overflow: hidden!important; overflow: hidden!important;
} }
.-task-sidebar{ .-task-sidebar{
right:42px!important right:${getRight()+7}px!important;
} }
`}</style>: `}</style>:
<style>{ <style>{
` `
.-task-sidebar{
right:35px
}
body{ body{
width: 100%!important; width: 100%!important;
} }

Loading…
Cancel
Save