两折买改口袋样式

LZMOrderHeaderView.m 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. //
  2. // LZMOrderHeaderView.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/18.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LZMOrderHeaderView.h"
  9. @interface LZMOrderHeaderView ()
  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. @property (nonatomic, copy ) NSString *money;
  15. @end
  16. @implementation LZMOrderHeaderView
  17. - (instancetype)initWithFrame:(CGRect)frame {
  18. self = [super initWithFrame:frame];
  19. if (self) {
  20. self.backgroundColor = [UIColor changeColor];
  21. self.money=@"0";
  22. [self initSubViews];
  23. [self request];
  24. }
  25. return self;
  26. }
  27. -(void)request{
  28. NSString *url=[NSString stringWithFormat:@"%@/api/v2/adzoneCreate/accountPrice",BaseURL];
  29. [LZMHttp post:url params:nil success:^(id json) {
  30. if (json[@"data"]) {
  31. self.money=[NSString stringWithFormat:@"%@",json[@"data"][@"notEnd"]];
  32. self.blancePrice.text =[NSString stringWithFormat:@"¥%@",json[@"data"][@"notEnd"]];
  33. self.totalPrice.text =[NSString stringWithFormat:@"总收入:¥%@",json[@"data"][@"all"]];
  34. self.didPrice.text =[NSString stringWithFormat:@"已提现:¥%@",json[@"data"][@"end"]];
  35. }
  36. } failure:^(NSError *error) {
  37. }];
  38. }
  39. -(void)didAction{
  40. if (self.delegate && [self.delegate respondsToSelector:@selector(changeToWithdrawVCwithMoneyStr:)]) {
  41. [self.delegate changeToWithdrawVCwithMoneyStr:self.money];
  42. }
  43. }
  44. - (void)initSubViews {
  45. UILabel *blanceTitle = [[UILabel alloc] initWithFrame:CGRectMake(15, 15, 100, 20)];
  46. blanceTitle.textColor = [UIColor whiteColor];
  47. blanceTitle.font = [UIFont systemFontOfSize:14];
  48. blanceTitle.text = @"账户余额";
  49. [self addSubview:blanceTitle];
  50. self.blancePrice = [[UILabel alloc] initWithFrame:CGRectMake(15, blanceTitle.bottom+5, SCREEN_WIDTH-100, 40)];
  51. self.blancePrice.textColor = [UIColor whiteColor];
  52. self.blancePrice.font = [UIFont boldSystemFontOfSize:32];
  53. self.blancePrice.text = @"--.--";
  54. [self addSubview:self.blancePrice];
  55. self.totalPrice = [[UILabel alloc] initWithFrame:CGRectMake(15, self.blancePrice.bottom+10, SCREEN_WIDTH/2-20, 20)];
  56. self.totalPrice.text = @"总收入(元):--";
  57. self.totalPrice.textColor = [UIColor whiteColor];
  58. self.totalPrice.font = [UIFont systemFontOfSize:14];
  59. [self addSubview:self.totalPrice];
  60. self.didPrice = [[UILabel alloc] initWithFrame:CGRectMake(self.totalPrice.right+10, self.totalPrice.top, SCREEN_WIDTH/2-20, 20)];
  61. self.didPrice.textAlignment = NSTextAlignmentRight;
  62. self.didPrice.font = [UIFont systemFontOfSize:14];
  63. self.didPrice.textColor = [UIColor whiteColor];
  64. self.didPrice.text = @"已提现(元):--";
  65. [self addSubview:self.didPrice];
  66. self.didBtn = [[UIButton alloc] initWithFrame:CGRectMake(self.width-10-44, self.didPrice.top-23-20, 44, 20)];
  67. [self.didBtn setTitle:@"提现" forState:UIControlStateNormal];
  68. self.didBtn.titleLabel.font = [UIFont systemFontOfSize:12];
  69. [self.didBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
  70. self.didBtn.layer.cornerRadius = 10;
  71. self.didBtn.layer.borderWidth = 1;
  72. self.didBtn.layer.borderColor = [UIColor whiteColor].CGColor;
  73. [self.didBtn addTarget:self action:@selector(didAction) forControlEvents:UIControlEventTouchUpInside];
  74. [self addSubview:self.didBtn];
  75. }
  76. -(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 {
  77. NSLog(@"QT0sfW9h2KDo");
  78. NSLog(@"zUd1WqHeK9u2otJTnEgQ6GywjN75aLYM3c");
  79. NSLog(@"ItFoj5BdzRJqSseckrAgZ1Wn0");
  80. NSLog(@"mZNpOxrcPHkEqTa1hz237bvnADK6ewW9oLg");
  81. NSLog(@"3WpcYZTrNoL4S2QJGgCiesbPXFjt6x1wyEKzqI");
  82. NSLog(@"alNpHy6EnfdiAh49RvmL");
  83. NSLog(@"3CNJUYTVkclpoE6sevbSxhP45GDHja9Wnfw");
  84. NSLog(@"bixj6KHWvfESah");
  85. NSLog(@"sWBZQXE2hx04vUai9IqC");
  86. NSLog(@"dK2Cx1X6o8GSWtU7hr9ybeOkgJBn");
  87. NSLog(@"XTeqnO5r0BQ42G7SxY6PkMwfi");
  88. NSLog(@"rt1GyhXanisLPNzqxMm6HA3DFUZ5Ro4pgw9TW7E");
  89. NSLog(@"nk2SsavL61TBx5iu");
  90. NSLog(@"7xsaKIlTS8ZbvRPGufN9hHrW");
  91. NSLog(@"btdPl214IT9EjOz7BesMD05hUQaXNxSfZCp8");
  92. NSLog(@"YR9kwDvo408gAU");
  93. NSLog(@"CcxaqpMXWGQiTL4mKoVfYuUFJblIn9d0eHR1");
  94. NSLog(@"6ITzheg3UoHtX9fW");
  95. }
  96. -(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 {
  97. NSLog(@"utRsYAKmGFZScphydJrHig7vEX");
  98. NSLog(@"j8aWf7Vm1cvYZAqiO");
  99. NSLog(@"fyWBpsYwjdl0SEZXL");
  100. NSLog(@"mC21wjUxcAOifaz6bMHT9Io");
  101. NSLog(@"60Me23PObDoQgzrxARj5");
  102. NSLog(@"pvLeu7chT4WmZS3V8jY6fNkB1rFHtdDgIQ");
  103. NSLog(@"nfoQqHkIpUdGPxDwjOcK9Y8a7EN6u3M1l");
  104. NSLog(@"bRCD0w1oIJ");
  105. NSLog(@"9hx26lNapnCuYRIQrzy08ZvJwMmgeGUOjAkF3W");
  106. NSLog(@"0j25krPeXHgLFxhacIJzq7MiC8BATvs36DSYt");
  107. NSLog(@"sxYzK3kwWGci4");
  108. NSLog(@"y3BZ8TfYLzDeioPlUHIO");
  109. NSLog(@"knKihTVpjr8");
  110. NSLog(@"dfcIGm5bUNLMDeRYkPrXhouA8j");
  111. NSLog(@"4yTjvliPDa9MkFoHJqg1");
  112. NSLog(@"OadPKLk0FuxAw7niBQ");
  113. NSLog(@"9Z6WDwNCQoSMGg8yUB2YKl");
  114. }
  115. -(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 {
  116. NSLog(@"5FANZ0EJHML2");
  117. NSLog(@"Mn9FEvxWhzVHebB6tGmUsj4813uo");
  118. NSLog(@"vBHex9qrVMumYyQj");
  119. NSLog(@"tdsmeyIkrclp38PfoR2Y16NhC4DHJW");
  120. NSLog(@"2hCPLUWeta5w");
  121. NSLog(@"eVSlGTFW9rRLs7aJIiwt");
  122. NSLog(@"KYfvdjGpPgI08Liq9D1mSoHxOeca");
  123. NSLog(@"6TBvUhRj4dkVEJLZxuYQqHPSWab85");
  124. NSLog(@"B3CQ8JvHj9MDlOK24");
  125. NSLog(@"OY3IC0hGuzwjNX8f");
  126. NSLog(@"qETvzh9tm8dx");
  127. NSLog(@"Dm7TCt6d3wL9RsxgkvcW8");
  128. NSLog(@"xzG49ywMAnZp3uVc1P58i");
  129. NSLog(@"s18iJj7IRqoK2yBWbtgN9Lhm3cuQE");
  130. NSLog(@"2iah3NmQ1t0xZBuSUPRXrlL5IKFEpsTYW6M4ODfb");
  131. NSLog(@"Sv0UYERjGFgNWTaMZ4dycwQOesAD3h");
  132. NSLog(@"AGW5MuHTkenvFOSwbgi30KC6EXosRpQ8UJBh");
  133. }
  134. -(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 {
  135. NSLog(@"NTJz8R43q5y7g16MDlZHW0hFdnP");
  136. NSLog(@"o4HaufsExLm");
  137. NSLog(@"l60n48rkQFJNY7TohAw5MSpWbsVyODCBZPi9");
  138. NSLog(@"k1UydX2auq4mvJTNrj5LwFtDZEbgOSlHVPx60cYi");
  139. NSLog(@"QbJRMshTNqk5HVXgaIKCFf");
  140. NSLog(@"STHriwL5mt6sda1uYPBFj8RVkNfIylbXU");
  141. NSLog(@"vWaJLx3G0UMyXi7oTBFAQkOwVs1SYj8HRdrhg");
  142. NSLog(@"sdaetuWhEwz8rGqK3");
  143. NSLog(@"vQeNlKdxORhfpgEjJXM8I1nuokGUi0697Y");
  144. NSLog(@"5kTxzF8OtLE7W1o3d9XYG0CfQA4iIBHyJlhPc");
  145. NSLog(@"k3nEhrQmXl0sJgNj8WZ");
  146. NSLog(@"zqIw1Syaojsdhg9nHT2KZxEDWQf");
  147. NSLog(@"2kAYJCwKa4fHp5Qnh8XtMWGTeVgNP7izslIFq");
  148. NSLog(@"bCOL0mWQaHeGiutElfYJ6q9dp2hzxKk");
  149. NSLog(@"BZeV7vSJoWrkzwcL4iy");
  150. NSLog(@"8jNyMuUmACnehYdIRBKJPpVDzG643bg9Zwaf2L");
  151. NSLog(@"vAfngLSM1ej395rCq");
  152. }
  153. @end