Input不能输入,不知为何。改成 input 来支持输入。
This commit is contained in:
@@ -54,13 +54,10 @@ const IdentityPage: React.FC<DispatchProp & UserModelState & IdentityModelState>
|
|||||||
title={formatMessage({ id: 'identity.title' })}
|
title={formatMessage({ id: 'identity.title' })}
|
||||||
/>
|
/>
|
||||||
{user && <div className={styles.content}>
|
{user && <div className={styles.content}>
|
||||||
<Input
|
<input className={styles.myinput}
|
||||||
className={styles.myinput}
|
|
||||||
size="large"
|
|
||||||
placeholder={formatMessage({ id: 'identity.realname' })}
|
placeholder={formatMessage({ id: 'identity.realname' })}
|
||||||
|
name="realname"
|
||||||
value={user.realname}
|
value={user.realname}
|
||||||
name="idcode"
|
|
||||||
// onChange={e => dispatch({ type: 'identity/onUpdateState', realnameEditable: true, realnameInput: e.target.value })}
|
|
||||||
/>
|
/>
|
||||||
<AccountItem
|
<AccountItem
|
||||||
className="group"
|
className="group"
|
||||||
@@ -76,13 +73,10 @@ const IdentityPage: React.FC<DispatchProp & UserModelState & IdentityModelState>
|
|||||||
// preview={fromLangToText(lang)}
|
// preview={fromLangToText(lang)}
|
||||||
onClick={() => setIdtypesVisible(true)}
|
onClick={() => setIdtypesVisible(true)}
|
||||||
/>
|
/>
|
||||||
<Input
|
<input className={styles.myinput}
|
||||||
className={styles.myinput}
|
|
||||||
size="large"
|
|
||||||
placeholder={formatMessage({ id: 'identity.idcode' })}
|
placeholder={formatMessage({ id: 'identity.idcode' })}
|
||||||
value={user.idcode}
|
|
||||||
name="idcode"
|
name="idcode"
|
||||||
// onChange={e => dispatch({ type: 'identity/onUpdateState', nameInput: e.target.value })}
|
value={user.idcode}
|
||||||
/>
|
/>
|
||||||
<AccountItem
|
<AccountItem
|
||||||
className="group"
|
className="group"
|
||||||
|
|||||||
@@ -21,9 +21,10 @@ const model: Model = {
|
|||||||
|
|
||||||
effects: {
|
effects: {
|
||||||
*kyc1submit(_, { put, all, call, select }) {
|
*kyc1submit(_, { put, all, call, select }) {
|
||||||
// console.info('kyc1 submitting............')
|
alert('kyc1 submitting............')
|
||||||
// const { idcode } = yield select((state:any) => state.identity)
|
const { realname, idcode } = yield select((state:any) => state.identity)
|
||||||
// if (!idcode) return
|
alert('realname =' + realname)
|
||||||
|
if (!idcode) return
|
||||||
yield put({ type: 'onUpdateState', kyc1Submitting: true })
|
yield put({ type: 'onUpdateState', kyc1Submitting: true })
|
||||||
try {
|
try {
|
||||||
yield call(kyc1, {idcode:'模拟的idcode字符串', realname:'是谁呢'})
|
yield call(kyc1, {idcode:'模拟的idcode字符串', realname:'是谁呢'})
|
||||||
|
|||||||
@@ -38,6 +38,6 @@
|
|||||||
width:unset;
|
width:unset;
|
||||||
box-sizing:content-box;
|
box-sizing:content-box;
|
||||||
margin: 8px;
|
margin: 8px;
|
||||||
padding: 0 20px;
|
padding: 10px 20px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user