Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
appframe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit e732a20e
authored
2025-12-11 09:07:01 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
手机号脱敏显示
1 parent
fc5a9772
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
lib/ui/pages/setting/account_page.dart
lib/ui/pages/setting/account_phone_page.dart
lib/ui/pages/setting/account_page.dart
View file @
e732a20
...
@@ -63,7 +63,7 @@ class AccountPage extends StatelessWidget {
...
@@ -63,7 +63,7 @@ class AccountPage extends StatelessWidget {
leading:
Icon
(
Icons
.
mobile_friendly
),
leading:
Icon
(
Icons
.
mobile_friendly
),
title:
Text
(
'手机号绑定'
),
title:
Text
(
'手机号绑定'
),
subtitle:
Text
(
subtitle:
Text
(
state
.
phone
!=
''
?
state
.
phone
:
'未绑定'
,
state
.
phone
!=
''
?
'
${state.phone.substring(0, 3)}
****
${state.phone.substring(7, 11)}
'
:
'未绑定'
,
style:
TextStyle
(
style:
TextStyle
(
fontSize:
14.0
,
fontSize:
14.0
,
color:
Colors
.
grey
,
color:
Colors
.
grey
,
...
...
lib/ui/pages/setting/account_phone_page.dart
View file @
e732a20
...
@@ -27,13 +27,13 @@ class AccountPhonePage extends StatelessWidget {
...
@@ -27,13 +27,13 @@ class AccountPhonePage extends StatelessWidget {
color:
Colors
.
white
,
// 设置返回图标按钮的颜色
color:
Colors
.
white
,
// 设置返回图标按钮的颜色
),
),
),
),
body:
state
.
phone
=
=
''
body:
state
.
phone
!
=
''
?
Center
(
?
Center
(
child:
Column
(
children:
[
child:
Column
(
children:
[
SizedBox
(
height:
120
),
SizedBox
(
height:
120
),
Text
(
'已绑定手机号'
),
Text
(
'已绑定手机号'
),
Text
(
Text
(
state
.
phone
,
'
${state.phone.substring(0, 3)}
****
${state.phone.substring(7, 11)}
'
,
style:
TextStyle
(
style:
TextStyle
(
fontSize:
18.0
,
fontSize:
18.0
,
fontWeight:
FontWeight
.
bold
,
fontWeight:
FontWeight
.
bold
,
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment