refactor(frontend): replace '手机号' with '账号' in send shares page
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
71a9961f94
commit
e098cd44f6
|
|
@ -70,7 +70,7 @@ class _SendSharesPageState extends ConsumerState<SendSharesPage> {
|
|||
children: [
|
||||
const SizedBox(height: 16),
|
||||
|
||||
// 收款方手机号
|
||||
// 收款方账号
|
||||
_buildRecipientSection(transferState),
|
||||
|
||||
const SizedBox(height: 16),
|
||||
|
|
@ -110,7 +110,7 @@ class _SendSharesPageState extends ConsumerState<SendSharesPage> {
|
|||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Text(
|
||||
'收款方手机号',
|
||||
'收款方账号',
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.bold,
|
||||
|
|
@ -127,7 +127,7 @@ class _SendSharesPageState extends ConsumerState<SendSharesPage> {
|
|||
maxLength: 11,
|
||||
inputFormatters: [FilteringTextInputFormatter.digitsOnly],
|
||||
decoration: InputDecoration(
|
||||
hintText: '请输入收款方手机号',
|
||||
hintText: '请输入收款方账号',
|
||||
hintStyle: const TextStyle(color: _grayText),
|
||||
filled: true,
|
||||
fillColor: _bgGray,
|
||||
|
|
@ -436,7 +436,7 @@ class _SendSharesPageState extends ConsumerState<SendSharesPage> {
|
|||
),
|
||||
SizedBox(height: 8),
|
||||
Text(
|
||||
'1. 转账前请确认收款方手机号正确\n2. 积分值转账不可撤销,请谨慎操作\n3. 转账后将从您的可用积分值中扣除',
|
||||
'1. 转账前请确认收款方账号正确\n2. 积分值转账不可撤销,请谨慎操作\n3. 转账后将从您的可用积分值中扣除',
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
color: _grayText,
|
||||
|
|
@ -453,14 +453,14 @@ class _SendSharesPageState extends ConsumerState<SendSharesPage> {
|
|||
if (phone.length != 11) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(
|
||||
content: Text('请输入正确的11位手机号'),
|
||||
content: Text('请输入正确的11位账号'),
|
||||
backgroundColor: _red,
|
||||
),
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
// 检查是否是自己的手机号
|
||||
// 检查是否是自己的账号
|
||||
final user = ref.read(userNotifierProvider);
|
||||
if (phone == user.phone) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
|
|
|
|||
Loading…
Reference in New Issue