Files
peko-ios/YuMi/Modules/YMMine/View/VisitorListViewController.m
2025-03-21 16:19:07 +08:00

77 lines
1.8 KiB
Objective-C

//
// VisitorListViewController.m
// YuMi
//
// Created by P on 2025/3/18.
//
#import "VisitorListViewController.h"
#import "XPMineVisitorPresenter.h"
@interface VisitorListCell : UITableViewCell
@property(nonatomic, strong) NetImageView *avatarImageView;
@property(nonatomic, strong) UILabel *nameLabel;
@property(nonatomic, strong) NetImageView *regionImageView;
@property(nonatomic, strong) NetImageView *charmImageView;
@property(nonatomic, strong) NetImageView *experImageView;
@property(nonatomic, strong) NetImageView *nameplateImageView;
@property(nonatomic, strong) UILabel *idLabel;
@property(nonatomic, strong) UILabel *descriptionLabel;
@end
@implementation VisitorListCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
}
return self;
}
@end
@interface VisitorListViewController ()
@property(nonatomic, strong) UITableView *listTableView;
@property(nonatomic, strong) UIVisualEffectView *visualEffectView;
@end
@implementation VisitorListViewController
- (__kindof id)presenter {
return [[XPMineVisitorPresenter alloc] init];
}
- (void)viewDidLoad {
[super viewDidLoad];
}
#pragma mark -
- (UITableView *)listTableView {
if (!_listTableView) {
_listTableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
}
return _listTableView;
}
- (UIImageView *)lockImageView {
return [[UIImageView alloc] initWithImage:kImage(@"visitor_lock")];
}
- (UILabel *)lockTipsLabel {
return [UILabel labelInitWithText:YMLocalizedString(@"20.20.51_text_25") font:kFontMedium(14) textColor:UIColorFromRGB(0x313131)];
}
- (UIButton *)lockToVipButton {
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
return button;
}
@end