|
@@ -333,6 +333,10 @@ const UserModal = React.createClass({
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
+// if(this.state.mobile.length>11){
|
|
|
+// message.warning("登录账号不能超过11位");
|
|
|
+// return false;
|
|
|
+// }
|
|
|
$.ajax({
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
@@ -349,6 +353,7 @@ const UserModal = React.createClass({
|
|
|
pwd: this.state.pwd
|
|
|
}
|
|
|
}).always(function (data) {
|
|
|
+ console.log(data);
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
|
} else {
|
|
@@ -384,7 +389,7 @@ const UserModal = React.createClass({
|
|
|
</li>
|
|
|
<li>
|
|
|
<span className='modal-text'>登录账号</span>
|
|
|
- <Input value={this.state.mobile} onChange={(e) => { this.state.mobile = e.target.value; this.setState({ mobile: this.state.mobile }); }} />
|
|
|
+ <span>{this.state.mobile}</span>
|
|
|
</li>
|
|
|
<li>
|
|
|
<span className='modal-text'>联系方式</span>
|