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), ), ), ),