feat: 观看记录查询
This commit is contained in:
@ -41,18 +41,22 @@ class VideoDetailController extends GetxController {
|
||||
videoItem['pic'] = args.pic;
|
||||
}
|
||||
}
|
||||
if (Get.arguments.containsKey('pic')) {
|
||||
videoItem['pic'] = Get.arguments['pic'];
|
||||
}
|
||||
heroTag = Get.arguments['heroTag'];
|
||||
}
|
||||
}
|
||||
|
||||
showReplyReplyPanel() {
|
||||
PersistentBottomSheetController<void>? ctr = scaffoldKey.currentState?.showBottomSheet<void>((BuildContext context) {
|
||||
PersistentBottomSheetController<void>? ctr =
|
||||
scaffoldKey.currentState?.showBottomSheet<void>((BuildContext context) {
|
||||
return VideoReplyReplyPanel(
|
||||
oid: oid,
|
||||
rpid: fRpid,
|
||||
closePanel: ()=> {
|
||||
closePanel: () => {
|
||||
fRpid = 0,
|
||||
},
|
||||
},
|
||||
firstFloor: firstFloor,
|
||||
);
|
||||
});
|
||||
|
||||
@ -380,11 +380,18 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
||||
duration: const Duration(milliseconds: 150),
|
||||
child: SizedBox(
|
||||
height: 36,
|
||||
child: Obx(()=>
|
||||
videoIntroController.followStatus.isNotEmpty ? ElevatedButton(
|
||||
onPressed: () => videoIntroController.actionRelationMod(),
|
||||
child: Text(videoIntroController.followStatus['attribute'] == 0 ? '关注' : '已关注'),
|
||||
) : const SizedBox(),
|
||||
child: Obx(
|
||||
() => videoIntroController.followStatus.isNotEmpty
|
||||
? ElevatedButton(
|
||||
onPressed: () => videoIntroController
|
||||
.actionRelationMod(),
|
||||
child: Text(videoIntroController
|
||||
.followStatus['attribute'] ==
|
||||
0
|
||||
? '关注'
|
||||
: '已关注'),
|
||||
)
|
||||
: const SizedBox(),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@ -45,7 +45,7 @@ class VideoReplyController extends GetxController {
|
||||
if (res['data'].replies.isNotEmpty) {
|
||||
currentPage = currentPage + 1;
|
||||
noMore.value = '加载中';
|
||||
if(res['data'].page.count == res['data'].page.acount){
|
||||
if (res['data'].page.count == res['data'].page.acount) {
|
||||
noMore.value = '没有更多了';
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user