Files
mier_ios/SweetParty/主类/音悦新增/盲盒巡乐会/SPBlindXunlehuiRuleAlert.m
2025-08-11 10:43:19 +08:00

50 lines
1005 B
Objective-C

//
// SPBlindXunlehuiRuleAlert.m
// SweetParty
//
// Created by yons on 2024/11/21.
//
#import "SPBlindXunlehuiRuleAlert.h"
@interface SPBlindXunlehuiRuleAlert ()
@property (weak, nonatomic) IBOutlet UITextView *contentTV;
@property (weak, nonatomic) IBOutlet UIView *clearView;
@end
@implementation SPBlindXunlehuiRuleAlert
- (void)awakeFromNib {
[super awakeFromNib];
[self loadData];
WEAK_SELF
[self.clearView dg_Tapped:^{
[weakSelf removeFromSuperview];
}];
}
- (void)loadData {
[RCMicHTTP postWithURLString:@"/api/blind_box/get_blind_box_note" parameters:@{} response:^(RCMicHTTPResult *result) {
[SVProgressHUD dismiss];
if (result.success) {
if (result.errorCode == 200 ) {
self.contentTV.text = result.content;
}
}else {
[SVProgressHUD showInfoWithStatus:@"网络错误"];
}
}];
}
- (IBAction)closeAction:(id)sender {
[self removeFromSuperview];
}
@end