|
|
|
@ -69,6 +69,22 @@ class Trialapplication extends Component {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// 是否不显示手机栏
|
|
|
|
|
let url = `/users/get_user_info.json`
|
|
|
|
|
axios.get(url,{params:{
|
|
|
|
|
school:1
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
).then((response) => {
|
|
|
|
|
if(response !==undefined){
|
|
|
|
|
this.setState({
|
|
|
|
|
user_phone_binded:response.data.user_phone_binded
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
axios.interceptors.response.use((response) => {
|
|
|
|
|
if (response != undefined)
|
|
|
|
|
if (response && response.data.status === 407) {
|
|
|
|
@ -81,18 +97,7 @@ class Trialapplication extends Component {
|
|
|
|
|
// // // TODO 这里如果样式变了会出现css不加载的情况
|
|
|
|
|
});
|
|
|
|
|
// console.log("89");
|
|
|
|
|
try {
|
|
|
|
|
// console.log(this.state.props.user && this.state.props.user.user_phone_binded);
|
|
|
|
|
if (this.state.props.user !== undefined) {
|
|
|
|
|
this.setState({
|
|
|
|
|
user_phone_binded: this.state.props.user.user_phone_binded,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|