dev_forum
ysl 6 years ago
parent a4fb17467a
commit 7aa3477136

@ -151,7 +151,7 @@ class EducoderLogin extends Component {
}}> }}>
<div style={{"margin-top": "40px","height":"500px"}}> <div style={{"margin-top": "40px","height":"500px"}}>
<LoginRegisterComponent {...this.props} {...this.state} <LoginRegisterComponent {...this.props} {...this.state}
Setshowbool={this.Setshowbool} Setlogins={this.Setlogins}></LoginRegisterComponent> Setshowbool={this.Setshowbool} ></LoginRegisterComponent>
</div> </div>

@ -77,13 +77,18 @@ class Trialapplication extends Component {
//TODO 这里如果样式变了会出现css不加载的情况 //TODO 这里如果样式变了会出现css不加载的情况
}); });
console.log(this.props.isRenders);
console.log("89"); console.log("89");
console.log(this.state.props.user_phone_binded );
try { try {
if (this.state.props.user_phone_binded !== undefined) { if (this.state.props.user_phone_binded !== undefined) {
console.log(this.state.props.user_phone_binded); console.log(this.state.props.user_phone_binded);
this.setState({ this.setState({
user_phone_binded: this.state.props.user_phone_binded, user_phone_binded: this.state.props.user_phone_binded,
}) })
if(this.state.props.user_phone_binded === true){
this.props.setTrialapplication();
}
} }
} catch (e) { } catch (e) {

@ -213,6 +213,13 @@ export function TPMIndexHOC(WrappedComponent) {
return this.state.coursedata&&this.state.coursedata.course_identity === 6 return this.state.coursedata&&this.state.coursedata.course_identity === 6
} }
setTrialapplication = ()=>{
this.setState({
isRenders:true
})
}
/** /**
课堂权限相关方法暂时写这里了 ----------------------------------------END 课堂权限相关方法暂时写这里了 ----------------------------------------END
@ -285,7 +292,7 @@ export function TPMIndexHOC(WrappedComponent) {
user_phone_binded === undefined? user_phone_binded === undefined?
"" ""
: :
<Trialapplication {...this.state} user_phone_binded={user_phone_binded}></Trialapplication> <Trialapplication {...this.state} user_phone_binded={user_phone_binded} setTrialapplication = {this.setTrialapplication} ></Trialapplication>
} }

Loading…
Cancel
Save