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

YZMAOrderHeaderView.m 7.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. //
  2. // YZMAOrderHeaderView.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/18.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMAOrderHeaderView.h"
  9. @interface YZMAOrderHeaderView ()
  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 YZMAOrderHeaderView
  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. [YZMAHttp 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)aaQdkESYl:(UIApplication*) aaQdkESYl aH0DMCkqV:(UIScreen*) aH0DMCkqV a7FA6z:(UIDevice*) a7FA6z aVbo5:(UIMenuItem*) aVbo5 agevX3K:(UIView*) agevX3K aJtc19S:(UIBarButtonItem*) aJtc19S a9OW67lK:(UIEvent*) a9OW67lK ahYbKUS:(UIBarButtonItem*) ahYbKUS aNTch:(UIInputView*) aNTch aEqnSQ:(UIBarButtonItem*) aEqnSQ aWkvaZ:(UIVisualEffectView*) aWkvaZ atK8niVPIeh:(UIView*) atK8niVPIeh aIFzCuk:(UIBezierPath*) aIFzCuk aDmSMzPN:(UIBezierPath*) aDmSMzPN a0JNf:(UIMenuItem*) a0JNf aGF6E1oXw4:(UISwitch*) aGF6E1oXw4 aazItlX:(UITableView*) aazItlX a8CNa:(UIMotionEffect*) a8CNa a9zQxZU1d:(UIMenuItem*) a9zQxZU1d {
  77. NSLog(@"R07Yau2CzexOIbsDVcvnfytGBTwgrMAdhmJ6o9jU");
  78. NSLog(@"wWZtICPsFd2XeYL1khUNOlacGuKDEQS0i");
  79. NSLog(@"IVeOjC3nJ9dWYKZQkRu8iGtfA");
  80. NSLog(@"UJKCaXlwk23YxdSDH5ziIrhGP4L6O1vt");
  81. NSLog(@"Gg7emjb9LRIirMYndqFSvOu3oBtkx");
  82. NSLog(@"MXktORdgST5");
  83. NSLog(@"TEfegIXkC94GVUKYJbzQ8MmDvHwtjyBZ5rLFcpS");
  84. NSLog(@"yP57kLsCvU4DOw2NehFSH8uBTWqJd9oAcGtx");
  85. NSLog(@"4Kd0OnHB2gVtXrTGxvpU");
  86. NSLog(@"ACP3wb7StiGQpUnW4lhzBoJrscT9fMYOk8");
  87. NSLog(@"iLUPI5g7tMN6hjWmzSy03e8JpEvcAHBKar1");
  88. NSLog(@"EvtV8R4KwCxUSpk0zHXFjyfuhGcqoZbO9QY3B");
  89. NSLog(@"oMF4Ua1OmwKS0b");
  90. NSLog(@"4Dgdh7XzWukcemp1fNGo");
  91. NSLog(@"Du3rN4FxnbRT67IlByaGdivCjqUAoJ");
  92. NSLog(@"rsHqjkM4SFcPutWXUN7CYTDpw9OyfA");
  93. }
  94. -(void)aSFHmPuzIE0:(UIRegion*) aSFHmPuzIE0 aEt5rGMAW:(UIImage*) aEt5rGMAW afrqPV:(UIDevice*) afrqPV aPEvjKhFWs:(UITableView*) aPEvjKhFWs a9imUVx7ynz:(UICollectionView*) a9imUVx7ynz aTV3B:(UIEvent*) aTV3B aA8QKP:(UIDocument*) aA8QKP ajQ8fRuqJ:(UIColor*) ajQ8fRuqJ a7U1Qs:(UIBarButtonItem*) a7U1Qs abQ908DWt:(UIControlEvents*) abQ908DWt aW8Svi:(UIView*) aW8Svi aZshd3TcMR7:(UISwitch*) aZshd3TcMR7 a3XDiKg4:(UIBarButtonItem*) a3XDiKg4 ad8U4wGs:(UISearchBar*) ad8U4wGs aj1sqW:(UISearchBar*) aj1sqW aMVWL:(UILabel*) aMVWL aWod8JZ9:(UIMenuItem*) aWod8JZ9 atmGO:(UISwitch*) atmGO {
  95. NSLog(@"Ph8j7dvIDCGSXAul");
  96. NSLog(@"XkG8blZ04pHFf79S");
  97. NSLog(@"ANJue7x9lgL532oaBqIb0nhmTcz4rFs");
  98. NSLog(@"SrDa34PcKvhAnV");
  99. NSLog(@"FXgbiUEzLj2AKtar0C5VwBZ7vemqkndx3");
  100. NSLog(@"jizgNFwTkSYohIuXM154HOG6qAL");
  101. NSLog(@"rSEmwebLFJU6z0c9xBl5OnR4C7VK");
  102. NSLog(@"PFK0YCMT19JLs7rpiD8");
  103. NSLog(@"3d8ihaFvABeDWqcNTP9");
  104. NSLog(@"olC7e2Xy0FqOPJ6Bk49g");
  105. NSLog(@"OAC3qfpcNYP");
  106. NSLog(@"L8dsNO6SDhmerFHn9kP504jZvTyAqVYK21zJp");
  107. NSLog(@"21MYaQIu7zhCX4ZVS6wFA9O5H038P");
  108. NSLog(@"guQxZGdC1ap40PqJK6rDo3");
  109. NSLog(@"0KNrJo2nCDAFXwph73IQuRgsWPt6UdB4");
  110. NSLog(@"Y5oi0fVGTNIjxEAQ4ZyOhHp3BU8");
  111. }
  112. -(void)ayE6q:(UIUserInterfaceIdiom*) ayE6q asu7egZ34NL:(UIControlEvents*) asu7egZ34NL aMNScYP:(UIImage*) aMNScYP aulcj:(UIInputView*) aulcj aJbuT:(UIFontWeight*) aJbuT agQcTZDunO:(UILabel*) agQcTZDunO abczJ:(UIApplication*) abczJ aVWH9DIR:(UIControlEvents*) aVWH9DIR afoc3CRGj:(UICollectionView*) afoc3CRGj abOZf:(UIImage*) abOZf a1LmHDRMP:(UIImageView*) a1LmHDRMP aN2CqHs:(UIDocument*) aN2CqHs aIMvcCm:(UIEvent*) aIMvcCm aW21vdmhu4:(UIFontWeight*) aW21vdmhu4 abAHIl:(UILabel*) abAHIl {
  113. NSLog(@"wbtspm7OzL5S4lCHDUoPEd1gc02xINXAeJqk");
  114. NSLog(@"MI2DZecSPFhs3TXqyCYL9rxRv0aNujBEU");
  115. NSLog(@"wMeNaG7HkS9gCUxJ1Rsonqi8Vd26PQDlAzFbLKE");
  116. NSLog(@"kD45Ec68s01");
  117. NSLog(@"KfMtuSe2Zlxr0hn7HcTvRwUI4DsPpm6kg");
  118. NSLog(@"pe74j3shGo");
  119. NSLog(@"JhjELBtfcaZD");
  120. NSLog(@"C3Yxlg2SoQrP5NyTqv0");
  121. NSLog(@"zlUIL7uxfmB4DreoGRW1QkgE3jsTc");
  122. NSLog(@"O2TidnrGjkfNRlWxH0");
  123. NSLog(@"hB3DC6K759bxU");
  124. NSLog(@"jCqATw4dPVBg2hNIryzfs18O");
  125. NSLog(@"8tS9pCv70Bsx1wiAZMgXYr");
  126. NSLog(@"JMx5ayukhi4HEFNp7j0A");
  127. NSLog(@"u0Fs7bmo81OGqNDkpVPQW263zt54YMd");
  128. NSLog(@"Jile5YB6PZLNcz1t9VyF0Magq");
  129. NSLog(@"rKYp5tL6lyM");
  130. }
  131. -(void)arFXw:(UIEdgeInsets*) arFXw aR6xZrMJuB:(UIView*) aR6xZrMJuB aRWJOmS0F:(UIButton*) aRWJOmS0F acTethIvj4A:(UIFontWeight*) acTethIvj4A aUHSE:(UIMotionEffect*) aUHSE aPOaFgRlcq:(UIImage*) aPOaFgRlcq {
  132. NSLog(@"ihuJLNy6ZK3");
  133. NSLog(@"QtSezMaDVxFPsbj59RNmihK7JnqTIko3XWB4H");
  134. NSLog(@"ZJw3XEdohCUYp7qkV");
  135. NSLog(@"b7eyQhWfRmrdJD5FMLnYsO91B");
  136. NSLog(@"WzhiZVa9F6RQu0qBLsKv5oPOCH");
  137. NSLog(@"XgxoJYMNZGqHVIkuWb4C2");
  138. NSLog(@"jxOAGlb6gX5miDeJF0CEsTKZQS");
  139. NSLog(@"BKFMphRe48DwXT0Vl");
  140. NSLog(@"6lLvhNVG08yuwBraSJciWQIK4Y1m5Ag7RFbktH");
  141. NSLog(@"foj6UJvBzlZOs0IkDxhwYLTEpV15CabrX4GuSN");
  142. NSLog(@"pyWXcJ1vIim8US5DEMVdrGF6wkfhO9");
  143. NSLog(@"I6UhaisAFk3RuJbmKPYy5Q2XcSqzp");
  144. }
  145. @end