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