feat: 修改id和sn显示
This commit is contained in:
parent
920b86e56a
commit
a884e6c838
@ -69,8 +69,12 @@ class HIUserInfoView extends GetView<HIUserInfoController> {
|
|||||||
children: [
|
children: [
|
||||||
Obx(() {
|
Obx(() {
|
||||||
final account = KRAppRunData.getInstance().kr_account.value;
|
final account = KRAppRunData.getInstance().kr_account.value;
|
||||||
|
final isDeviceLogin = account != null && account.startsWith('9000');
|
||||||
|
|
||||||
|
if (isDeviceLogin) return const SizedBox();
|
||||||
|
|
||||||
return Text(
|
return Text(
|
||||||
(account != null && account.isNotEmpty) ? account : '未绑定',
|
account ?? '',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 20.sp,
|
fontSize: 20.sp,
|
||||||
@ -433,7 +437,7 @@ class HIUserInfoView extends GetView<HIUserInfoController> {
|
|||||||
),
|
),
|
||||||
SizedBox(height: 4.h),
|
SizedBox(height: 4.h),
|
||||||
Text(
|
Text(
|
||||||
'ID: ${identifier.substring(0, identifier.length > 4 ? 4 : identifier.length)}$id',
|
'SN: ${identifier.substring(0, identifier.length > 4 ? 4 : identifier.length)}$id',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white.withOpacity(0.9),
|
color: Colors.white.withOpacity(0.9),
|
||||||
fontSize: 10.sp,
|
fontSize: 10.sp,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user