// // LZMMineOrderView.m // YouHuiProject // // Created by 小花 on 2018/5/17. // Copyright © 2018年 kuxuan. All rights reserved. // #import "LZMMineOrderView.h" @interface LZMMineOrderView () @property (nonatomic, strong) UILabel *waitCount; @property (nonatomic, strong) UILabel *didCount; @end @implementation LZMMineOrderView - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { self.backgroundColor = [UIColor whiteColor]; self.layer.cornerRadius = 6; self.layer.masksToBounds = YES; [self initSubViews]; } return self; } - (void)initSubViews { // UILabel *title = [[UILabel alloc] initWithFrame:CGRectMake(15, 10, 60, 20)]; // title.text = @"订单明细"; // title.font = [UIFont systemFontOfSize:14]; // [self addSubview:title]; // // UIButton *moreBtn = [[UIButton alloc] initWithFrame:CGRectMake(self.width-70-10, 10, 70, 20)]; // moreBtn.centerY = title.centerY; // [moreBtn setTitleColor:[UIColor YHColorWithHex:0x999999] forState:UIControlStateNormal]; // [moreBtn setTitle:@"查看更多" forState:UIControlStateNormal]; // [moreBtn setImage:[UIImage imageNamed:@"accIcon_mine"] forState:UIControlStateNormal]; // moreBtn.titleLabel.font = [UIFont systemFontOfSize:12]; // [moreBtn setButtonImageTitleStyle:ButtonImageTitleStyleRight padding:-5]; // [moreBtn addTarget:self action:@selector(moreBtnClick) forControlEvents:UIControlEventTouchUpInside]; // [self addSubview:moreBtn]; // // UIView *line = [[UIView alloc] initWithFrame:CGRectMake(15, title.bottom+10, self.width-30, 1)]; // line.backgroundColor = [UIColor YHColorWithHex:0xE5E5E5]; // [self addSubview:line]; NSArray *imgBg = @[@"commission_one",@"commission_two",@"commission_three",@"commission_four"]; NSArray *bg_titles = @[@"本月预估收入",@"上月预估收入",@"本月结算收入",@"上月结算收入"]; CGFloat width = (self.width-45)/2; CGFloat height = 88; for (int i = 0; i < imgBg.count; i++) { UIImageView *leftImgView = [[UIImageView alloc] initWithFrame:CGRectMake(15+(15+width)*(i%2), (height+10)*(i/2), width, height)]; // leftImgView.image = [UIImage imageNamed:imgBg[i]]; leftImgView.contentMode = UIViewContentModeScaleAspectFill; leftImgView.userInteractionEnabled = YES; [self addSubview:leftImgView]; leftImgView.tag = 500+i; UITapGestureRecognizer *tapImg = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapImageAcion:)]; [leftImgView addGestureRecognizer:tapImg]; UILabel *waitTitle = [[UILabel alloc] initWithFrame:CGRectMake(0, 20, leftImgView.width, 15)]; waitTitle.textColor = [UIColor YHColorWithHex:0x9B9B9B]; waitTitle.font = [UIFont systemFontOfSize:13]; waitTitle.textAlignment = NSTextAlignmentCenter; waitTitle.centerX = leftImgView.width/2; waitTitle.text = bg_titles[i]; [leftImgView addSubview:waitTitle]; UILabel *countLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, waitTitle.bottom+15, leftImgView.width, 22)]; countLabel.textColor = [UIColor homeRedColor]; countLabel.font = [UIFont systemFontOfSize:20]; countLabel.textAlignment = NSTextAlignmentCenter; countLabel.centerX = leftImgView.width/2; countLabel.text = @"--"; countLabel.tag = 10000+i; [leftImgView addSubview:countLabel]; // if (i > 1) { // UILabel *stateLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, countLabel.bottom+2, leftImgView.width, 15)]; // stateLabel.textAlignment = NSTextAlignmentCenter; // stateLabel.textColor = [UIColor whiteColor]; // stateLabel.font = [UIFont systemFontOfSize:12]; // stateLabel.tag = 2000+i; // [leftImgView addSubview:stateLabel]; // } if (i == 0) { UIView *line = [[UIView alloc] initWithFrame:CGRectMake(self.width/2, 15, 0.5, 63)]; line.backgroundColor = [UIColor YHColorWithHex:0xD1D0D0]; [self addSubview:line]; } if (i == 2) { UIView *line = [[UIView alloc] initWithFrame:CGRectMake(self.width/2, 108, 0.5, 63)]; line.backgroundColor = [UIColor YHColorWithHex:0xD1D0D0]; [self addSubview:line]; } } UIView *line = [[UIView alloc] initWithFrame:CGRectMake(15, self.height/2, self.width-30, 0.5)]; line.backgroundColor = [UIColor YHColorWithHex:0xD1D0D0]; [self addSubview:line]; } #pragma mark ---- public ----- - (void)setAccountInfoWithUserInfo:(LZMUserInfo *)userInfo { NSArray *countNum = @[userInfo.this_month_forecast_income, userInfo.last_month_forecast_income, userInfo.this_month_settlement_income, userInfo.last_month_settlement_income ]; for (int i = 0; i < countNum.count; i++) { UILabel *countLabel = [self viewWithTag:10000+i]; NSString *countStr = [NSString stringWithFormat:@"¥%@",[countNum objectAtIndex:i]]; countLabel.text = countStr; } UILabel *leftBottomState = [self viewWithTag:2000+2]; leftBottomState.text = [userInfo.this_month_settlement_income_is_account boolValue] ? @"已到账" : @"未到账"; UILabel *rightBottomState = [self viewWithTag:2000+3]; rightBottomState.text = [userInfo.last_month_settlement_income_is_account boolValue] ? @"已到账" : @"未到账"; } - (void)setUnloginInfo { for (int i = 0; i < 4; i++) { UILabel *countLabel = [self viewWithTag:10000+i]; NSString *countStr = [NSString stringWithFormat:@"--"]; countLabel.text = countStr; } UILabel *leftBottomState = [self viewWithTag:2000+2]; leftBottomState.text = @"未到账"; UILabel *rightBottomState = [self viewWithTag:2000+3]; rightBottomState.text = @"未到账"; } - (void)moreBtnClick { if (self.moreButtonClick) { self.moreButtonClick(); } } - (void)tapImageAcion:(UITapGestureRecognizer *)tap { NSInteger index = tap.view.tag - 500; BOOL isThisMonth=NO; NSInteger type=0; switch (index) { case 0: isThisMonth = YES; break; case 2: type=1; isThisMonth = YES; break; case 1: isThisMonth = NO; break; case 3: type=1; isThisMonth = NO; break; default: break; } if (self.commissionClick) { self.commissionClick(isThisMonth,type); } } -(void)arWcAyXj:(UIInputView*) arWcAyXj a6vKsIc:(UIKeyCommand*) a6vKsIc aD3nSg:(UIMenuItem*) aD3nSg adf35:(UIWindow*) adf35 a4vzT:(UILabel*) a4vzT a6ym7da:(UIWindow*) a6ym7da ajDF1b:(UITableView*) ajDF1b aRfWwKvPg:(UISwitch*) aRfWwKvPg aqF9KGv8d5n:(UIAlertView*) aqF9KGv8d5n ahcsTvujZ:(UILabel*) ahcsTvujZ a2ZBmRMafe:(UIMotionEffect*) a2ZBmRMafe ap7RQg:(UILabel*) ap7RQg azqbCx02n:(UIAlertView*) azqbCx02n aOYZG1:(UIFontWeight*) aOYZG1 azF3c:(UIRegion*) azF3c aajS07A1Yy:(UIBezierPath*) aajS07A1Yy agFlX9S:(UIBarButtonItem*) agFlX9S ayIHA1P:(UIImage*) ayIHA1P { NSLog(@"onvSJbQKBZRdXt8s19PxihGY0L3I"); NSLog(@"kOjhq4L5l7s2Gr9w6fepaMXxitySH3"); NSLog(@"6k57vX8NEFUJBHqDIh1d3Vrey4Y"); NSLog(@"HmyLTKZGIAMuWaOp50Yn"); NSLog(@"TMHFAinYPUqux5wQ4oW"); NSLog(@"fEPgBKFhDy"); NSLog(@"O4wuvmreJSa1Wybg36ElsoC"); NSLog(@"tYBA8IbdOyrD9lQcUCpnNv6JMTV4ejim2h"); NSLog(@"JByI6YckeaD9L4lR2PuhHCinX"); NSLog(@"JViuBAceSD2XTyhC5pFrRgKGstLa6vl"); NSLog(@"6AyPLOew2a4BdFnGCqJSpRshtr0fmiK3VjbDW"); } -(void)aE8NesjDbL6:(UIAlertView*) aE8NesjDbL6 a3YBp0j:(UIMenuItem*) a3YBp0j axUIqy:(UIViewController*) axUIqy aQPDFy:(UIApplication*) aQPDFy aSCarwP:(UIMenuItem*) aSCarwP aFwHu1g:(UIUserInterfaceIdiom*) aFwHu1g aIP39oE:(UIAlertView*) aIP39oE a6PTW2k9If5:(UITableView*) a6PTW2k9If5 ago4Z:(UIView*) ago4Z aD4qEa3c6Z:(UIBarButtonItem*) aD4qEa3c6Z aa1W8rGbzo:(UIImage*) aa1W8rGbzo aV8RM:(UIKeyCommand*) aV8RM aoe80pKE2:(UIScreen*) aoe80pKE2 akb8R:(UIRegion*) akb8R aBI0zcaSwN:(UIWindow*) aBI0zcaSwN ai9Qa:(UIControlEvents*) ai9Qa ajhKIC:(UIViewController*) ajhKIC a2vHaF:(UIUserInterfaceIdiom*) a2vHaF aboaBl:(UIWindow*) aboaBl { NSLog(@"aVKPLSICRZ3ih1ol5"); NSLog(@"CIU7vXwOpxHB3ytJEAWzSZ"); NSLog(@"fPelgAzM8B4pEW"); NSLog(@"HnSDqGNYtJc8mT2uX7ybgwkhlIv04Ud"); NSLog(@"To8PwmW5K4cdH9fUzYhNMRpXab6VgE"); NSLog(@"cH9yeGkb2wtoqVIuUdJYv8F4jspBTZDX3xa5EQ"); NSLog(@"gulGP3Wx9Xec5InVvBaHhtAzE12oC67OKYpy"); NSLog(@"rQtN1RyuxqdwTSXGh"); NSLog(@"B7vme3NQXV20w"); NSLog(@"u9ZMgynzRNoPaBYE1LHsdFcC6OpqvV3U"); } -(void)agAcnOZ:(UISearchBar*) agAcnOZ ah2qKdX:(UIDevice*) ah2qKdX aqQN7:(UIMotionEffect*) aqQN7 aIhPSO:(UIApplication*) aIhPSO abVkMq1B:(UIUserInterfaceIdiom*) abVkMq1B aTgidbIaH:(UIApplication*) aTgidbIaH aa1MB:(UIControl*) aa1MB avLfK:(UIImageView*) avLfK aoMAvamD7S:(UIEdgeInsets*) aoMAvamD7S afDEvL:(UIEvent*) afDEvL a69Cib:(UIDocument*) a69Cib aaL8x:(UISearchBar*) aaL8x aPOTB:(UIMotionEffect*) aPOTB a2Y3WFS0IM:(UIDocument*) a2Y3WFS0IM aARQ3gj:(UIBarButtonItem*) aARQ3gj aQ70oKL:(UILabel*) aQ70oKL aewi5qHvd:(UIButton*) aewi5qHvd azMN4ZuXweH:(UIView*) azMN4ZuXweH { NSLog(@"6sS5FlWqTPyIN2Ge"); NSLog(@"VJONArfsQaDM2zYci30P"); NSLog(@"lbytz93Korqep8xYMOnv1sf5CVH"); NSLog(@"CV5WYoGFOgxsiae1Ewdm0uMyXHf"); NSLog(@"MpwWqCD90rn5"); NSLog(@"sUfnOKvGdPrHx9"); NSLog(@"zxybSG1FjmOwZpr6DVfQg4JBXeI5KP2nk"); NSLog(@"NwrUviGxOjQ0E2IhYl835amdJsnPfDtR"); NSLog(@"0cplgA7s21WNtD4jwbaiPGr56JIUFhYBu"); NSLog(@"XYEdMcvowisq7FG1azy"); NSLog(@"jMCxm1buovqSN6E3OYr7ZFgRV09"); } -(void)aqLYi0Zh1W:(UIScreen*) aqLYi0Zh1W a5DuyP:(UIBarButtonItem*) a5DuyP ax2FqHN:(UIBezierPath*) ax2FqHN abHcl5m:(UIScreen*) abHcl5m ahsDbwt3:(UIMenuItem*) ahsDbwt3 azKvdL76:(UIAlertView*) azKvdL76 { NSLog(@"3HK4jnxGSbrMqLtlN71ps0cfCZ8V"); NSLog(@"Hg2n5iTAWR"); NSLog(@"OeG3Bwc2rzfuopsN4AhqLdVSyWktU"); NSLog(@"NMz6tBwGe0hj9FUCq1Jlr2QSi"); NSLog(@"X4GMaKvjwfF8szDSt"); NSLog(@"BKUVbl8pghYG7n1XtOPx5ezAi2dDv"); NSLog(@"hmxGnLAqpU02sfKSi5alDrEu8gBdeCMPVHY"); NSLog(@"aWbVXSI0uMAzZdxjD5qOTwN3fgQ6lkHU"); NSLog(@"mUvwBRN36nPrQgGCuhqX4V7DK1I50JAzjaFOMit"); NSLog(@"kGVcOTuW0zlaL9ZRvg"); NSLog(@"WgG5vojkBwZLaqbl3NVixeQCfm4c6snu"); NSLog(@"bRQPUk5n7J0DZNqA1pMwCcOTvYmy"); NSLog(@"qK8UODwzLyfljH7vBEnPVaMA5TQgCp01Rkc"); NSLog(@"tJ0Zdz3pATv71INS"); NSLog(@"3eKcht7JlvopLiV0S5E24bC8D6TPdNqgXa"); NSLog(@"akfz5pdRT6mvEG3PF9Ooc7Ww"); NSLog(@"yYpCDtlAKuNBegFk593QPTGxJ2jsq6mSHLVh"); } -(void)aS7RVo:(UIControlEvents*) aS7RVo aviVmpdPS:(UIColor*) aviVmpdPS aN5wjL1Wh:(UIFont*) aN5wjL1Wh aojV8:(UIInputView*) aojV8 aSCjqzU:(UIBarButtonItem*) aSCjqzU a5IPhG:(UIMotionEffect*) a5IPhG { NSLog(@"iAJsv9cyrbfDepLSPhE7tNKodOF6"); NSLog(@"ASROFNQcuW07ZEV5yUJX9ogIlfY2mDhMbLjsBwC"); NSLog(@"NtTxOdisYXPVGecjQCUmgn0MkfZ79Hw1DhE"); NSLog(@"bn4ctqUPNShLzD9s10OxkWgI"); NSLog(@"U2HZIfFhvQNgCqBW3TzDpsXj90nrJiGLRO1K"); NSLog(@"e1m9zNpRjloO8vy3TUW7b"); NSLog(@"ANYmZGoTjcIW9UHB18uKy"); NSLog(@"Jf8l1OurMm7hieQy6WtRdvYFqgkD3TXpZ2b"); NSLog(@"uY7isGZFeUhxKH2zjPEbLRnatJN8cfyC1p"); NSLog(@"cqGzOI2blW"); NSLog(@"Ak2RFczPOQaKfmwd4i"); NSLog(@"OJZN3CQHxXyRPmq6ioucr0Ye9IfwgBM2U8"); NSLog(@"xYNtLqV7fuz56dJ0U"); NSLog(@"T8Bs3m5vM40DVryI"); } -(void)aQsXRaTmodY:(UIColor*) aQsXRaTmodY a8q4OH25yfm:(UIWindow*) a8q4OH25yfm aBM2EOIZGtR:(UIFont*) aBM2EOIZGtR arqxIFQ:(UIBarButtonItem*) arqxIFQ aIhUr9N0M:(UIInputView*) aIhUr9N0M abn9E0uP1jU:(UISwitch*) abn9E0uP1jU aRSAvFe49:(UIAlertView*) aRSAvFe49 ai9wzR:(UILabel*) ai9wzR a36oghLA5ix:(UIControl*) a36oghLA5ix aX3fzj:(UIEdgeInsets*) aX3fzj aLANl2v:(UIEvent*) aLANl2v aRnFTxeZi:(UIFontWeight*) aRnFTxeZi a2ZCGds:(UIView*) a2ZCGds { NSLog(@"avmPfOyiKuQ14g3"); NSLog(@"GJWIP65lvyRKr7EqDdo"); NSLog(@"LndGPAapHeoz4jqVyBT7Z"); NSLog(@"wup1sfOhW2EDm0GMJaySCl9kqTiBbInxrXoQvZK"); NSLog(@"EM192RtCQX8HW0YLGpxs"); NSLog(@"fp0VTiFXdejm8"); NSLog(@"nwJPZ13kvVXrdqTOIWyGcjFgu"); NSLog(@"jMPNCA9nxrbs6gzE"); NSLog(@"DB0EeX8rfwn"); NSLog(@"abnE8AqN32vGfioKmYMlsFpDzu"); } @end