|
|
@ -55,13 +55,17 @@ class VideoIndex extends Component{
|
|
|
|
componentDidMount=()=>{
|
|
|
|
componentDidMount=()=>{
|
|
|
|
const { search } = this.props.location;
|
|
|
|
const { search } = this.props.location;
|
|
|
|
const { page } = this.state;
|
|
|
|
const { page } = this.state;
|
|
|
|
|
|
|
|
|
|
|
|
if(search && search === "?open=live"){
|
|
|
|
if(search && search === "?open=live"){
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
type:"live"
|
|
|
|
type:"live"
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.checkType("live",page);
|
|
|
|
this.checkType("live",page);
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
|
|
|
|
if(search === "?open=new"){
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
upload:true
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
this.checkType("video",page);
|
|
|
|
this.checkType("video",page);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -138,10 +142,13 @@ class VideoIndex extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
uploadVideo=(upload)=>{
|
|
|
|
uploadVideo=(upload)=>{
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
upload
|
|
|
|
upload,
|
|
|
|
|
|
|
|
isSpining:true
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const { page } = this.state;
|
|
|
|
const { page } = this.state;
|
|
|
|
this.getList(page);
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
|
|
|
this.getList(page);
|
|
|
|
|
|
|
|
},500)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
toUpload =()=> {
|
|
|
|
toUpload =()=> {
|
|
|
|