From 882e848431eeb6bb3cc29fe8b7a0b41fc83d7ed9 Mon Sep 17 00:00:00 2001 From: czz <862977248@qq.com> Date: Thu, 24 Jul 2025 15:52:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main.dart | 12 ++++++++++-- lib/pages/mh_page/apply_repair_page.dart | 2 +- lib/pages/mh_page/new_mine_page.dart | 10 ++++------ 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index c2fcb1a..0c37553 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -166,7 +166,15 @@ Timer? _messageTimer; // } void startMessagePolling(String selectapp) { _messageTimer?.cancel(); - + if (selectapp == 'mht') { + if (Get.isRegistered()) { + Get.find().getMessageStatus(); + } + } else { + if (Get.isRegistered()) { + Get.find().getMessageStatus(); + } + } _messageTimer = Timer.periodic(Duration(seconds: 10), (timer) async { try { if (selectapp == 'mht') { @@ -341,7 +349,7 @@ class MyApp extends StatelessWidget { GlobalWidgetsLocalizations.delegate, GlobalCupertinoLocalizations.delegate, ], - locale: Locale('zh', 'CN'), // 设置默认语言为中文 + locale: Locale('zh', 'CN'), // 设置默认语言为中文 supportedLocales: [ Locale('en', 'US'), Locale('zh', 'CN'), diff --git a/lib/pages/mh_page/apply_repair_page.dart b/lib/pages/mh_page/apply_repair_page.dart index 5c84d81..3d2db80 100644 --- a/lib/pages/mh_page/apply_repair_page.dart +++ b/lib/pages/mh_page/apply_repair_page.dart @@ -1536,7 +1536,7 @@ class ApplyRepairPage extends GetView { color: Colors.white, fontSize: 30.rpx, letterSpacing: 0, - fontWeight: FontWeight.w600, + ), ), ), diff --git a/lib/pages/mh_page/new_mine_page.dart b/lib/pages/mh_page/new_mine_page.dart index a502b15..e12f0d7 100644 --- a/lib/pages/mh_page/new_mine_page.dart +++ b/lib/pages/mh_page/new_mine_page.dart @@ -117,16 +117,14 @@ class _MinePageState extends State { if (messageController.model.body_message_read == 1 || messageController.model.system_message_read == 1) Positioned( - top: -4.rpx, - right: -4.rpx, + top: 4.rpx, + right: -10.rpx, child: Container( - width: 14.rpx, - height: 14.rpx, + width: 12.rpx, + height: 12.rpx, decoration: BoxDecoration( color: Colors.red, shape: BoxShape.circle, - border: Border.all( - color: Colors.white, width: 2.rpx), ), ), ),