refactor(frontend): replace '手机号' with '账号' in send shares page

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-19 04:54:24 -08:00
parent 71a9961f94
commit e098cd44f6
1 changed files with 6 additions and 6 deletions

View File

@ -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(