opt: video pic showing

This commit is contained in:
bggRGjQaUbCoE
2024-09-03 18:05:42 +08:00
parent e4d97ace6a
commit f576e17b79
6 changed files with 56 additions and 31 deletions

View File

@@ -114,11 +114,15 @@ class VideoIntroController extends GetxController {
queryVideoIntro();
}
late final videoDetailController =
Get.find<VideoDetailController>(tag: heroTag);
// 获取视频简介&分p
void queryVideoIntro() async {
var result = await VideoHttp.videoIntro(bvid: bvid);
if (result['status']) {
videoDetail.value = result['data']!;
videoDetailController.videoItem['pic'] = result['pic']!;
if (videoDetail.value.pages != null &&
videoDetail.value.pages!.isNotEmpty &&
lastPlayCid.value == 0) {