dev_cxt
杨树明 5 years ago
parent b5f1caad7c
commit b30885da7e

@ -135,6 +135,13 @@ class TPMBanner extends Component {
this.setState({ this.setState({
openknow:true openknow:true
}) })
setTimeout(()=>{
this.openknow()
this.setState({
openknow:false
})
}, 10000);
}else{ }else{
this.setState({ this.setState({
openknow:false openknow:false
@ -158,6 +165,12 @@ class TPMBanner extends Component {
this.setState({ this.setState({
openshowpublictype: true openshowpublictype: true
}) })
setTimeout(()=>{
this.openshowpublic()
this.setState({
openshowpublictype:false
})
}, 10000);
} else { } else {
this.setState({ this.setState({
openshowpublictype: false openshowpublictype: false

@ -163,7 +163,7 @@ class TPMIndex extends Component {
openknows:false openknows:false
}) })
let newTPMsettings=this.props.user&&this.props.user.user_id+'newTPMsettings' let newTPMsettings=this.props.user&&this.props.user.user_id+'newTPMsettings'
storage.setItem(newTPMsettings,true); storage.setItem(newTPMsettings,false);
} }
@ -174,7 +174,7 @@ class TPMIndex extends Component {
let newTPMsettings=window.localStorage.getItem(getnewTPMsettings) let newTPMsettings=window.localStorage.getItem(getnewTPMsettings)
if(newTPMsettings===undefined||newTPMsettings===false||newTPMsettings===null){ if(newTPMsettings===undefined||newTPMsettings===false||newTPMsettings===null){
this.setState({ this.setState({
openknows:true openknows:false
}) })
}else{ }else{
this.setState({ this.setState({
@ -453,20 +453,20 @@ class TPMIndex extends Component {
{ this.state.is_jupyter===false? <Menu.Item key="8" className={"competitionmr50"}> { this.state.is_jupyter===false? <Menu.Item key="8" className={"competitionmr50"}>
<span className={"tpmbannernavstyler"}>排行榜</span> <span className={"tpmbannernavstyler"}>排行榜</span>
</Menu.Item>:""} </Menu.Item>:""}
{this.state.identity >4||this.state.identity===undefined ? "":this.state.openknows===true?<span> {/*{this.state.identity >4||this.state.identity===undefined ? "":this.state.openknows===true?<span>*/}
<Popover {/* <Popover*/}
content={ {/* content={*/}
<pre className={"bannerpd201"}> {/* <pre className={"bannerpd201"}>*/}
<div>更多设置在这里点击配置看一看~</div> {/* <div>更多设置在这里,点击“配置”看一看~</div>*/}
<div className={"wechatcenter mt15"}><Button type="primary" onClick={this.openknow} >我知道了</Button></div> {/* <div className={"wechatcenter mt15"}><Button type="primary" onClick={this.openknow} >我知道了</Button></div>*/}
</pre> {/* </pre>*/}
} {/* }*/}
trigger="click" {/* trigger="click"*/}
placement="top" {/* placement="top"*/}
visible={this.state.openknows} {/* visible={this.state.openknows}*/}
> {/* >*/}
</Popover> {/* </Popover>*/}
</span>:""} {/*</span>:""}*/}
{this.state.identity >4||this.state.identity===undefined ? "": {this.state.identity >4||this.state.identity===undefined ? "":
<Menu.Item key="9" className={"competitionmr50"}> <Menu.Item key="9" className={"competitionmr50"}>

Loading…
Cancel
Save