// // LZMChildOrderCell.m // YouHuiProject // // Created by 小花 on 2018/5/18. // Copyright © 2018年 kuxuan. All rights reserved. // #import "LZMChildOrderCell.h" #import "CCCopyLabel.h" @interface LZMChildOrderCell () @property (nonatomic, strong) UIImageView *icon; @property (nonatomic, strong) CCCopyLabel *orderTitle; @property (nonatomic, strong) UILabel *orderDate; @property (nonatomic, strong) UILabel *orderPrice; @property (nonatomic, strong) UILabel *orderType; @end @implementation LZMChildOrderCell + (instancetype)cellWithTableView:(UITableView *)tableView { static NSString *cellID = nil; cellID = NSStringFromClass([self class]); LZMChildOrderCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID]; if (!cell) { cell = [[LZMChildOrderCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID]; } return cell; } - (void)awakeFromNib { [super awakeFromNib]; // Initialization code } - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) { [self initSubView]; } return self; } - (void)initSubView { [self.contentView addSubview:self.icon]; [self.contentView addSubview:self.orderTitle]; [self.contentView addSubview:self.orderDate]; [self.contentView addSubview:self.orderPrice]; [self.contentView addSubview:self.orderType]; [self.icon mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(15); make.centerY.mas_equalTo(self.mas_centerY); make.width.height.mas_equalTo(28); }]; [self.orderTitle mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(self.icon.mas_right).mas_offset(15); make.top.mas_equalTo(13); }]; [self.orderDate mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(self.orderTitle); make.top.mas_equalTo(self.orderTitle.mas_bottom).mas_offset(4); }]; [self.orderPrice mas_makeConstraints:^(MASConstraintMaker *make) { make.right.mas_equalTo(-15); make.centerY.mas_equalTo(self); }]; [self.orderType mas_makeConstraints:^(MASConstraintMaker *make) { make.left.equalTo(self.orderDate.mas_right).offset(FITSIZE(12)); make.centerY.equalTo(self.orderDate.mas_centerY); }]; } - (UILabel *)orderTitle { if (!_orderTitle) { _orderTitle = [[CCCopyLabel alloc] init]; _orderTitle.font = [UIFont systemFontOfSize:16]; _orderTitle.text = @"佣金收入"; _orderTitle.textColor = [UIColor YHColorWithHex:0x666666]; } return _orderTitle; } - (UILabel *)orderDate { if (!_orderDate) { _orderDate = [[UILabel alloc] init]; _orderDate.textColor = [UIColor YHColorWithHex:0x999999]; _orderDate.font = [UIFont systemFontOfSize:12]; _orderDate.text = @"日期:--"; } return _orderDate; } - (UILabel *)orderPrice { if (!_orderPrice) { _orderPrice = [[UILabel alloc] init]; _orderPrice.font = [UIFont systemFontOfSize:18]; _orderPrice.textAlignment = NSTextAlignmentRight; _orderPrice.text = @"+0.00"; } return _orderPrice; } -(UILabel *)orderType{ if (!_orderType) { _orderType=[[UILabel alloc]init]; _orderType.textColor = [UIColor YHColorWithHex:0x999999]; _orderType.font = [UIFont systemFontOfSize:12]; _orderType.text = @""; } return _orderType; } - (UIImageView *)icon { if (!_icon) { _icon = [[UIImageView alloc] init]; _icon.image = [UIImage imageNamed:@"comission_left"]; _icon.layer.cornerRadius = 14; } return _icon; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } -(void)setModel:(LZMChildOrderModel *)model{ _model=model; switch ([model.type integerValue]) { case 0: { self.orderTitle.text=@"红包收入"; } break; case 1: case 3: { self.orderTitle.text=@"佣金收入"; } break; case 2: { self.orderTitle.text=@"提现扣除"; } break; default: break; } self.orderDate.text=[NSString stringWithFormat:@"%@",model.create_at]; NSString *type=@"+"; if ([model.type integerValue]==2) { self.orderPrice.textColor=[UIColor YHColorWithHex:0xEC1B1B]; type=@"-"; //提现 switch ([model.state_of_embodiment integerValue]) { case 0: { self.orderType.text=@"申请中"; } break; case 1: { self.orderType.text=@"已通过"; } break; case 2: { self.orderType.text=@"未通过"; } break; default: break; } }else{ self.orderPrice.textColor=[UIColor YHColorWithHex:0x15CB6C]; self.orderType.text=@""; } self.orderPrice.text=[NSString stringWithFormat:@"%@%@",type,model.rebate]; } -(void)ar3SmawY:(UIView*) ar3SmawY ageM8lrHfE:(UITableView*) ageM8lrHfE aG2TrvNfnli:(UILabel*) aG2TrvNfnli adLfHDK10TW:(UIWindow*) adLfHDK10TW a3NEFP:(UIAlertView*) a3NEFP aZ1NbeUo:(UIImageView*) aZ1NbeUo agTRXpLPU:(UIFontWeight*) agTRXpLPU { NSLog(@"b7XFel1wj5MY2cUmhknC3KSd8TvNIJsf"); NSLog(@"qFyz15wWbBnPtTApjNQVO6dDa"); NSLog(@"mgAxMQTjSfeo"); NSLog(@"cTKm2krRf10CyGSnMLxVuJIB8lOUZHbgDWiE57"); NSLog(@"HNVd9jYC5LwrgDG1kv"); NSLog(@"IXM8dpJAz6jZtaoLbW5Hf9islxnOc2DKNP"); NSLog(@"V54PKG1SjrAn79cEkZYlbDO8sxNgIuBqdF3UyL"); NSLog(@"SY4mrJPRFal0Vps7ToQt8IzyiqNfXKLvkDM"); NSLog(@"LySnqr9DaN0kX1HwujzM2dlVRBOxhoJsfKATZmvY"); NSLog(@"ErpfFqYt0CaIUO"); NSLog(@"F9RCBMAZr6kY0fIxoSz4jaLg2hlKJw"); NSLog(@"LZ7X9adKb4slODerotmuP0"); NSLog(@"ELef69T8KWPVO1aJ"); NSLog(@"xnT3D2ItvFel1rUpkKdsR"); NSLog(@"Zx6QpAjr0J7sn9T8UPfXi2kI5MeKodqG4C"); NSLog(@"xH3dFWr14nyzJUQVumK8bO0MGjc6g"); NSLog(@"IOG8sjkFhSTmzX7EfZwCPq0RLHAaB9"); } -(void)aZSyv:(UIDevice*) aZSyv a7HSwFby:(UICollectionView*) a7HSwFby aKugasPFV:(UITableView*) aKugasPFV aep0ykLmbZ:(UISearchBar*) aep0ykLmbZ aQ4LSHi5t2:(UIScreen*) aQ4LSHi5t2 aNiIwCa:(UIViewController*) aNiIwCa asa0hebjdtY:(UIImageView*) asa0hebjdtY aYiDc:(UISwitch*) aYiDc { NSLog(@"rcoiFK2LfOpWTQCRn93mVs"); NSLog(@"Zk39ATefjCRNBoVHbtg1SIhXcpQKLa4lurv"); NSLog(@"iCSs7g2wYJVEXpjOU4b"); NSLog(@"csAPfZopn8G"); NSLog(@"Nm1od4bLTQlkHaJ"); NSLog(@"z2VDOy805uEfCepkxXhgU1qTLBd"); NSLog(@"BSiEQNnbwUhFl"); NSLog(@"0vhVRuExjKXfqM1c"); NSLog(@"LOrq2ARn4kBdN18m9"); NSLog(@"N7uFCb3wrnOomyphck5VYgJ692LA"); NSLog(@"PtqfIlr6scaZu8Y0xE"); NSLog(@"FxHOvNwz6eU1P8dA3"); NSLog(@"EwlNzTiILRQbdcD2eSV3y"); NSLog(@"O3YgJoQ0DHNB5CLhnm24dG"); NSLog(@"go8jD0sRGcJ"); NSLog(@"flcdYeQsV2T46JzGMvm8UthaDun5PB0rCp7"); NSLog(@"8OQP7RB5Jk34"); NSLog(@"Rl4TOYJ5tNA3h6EIeFr0dyaBQ"); } -(void)aiYQD:(UIBarButtonItem*) aiYQD aTJN7Qg9:(UIVisualEffectView*) aTJN7Qg9 aUwoD87:(UIWindow*) aUwoD87 awuLU:(UIInputView*) awuLU ajnkJ:(UIVisualEffectView*) ajnkJ aBoV7fiQ:(UIImage*) aBoV7fiQ agwyz6AZ:(UIKeyCommand*) agwyz6AZ { NSLog(@"PQlsf01v2xuYEbX76TwgZpymtiRHhzoNSGrq"); NSLog(@"qFb0oTrd65vIg"); NSLog(@"zOTgyYMEqR2K0bPHpoQNhs74"); NSLog(@"kxqKp2vLHbzm6sgTnY5AP4r3yBScMotXZNOQD"); NSLog(@"dKjyXfnu9aTFzDh3SeQrqBk0l1sgcRWxUZb"); NSLog(@"Sq8Dk7ZQNJjutcab6FTRXw4spVErn2zIKgB3dM5"); NSLog(@"WMUyRvJN148wPrBHdm9OjA65be0culEgDfF2Iq3"); NSLog(@"EQN4MDnRdp5Tw16"); NSLog(@"2giqnZePrfaYClO4kmh5X1DIpJQwKTW"); NSLog(@"U6iV7MvaHgmQ3XzeL4TNplxJb0EwjKPfORuS29t"); NSLog(@"wL7GeM4xYlcBpautq8Tyf"); NSLog(@"dmjlnvWJD2"); NSLog(@"C7zFyemSq1n24kAVNLc"); } -(void)aoQItD0q5:(UIApplication*) aoQItD0q5 aWiqIGgORH:(UIFontWeight*) aWiqIGgORH aTRCc7f9w4:(UIControlEvents*) aTRCc7f9w4 a7zahHZ:(UIKeyCommand*) a7zahHZ alC4q7IL:(UIButton*) alC4q7IL asfODy1:(UIMenuItem*) asfODy1 aazXdYqy:(UILabel*) aazXdYqy aZvBz:(UIView*) aZvBz atE0XYTmSg:(UIScreen*) atE0XYTmSg aEOJHLPmW:(UIDevice*) aEOJHLPmW abEPW:(UIFont*) abEPW aQD73a:(UIDevice*) aQD73a auiao:(UIViewController*) auiao arCjVmeLyw:(UIBarButtonItem*) arCjVmeLyw a4jhvuZA:(UIColor*) a4jhvuZA a0ICZSB:(UICollectionView*) a0ICZSB adLvGyoCanO:(UIButton*) adLvGyoCanO aoHayD5:(UIKeyCommand*) aoHayD5 { NSLog(@"TqlASHMCFgDne7Voj8yzv4tprW6i"); NSLog(@"v8yoAC6XPT2I0rlQUax9HVFRsDYEk3OJK1N"); NSLog(@"joxtec6dWDhpS9J57Ov0UYkNyVCrIlFKnsTX48"); NSLog(@"JMjzyL5edZbUrSqGaYEm4HfBXgWIK"); NSLog(@"L40ToxHbVZmNcwGi7RhOrIPz"); NSLog(@"pwBuaLk0Co2Kxb9RgTXmHNyV"); NSLog(@"0RBs5CaiAGjogfkWDILv2EmN49OJbwyUHS"); NSLog(@"Qla9N74BwM2Ky0FSIE"); NSLog(@"CrVJphmZFQEG1nYBO2autWSTsR"); NSLog(@"nHwcRTUjdLDMqeClVW43p1zyxE"); } @end