forked from Gitlink/forgeplus-react
修改资料-提示
This commit is contained in:
parent
78a762f775
commit
008bab7131
|
@ -54,7 +54,7 @@ export default Form.create()(
|
|||
<Form layout={'inline'} className="formBase">
|
||||
<Form.Item label="手机">
|
||||
{getFieldDecorator("phone",{
|
||||
rules:[{required:true,message:"请输入邮箱账号"}]
|
||||
rules:[{required:true,message:"请输入手机号"}]
|
||||
})(
|
||||
<Input placeholder="请点击右侧更改手机号按钮绑定手机" disabled style={{width:"400px"}}/>
|
||||
)}
|
||||
|
|
|
@ -185,13 +185,13 @@ export function TPMIndexHOC(WrappedComponent) {
|
|||
if(this.props.match.path === "/" && this.props.history.length===2){
|
||||
this.props.history.push(`/${response.data.login}`)
|
||||
}
|
||||
if(!response.data.phone){
|
||||
var supplyCookie = cookie.load('supply_phone');
|
||||
console.log(supplyCookie);
|
||||
this.setState({
|
||||
supplyPhone:supplyCookie || false
|
||||
})
|
||||
}
|
||||
// if(!response.data.phone){
|
||||
// var supplyCookie = cookie.load('supply_phone');
|
||||
// console.log(supplyCookie);
|
||||
// this.setState({
|
||||
// supplyPhone:supplyCookie || false
|
||||
// })
|
||||
// }
|
||||
}
|
||||
}
|
||||
}).catch((error) => {
|
||||
|
|
Loading…
Reference in New Issue