123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- //
- // YZMACommissionHeaderView.m
- // YouHuiProject
- //
- // Created by 小花 on 2018/5/18.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "YZMACommissionHeaderView.h"
- @interface YZMACommissionHeaderView ()
- @property (nonatomic, strong) UILabel *blancePrice;
- @property (nonatomic, strong) UILabel *totalPrice;
- @property (nonatomic, strong) UILabel *didPrice;
- @property (nonatomic, strong) UIButton *didBtn;
- @end
- @implementation YZMACommissionHeaderView
- - (instancetype)initWithFrame:(CGRect)frame {
- self = [super initWithFrame:frame];
- if (self) {
- self.backgroundColor = [UIColor changeColor];
- [self initSubViews];
- [self request];
- }
- return self;
- }
- -(void)request{
- NSString *url=[NSString stringWithFormat:@"%@/api/v2/adzoneCreate/commisonPrice",BaseURL];
- [YZMAHttp post:url params:nil success:^(id json) {
- if (json[@"data"]) {
- NSString *blanceStr=json[@"data"][@"all"];
- NSString *totalStr=json[@"data"][@"notEnd"];
- NSString *didStr=json[@"data"][@"end"];
- self.blancePrice.text =[NSString stringWithFormat:@"%.2f",[blanceStr floatValue]];
- self.totalPrice.text =[NSString stringWithFormat:@"总收入(元):%.2f",[totalStr floatValue]];
- self.didPrice.text =[NSString stringWithFormat:@"已提现(元):%.2f",[didStr floatValue]];
- }
- } failure:^(NSError *error) {
-
- }];
-
- }
- - (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-80, self.didPrice.top-23-20, 80, 20)];
- [self.didBtn setTitle:@"查看红包" forState:UIControlStateNormal];
- [self.didBtn setImage:[UIImage imageNamed:@"goto_white"] forState:UIControlStateNormal];
- self.didBtn.titleLabel.font = [UIFont systemFontOfSize:12];
- [self.didBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
- [self.didBtn setButtonImageTitleStyle:ButtonImageTitleStyleRight padding:0];
- [self addSubview:self.didBtn];
- }
- -(void)a3hb9:(UIMenuItem*) a3hb9 acsGJNoX:(UICollectionView*) acsGJNoX ajBU9C:(UIActivity*) ajBU9C aUPXOnIShom:(UIDevice*) aUPXOnIShom aO1xJkBr:(UILabel*) aO1xJkBr avsPM7:(UIView*) avsPM7 awAOlBCk20z:(UIDocument*) awAOlBCk20z awhQ1:(UIViewController*) awhQ1 ayNKe4lqOJd:(UIVisualEffectView*) ayNKe4lqOJd a0lVNZqn:(UIEvent*) a0lVNZqn az9dM:(UIEdgeInsets*) az9dM {
- NSLog(@"eN4GKjByIiwm9pa");
- NSLog(@"5AXyvFxpSHkJVceOB2mCP6G1sZQaNh");
- NSLog(@"yJMiLk1Bh0OfgEISeHrcnvRPKWCmN8pwG");
- NSLog(@"SvW9k8ZsIrUl");
- NSLog(@"0siWhEg4Y8tyQJODwHjl3IokAV");
- NSLog(@"8nol3SmXgi0KPfcFtyHC61Uh4");
- NSLog(@"LGeJ8CfdQgmpObxS");
- NSLog(@"iG3QaMOK2bRds8X76kxvAnSTEBhtq");
- NSLog(@"Hj3ZmO4J1NDT");
- NSLog(@"4zV8SIfdaTeWvjo0cM");
- NSLog(@"bNu4FBo81O7xlRjPpT2tHLdQerwSEay9z");
- NSLog(@"AIbP5g83REtmClNhkO1qeDMnBo6Kxv4Jc9fZyrz");
- NSLog(@"zY6WIMy4ltFu");
- NSLog(@"dTto6mPLHUywEF4frxKJDM8eYjBh2");
- NSLog(@"0oTlnHfWkuFYNRE3LBiqIdVyaJCx9XMAUec");
- NSLog(@"19Xoec2QqZu8OLxitWs");
- NSLog(@"NmdRLJg8Oi");
- }
- -(void)aXsQTcfwzt:(UIEdgeInsets*) aXsQTcfwzt a1Dw97Lxjk:(UIAlertView*) a1Dw97Lxjk ahPtwbMQ4ul:(UIVisualEffectView*) ahPtwbMQ4ul aTzBy2uh8:(UIControlEvents*) aTzBy2uh8 aNMbsE:(UIImage*) aNMbsE ayutAMFZOHm:(UIDocument*) ayutAMFZOHm aP9cM37Cs:(UIButton*) aP9cM37Cs afYPRaT:(UIFont*) afYPRaT ahnmr8c:(UIVisualEffectView*) ahnmr8c am53DfIBLei:(UIControlEvents*) am53DfIBLei aG0kWwEjX4Y:(UIEvent*) aG0kWwEjX4Y aYK2ywzGO0:(UIBarButtonItem*) aYK2ywzGO0 ac2W0Z7oS:(UIImage*) ac2W0Z7oS aPUXsvBt4o:(UIFontWeight*) aPUXsvBt4o aI0ON:(UIDevice*) aI0ON aR2nlyVweGA:(UIUserInterfaceIdiom*) aR2nlyVweGA a60fide5:(UIControlEvents*) a60fide5 aOdCj:(UIUserInterfaceIdiom*) aOdCj ahHwSeVzRE:(UIBezierPath*) ahHwSeVzRE {
- NSLog(@"0qe1vjKRaH2hsX7zfcbyCZ8l5BQ4LrxJAI");
- NSLog(@"jWtSGmP3fAwrKzL2Mg");
- NSLog(@"FlrQ37YNwIufesJVP2j");
- NSLog(@"ryMVmBjSloCIXW98ZHT4Gn");
- NSLog(@"A7mqtvbfJBpLCWezxwi6Vy9EandsM5");
- NSLog(@"AIrJstqgPeKzah0kdWORlUD5MuVfmoX8vYGi");
- NSLog(@"hcg8QzGxokMLN4ue");
- NSLog(@"XgIvtVLUfY1GJCS0Q6qOPAuTk42KoD");
- NSLog(@"dvLVzoe536AQckJD8aqHlKSEwy");
- NSLog(@"pav1mKq2kMZBWwG3yuEr4eb5DA6IUnNXFix");
- NSLog(@"Dehp9Al7sCgI");
- NSLog(@"MTHl917P4qAXRkSGVzfQEZu35rNBdapIJ");
- NSLog(@"4G1fUtHbDcdv98a0EnqYFJXTr7g2LCyBZxQk3mOI");
- NSLog(@"LYTAvDgNwqCfsGJnk");
- NSLog(@"EOulxseyCkjSizpKUZgcAVX");
- NSLog(@"4GxaPF3IiHsLOpEzRNUDrblJYBwkQq6C17");
- NSLog(@"9pj5lWbaBtQFTocy6wq7XKeM1SVd");
- NSLog(@"3sPjn6XLbAoGqFmdfCkQwpgi5UEaBO0");
- NSLog(@"0rFj2dN6vI738YhpzXWECBA");
- NSLog(@"TIyZ2x6HahmUFfBnLvlCrgisXoukJ8pzA5Kt1dR");
- }
- -(void)abSV6xheTI:(UIViewController*) abSV6xheTI ab1YSeVT:(UIInputView*) ab1YSeVT aEt4YfU:(UIMotionEffect*) aEt4YfU a7zZYDmj:(UIBezierPath*) a7zZYDmj aQb9ISEw:(UICollectionView*) aQb9ISEw aFroQa1d7:(UIView*) aFroQa1d7 axulv:(UICollectionView*) axulv a02DneQiPS:(UIRegion*) a02DneQiPS aaNsvB3gFkD:(UIColor*) aaNsvB3gFkD a81W5nF7tV:(UIBarButtonItem*) a81W5nF7tV afQj2g:(UIBarButtonItem*) afQj2g aLZRuh:(UIAlertView*) aLZRuh acRKOzWy:(UIAlertView*) acRKOzWy aQJp4nLW:(UIDevice*) aQJp4nLW aEWDKrkb2:(UIButton*) aEWDKrkb2 {
- NSLog(@"IMXoeC3YZPslJhuDRfUNHnLb4q1aAiWyQw");
- NSLog(@"yXgEJAhGQwPB5i1I96qz");
- NSLog(@"SfUpqAR7HZl3Q5wr6osNy0");
- NSLog(@"CISyA9pvLgXNm5Y");
- NSLog(@"zGMN4RwOStBVuqE5QT3ri1FI9ZXYyLjomh7lbAP");
- NSLog(@"aX53BOwfpZ7vnxbiNmWQysYJR8tEIFdVD");
- NSLog(@"pEOKrhaFMLknRu76foi2m18BZbAc");
- NSLog(@"wj3L5yvDVTHugbYU9q4fleanOt1p6hmEkzQK");
- NSLog(@"31bqOAehDnZ7KmJkvjlYXF2rRaMtuy0H9");
- NSLog(@"9g6TwVULcqnCNl8fkmF");
- NSLog(@"ptG9jnrEVFaw5yCZc4ifSL6xBTsM7KubO");
- }
- @end
|