From 6026d17b6c8a87437eb4f6d12858684c0904c017 Mon Sep 17 00:00:00 2001 From: lxm <1274844347@qq.com> Date: Thu, 1 Jan 2026 14:56:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor(agent=5Fview):=20=E6=9B=BF=E6=8D=A2VIP?= =?UTF-8?q?=E8=BF=87=E6=9C=9F=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA=E4=B8=BA?= =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E7=8A=B6=E6=80=81=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/modules/agent/views/agent_view.dart | 50 ++++++++++++++----------- 1 file changed, 29 insertions(+), 21 deletions(-) diff --git a/lib/modules/agent/views/agent_view.dart b/lib/modules/agent/views/agent_view.dart index cfe91e808..03b237d94 100644 --- a/lib/modules/agent/views/agent_view.dart +++ b/lib/modules/agent/views/agent_view.dart @@ -120,27 +120,35 @@ class _AgentViewState extends State with WidgetsBindingObserver { ), ), SizedBox(width: 4.w), - Obx(() { - final vipexptime = controller.vipExpiryTime.value; - DateTime? expiry; - if (vipexptime > 0) { - expiry = vipexptime > 1000000000000 - ? DateTime.fromMillisecondsSinceEpoch(vipexptime) - : DateTime.fromMillisecondsSinceEpoch( - vipexptime * 1000); - } - final text = expiry != null - ? '${'expiryLabel'.tr}${DateFormat('yyyy-MM-dd').format(expiry)}' - : 'notActivated'.tr; - return Text( - text, - style: TextStyle( - fontSize: 12.sp, - color: Colors.green, - fontWeight: FontWeight.w500, - ), - ); - }), + Text( + 'online'.tr, + style: TextStyle( + fontSize: 12.sp, + color: Colors.green, + fontWeight: FontWeight.w500, + ), + ), + // Obx(() { + // final vipexptime = controller.vipExpiryTime.value; + // DateTime? expiry; + // if (vipexptime > 0) { + // expiry = vipexptime > 1000000000000 + // ? DateTime.fromMillisecondsSinceEpoch(vipexptime) + // : DateTime.fromMillisecondsSinceEpoch( + // vipexptime * 1000); + // } + // final text = expiry != null + // ? '${'expiryLabel'.tr}${DateFormat('yyyy-MM-dd').format(expiry)}' + // : 'notActivated'.tr; + // return Text( + // text, + // style: TextStyle( + // fontSize: 12.sp, + // color: Colors.green, + // fontWeight: FontWeight.w500, + // ), + // ); + // }), ], ), ],