Files
mier_ios/SweetParty/主类/音悦新增/酒吧厅&新人厅/YYRoomInviteAlert.m
2025-08-11 10:43:19 +08:00

52 lines
1.3 KiB
Objective-C
Executable File

//
// YYRoomInviteAlert.m
// YaYin
//
// Created by bj_szd on 2023/7/12.
// Copyright © 2023 YaYin. All rights reserved.
//
#import "YYRoomInviteAlert.h"
@interface YYRoomInviteAlert ()
@end
@implementation YYRoomInviteAlert
- (void)awakeFromNib {
[super awakeFromNib];
[self createUI];
}
- (void)createUI {
[self.confirmBtn setJianBianWithCGSize:CGSizeMake(150, 44)];
// WEAK_SELF
// [self.touchImgV dg_Tapped:^{
// [weakSelf removeFromSuperview];
// }];
}
- (IBAction)onConfirm:(id)sender {
NSDictionary *params = @{@"rid":C_string(self.rid), @"micro_id":C_string(self.micro_id), @"type":@"1"};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"/api/room/user_agree_up_micro" Loading:NO Hud:YES Success:^(id _Nonnull responseDic) {
[self removeFromSuperview];
} Failure:^(id _Nonnull errorData) {
}];
}
- (IBAction)onCancel:(id)sender {
NSDictionary *params = @{@"rid":C_string(self.rid), @"micro_id":C_string(self.micro_id), @"type":@"2"};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"/api/room/user_agree_up_micro" Loading:NO Hud:YES Success:^(id _Nonnull responseDic) {
[self removeFromSuperview];
} Failure:^(id _Nonnull errorData) {
}];
}
@end