|
@@ -86,7 +86,7 @@ function App() {
|
|
|
setSucc(true)
|
|
|
setCode(res?.data?.msg)
|
|
|
} else {
|
|
|
- message.error(res?.data?.msg || '领取失败')
|
|
|
+ res?.data?.msg && message.error(res?.data?.msg || '暂无可领取的礼包')
|
|
|
}
|
|
|
})
|
|
|
};
|
|
@@ -127,6 +127,7 @@ function App() {
|
|
|
filterOption={(input, option) =>
|
|
|
(option?.label as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
}
|
|
|
+ size="large"
|
|
|
onChange={() => {
|
|
|
setIsCheckRoleSucc(false)
|
|
|
}}
|
|
@@ -136,11 +137,11 @@ function App() {
|
|
|
<Form.Item style={{ marginBottom: 40 }}>
|
|
|
<div style={{ display: 'flex', gap: 10 }}>
|
|
|
<Form.Item name="roleName" rules={[{ required: true, message: '请输入角色名!' }]} noStyle>
|
|
|
- <Input placeholder="请输入角色名" className='inputReset' onChange={() => {
|
|
|
+ <Input placeholder="请输入角色名" className='inputReset' size="large" onChange={() => {
|
|
|
setIsCheckRoleSucc(false)
|
|
|
}} />
|
|
|
</Form.Item>
|
|
|
- <Button style={{ backgroundColor: '#DFD4C5' }} onClick={handleCheckRole} loading={checkRole.loading} disabled={!(serverId && roleName)}><strong>角色名检测</strong></Button>
|
|
|
+ <Button style={{ backgroundColor: '#DFD4C5' }} onClick={handleCheckRole} size="large" loading={checkRole.loading} disabled={!(serverId && roleName)}><strong>角色名检测</strong></Button>
|
|
|
</div>
|
|
|
</Form.Item>
|
|
|
|
|
@@ -165,15 +166,15 @@ function App() {
|
|
|
}
|
|
|
]}
|
|
|
>
|
|
|
- <Input placeholder="请输入手机号" className='inputReset' disabled={!isCheckRoleSucc || !!phone} />
|
|
|
+ <Input placeholder="请输入手机号" className='inputReset' size="large" disabled={!isCheckRoleSucc || !!phone} />
|
|
|
</Form.Item>
|
|
|
|
|
|
<Form.Item style={{ marginBottom: 50 }}>
|
|
|
<div style={{ display: 'flex', gap: 10 }}>
|
|
|
<Form.Item name="randomCode" rules={[{ required: true, message: '请输入验证码!' }]} noStyle>
|
|
|
- <Input placeholder="请输入验证码" className='inputReset' disabled={!isCheckRoleSucc} />
|
|
|
+ <Input placeholder="请输入验证码" className='inputReset' size="large" disabled={!isCheckRoleSucc} />
|
|
|
</Form.Item>
|
|
|
- <Button style={{ backgroundColor: '#DFD4C5' }} disabled={!userPhone || msg !== '发送验证码'} onClick={handleSendCode}><strong>{msg === '发送验证码' ? msg : msg + 's'}</strong></Button>
|
|
|
+ <Button style={{ backgroundColor: '#DFD4C5' }} size="large" disabled={!userPhone || msg !== '发送验证码'} onClick={handleSendCode}><strong>{msg === '发送验证码' ? msg : msg + 's'}</strong></Button>
|
|
|
</div>
|
|
|
</Form.Item>
|
|
|
|