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: [
|
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(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue