|
|
|
@ -118,7 +118,7 @@ class TPMBanner extends Component {
|
|
|
|
|
if (prevProps != this.props) {
|
|
|
|
|
let shixunopenprocess=window.localStorage.shixunopenprocess;
|
|
|
|
|
let openopenpublictype=window.localStorage.openopenpublictype;
|
|
|
|
|
if(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){
|
|
|
|
|
this.setState({
|
|
|
|
|
openknow:true
|
|
|
|
@ -130,7 +130,7 @@ class TPMBanner extends Component {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(this.props.shixunsDetails.shixun_status === 2 && 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){
|
|
|
|
|
this.setState({
|
|
|
|
|
openshowpublictype:true
|
|
|
|
|