dev_forum
ysl 6 years ago
parent 2f1eac3216
commit 3ec184008b

@ -124,15 +124,15 @@ class Startshixuntask extends Component{
footer={null} footer={null}
keyboard={false} keyboard={false}
> >
<Spin size="large" spinning={isSpin}>
<div className="task-popup-content"> <div className="task-popup-content">
<p className="task-popup-text-center font-16 pb20">实训已经更新了正在为您重置!</p> <p className="task-popup-text-center font-16 pb20">实训已经更新了正在为您重置!</p>
</div> </div>
<div className="task-popup-submit clearfix"> <div className="task-popup-submit clearfix">
<Spin size="large" spinning={isSpin}>
</Spin>
<a className="task-btn task-btn-orange fr mr51" <a className="task-btn task-btn-orange fr mr51"
onClick={() => this.hidestartshixunsreplace(hidestartshixunsreplacevalue)}>知道了</a> onClick={() => this.hidestartshixunsreplace(hidestartshixunsreplacevalue)}>知道了</a>
</div> </div>
</Spin>
</Modal> </Modal>
<Modal <Modal
title="提示" title="提示"

@ -59,6 +59,7 @@ class TPMBanner extends Component {
hidestartshixunsreplacevalue:"", hidestartshixunsreplacevalue:"",
isIE:false, isIE:false,
Forkvisibletype: false, Forkvisibletype: false,
isSpin:false,
} }
} }
@ -322,12 +323,16 @@ class TPMBanner extends Component {
// } // }
hidestartshixunsreplace=(url)=>{ hidestartshixunsreplace=(url)=>{
this.setState({
isSpin:true,
})
axios.get(url).then((response) => { axios.get(url).then((response) => {
if(response.status===200){ if(response.status===200){
let path="/shixuns/"+response.data.shixun_identifier+"/challenges"; let path="/shixuns/"+response.data.shixun_identifier+"/challenges";
this.props.history.push(path); this.props.history.push(path);
this.setState({ this.setState({
shixunsreplace:false shixunsreplace:false,
isSpin:false,
}) })
message.success('重置成功,正在进入实训!'); message.success('重置成功,正在进入实训!');
this.startshixunCombat(); this.startshixunCombat();
@ -662,6 +667,8 @@ class TPMBanner extends Component {
closable={false} closable={false}
footer={null} footer={null}
> >
<Spin size="large" spinning={isSpin}>
<div className="task-popup-content"> <div className="task-popup-content">
<p className="task-popup-text-center font-16 pb20">实训已经更新了正在为您重置!</p> <p className="task-popup-text-center font-16 pb20">实训已经更新了正在为您重置!</p>
</div> </div>
@ -669,6 +676,7 @@ class TPMBanner extends Component {
<a className="task-btn task-btn-orange fr mr51" <a className="task-btn task-btn-orange fr mr51"
onClick={() => this.hidestartshixunsreplace(hidestartshixunsreplacevalue)}>知道了</a> onClick={() => this.hidestartshixunsreplace(hidestartshixunsreplacevalue)}>知道了</a>
</div> </div>
</Spin>
</Modal> </Modal>
<Modal <Modal

Loading…
Cancel
Save