[baozhangchao] 3 年前
父节点
当前提交
6fab94db7f
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4
    3
      src/components/LoginModel/index.jsx

+ 4
- 3
src/components/LoginModel/index.jsx 查看文件

@@ -30,8 +30,8 @@ export default (props) => {
30 30
 
31 31
   const [checkImage, setCheckImage] = useState(false)
32 32
 
33
-  const [InputPhoneValue, setInputPhoneValue] = useState('18082043755')
34
-  const [InputCodeValue, setInputCodeValue] = useState('375501')
33
+  const [InputPhoneValue, setInputPhoneValue] = useState('')
34
+  const [InputCodeValue, setInputCodeValue] = useState('')
35 35
   const [myClosures, setMyClosure] = useState(false)
36 36
 
37 37
   useEffect(() => {
@@ -111,7 +111,8 @@ export default (props) => {
111 111
       } else {
112 112
         setUserPhone(person.personId, { captcha: InputCodeValue, phone: InputPhoneValue }).then((e) => {
113 113
           console.log('e', e);
114
-          setPerson({ ...person, phone: InputPhoneValue })
114
+
115
+          setPerson(e.person)
115 116
           // Taro.navigateTo({ url: path });
116 117
           if (loginType) {
117 118
             Taro.navigateBack({