添加 getKycInfo,尚未成功。取消commit时的tslint要求
This commit is contained in:
@@ -60,6 +60,13 @@ const model: Model = {
|
||||
setLocale(lang, false);
|
||||
yield put({ type: 'onUpdateState', payload: { lang } });
|
||||
},
|
||||
|
||||
*getKycInfo (_, { get }) {
|
||||
// const data = await http.post('/user/verify', formData);
|
||||
// yield get({type: 'user/verifyInfo'})
|
||||
console.info('inside getKycInfo')
|
||||
|
||||
},
|
||||
},
|
||||
|
||||
reducers: {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Routes:
|
||||
* - ./src/pages/routes
|
||||
*/
|
||||
import React, { useState } from 'react';
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { connect, DispatchProp, routerRedux } from 'dva';
|
||||
import { formatMessage } from 'umi-plugin-locale';
|
||||
import { Button, Modal, Input, Select } from 'antd';
|
||||
@@ -56,6 +56,11 @@ const IdentityPage: React.FC<DispatchProp & UserModelState & IdentityModelState>
|
||||
const [realname, setRealname] = useState();
|
||||
const [idNo, setIdNo] = useState();
|
||||
|
||||
useEffect( () => {
|
||||
console.info('实名认证中')
|
||||
dispatch({ type: 'user/getKycInfo'})
|
||||
}, []);
|
||||
|
||||
const preview = (type) => {
|
||||
const pic1 = picCover.current;
|
||||
const pic2 = picBack.current;
|
||||
|
||||
Reference in New Issue
Block a user