细节优化

This commit is contained in:
2025-10-02 21:35:00 +08:00
parent 8f676b1c38
commit 33f436ea77
8 changed files with 38 additions and 18 deletions

View File

@@ -86,7 +86,7 @@ const ValidPhone: React.FC = () => {
<Input placeholder="请输入验证码" type="number" onInput={(e) => { handleInput(e, "sms_code") }}></Input>
<Button className="btn" onClick={getSMSCode}></Button>
</View>
<Button className="btn bottom-btn" disabled={!formData.sms_code} onClick={handleConfirm} style={{ bottom: isKeyboardVisible ? `${keyboardHeight + 20}px` : undefined }}></Button>
<Button className={`btn bottom-btn ${formData.sms_code === "" ? 'disabled' : ''}`} onClick={handleConfirm} style={{ bottom: isKeyboardVisible ? `${keyboardHeight + 20}px` : undefined }}></Button>
</View>
);
};