fix: 转发动态点击、动态详情页加tag
This commit is contained in:
@ -162,9 +162,6 @@ class DynamicsController extends GetxController {
|
|||||||
/// 纯文字动态查看
|
/// 纯文字动态查看
|
||||||
case 'DYNAMIC_TYPE_WORD':
|
case 'DYNAMIC_TYPE_WORD':
|
||||||
print('纯文本');
|
print('纯文本');
|
||||||
if (item.modules.moduleDynamic.major.draw == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Get.toNamed('/dynamicDetail',
|
Get.toNamed('/dynamicDetail',
|
||||||
arguments: {'item': item, 'floor': floor});
|
arguments: {'item': item, 'floor': floor});
|
||||||
break;
|
break;
|
||||||
|
@ -38,15 +38,25 @@ class _DynamicDetailPageState extends State<DynamicDetailPage> {
|
|||||||
// floor 1原创 2转发
|
// floor 1原创 2转发
|
||||||
if (Get.arguments['floor'] == 1) {
|
if (Get.arguments['floor'] == 1) {
|
||||||
oid = int.parse(Get.arguments['item'].basic!['comment_id_str']);
|
oid = int.parse(Get.arguments['item'].basic!['comment_id_str']);
|
||||||
|
print(oid);
|
||||||
} else {
|
} else {
|
||||||
oid = Get.arguments['item'].modules.moduleDynamic.major.draw.id;
|
try {
|
||||||
|
String type = Get.arguments['item'].modules.moduleDynamic.major.type;
|
||||||
|
|
||||||
|
/// TODO
|
||||||
|
if (type == 'MAJOR_TYPE_OPUS') {
|
||||||
|
} else {
|
||||||
|
oid = Get.arguments['item'].modules.moduleDynamic.major.draw.id;
|
||||||
|
}
|
||||||
|
} catch (_) {}
|
||||||
}
|
}
|
||||||
int commentType = Get.arguments['item'].basic!['comment_type'] ?? 11;
|
int commentType = Get.arguments['item'].basic!['comment_type'] ?? 11;
|
||||||
type = (commentType == 0) ? 11 : commentType;
|
type = (commentType == 0) ? 11 : commentType;
|
||||||
|
|
||||||
action =
|
action =
|
||||||
Get.arguments.containsKey('action') ? Get.arguments['action'] : null;
|
Get.arguments.containsKey('action') ? Get.arguments['action'] : null;
|
||||||
_dynamicDetailController = Get.put(DynamicDetailController(oid, type));
|
_dynamicDetailController =
|
||||||
|
Get.put(DynamicDetailController(oid, type), tag: oid.toString());
|
||||||
_futureBuilderFuture = _dynamicDetailController!.queryReplyList();
|
_futureBuilderFuture = _dynamicDetailController!.queryReplyList();
|
||||||
titleStreamC = StreamController<bool>();
|
titleStreamC = StreamController<bool>();
|
||||||
scrollController.addListener(_listen);
|
scrollController.addListener(_listen);
|
||||||
|
Reference in New Issue
Block a user