一折买app------返利---------返利宝

YZMACommissionHeaderView.m 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. //
  2. // YZMACommissionHeaderView.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/18.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMACommissionHeaderView.h"
  9. @interface YZMACommissionHeaderView ()
  10. @property (nonatomic, strong) UILabel *blancePrice;
  11. @property (nonatomic, strong) UILabel *totalPrice;
  12. @property (nonatomic, strong) UILabel *didPrice;
  13. @property (nonatomic, strong) UIButton *didBtn;
  14. @end
  15. @implementation YZMACommissionHeaderView
  16. - (instancetype)initWithFrame:(CGRect)frame {
  17. self = [super initWithFrame:frame];
  18. if (self) {
  19. self.backgroundColor = [UIColor changeColor];
  20. [self initSubViews];
  21. [self request];
  22. }
  23. return self;
  24. }
  25. -(void)request{
  26. NSString *url=[NSString stringWithFormat:@"%@/api/v2/adzoneCreate/commisonPrice",BaseURL];
  27. [YZMAHttp post:url params:nil success:^(id json) {
  28. if (json[@"data"]) {
  29. NSString *blanceStr=json[@"data"][@"all"];
  30. NSString *totalStr=json[@"data"][@"notEnd"];
  31. NSString *didStr=json[@"data"][@"end"];
  32. self.blancePrice.text =[NSString stringWithFormat:@"%.2f",[blanceStr floatValue]];
  33. self.totalPrice.text =[NSString stringWithFormat:@"总收入(元):%.2f",[totalStr floatValue]];
  34. self.didPrice.text =[NSString stringWithFormat:@"已提现(元):%.2f",[didStr floatValue]];
  35. }
  36. } failure:^(NSError *error) {
  37. }];
  38. }
  39. - (void)initSubViews {
  40. UILabel *blanceTitle = [[UILabel alloc] initWithFrame:CGRectMake(15, 15, 100, 20)];
  41. blanceTitle.textColor = [UIColor whiteColor];
  42. blanceTitle.font = [UIFont systemFontOfSize:14];
  43. blanceTitle.text = @"佣金总计(元)";
  44. [self addSubview:blanceTitle];
  45. self.blancePrice = [[UILabel alloc] initWithFrame:CGRectMake(15, blanceTitle.bottom+5, SCREEN_WIDTH-100, 40)];
  46. self.blancePrice.textColor = [UIColor whiteColor];
  47. self.blancePrice.font = [UIFont boldSystemFontOfSize:32];
  48. self.blancePrice.text = @"--.--";
  49. [self addSubview:self.blancePrice];
  50. self.totalPrice = [[UILabel alloc] initWithFrame:CGRectMake(15, self.blancePrice.bottom+10, SCREEN_WIDTH/2-20, 20)];
  51. self.totalPrice.text = @"待结算(元):--";
  52. self.totalPrice.textColor = [UIColor whiteColor];
  53. self.totalPrice.font = [UIFont systemFontOfSize:14];
  54. [self addSubview:self.totalPrice];
  55. self.didPrice = [[UILabel alloc] initWithFrame:CGRectMake(self.totalPrice.right+10, self.totalPrice.top, SCREEN_WIDTH/2-20, 20)];
  56. self.didPrice.textAlignment = NSTextAlignmentRight;
  57. self.didPrice.font = [UIFont systemFontOfSize:14];
  58. self.didPrice.textColor = [UIColor whiteColor];
  59. self.didPrice.text = @"已结算(元):--";
  60. [self addSubview:self.didPrice];
  61. self.didBtn = [[UIButton alloc] initWithFrame:CGRectMake(self.width-10-80, self.didPrice.top-23-20, 80, 20)];
  62. [self.didBtn setTitle:@"查看红包" forState:UIControlStateNormal];
  63. [self.didBtn setImage:[UIImage imageNamed:@"goto_white"] forState:UIControlStateNormal];
  64. self.didBtn.titleLabel.font = [UIFont systemFontOfSize:12];
  65. [self.didBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
  66. [self.didBtn setButtonImageTitleStyle:ButtonImageTitleStyleRight padding:0];
  67. [self addSubview:self.didBtn];
  68. }
  69. -(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 {
  70. NSLog(@"eN4GKjByIiwm9pa");
  71. NSLog(@"5AXyvFxpSHkJVceOB2mCP6G1sZQaNh");
  72. NSLog(@"yJMiLk1Bh0OfgEISeHrcnvRPKWCmN8pwG");
  73. NSLog(@"SvW9k8ZsIrUl");
  74. NSLog(@"0siWhEg4Y8tyQJODwHjl3IokAV");
  75. NSLog(@"8nol3SmXgi0KPfcFtyHC61Uh4");
  76. NSLog(@"LGeJ8CfdQgmpObxS");
  77. NSLog(@"iG3QaMOK2bRds8X76kxvAnSTEBhtq");
  78. NSLog(@"Hj3ZmO4J1NDT");
  79. NSLog(@"4zV8SIfdaTeWvjo0cM");
  80. NSLog(@"bNu4FBo81O7xlRjPpT2tHLdQerwSEay9z");
  81. NSLog(@"AIbP5g83REtmClNhkO1qeDMnBo6Kxv4Jc9fZyrz");
  82. NSLog(@"zY6WIMy4ltFu");
  83. NSLog(@"dTto6mPLHUywEF4frxKJDM8eYjBh2");
  84. NSLog(@"0oTlnHfWkuFYNRE3LBiqIdVyaJCx9XMAUec");
  85. NSLog(@"19Xoec2QqZu8OLxitWs");
  86. NSLog(@"NmdRLJg8Oi");
  87. }
  88. -(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 {
  89. NSLog(@"0qe1vjKRaH2hsX7zfcbyCZ8l5BQ4LrxJAI");
  90. NSLog(@"jWtSGmP3fAwrKzL2Mg");
  91. NSLog(@"FlrQ37YNwIufesJVP2j");
  92. NSLog(@"ryMVmBjSloCIXW98ZHT4Gn");
  93. NSLog(@"A7mqtvbfJBpLCWezxwi6Vy9EandsM5");
  94. NSLog(@"AIrJstqgPeKzah0kdWORlUD5MuVfmoX8vYGi");
  95. NSLog(@"hcg8QzGxokMLN4ue");
  96. NSLog(@"XgIvtVLUfY1GJCS0Q6qOPAuTk42KoD");
  97. NSLog(@"dvLVzoe536AQckJD8aqHlKSEwy");
  98. NSLog(@"pav1mKq2kMZBWwG3yuEr4eb5DA6IUnNXFix");
  99. NSLog(@"Dehp9Al7sCgI");
  100. NSLog(@"MTHl917P4qAXRkSGVzfQEZu35rNBdapIJ");
  101. NSLog(@"4G1fUtHbDcdv98a0EnqYFJXTr7g2LCyBZxQk3mOI");
  102. NSLog(@"LYTAvDgNwqCfsGJnk");
  103. NSLog(@"EOulxseyCkjSizpKUZgcAVX");
  104. NSLog(@"4GxaPF3IiHsLOpEzRNUDrblJYBwkQq6C17");
  105. NSLog(@"9pj5lWbaBtQFTocy6wq7XKeM1SVd");
  106. NSLog(@"3sPjn6XLbAoGqFmdfCkQwpgi5UEaBO0");
  107. NSLog(@"0rFj2dN6vI738YhpzXWECBA");
  108. NSLog(@"TIyZ2x6HahmUFfBnLvlCrgisXoukJ8pzA5Kt1dR");
  109. }
  110. -(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 {
  111. NSLog(@"IMXoeC3YZPslJhuDRfUNHnLb4q1aAiWyQw");
  112. NSLog(@"yXgEJAhGQwPB5i1I96qz");
  113. NSLog(@"SfUpqAR7HZl3Q5wr6osNy0");
  114. NSLog(@"CISyA9pvLgXNm5Y");
  115. NSLog(@"zGMN4RwOStBVuqE5QT3ri1FI9ZXYyLjomh7lbAP");
  116. NSLog(@"aX53BOwfpZ7vnxbiNmWQysYJR8tEIFdVD");
  117. NSLog(@"pEOKrhaFMLknRu76foi2m18BZbAc");
  118. NSLog(@"wj3L5yvDVTHugbYU9q4fleanOt1p6hmEkzQK");
  119. NSLog(@"31bqOAehDnZ7KmJkvjlYXF2rRaMtuy0H9");
  120. NSLog(@"9g6TwVULcqnCNl8fkmF");
  121. NSLog(@"ptG9jnrEVFaw5yCZc4ifSL6xBTsM7KubO");
  122. }
  123. @end