|
@@ -75,17 +75,24 @@ let mSeconds = 0;
|
|
|
changeSuccess:true
|
|
changeSuccess:true
|
|
|
})
|
|
})
|
|
|
var params = {
|
|
var params = {
|
|
|
-
|
|
|
|
|
|
|
+ userPhone:this.state.phoneNumber,
|
|
|
|
|
+ openid:this.props.userInfo.user.userOpenid,
|
|
|
|
|
+ code:this.state.vCode,
|
|
|
}
|
|
}
|
|
|
- fetchPost(API.oaCreate,{params},{})
|
|
|
|
|
|
|
+ fetchPost(API.updatePhone,{params},{})
|
|
|
.then((response)=>{
|
|
.then((response)=>{
|
|
|
console.log('response',response)
|
|
console.log('response',response)
|
|
|
if(response.success){
|
|
if(response.success){
|
|
|
-
|
|
|
|
|
|
|
+ this.setState({
|
|
|
|
|
+ changeSuccess:true
|
|
|
|
|
+ },function () {
|
|
|
|
|
+ this.props.history.push('/homepage/')
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
.catch((error) =>{
|
|
.catch((error) =>{
|
|
|
console.log('error',error)
|
|
console.log('error',error)
|
|
|
|
|
+ Toast.show(error)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
getvCode = () =>{
|
|
getvCode = () =>{
|