fix(withdraw): 修改提款页面文字并暂时屏蔽BSC网络
- 屏蔽 BSC (BNB Chain) 网络选项 - "提款地址" → "接收地址" - "请输入 KAVA 或 EVM 地址" → "请输入接收积分的地址" - "提款金额" → "积分提取数量" - "请输入提款金额" → "请输入积分数量" - "最小提款金额" → "最小提取数量" - 注意事项中的"提款"改为"提取" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
a7417be0e1
commit
a81aaa6acd
|
|
@ -131,7 +131,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
||||||
|
|
||||||
// 验证地址
|
// 验证地址
|
||||||
if (address.isEmpty) {
|
if (address.isEmpty) {
|
||||||
_showErrorSnackBar('请输入提款地址');
|
_showErrorSnackBar('请输入接收地址');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -143,7 +143,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
||||||
|
|
||||||
// 验证金额
|
// 验证金额
|
||||||
if (amountText.isEmpty) {
|
if (amountText.isEmpty) {
|
||||||
_showErrorSnackBar('请输入提款金额');
|
_showErrorSnackBar('请输入积分数量');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -154,7 +154,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (amount < _minAmount) {
|
if (amount < _minAmount) {
|
||||||
_showErrorSnackBar('最小提款金额为 $_minAmount 积分');
|
_showErrorSnackBar('最小提取数量为 $_minAmount 积分');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -458,8 +458,9 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
||||||
),
|
),
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
_buildNetworkOption(WithdrawNetwork.kava),
|
_buildNetworkOption(WithdrawNetwork.kava),
|
||||||
const SizedBox(height: 12),
|
// TODO: BSC 网络暂时屏蔽,待开放后取消注释
|
||||||
_buildNetworkOption(WithdrawNetwork.bsc),
|
// const SizedBox(height: 12),
|
||||||
|
// _buildNetworkOption(WithdrawNetwork.bsc),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -541,7 +542,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
const Text(
|
const Text(
|
||||||
'提款地址',
|
'接收地址',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
|
|
@ -578,9 +579,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
contentPadding: const EdgeInsets.all(16),
|
contentPadding: const EdgeInsets.all(16),
|
||||||
border: InputBorder.none,
|
border: InputBorder.none,
|
||||||
hintText: _selectedNetwork == WithdrawNetwork.kava
|
hintText: '请输入接收积分的地址',
|
||||||
? '请输入 KAVA 或 EVM 地址'
|
|
||||||
: '请输入 BSC 地址 (0x...)',
|
|
||||||
hintStyle: const TextStyle(
|
hintStyle: const TextStyle(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
|
|
@ -611,7 +610,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
const Text(
|
const Text(
|
||||||
'提款金额',
|
'积分提取数量',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
|
|
@ -668,7 +667,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
contentPadding: EdgeInsets.all(16),
|
contentPadding: EdgeInsets.all(16),
|
||||||
border: InputBorder.none,
|
border: InputBorder.none,
|
||||||
hintText: '请输入提款金额',
|
hintText: '请输入积分数量',
|
||||||
hintStyle: TextStyle(
|
hintStyle: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
|
|
@ -687,7 +686,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
Text(
|
Text(
|
||||||
'最小提款金额: $_minAmount 积分',
|
'最小提取数量: $_minAmount 积分',
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
|
|
@ -835,10 +834,10 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
_buildNoticeItem('请确保提款地址正确,错误地址将导致资产丢失'),
|
_buildNoticeItem('请确保接收地址正确,错误地址将导致资产丢失'),
|
||||||
_buildNoticeItem('请选择正确的网络,不同网络之间不可互转'),
|
_buildNoticeItem('请选择正确的网络,不同网络之间不可互转'),
|
||||||
_buildNoticeItem('提款需要进行谷歌验证器验证'),
|
_buildNoticeItem('提取需要进行谷歌验证器验证'),
|
||||||
_buildNoticeItem('提款通常在 1-30 分钟内到账'),
|
_buildNoticeItem('提取通常在 1-30 分钟内到账'),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue