|
|
|
@ -32,6 +32,7 @@ class Trialapplication extends Component {
|
|
|
|
|
readonlyInput: true,
|
|
|
|
|
user_phone_binded: false,
|
|
|
|
|
showTrial: false,
|
|
|
|
|
user: undefined,
|
|
|
|
|
}
|
|
|
|
|
//user_phone_binded 判断是否手机号验证
|
|
|
|
|
// console.log("Trialapplication");
|
|
|
|
@ -43,15 +44,32 @@ class Trialapplication extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//初始化数据
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
console.log("53");
|
|
|
|
|
|
|
|
|
|
console.log(this.props.isRenders);
|
|
|
|
|
// console.log("53");
|
|
|
|
|
//
|
|
|
|
|
// console.log(this.props.isRenders);
|
|
|
|
|
|
|
|
|
|
if (this.props.isRenders != undefined) {
|
|
|
|
|
this.setState({
|
|
|
|
@ -77,21 +95,6 @@ class Trialapplication extends Component {
|
|
|
|
|
//TODO 这里如果样式变了会出现css不加载的情况
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
console.log(this.props.isRenders);
|
|
|
|
|
console.log("89");
|
|
|
|
|
console.log(this.state.props.user_phone_binded );
|
|
|
|
|
try {
|
|
|
|
|
if (this.state.props.user_phone_binded !== undefined) {
|
|
|
|
|
console.log(this.state.props.user_phone_binded);
|
|
|
|
|
this.setState({
|
|
|
|
|
user_phone_binded: this.state.props.user_phone_binded,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -384,9 +387,6 @@ class Trialapplication extends Component {
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
// .dialogBox{
|
|
|
|
|
// height: 370px;
|
|
|
|
|
// }
|
|
|
|
|
.dialogBox2{
|
|
|
|
|
height: 420px;
|
|
|
|
|
}
|
|
|
|
|