Browse Source

手机号修改

liting2017 6 years ago
parent
commit
cc66b8b39c
1 changed files with 34 additions and 4 deletions
  1. 34 4
      js/component/account/setAccount/account.jsx

+ 34 - 4
js/component/account/setAccount/account.jsx

@@ -231,7 +231,7 @@ class Account extends React.Component {
 								</FormItem>
 							</Col>
 								</Row>*/}
-						{/*<Row>
+						{/* <Row>
 							<Col span={8}>
 								<FormItem className="half-mid" {...formItemLayout} label="注册名称">
 									{this.state.editName ? (
@@ -262,13 +262,43 @@ class Account extends React.Component {
 									)}
 								</FormItem>
 							</Col>
-						</Row> */}
+						</Row>  */}
 						<Row>
-							<Col span={8}>
+						<Col span={8}>
 								<FormItem className="half-mid" {...formItemLayout} label="注册手机号">
-									<span>{this.state.mobile}</span>
+									{this.state.editPhoto ? (
+										<Input
+											value={this.state.mobile}
+											onBlur={(e) => {
+												this.saveFun(2);
+											}}
+											ref="photo"
+											placeholder="请填写注册手机号"
+											onChange={(e) => {
+												this.setState({ mobile: e.target.value });
+											}}
+										/>
+									) : (
+										<span>{this.state.mobile}</span>
+									)}
+									{this.state.editPhoto ? (
+										''
+									) : (
+										<Button
+											className="Authentication"
+											onClick={(e) => {
+												this.btnFun(2);
+											}}
+											icon="edit"
+										/>
+									)}
 								</FormItem>
 							</Col>
+							{/* <Col span={8}>
+								<FormItem className="half-mid" {...formItemLayout} label="注册手机号">
+									<span>{this.state.mobile}</span>
+								</FormItem>
+							</Col> */}
 							<Col span={8}>
 								<FormItem className="half-mid" {...formItemLayout} label="注册邮箱">
 									{this.state.editEmail ? (