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,