|
|
@ -99,7 +99,8 @@ class TPMBanner extends Component {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
openknow:false
|
|
|
|
openknow:false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
storage.setItem("shixunopenprocess",true);
|
|
|
|
let shixunopenprocess=this.props.user&&this.props.user.user_id+'shixunopenprocess';
|
|
|
|
|
|
|
|
storage.setItem(shixunopenprocess,true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
openshowpublic=()=>{
|
|
|
|
openshowpublic=()=>{
|
|
|
@ -107,7 +108,8 @@ class TPMBanner extends Component {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
openshowpublictype:false
|
|
|
|
openshowpublictype:false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
storage.setItem("openopenpublictype",true);
|
|
|
|
let openopenpublictype=this.props.user&&this.props.user.user_id+'openopenpublictype';
|
|
|
|
|
|
|
|
storage.setItem(openopenpublictype,true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -121,13 +123,14 @@ class TPMBanner extends Component {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
let getshixunopenprocess=this.props.user&&this.props.user.user_id+'shixunopenprocess';
|
|
|
|
let shixunopenprocess=window.localStorage.shixunopenprocess;
|
|
|
|
let getopenopenpublictype=this.props.user&&this.props.user.user_id+'openopenpublictype';
|
|
|
|
let openopenpublictype=window.localStorage.openopenpublictype;
|
|
|
|
let shixunopenprocess=window.localStorage.getItem(getshixunopenprocess)
|
|
|
|
|
|
|
|
let openopenpublictype=window.localStorage.getItem(getopenopenpublictype)
|
|
|
|
if(this.props.status===0&&this.props.openknows===false){
|
|
|
|
if(this.props.status===0&&this.props.openknows===false){
|
|
|
|
|
|
|
|
|
|
|
|
if(this.props.shixunsDetails&&this.props.shixunsDetails.shixun_status === 0 && this.props.identity < 5){
|
|
|
|
if(this.props.shixunsDetails&&this.props.shixunsDetails.shixun_status === 0 && this.props.identity < 5){
|
|
|
|
if(shixunopenprocess===undefined||shixunopenprocess===false){
|
|
|
|
if(shixunopenprocess===undefined||shixunopenprocess===false||shixunopenprocess===null){
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
openknow:true
|
|
|
|
openknow:true
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -147,7 +150,7 @@ class TPMBanner extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
if(this.props.public===0&&this.props.status>1&&this.props.openknows===false){
|
|
|
|
if(this.props.public===0&&this.props.status>1&&this.props.openknows===false){
|
|
|
|
if(this.props.shixunsDetails&&this.props.shixunsDetails.shixun_status === 2 && this.props.shixunsDetails&&this.props.shixunsDetails.public===0 && this.props.identity < 5){
|
|
|
|
if(this.props.shixunsDetails&&this.props.shixunsDetails.shixun_status === 2 && this.props.shixunsDetails&&this.props.shixunsDetails.public===0 && this.props.identity < 5){
|
|
|
|
if(openopenpublictype===undefined||openopenpublictype===false){
|
|
|
|
if(openopenpublictype===undefined||openopenpublictype===false||openopenpublictype===null){
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
openshowpublictype:true
|
|
|
|
openshowpublictype:true
|
|
|
|
})
|
|
|
|
})
|
|
|
|