From 4f6dd68954969196ad1c6285ab0e664f58e952b1 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Thu, 31 Aug 2023 00:08:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=A8=E7=BA=BF=E8=A7=82=E7=9C=8B?= =?UTF-8?q?=E4=BA=BA=E6=95=B0=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/video/detail/introduction/controller.dart | 4 ++-- lib/pages/video/detail/introduction/view.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pages/video/detail/introduction/controller.dart b/lib/pages/video/detail/introduction/controller.dart index 5a548607..5d5f3d7f 100644 --- a/lib/pages/video/detail/introduction/controller.dart +++ b/lib/pages/video/detail/introduction/controller.dart @@ -55,7 +55,7 @@ class VideoIntroController extends GetxController { // 同时观看 bool isShowOnlineTotal = false; - RxInt totel = 1.obs; + RxString total = '1'.obs; Timer? timer; bool isPaused = false; @@ -473,7 +473,7 @@ class VideoIntroController extends GetxController { cid: lastPlayCid.value, ); if (result['status']) { - totel.value = int.parse(result['data']['total']); + total.value = result['data']['total']; } } diff --git a/lib/pages/video/detail/introduction/view.dart b/lib/pages/video/detail/introduction/view.dart index a0fa0b9e..410c14c6 100644 --- a/lib/pages/video/detail/introduction/view.dart +++ b/lib/pages/video/detail/introduction/view.dart @@ -312,7 +312,7 @@ class _VideoInfoState extends State with TickerProviderStateMixin { if (videoIntroController.isShowOnlineTotal) Obx( () => Text( - '${videoIntroController.totel.value}人在看', + '${videoIntroController.total.value}人在看', style: TextStyle( fontSize: 12, color: t.colorScheme.outline,