// // SPWalletPsdAlert.m // SweetParty // // Created by bj_szd on 2022/6/10. // #import "SPWalletPsdAlert.h" @implementation SPWalletPsdAlert - (void)awakeFromNib { [super awakeFromNib]; WEAK_SELF [self.touchImgV dg_Tapped:^{ [weakSelf removeFromSuperview]; }]; [self.confirmBtn setJianBianWithCGSize:CGSizeMake(ScreenWidth-27*2, 49)]; self.passwordTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入您的交易密码" attributes:@{NSForegroundColorAttributeName:[kWhiteColor colorWithAlphaComponent:0.6]}]; } - (IBAction)onConfirm:(id)sender { if (self.passwordTF.text.length <= 0) { [HelpPageDefine showMessage:@"请输入您的交易密码"]; return; } if (self.onConfirmBlock) { self.onConfirmBlock(self.passwordTF.text); } [self removeFromSuperview]; } @end