Files
yuyin_ios/SweetParty/主类/Mine/GongHui/SPGonghuiUserListCell.m
2025-08-08 11:05:33 +08:00

38 lines
1.2 KiB
Objective-C
Executable File

//
// SPGonghuiUserListCell.m
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "SPGonghuiUserListCell.h"
@implementation SPGonghuiUserListCell
- (void)awakeFromNib {
[super awakeFromNib];
}
- (void)setModel:(SPGonghuiDetailListModel *)model {
_model = model;
[self.avatarImgV sd_setImageWithURL:[NSURL URLWithString:model.head_pic] placeholderImage:kDefaultUserIcon];
self.nicknameLab.text = [NSString stringWithFormat:@"%@", model.nick_name];
self.IDLab.text = model.uid;
self.hotValue.text = model.total_gift_total_price;
}
- (IBAction)onYichu:(id)sender {
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"确定踢出该用户吗?" message:nil preferredStyle:UIAlertControllerStyleAlert];
[alert addAction:[UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
if (self.onYichuBlock) {
self.onYichuBlock();
}
}]];
[alert addAction:[UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil]];
[[self getCurrentVC] presentViewController:alert animated:YES completion:nil];
}
@end