feat(提现页面): 处理阿语系统手机将数字转为了阿语的问题

This commit is contained in:
hzj 2026-02-12 18:28:17 +08:00
parent 3d21f5e870
commit 2262fa83f5
3 changed files with 9 additions and 11 deletions

View File

@ -198,9 +198,6 @@
>
<input
v-model="rechargeAmount"
type="number"
min="1"
step="1"
:placeholder="t('enter_recharge_amount')"
class="amount-input"
@input="preventDecimalInput"
@ -445,15 +442,20 @@ const Confirm = () => {
//
const preventDecimalInput = (event) => {
let value = event.target.value
//
event.target.value = event.target.value.replace(/[^0-9]/g, '')
value = value.replace(/[^0-9]/g, '')
// 1
if (event.target.value === '' || parseInt(event.target.value) < 1) {
event.target.value = ''
if (value === '' || parseInt(value) < 1) {
value = ''
}
rechargeAmount.value = event.target.value
//
event.target.value = value
rechargeAmount.value = parseFloat(value) || 0
}
//

View File

@ -301,8 +301,6 @@
<!-- 输入提现金额 -->
<div style="box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25); border-radius: 8px; padding: 12px">
<input
type="number"
min="50"
name=""
id=""
:placeholder="t('enter_cash_out_amount')"

View File

@ -653,8 +653,6 @@
<!-- 输入提现金额 -->
<div style="box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25); border-radius: 8px; padding: 12px">
<input
type="number"
min="50"
name=""
id=""
:placeholder="t('enter_cash_out_amount')"