feat: 原网页查看专栏

This commit is contained in:
guozhigq
2024-10-03 16:30:47 +08:00
parent 09d8980001
commit 0654f601f4
6 changed files with 37 additions and 18 deletions

View File

@ -39,6 +39,7 @@ class OpusController extends GetxController {
'articleType': 'cv',
});
} else {
title.value = res['data'].detail!.basic!.title!;
opusData.value = res['data'];
}
}
@ -91,6 +92,15 @@ class OpusController extends GetxController {
);
}
// 跳转webview
void onJumpWebview() {
Get.toNamed('/webview', parameters: {
'url': url,
'type': 'webview',
'pageTitle': title.value,
});
}
@override
void onClose() {
scrollController.removeListener(_scrollListener);