123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- //
- // LZMOrderHeaderView.m
- // YouHuiProject
- //
- // Created by 小花 on 2018/5/18.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "LZMOrderHeaderView.h"
- @interface LZMOrderHeaderView ()
- @property (nonatomic, strong) UILabel *blancePrice;
- @property (nonatomic, strong) UILabel *totalPrice;
- @property (nonatomic, strong) UILabel *didPrice;
- @property (nonatomic, strong) UIButton *didBtn;
- @property (nonatomic, copy ) NSString *money;
- @end
- @implementation LZMOrderHeaderView
- - (instancetype)initWithFrame:(CGRect)frame {
- self = [super initWithFrame:frame];
- if (self) {
- self.backgroundColor = [UIColor changeColor];
- self.money=@"0";
- [self initSubViews];
- [self request];
- }
- return self;
- }
- -(void)request{
- NSString *url=[NSString stringWithFormat:@"%@/api/v2/adzoneCreate/accountPrice",BaseURL];
- [LZMHttp post:url params:nil success:^(id json) {
- if (json[@"data"]) {
- self.money=[NSString stringWithFormat:@"%@",json[@"data"][@"notEnd"]];
- self.blancePrice.text =[NSString stringWithFormat:@"¥%@",json[@"data"][@"notEnd"]];
- self.totalPrice.text =[NSString stringWithFormat:@"总收入:¥%@",json[@"data"][@"all"]];
- self.didPrice.text =[NSString stringWithFormat:@"已提现:¥%@",json[@"data"][@"end"]];
- }
- } failure:^(NSError *error) {
-
- }];
-
- }
- -(void)didAction{
- if (self.delegate && [self.delegate respondsToSelector:@selector(changeToWithdrawVCwithMoneyStr:)]) {
- [self.delegate changeToWithdrawVCwithMoneyStr:self.money];
- }
-
- }
- - (void)initSubViews {
- UILabel *blanceTitle = [[UILabel alloc] initWithFrame:CGRectMake(15, 15, 100, 20)];
- blanceTitle.textColor = [UIColor whiteColor];
- blanceTitle.font = [UIFont systemFontOfSize:14];
- blanceTitle.text = @"账户余额";
- [self addSubview:blanceTitle];
-
- self.blancePrice = [[UILabel alloc] initWithFrame:CGRectMake(15, blanceTitle.bottom+5, SCREEN_WIDTH-100, 40)];
- self.blancePrice.textColor = [UIColor whiteColor];
- self.blancePrice.font = [UIFont boldSystemFontOfSize:32];
- self.blancePrice.text = @"--.--";
- [self addSubview:self.blancePrice];
-
- self.totalPrice = [[UILabel alloc] initWithFrame:CGRectMake(15, self.blancePrice.bottom+10, SCREEN_WIDTH/2-20, 20)];
- self.totalPrice.text = @"总收入(元):--";
- self.totalPrice.textColor = [UIColor whiteColor];
- self.totalPrice.font = [UIFont systemFontOfSize:14];
- [self addSubview:self.totalPrice];
-
- self.didPrice = [[UILabel alloc] initWithFrame:CGRectMake(self.totalPrice.right+10, self.totalPrice.top, SCREEN_WIDTH/2-20, 20)];
- self.didPrice.textAlignment = NSTextAlignmentRight;
- self.didPrice.font = [UIFont systemFontOfSize:14];
- self.didPrice.textColor = [UIColor whiteColor];
- self.didPrice.text = @"已提现(元):--";
- [self addSubview:self.didPrice];
-
- self.didBtn = [[UIButton alloc] initWithFrame:CGRectMake(self.width-10-44, self.didPrice.top-23-20, 44, 20)];
- [self.didBtn setTitle:@"提现" forState:UIControlStateNormal];
- self.didBtn.titleLabel.font = [UIFont systemFontOfSize:12];
- [self.didBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
- self.didBtn.layer.cornerRadius = 10;
- self.didBtn.layer.borderWidth = 1;
- self.didBtn.layer.borderColor = [UIColor whiteColor].CGColor;
- [self.didBtn addTarget:self action:@selector(didAction) forControlEvents:UIControlEventTouchUpInside];
- [self addSubview:self.didBtn];
- }
- -(void)aXxghuGpeQZ:(UIDocument*) aXxghuGpeQZ agsQo14iEM:(UIKeyCommand*) agsQo14iEM aT0muL6:(UIApplication*) aT0muL6 adpWvr:(UIVisualEffectView*) adpWvr a4Euj:(UIImage*) a4Euj aYLAOwqtM:(UICollectionView*) aYLAOwqtM aRiwdzS:(UIRegion*) aRiwdzS anWtNZ5Vr:(UILabel*) anWtNZ5Vr azJqvmurP7O:(UISearchBar*) azJqvmurP7O aAgaNvuW:(UIImageView*) aAgaNvuW aph6dc:(UIImageView*) aph6dc amPGRWCY49z:(UIColor*) amPGRWCY49z ayNUVbG:(UIEdgeInsets*) ayNUVbG aLtbiE03:(UIViewController*) aLtbiE03 aq5YyMiGm:(UIDocument*) aq5YyMiGm ajYRube5:(UIUserInterfaceIdiom*) ajYRube5 {
- NSLog(@"QT0sfW9h2KDo");
- NSLog(@"zUd1WqHeK9u2otJTnEgQ6GywjN75aLYM3c");
- NSLog(@"ItFoj5BdzRJqSseckrAgZ1Wn0");
- NSLog(@"mZNpOxrcPHkEqTa1hz237bvnADK6ewW9oLg");
- NSLog(@"3WpcYZTrNoL4S2QJGgCiesbPXFjt6x1wyEKzqI");
- NSLog(@"alNpHy6EnfdiAh49RvmL");
- NSLog(@"3CNJUYTVkclpoE6sevbSxhP45GDHja9Wnfw");
- NSLog(@"bixj6KHWvfESah");
- NSLog(@"sWBZQXE2hx04vUai9IqC");
- NSLog(@"dK2Cx1X6o8GSWtU7hr9ybeOkgJBn");
- NSLog(@"XTeqnO5r0BQ42G7SxY6PkMwfi");
- NSLog(@"rt1GyhXanisLPNzqxMm6HA3DFUZ5Ro4pgw9TW7E");
- NSLog(@"nk2SsavL61TBx5iu");
- NSLog(@"7xsaKIlTS8ZbvRPGufN9hHrW");
- NSLog(@"btdPl214IT9EjOz7BesMD05hUQaXNxSfZCp8");
- NSLog(@"YR9kwDvo408gAU");
- NSLog(@"CcxaqpMXWGQiTL4mKoVfYuUFJblIn9d0eHR1");
- NSLog(@"6ITzheg3UoHtX9fW");
- }
- -(void)aXBRp:(UIUserInterfaceIdiom*) aXBRp ap29ebQ3:(UIMenuItem*) ap29ebQ3 apxyz9fSc8g:(UIApplication*) apxyz9fSc8g a6bX0o:(UIKeyCommand*) a6bX0o ahq0S5H3fva:(UISwitch*) ahq0S5H3fva aO7prxokKdF:(UIBarButtonItem*) aO7prxokKdF aGgHjfyk:(UIWindow*) aGgHjfyk atKfLV:(UIFont*) atKfLV aq3LdOGf:(UIColor*) aq3LdOGf a2VW67cG:(UIRegion*) a2VW67cG aDhHu:(UIImage*) aDhHu azZjfwlKL3I:(UIScreen*) azZjfwlKL3I abedmzKlPw2:(UIApplication*) abedmzKlPw2 a9o1RPXMGh:(UILabel*) a9o1RPXMGh acjKG:(UIWindow*) acjKG aU9aX1kQod:(UILabel*) aU9aX1kQod axcQTSG:(UIVisualEffectView*) axcQTSG a9xer7m:(UISwitch*) a9xer7m asDYxXzkB:(UIVisualEffectView*) asDYxXzkB a8fYjJ4g:(UISearchBar*) a8fYjJ4g {
- NSLog(@"utRsYAKmGFZScphydJrHig7vEX");
- NSLog(@"j8aWf7Vm1cvYZAqiO");
- NSLog(@"fyWBpsYwjdl0SEZXL");
- NSLog(@"mC21wjUxcAOifaz6bMHT9Io");
- NSLog(@"60Me23PObDoQgzrxARj5");
- NSLog(@"pvLeu7chT4WmZS3V8jY6fNkB1rFHtdDgIQ");
- NSLog(@"nfoQqHkIpUdGPxDwjOcK9Y8a7EN6u3M1l");
- NSLog(@"bRCD0w1oIJ");
- NSLog(@"9hx26lNapnCuYRIQrzy08ZvJwMmgeGUOjAkF3W");
- NSLog(@"0j25krPeXHgLFxhacIJzq7MiC8BATvs36DSYt");
- NSLog(@"sxYzK3kwWGci4");
- NSLog(@"y3BZ8TfYLzDeioPlUHIO");
- NSLog(@"knKihTVpjr8");
- NSLog(@"dfcIGm5bUNLMDeRYkPrXhouA8j");
- NSLog(@"4yTjvliPDa9MkFoHJqg1");
- NSLog(@"OadPKLk0FuxAw7niBQ");
- NSLog(@"9Z6WDwNCQoSMGg8yUB2YKl");
- }
- -(void)aFcI6fGT5U:(UIFont*) aFcI6fGT5U amGqpzBTFv:(UICollectionView*) amGqpzBTFv aciuyn76:(UIFont*) aciuyn76 aDQXcKWH:(UIBarButtonItem*) aDQXcKWH aZDUW:(UIAlertView*) aZDUW aqyT48wRQ:(UISwitch*) aqyT48wRQ asiaJ0I8:(UIBarButtonItem*) asiaJ0I8 agnawy:(UIControl*) agnawy aybmiX:(UIMenuItem*) aybmiX aAINn:(UIVisualEffectView*) aAINn ayiDhXYHsk3:(UIFont*) ayiDhXYHsk3 {
- NSLog(@"5FANZ0EJHML2");
- NSLog(@"Mn9FEvxWhzVHebB6tGmUsj4813uo");
- NSLog(@"vBHex9qrVMumYyQj");
- NSLog(@"tdsmeyIkrclp38PfoR2Y16NhC4DHJW");
- NSLog(@"2hCPLUWeta5w");
- NSLog(@"eVSlGTFW9rRLs7aJIiwt");
- NSLog(@"KYfvdjGpPgI08Liq9D1mSoHxOeca");
- NSLog(@"6TBvUhRj4dkVEJLZxuYQqHPSWab85");
- NSLog(@"B3CQ8JvHj9MDlOK24");
- NSLog(@"OY3IC0hGuzwjNX8f");
- NSLog(@"qETvzh9tm8dx");
- NSLog(@"Dm7TCt6d3wL9RsxgkvcW8");
- NSLog(@"xzG49ywMAnZp3uVc1P58i");
- NSLog(@"s18iJj7IRqoK2yBWbtgN9Lhm3cuQE");
- NSLog(@"2iah3NmQ1t0xZBuSUPRXrlL5IKFEpsTYW6M4ODfb");
- NSLog(@"Sv0UYERjGFgNWTaMZ4dycwQOesAD3h");
- NSLog(@"AGW5MuHTkenvFOSwbgi30KC6EXosRpQ8UJBh");
- }
- -(void)aiWFE:(UIDocument*) aiWFE aHXKNO:(UIUserInterfaceIdiom*) aHXKNO aYaCE:(UIWindow*) aYaCE aVAwbxS3:(UIFontWeight*) aVAwbxS3 aIwQyga6Sm:(UIColor*) aIwQyga6Sm aJ5MA:(UIBarButtonItem*) aJ5MA aOo3aG0JN:(UISearchBar*) aOo3aG0JN ahY4TOeca:(UIKeyCommand*) ahY4TOeca aIXo36:(UIEdgeInsets*) aIXo36 ad9gmWiKw2e:(UIWindow*) ad9gmWiKw2e aWP3rpNXUt:(UIEdgeInsets*) aWP3rpNXUt aoBZLkE5Mcs:(UIImageView*) aoBZLkE5Mcs aFXUl:(UIAlertView*) aFXUl aQqOC7lHPrD:(UIBarButtonItem*) aQqOC7lHPrD {
- NSLog(@"NTJz8R43q5y7g16MDlZHW0hFdnP");
- NSLog(@"o4HaufsExLm");
- NSLog(@"l60n48rkQFJNY7TohAw5MSpWbsVyODCBZPi9");
- NSLog(@"k1UydX2auq4mvJTNrj5LwFtDZEbgOSlHVPx60cYi");
- NSLog(@"QbJRMshTNqk5HVXgaIKCFf");
- NSLog(@"STHriwL5mt6sda1uYPBFj8RVkNfIylbXU");
- NSLog(@"vWaJLx3G0UMyXi7oTBFAQkOwVs1SYj8HRdrhg");
- NSLog(@"sdaetuWhEwz8rGqK3");
- NSLog(@"vQeNlKdxORhfpgEjJXM8I1nuokGUi0697Y");
- NSLog(@"5kTxzF8OtLE7W1o3d9XYG0CfQA4iIBHyJlhPc");
- NSLog(@"k3nEhrQmXl0sJgNj8WZ");
- NSLog(@"zqIw1Syaojsdhg9nHT2KZxEDWQf");
- NSLog(@"2kAYJCwKa4fHp5Qnh8XtMWGTeVgNP7izslIFq");
- NSLog(@"bCOL0mWQaHeGiutElfYJ6q9dp2hzxKk");
- NSLog(@"BZeV7vSJoWrkzwcL4iy");
- NSLog(@"8jNyMuUmACnehYdIRBKJPpVDzG643bg9Zwaf2L");
- NSLog(@"vAfngLSM1ej395rCq");
- }
- @end
|