123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- //
- // YOUPAILZWithdrawBtn.m
- // MSYOUPAI
- //
- // Created by CY on 2022/3/2.
- // Copyright © 2022 MS. All rights reserved.
- //
- #import "YOUPAILZWithdrawBtn.h"
- @interface YOUPAILZWithdrawBtn ()
- @end
- @implementation YOUPAILZWithdrawBtn
- - (instancetype)init{
- if (self = [super init]) {
- [self youpaifinitUI];
- }
- return self;
- }
- - (void)setSelected:(BOOL)selected{
- if(_selected != selected){
- _selected = selected;
- if(_selected){
-
- }
-
-
- }
- }
- - (void)youpaifinitUI{
- self.layer.cornerRadius = 6.0f;
- self.clipsToBounds = YES;
- self.layer.borderColor = LZF5F4F7Color.CGColor;
- self.layer.borderWidth = 1.0f;
-
- UILabel *youpaipMoneyL = [[UILabel alloc] init];
- youpaipMoneyL.font = LCFont(12.0f);
- youpaipMoneyL.textColor = LZ273145Color;
- youpaipMoneyL.textAlignment = NSTextAlignmentCenter;
- [self addSubview:youpaipMoneyL];
- self.youpaipMoneyL = youpaipMoneyL;
- [youpaipMoneyL mas_makeConstraints:^(MASConstraintMaker *make) {
- // make.left.top.bottom.right.offset(0);
- make.centerX.equalTo(self);
- make.bottom.equalTo(self.mas_centerY);
- make.height.mas_equalTo(WHScreenEqualWidth(22));
- }];
-
- [self addSubview:self.detailLab];
- [self.detailLab mas_makeConstraints:^(MASConstraintMaker *make) {
- make.centerX.equalTo(self);
- make.top.equalTo(self.mas_centerY).offset(5);
- make.height.mas_equalTo(WHScreenEqualWidth(17));
- }];
-
- UIView *youpaipquickV = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 44.0f, 16.0f)];
- youpaipquickV.hidden = YES;
- youpaipquickV.backgroundColor = LZFE66A4Color;
- [self addSubview:youpaipquickV];
- [LCTools clipCorner:UIRectCornerTopRight|UIRectCornerBottomRight View:youpaipquickV size:CGSizeMake(8.0f, 8.0f)];
- self.youpaipquickV = youpaipquickV;
- [youpaipquickV mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.top.offset(0.0f);
- make.size.mas_offset(CGSizeMake(44.0f, 16.0f));
- }];
-
- UILabel *youpaipquickL = [[UILabel alloc] init];
- youpaipquickL.font = LCFont(10.0f);
- youpaipquickL.textColor = [UIColor whiteColor];
- youpaipquickL.textAlignment = NSTextAlignmentCenter;
- youpaipquickL.text = @"秒到账";
- [youpaipquickV addSubview:youpaipquickL];
- [youpaipquickL mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.top.bottom.right.offset(0);
- }];
-
- UIImageView *youpaipSelectedImgV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"vqu_images_withdraw_select"]];
- youpaipSelectedImgV.hidden = YES;
- [self addSubview:youpaipSelectedImgV];
- self.youpaipSelectedImgV = youpaipSelectedImgV;
- [youpaipSelectedImgV mas_makeConstraints:^(MASConstraintMaker *make) {
- make.right.bottom.offset(0.0f);
- make.size.mas_offset(CGSizeMake(27.0f, 27.0f));
- }];
-
- [self addSubview:self.action];
- [self.action mas_makeConstraints:^(MASConstraintMaker *make) {
- make.edges.equalTo(self);
- }];
- }
- - (UILabel *)detailLab{
- if(!_detailLab){
- _detailLab = [[UILabel alloc] init];
- [_detailLab setFont:[UIFont systemFontOfSize:WHScreenEqualWidth(12)]];
- [_detailLab setTextColor:[UIColor colorWithWhite:0 alpha:0.5f]];
- [_detailLab setText:@"10400金币"];
- }
- return _detailLab;
- }
- - (UIControl *)action{
- if(!_action){
- _action = [[UIControl alloc] init];
- }
- return _action;
- }
- @end
|