|
|
|
@ -24,7 +24,7 @@ class Trialapplicationysl extends Component {
|
|
|
|
|
codes: "",
|
|
|
|
|
reason: "",
|
|
|
|
|
Phonenumberisnotcoreason: undefined,
|
|
|
|
|
isRenders: false,
|
|
|
|
|
isRenders: true,
|
|
|
|
|
seconds: 60,
|
|
|
|
|
getverificationcodes: true,
|
|
|
|
|
Phonenumberisnotco: undefined,
|
|
|
|
@ -44,37 +44,37 @@ 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,
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
getipthon=()=>{
|
|
|
|
|
//
|
|
|
|
|
// 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,
|
|
|
|
|
// // })
|
|
|
|
|
// // }
|
|
|
|
|
// //
|
|
|
|
|
// //
|
|
|
|
|
// // }
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
getipthon=()=>{
|
|
|
|
|
// console.log("Trialapplicationysl");
|
|
|
|
|
// console.log("70");
|
|
|
|
|
let url = `/users/get_user_info.json`
|
|
|
|
|
axios.get(url).then((result)=> {
|
|
|
|
|
console.log(result);
|
|
|
|
|
if(result){
|
|
|
|
|
this.setState({
|
|
|
|
|
user_phone_binded:result.data.user_phone_binded,
|
|
|
|
|
})
|
|
|
|
|
this.setState({
|
|
|
|
|
user_phone_binded:result.data.user_phone_binded,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}).catch((error)=>{
|
|
|
|
|
console.log(error)
|
|
|
|
@ -86,7 +86,7 @@ class Trialapplicationysl extends Component {
|
|
|
|
|
// console.log("53");
|
|
|
|
|
//
|
|
|
|
|
// console.log(this.props.isRenders);
|
|
|
|
|
this.getipthon();
|
|
|
|
|
this.getipthon();
|
|
|
|
|
if (this.props.isRenders != undefined) {
|
|
|
|
|
this.setState({
|
|
|
|
|
isRenders: this.props.isRenders
|
|
|
|
@ -289,11 +289,11 @@ class Trialapplicationysl extends Component {
|
|
|
|
|
if(result !== undefined){
|
|
|
|
|
this.props.showNotification(`试用申请已提交,我们将尽快完成审核`);
|
|
|
|
|
// if (this.state.showTrial === false) {
|
|
|
|
|
window.location.href = "/";
|
|
|
|
|
this.setState({
|
|
|
|
|
isRenders: false
|
|
|
|
|
})
|
|
|
|
|
this.Cancel();
|
|
|
|
|
window.location.href = "/";
|
|
|
|
|
this.setState({
|
|
|
|
|
isRenders: false
|
|
|
|
|
})
|
|
|
|
|
this.Cancel();
|
|
|
|
|
// } else {
|
|
|
|
|
// this.setState({
|
|
|
|
|
// isRenders: false
|
|
|
|
|