|
@@ -1,7 +1,7 @@
|
|
|
import React, {Component} from 'react'
|
|
import React, {Component} from 'react'
|
|
|
import './index.css'
|
|
import './index.css'
|
|
|
import {message} from 'antd'
|
|
import {message} from 'antd'
|
|
|
-import {NavBar, Icon, InputItem, List, Button, ActivityIndicator} from 'antd-mobile'
|
|
|
|
|
|
|
+import {NavBar, Icon, InputItem, List, ActivityIndicator} from 'antd-mobile'
|
|
|
import {withRouter} from 'react-router-dom'
|
|
import {withRouter} from 'react-router-dom'
|
|
|
import {Mutation} from "react-apollo"
|
|
import {Mutation} from "react-apollo"
|
|
|
import {request} from 'graphql-request'
|
|
import {request} from 'graphql-request'
|
|
@@ -85,7 +85,7 @@ class Profile extends Component {
|
|
|
<div>联系电话</div>
|
|
<div>联系电话</div>
|
|
|
</InputItem>
|
|
</InputItem>
|
|
|
</List>
|
|
</List>
|
|
|
- <Button onClick={() => {
|
|
|
|
|
|
|
+ <div className='user-update' onClick={() => {
|
|
|
const testPhoneNum = /^1[0-9]{10}$/;
|
|
const testPhoneNum = /^1[0-9]{10}$/;
|
|
|
const isPoneAvailable = testPhoneNum.test(telephone);
|
|
const isPoneAvailable = testPhoneNum.test(telephone);
|
|
|
if(isPoneAvailable && telephone !== oldTelephone){
|
|
if(isPoneAvailable && telephone !== oldTelephone){
|
|
@@ -104,7 +104,7 @@ class Profile extends Component {
|
|
|
}else {
|
|
}else {
|
|
|
message.warning('请输入11位有效手机号码',1)
|
|
message.warning('请输入11位有效手机号码',1)
|
|
|
}
|
|
}
|
|
|
- }}>确认</Button>
|
|
|
|
|
|
|
+ }}>确认</div>
|
|
|
</div>
|
|
</div>
|
|
|
)
|
|
)
|
|
|
}}
|
|
}}
|