// // 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