This commit is contained in:
启星
2025-08-11 17:02:47 +08:00
parent b5ce3d580a
commit c48a8365ef
10 changed files with 73 additions and 70 deletions

View File

@@ -103,6 +103,10 @@
return cell;
}
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
if (!QXGlobal.shareGlobal.isLogin) {
[[QXGlobal shareGlobal] logOut];
return;
}
QXDynamicModel *model = self.dataArray[indexPath.row];
QXDynamicDetailViewController *vc = [[QXDynamicDetailViewController alloc] init];
vc.model = model;
@@ -120,6 +124,10 @@
return cell;
}
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{
if (!QXGlobal.shareGlobal.isLogin) {
[[QXGlobal shareGlobal] logOut];
return;
}
QXTopicModel *model = self.hotTopicArray[indexPath.row];
QXToppicDynamicViewController *vc = [[QXToppicDynamicViewController alloc] init];
vc.model = model;