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: [ children: [
const SizedBox(height: 16), const SizedBox(height: 16),
// //
_buildRecipientSection(transferState), _buildRecipientSection(transferState),
const SizedBox(height: 16), const SizedBox(height: 16),
@ -110,7 +110,7 @@ class _SendSharesPageState extends ConsumerState<SendSharesPage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
const Text( const Text(
'收款方手机', '收款方',
style: TextStyle( style: TextStyle(
fontSize: 16, fontSize: 16,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
@ -127,7 +127,7 @@ class _SendSharesPageState extends ConsumerState<SendSharesPage> {
maxLength: 11, maxLength: 11,
inputFormatters: [FilteringTextInputFormatter.digitsOnly], inputFormatters: [FilteringTextInputFormatter.digitsOnly],
decoration: InputDecoration( decoration: InputDecoration(
hintText: '请输入收款方手机', hintText: '请输入收款方',
hintStyle: const TextStyle(color: _grayText), hintStyle: const TextStyle(color: _grayText),
filled: true, filled: true,
fillColor: _bgGray, fillColor: _bgGray,
@ -436,7 +436,7 @@ class _SendSharesPageState extends ConsumerState<SendSharesPage> {
), ),
SizedBox(height: 8), SizedBox(height: 8),
Text( Text(
'1. 转账前请确认收款方手机号正确\n2. 积分值转账不可撤销,请谨慎操作\n3. 转账后将从您的可用积分值中扣除', '1. 转账前请确认收款方号正确\n2. 积分值转账不可撤销,请谨慎操作\n3. 转账后将从您的可用积分值中扣除',
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
color: _grayText, color: _grayText,
@ -453,14 +453,14 @@ class _SendSharesPageState extends ConsumerState<SendSharesPage> {
if (phone.length != 11) { if (phone.length != 11) {
ScaffoldMessenger.of(context).showSnackBar( ScaffoldMessenger.of(context).showSnackBar(
const SnackBar( const SnackBar(
content: Text('请输入正确的11位手机'), content: Text('请输入正确的11位'),
backgroundColor: _red, backgroundColor: _red,
), ),
); );
return; return;
} }
// //
final user = ref.read(userNotifierProvider); final user = ref.read(userNotifierProvider);
if (phone == user.phone) { if (phone == user.phone) {
ScaffoldMessenger.of(context).showSnackBar( ScaffoldMessenger.of(context).showSnackBar(