Files
yuyin_ios/SweetParty/主类/RCMic/Room/Box/猫咪探险/DengRuleAlert.m
2025-08-08 11:05:33 +08:00

45 lines
1003 B
Objective-C

//
// DengRuleAlert.m
// SweetParty
//
// Created by bj_szd on 2023/7/10.
//
#import "DengRuleAlert.h"
@implementation DengRuleAlert
- (void)awakeFromNib {
[super awakeFromNib];
WEAK_SELF
[self.touchImgV dg_Tapped:^{
[weakSelf removeFromSuperview];
}];
[self fetchData];
}
- (void)fetchData {
NSDictionary *dict = @{};
// [SVProgressHUD showWithStatus:nil];
[RCMicHTTP postWithURLString:@"/api/new_box/get_box_note" parameters:dict response:^(RCMicHTTPResult *result) {
[SVProgressHUD dismiss];
if (result.success) {
if (result.errorCode == 200) {
self.textView.text = [NSString stringWithFormat:@"%@", result.content[@"note"]];
}else {
[SVProgressHUD showInfoWithStatus:result.message];
}
}else {
[SVProgressHUD showInfoWithStatus:@"网络错误"];
}
}];
}
- (IBAction)onBack:(id)sender {
[self removeFromSuperview];
}
@end