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