49 lines
1.3 KiB
Objective-C
Executable File
49 lines
1.3 KiB
Objective-C
Executable File
//
|
|
// YYPMSuccessAlert.m
|
|
// YaYin
|
|
//
|
|
// Created by bj_szd on 2023/7/12.
|
|
// Copyright © 2023 YaYin. All rights reserved.
|
|
//
|
|
|
|
#import "YYPMSuccessAlert.h"
|
|
|
|
@interface YYPMSuccessAlert ()
|
|
|
|
@end
|
|
|
|
@implementation YYPMSuccessAlert
|
|
|
|
- (void)awakeFromNib {
|
|
[super awakeFromNib];
|
|
|
|
[self createUI];
|
|
}
|
|
|
|
- (void)createUI {
|
|
WEAK_SELF
|
|
[self.touchImgV dg_Tapped:^{
|
|
[weakSelf removeFromSuperview];
|
|
}];
|
|
}
|
|
|
|
- (void)setDataDict:(NSDictionary *)dataDict {
|
|
_dataDict = dataDict;
|
|
|
|
//制作人
|
|
NSString *nick_name1 = [dataDict[@"auction_user_info"] safeStringForKey:@"nick_name"];
|
|
NSString *head_pic1 = [dataDict[@"auction_user_info"] safeStringForKey:@"head_pic"];
|
|
[self.avatarImgV_1 sd_setImageWithURL:[NSURL URLWithString:head_pic1] placeholderImage:kDefaultUserIcon];
|
|
self.nicknameLab_1.text = nick_name1;
|
|
|
|
//艺人
|
|
NSString *nick_name2 = [dataDict[@"sign_user_info"] safeStringForKey:@"nick_name"];
|
|
NSString *head_pic2 = [dataDict[@"sign_user_info"] safeStringForKey:@"head_pic"];
|
|
[self.avatarImgV_2 sd_setImageWithURL:[NSURL URLWithString:head_pic2] placeholderImage:kDefaultUserIcon];
|
|
self.nicknameLab_2.text = nick_name2;
|
|
|
|
self.resultLab.text = [NSString stringWithFormat:@"已成为%@关系", dataDict[@"relation_name"]];
|
|
}
|
|
|
|
@end
|