|
|
@ -175,8 +175,8 @@ class Challenges extends Component {
|
|
|
|
//开始实战按钮
|
|
|
|
//开始实战按钮
|
|
|
|
startshixunCombat = (type, ids, path) => {
|
|
|
|
startshixunCombat = (type, ids, path) => {
|
|
|
|
let { ChallengesDataList } = this.state;
|
|
|
|
let { ChallengesDataList } = this.state;
|
|
|
|
|
|
|
|
if(path===null){
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
if (type > 3 || type === false) {
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
startbtns: true
|
|
|
|
startbtns: true
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -208,9 +208,14 @@ class Challenges extends Component {
|
|
|
|
startbtns: false
|
|
|
|
startbtns: false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
if (type > 4 || type === false) {
|
|
|
|
|
|
|
|
window.location.href = path;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
window.location.href = "/shixuns/" + ChallengesDataList.shixun_identifier + "/challenges/" + ids + path;
|
|
|
|
window.location.href = "/shixuns/" + ChallengesDataList.shixun_identifier + "/challenges/" + ids + path;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidestartshixunCombattype=()=>{
|
|
|
|
hidestartshixunCombattype=()=>{
|
|
|
|