This commit is contained in:
启星
2025-11-28 22:43:06 +08:00
parent 8913ea6f48
commit 7eb4f8d3b8
197 changed files with 7315 additions and 666 deletions

View File

@@ -8,9 +8,10 @@
#import "QXSystemNoticeViewController.h"
#import "QXSystemNoticeCell.h"
#import "QXSystemMessageCell.h"
#import "QXSystemMessageHandleCell.h"
#import "QXMessageServices.h"
#import "AppDelegate.h"
@interface QXSystemNoticeViewController ()<UITableViewDataSource,UITableViewDelegate>
@interface QXSystemNoticeViewController ()<UITableViewDataSource,UITableViewDelegate,QXSystemMessageHandleCellDelegate>
@property (nonatomic,strong)UITableView *tableView;
@property (nonatomic,assign)CGFloat rowHeight;
@end
@@ -78,12 +79,22 @@
cell.model = self.dataArray[indexPath.row];
return cell;
}else{
QXSystemMessageCell *cell = [QXSystemMessageCell cellWithTableView:tableView];
cell.model = self.dataArray[indexPath.row];
return cell;
QXMessageListModel *model = self.dataArray[indexPath.row];
if (model.type.intValue == 6) {
QXSystemMessageHandleCell *cell = [QXSystemMessageHandleCell cellWithTableView:tableView];
cell.model = model;
cell.delegate = self;
return cell;
}else{
QXSystemMessageCell *cell = [QXSystemMessageCell cellWithTableView:tableView];
cell.model = model;
return cell;
}
}
}
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
QXMessageListModel *model = self.dataArray[indexPath.row];
if (model.room_id.integerValue > 0) {
@@ -97,13 +108,22 @@
}
}
-(void)handleInviteIsAgree:(BOOL)isAgree message:(nonnull QXMessageListModel *)message{
MJWeakSelf
[QXMessageServices guildInviteApplyHandleWithApplyId:message.id type:isAgree?@"1":@"2" successBlock:^(NSDictionary * _Nonnull dict) {
showToast(@"操作成功");
weakSelf.page = 1;
[weakSelf getMessageList];
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
showToast(msg);
}];
}
-(UITableView *)tableView{
if (!_tableView) {
_tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, NavContentHeight, SCREEN_WIDTH, SCREEN_HEIGHT-NavContentHeight) style:(UITableViewStylePlain)];
_tableView.dataSource = self;
_tableView.delegate = self;
_tableView.backgroundColor = [UIColor clearColor];
_tableView.rowHeight = 60;
_tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
_tableView.rowHeight = UITableViewAutomaticDimension;
_tableView.estimatedRowHeight = self.rowHeight;