优化
This commit is contained in:
@@ -236,7 +236,9 @@ const Withdrawal: React.FC = () => {
|
||||
}
|
||||
}
|
||||
const handlePopupClick = (e) => {
|
||||
e.stopPropagation();
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
e.nativeEvent.stopImmediatePropagation()
|
||||
inputRef.current!.focus();
|
||||
};
|
||||
return (
|
||||
@@ -245,7 +247,7 @@ const Withdrawal: React.FC = () => {
|
||||
<Text className="title-text">提现金额</Text>
|
||||
<View className="input-container">
|
||||
<Text className="symbol">¥</Text>
|
||||
<Input type="digit" placeholder="0.00" cursorColor="#000" adjustPosition={false} value={inputValue} onInput={handleInput} />
|
||||
<Input type="digit" placeholder="0.00" cursorColor="#000" value={inputValue} onInput={handleInput} />
|
||||
{
|
||||
!showTips && (Number(inputValue) !== 0) && (
|
||||
<Button className="btn" onClick={handleWithdraw}>提现</Button>
|
||||
@@ -308,7 +310,7 @@ const Withdrawal: React.FC = () => {
|
||||
))
|
||||
}
|
||||
</View>
|
||||
<Input holdKeyboard={true} ref={inputRef} focus={isFocus} type="number" adjustPosition={false} style={{ width: "0", height: "0", opacity: "0" }} value={password.filter(item => item !== "").join("")} maxlength={6} onInput={handlePasswordInput} />
|
||||
<Input holdKeyboard={true} ref={inputRef} focus={isFocus} type="number" adjustPosition={false} style={{ width: "0", height: "0", opacity: "0" }} value={password.filter(item => item !== "").join("")} maxlength={6} onInput={handlePasswordInput} onBlur={() => {set_show_withdraw_popup(false)}} />
|
||||
</View>
|
||||
</CommonPopup>
|
||||
</View >
|
||||
|
||||
Reference in New Issue
Block a user