| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | ////  GoodsDetailsPayV.m//  Asteria////  Created by 王猛 on 2023/12/27.//#import "GoodsDetailsPayV.h"#import "AlertMyCartDeleteV.h"@implementation GoodsDetailsPayV- (void)tt_setupViews{    [self addSubview:self.titleLab];    self.titleLab.frame = CGRectMake(10, 10, self.mj_w-20, 20);    NSArray *imgAry = @[@"goods_pay_paypal",@"goods_pay_afterpay", @"goods_pay_klarna"];    for (int i = 0; i<imgAry.count; i++) {        NSString *imgstr = imgAry[i];        UIButton *payBtn = [UIButton buttonWithType:UIButtonTypeCustom];        [payBtn setImage:[UIImage imageNamed:imgstr] forState:UIControlStateNormal];        payBtn.tag =  GoodsInfoPayTypeTag+i;        [self addSubview:payBtn];        [payBtn addTarget:self action:@selector(pay_payBtnType:) forControlEvents:UIControlEventTouchUpInside];        payBtn.frame = CGRectMake(10+(10+76)*i, CGRectGetMaxY(self.titleLab.frame) + 10, 76, 24);    }}-(void)pay_payBtnType:(UIButton *)btn{    NSArray *alertvImgAry = @[@"goods_alertv_paypal",@"goods_alertv_afterpay",@"goods_alertv_klarna"];    NSArray *closeImgAry = @[@"base_close_white",@"base_close_black",@"base_close_black"];    AlertMyCartDeleteV *payAlertV = [[AlertMyCartDeleteV alloc]initWithPaytypeAlertV:[UIImage imageNamed:alertvImgAry[btn.tag-GoodsInfoPayTypeTag]] closeBtnImg:[UIImage imageNamed:closeImgAry[btn.tag-GoodsInfoPayTypeTag]]];    [payAlertV alertv_show];    }- (QMUILabel *)titleLab{    if(!_titleLab){        _titleLab = [[QMUILabel alloc]init];        _titleLab.font = [UIFont fontWithName:Rob_Regular size:12];        _titleLab.textColor = [UIColor colorWithHexString:@"#0D1623"];    }    return _titleLab;}@end
 |