dev_admin
hjm 6 years ago
parent 365c849bba
commit eefaf77b5f

@ -56,16 +56,17 @@ class ShixunhomeWorkItem extends Component{
startbtn:true, startbtn:true,
}) })
let url= list+".json"; let url= list+".json";
const w=window.open('about:blank');
axios.get(url).then((response) => { axios.get(url).then((response) => {
if(response.status===200){ if(response.status===200){
if(response.data.status===-2){ if(response.data.status===-2){
this.setState({ this.setState({
startbtn:false, startbtn:false,
shixunsreplace:true, shixunsreplace:true,
hidestartshixunsreplacevalue:response.data.message+".json" hidestartshixunsreplacevalue:response.data.message+".json"
}) })
w.close()
}else if(response.data.status===-1){ }else if(response.data.status===-1){
console.log(response) console.log(response)
}else if(response.data.status===-3){ }else if(response.data.status===-3){
@ -74,11 +75,9 @@ class ShixunhomeWorkItem extends Component{
startshixunCombattype:true, startshixunCombattype:true,
startbtn:false startbtn:false
}) })
w.close()
}else{ }else{
if(response.data.status!=401&&response.data.status!=403){ if(response.data.status!=401&&response.data.status!=403){
const w=window.open('about:blank');
w.location.href= "/tasks/"+response.data.game_identifier w.location.href= "/tasks/"+response.data.game_identifier
} }
@ -88,6 +87,8 @@ class ShixunhomeWorkItem extends Component{
this.setState({ this.setState({
startbtn:false startbtn:false
}) })
w.close()
}); });
} }

Loading…
Cancel
Save