Commit 4a451cba cgx

优化官方动态不能置顶问题

1 个父辈 039ada3f
......@@ -132,6 +132,8 @@
cell.showAllContentBlock = ^{
[weakSelf.comListVM showOfficialAllContent];
[weakSelf.listView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationFade];
NSIndexPath *scrollIndexPath = [NSIndexPath indexPathForRow:0 inSection:0];
[weakSelf.listView scrollToRowAtIndexPath:scrollIndexPath atScrollPosition:UITableViewScrollPositionMiddle animated:YES];
};
return cell;
} else {
......
......@@ -27,7 +27,7 @@
NSString *api = @"query_user_dynamic_praise";
NSString *argStr = [NSString stringWithFormat:@"query{%@(offset:%d)}", api, offset];
return [PraiseListViewModel httpPostBodyRequestWithAPI:api params:@{@"query" : argStr} view:nil hasNetActivity:YES loadingInfo:nil hasFailInfo:NO success:^(NSDictionary * _Nonnull apiDic) {
DSLog(@"社区动态消息中心接口apiDic:%@", apiDic);
DSLog(@"查询用户点赞列表数据接口apiDic:%@", apiDic);
ResultModel *resultModel = [ResultModel yy_modelWithDictionary:apiDic[@"result"]];
viewModel.resCode = DSResCodeSuccess;
viewModel.resultArr = resultModel.data_list;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!