|
|
@ -8,6 +8,8 @@ import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
|
|
|
|
import {Modal,Input,Radio,Pagination,message,Spin,Icon,Tooltip} from 'antd';
|
|
|
|
import {Modal,Input,Radio,Pagination,message,Spin,Icon,Tooltip} from 'antd';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import AccountProfile from"../user/AccountProfile";
|
|
|
|
|
|
|
|
|
|
|
|
import 'antd/lib/pagination/style/index.css';
|
|
|
|
import 'antd/lib/pagination/style/index.css';
|
|
|
|
|
|
|
|
|
|
|
|
import axios from 'axios'
|
|
|
|
import axios from 'axios'
|
|
|
@ -381,6 +383,14 @@ class TPMBanner extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
//开始实战按钮
|
|
|
|
//开始实战按钮
|
|
|
|
startshixunCombat=(id, reset)=>{
|
|
|
|
startshixunCombat=(id, reset)=>{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.props.current_user&&this.props.current_user.profile_completed===false){
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
AccountProfiletype:true
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let {shixunsDetails} = this.props
|
|
|
|
let {shixunsDetails} = this.props
|
|
|
|
if( shixunsDetails.shixun_status>1){
|
|
|
|
if( shixunsDetails.shixun_status>1){
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
@ -455,7 +465,11 @@ class TPMBanner extends Component {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hideAccountProfile=()=>{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
AccountProfiletype:false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
let {
|
|
|
|
let {
|
|
|
@ -480,7 +494,7 @@ class TPMBanner extends Component {
|
|
|
|
shixunsreplace,
|
|
|
|
shixunsreplace,
|
|
|
|
hidestartshixunsreplacevalue,
|
|
|
|
hidestartshixunsreplacevalue,
|
|
|
|
Forkvisibletype,
|
|
|
|
Forkvisibletype,
|
|
|
|
Senttothevcaluetype,
|
|
|
|
AccountProfiletype,
|
|
|
|
isIE} = this.state;
|
|
|
|
isIE} = this.state;
|
|
|
|
let {shixunsDetails, shixunId, star_info, star_infos} = this.props;
|
|
|
|
let {shixunsDetails, shixunId, star_info, star_infos} = this.props;
|
|
|
|
let challengeBtnTipText = '';
|
|
|
|
let challengeBtnTipText = '';
|
|
|
@ -555,6 +569,13 @@ class TPMBanner extends Component {
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div className="shixunDetail_top">
|
|
|
|
<div className="shixunDetail_top">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{AccountProfiletype===true?<AccountProfile
|
|
|
|
|
|
|
|
hideAccountProfile={()=>this.hideAccountProfile()}
|
|
|
|
|
|
|
|
{...this.state}
|
|
|
|
|
|
|
|
{...this.props}
|
|
|
|
|
|
|
|
/>:""}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{this.state.Modalstype===true?<Modals
|
|
|
|
{this.state.Modalstype===true?<Modals
|
|
|
|
modalsType={this.state.Modalstype}
|
|
|
|
modalsType={this.state.Modalstype}
|
|
|
|
modalsTopval={this.state.Modalstopval}
|
|
|
|
modalsTopval={this.state.Modalstopval}
|
|
|
|