|
|
|
@ -44,24 +44,23 @@ class Trialapplicationysl extends Component {
|
|
|
|
|
Cancel = () => {
|
|
|
|
|
// this.props.Cancel()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
|
|
// console.log("46");
|
|
|
|
|
// console.log(nextProps);
|
|
|
|
|
// console.log(this.props);
|
|
|
|
|
// if (nextProps.user != this.props.user) {
|
|
|
|
|
// // console.log("50");
|
|
|
|
|
// // console.log(nextProps.user);
|
|
|
|
|
// if (nextProps.user !== undefined) {
|
|
|
|
|
// // console.log("53");
|
|
|
|
|
// // console.log(nextProps.user);
|
|
|
|
|
// this.setState({
|
|
|
|
|
// user_phone_binded: nextProps.user.user_phone_binded,
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
if (nextProps.user != this.props.user) {
|
|
|
|
|
// console.log("50");
|
|
|
|
|
// console.log(nextProps.user);
|
|
|
|
|
if (nextProps.user !== undefined) {
|
|
|
|
|
// console.log("53");
|
|
|
|
|
// console.log(nextProps.user);
|
|
|
|
|
this.setState({
|
|
|
|
|
user_phone_binded: nextProps.user.user_phone_binded,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -287,7 +286,7 @@ class Trialapplicationysl extends Component {
|
|
|
|
|
// console.log(result);
|
|
|
|
|
// this.onTabChange("1");
|
|
|
|
|
if(result !== undefined){
|
|
|
|
|
this.props.showNotification(`试用申请已提交,我们将尽快完成审核`);
|
|
|
|
|
// this.props.showNotification(`试用申请已提交,我们将尽快完成审核`);
|
|
|
|
|
// if (this.state.showTrial === false) {
|
|
|
|
|
window.location.href = "/";
|
|
|
|
|
this.setState({
|
|
|
|
|