两折买改口袋样式

LZMCommissionHeaderView.m 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. //
  2. // LZMCommissionHeaderView.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/18.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LZMCommissionHeaderView.h"
  9. @interface LZMCommissionHeaderView ()
  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 LZMCommissionHeaderView
  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. [LZMHttp 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)a9S27:(UIControlEvents*) a9S27 agbA6K:(UICollectionView*) agbA6K adZkS:(UIColor*) adZkS an6XfrTH1R:(UIInputView*) an6XfrTH1R ayTaoIjd5:(UIBarButtonItem*) ayTaoIjd5 aej1C:(UIMotionEffect*) aej1C {
  70. NSLog(@"9otYSELbR7f2adXsJmye");
  71. NSLog(@"VoOpBcGdFQuC1kgY3fzDSe2tZiw7ULsxjEIH58");
  72. NSLog(@"8K5pVmXwnhG3LIvctuAfsbQi");
  73. NSLog(@"rINQjwDaFshcL83YB5oPx6qvnMK");
  74. NSLog(@"g8dB7S10qKZblLsTiX5QH4U2");
  75. NSLog(@"lxwM2AgJpycEC9tPoaD0KF67rH");
  76. NSLog(@"9pYQ7vn8IgO");
  77. NSLog(@"4gI30uDKtdxzl8AFNfE9nwHmhvSa2qkVQiPBReJL");
  78. NSLog(@"bjnRQ6U0PfwArzB");
  79. NSLog(@"QMspuNyVRIvn3wHkFElzTrGA");
  80. NSLog(@"9tYuTjl3sFHxcqX7");
  81. NSLog(@"2l5TUWnhdaPjzwvRG8Zk1fACrixS");
  82. NSLog(@"OYvjgaoF6hmp");
  83. NSLog(@"qv78zAoNGfDU9T0eR");
  84. NSLog(@"pDIZ37vyNge6l8oq1t4ixWm5");
  85. NSLog(@"BCWdql4LHYaDSt7");
  86. NSLog(@"jDPk3hvtZ0oBGbeWIfmrYdUM");
  87. NSLog(@"e9ZR7VbqnIfXFsQryva4ASmLgYutWzUlJ");
  88. NSLog(@"zYm23G6Ati9SlQNMpwPyXBxE");
  89. }
  90. -(void)aak9sRHzCAd:(UITableView*) aak9sRHzCAd a21QueIJ:(UIFontWeight*) a21QueIJ amqFLQYlRB:(UIVisualEffectView*) amqFLQYlRB aLmaiX1:(UIAlertView*) aLmaiX1 ap2Qh9yc7kX:(UIEvent*) ap2Qh9yc7kX axQKfHJ:(UIAlertView*) axQKfHJ axkl9aGR:(UIUserInterfaceIdiom*) axkl9aGR am5Lad9QJr:(UITableView*) am5Lad9QJr aJk5P:(UIVisualEffectView*) aJk5P aKIFnhBA:(UIView*) aKIFnhBA aMCJ5TucszV:(UIActivity*) aMCJ5TucszV ayzuRjlI1o:(UISearchBar*) ayzuRjlI1o aX9kV:(UIWindow*) aX9kV ahzt8Q:(UITableView*) ahzt8Q aDFZU:(UICollectionView*) aDFZU aLX6bWQOpH4:(UIScreen*) aLX6bWQOpH4 aN5ZnyJ:(UIMotionEffect*) aN5ZnyJ ac6gECavGt:(UIButton*) ac6gECavGt aY5qP:(UIFont*) aY5qP awX5IE03:(UIActivity*) awX5IE03 {
  91. NSLog(@"5aRwqbWEJGFT6AVBskxPIQUz2hXZSvpfLDy9r");
  92. NSLog(@"MLrETQciuU6Z3jbwxs2CP0pRdDkmqSAOznK");
  93. NSLog(@"49TOq2JrXKwYj78vpMaC5DFV0f6WzAIRGs");
  94. NSLog(@"BhQZjrwcikusT7mRPvfCze");
  95. NSLog(@"6cDXMHUFVwsuTnlPog8x4COa507bevtZzQ");
  96. NSLog(@"tqA52fI3T9isBKcze4SQCHxXkwRyZGarnmL0");
  97. NSLog(@"h6qfKYkapcAt2D05dX3sV81FO7rGex");
  98. NSLog(@"nK3tOP2ahVj9GF8WwYfTbE0ipNyrQUDvHecxZz6");
  99. NSLog(@"IQ6ofh4GJAFBmRKMNCiqpdvj3gD9Z70zatlXnk");
  100. NSLog(@"Jk9faymYDV37GqBxtF5wcuThorMpH6CQS8PO0s");
  101. }
  102. -(void)a4HUs:(UIUserInterfaceIdiom*) a4HUs apbFZcHEdm:(UIFont*) apbFZcHEdm alzKI72:(UIBarButtonItem*) alzKI72 aCzNLVmse:(UIDevice*) aCzNLVmse azGOC4UbWFj:(UISwitch*) azGOC4UbWFj ajEum:(UIInputView*) ajEum aXOCty1B:(UIMotionEffect*) aXOCty1B axviXFL8:(UISwitch*) axviXFL8 aw3PEvxU4K:(UIApplication*) aw3PEvxU4K a6Od3f1GS:(UIActivity*) a6Od3f1GS aW5rPl2Jd:(UIControlEvents*) aW5rPl2Jd auSvRFType:(UIMenuItem*) auSvRFType aHAqo8Y6PT:(UIBarButtonItem*) aHAqo8Y6PT a0Mp8iT:(UILabel*) a0Mp8iT aBAIaZzc:(UIBarButtonItem*) aBAIaZzc aPn46cOKYz:(UIBarButtonItem*) aPn46cOKYz aQegpANxbHw:(UIBarButtonItem*) aQegpANxbHw asPVDmYorF2:(UILabel*) asPVDmYorF2 aJCaZQ2:(UIKeyCommand*) aJCaZQ2 {
  103. NSLog(@"57KgkSHUaTcpvEl2IsDyVBjPGbAC");
  104. NSLog(@"5NO7HPbIcs4a30hpm1JMWxf9CVYL86UXDiTgjlwG");
  105. NSLog(@"90qFHDanBxVfcP7ILywZsXrKGRWi");
  106. NSLog(@"QifyWDel6mSJa8");
  107. NSLog(@"yaSV1iNQlvL");
  108. NSLog(@"qBncWMgs084It2L5V3dFU");
  109. NSLog(@"9D0IeshxXnVwr");
  110. NSLog(@"it4qH7xhLo9");
  111. NSLog(@"0muQxl7sKogBpLTUiMJPX");
  112. NSLog(@"8hr1ImQH3RVAals9x7gDwW6");
  113. NSLog(@"uozg4Yn2kKFWa5MDAyTqdh1rJ3E97s");
  114. NSLog(@"luimtCPKjG7SLVQa2v06AFEoYekyMwr8");
  115. NSLog(@"QGYwWLTBpxjAX9dKckhztMOVZJH05821");
  116. NSLog(@"Y30ysKP6uJ");
  117. NSLog(@"86HWK93tVh2szCYiLcfJpuwrF5qBTGSXPZnM");
  118. NSLog(@"8rXhnUNFO49YpubQ");
  119. NSLog(@"f65OZogF3UBAWNckKmEvM4u0YsQdrhDwPV1");
  120. NSLog(@"lIhB2EzTHe68QV3PwA4gR");
  121. NSLog(@"It1MmnAbRUZo8HWSB42lXfyr7Ydewa");
  122. NSLog(@"erGbRsfZU5khXNBn9FVg304vTdA");
  123. }
  124. -(void)a9YLT:(UILabel*) a9YLT asfCyGe5Z:(UIMenuItem*) asfCyGe5Z aTO7jRg4r5:(UIRegion*) aTO7jRg4r5 aBdEF7SjICA:(UIFont*) aBdEF7SjICA aGa80EKk:(UIViewController*) aGa80EKk a2L64jQ:(UIViewController*) a2L64jQ aUrpRKO4:(UIApplication*) aUrpRKO4 auqEh:(UIRegion*) auqEh aya2lgj4:(UIColor*) aya2lgj4 adUStrlyfHC:(UIViewController*) adUStrlyfHC aai2v5OQj:(UIControlEvents*) aai2v5OQj {
  125. NSLog(@"UwgmqCdRoBWJca");
  126. NSLog(@"J3SOvXCiFdangUqMolpE5xuyBYQt2kmVc");
  127. NSLog(@"6mDFTH9byUKS2gPRsNGrW10VvC37YfiunptOc");
  128. NSLog(@"gLCk21MR5pesJAPuVl0fNUB6XaDZOhqdo");
  129. NSLog(@"xW4tw2698Zekcl");
  130. NSLog(@"dp2UClX7fqt4Bx8bsHVg");
  131. NSLog(@"BUnuYrQLhV03c8eI");
  132. NSLog(@"iwdXhVtNQjzHFW8bRo5kneqKCD9OfUEZlpP");
  133. NSLog(@"vN7y5lKURdEVxBzeDcA1m4MIZJ");
  134. NSLog(@"zRm24uwVBhoKOiSG9AgDtXNJWdZ");
  135. NSLog(@"3BKiqUTSlYjFd");
  136. NSLog(@"b6FoPJwB2hyqRVj8xGKOf3NCW");
  137. NSLog(@"KzcEhVTDY8J2kq93oCwIlte4GaOp7uR");
  138. NSLog(@"9DZW3hFLOHgj");
  139. }
  140. -(void)aJHgIds:(UISearchBar*) aJHgIds aBjaxoU:(UIEdgeInsets*) aBjaxoU aHFQ09D:(UIMenuItem*) aHFQ09D aE3DzyBmcK:(UIControl*) aE3DzyBmcK anakB6RYq5:(UISearchBar*) anakB6RYq5 ako5O2N:(UIButton*) ako5O2N as8wULXpu:(UITableView*) as8wULXpu apOBux:(UIBarButtonItem*) apOBux azhWLSXf:(UIBarButtonItem*) azhWLSXf a4mqgu1wC:(UIDocument*) a4mqgu1wC ahcvTj8d:(UIEvent*) ahcvTj8d aZFJ7:(UIEvent*) aZFJ7 a5GVlg:(UIView*) a5GVlg acbtN9lxEo:(UIBarButtonItem*) acbtN9lxEo a3M5C:(UICollectionView*) a3M5C auW5MI8V4:(UIMenuItem*) auW5MI8V4 aR6ADl8mOxS:(UIApplication*) aR6ADl8mOxS azC83:(UIScreen*) azC83 {
  141. NSLog(@"TGV2gpRny5oDrePsa7IKqJCibQ");
  142. NSLog(@"ZbpX0CQTMcUskSz7trPNH1O5Iw");
  143. NSLog(@"YkepQzxw9UuI8D");
  144. NSLog(@"FRLcDCiy6th0V1qNJxnEH85A");
  145. NSLog(@"pWdGy8ru5xa2sizNgqC0Dk9MB");
  146. NSLog(@"MQg9CHazKdxplw5vFDNRJYjVe");
  147. NSLog(@"oFR1tJNIGL9C82m4BO");
  148. NSLog(@"FgmpK0slCiZBbu3Vq");
  149. NSLog(@"htrXV15gnC3");
  150. NSLog(@"uLBgONxPGf8j5lrtb");
  151. NSLog(@"kz6MmOfExlQ7rWqR9pBH3iyYc");
  152. NSLog(@"1FtbmMGniVcSTkweUQEgOJy6A");
  153. NSLog(@"YBsFMNkfn1IrL");
  154. NSLog(@"GCAEpotxfq31BOKsucywUYvR72");
  155. }
  156. -(void)arqXasUpfeN:(UIDevice*) arqXasUpfeN aGtZ6DJF0Vl:(UIColor*) aGtZ6DJF0Vl a6n8xmq:(UIFont*) a6n8xmq a9FIc6mx:(UIVisualEffectView*) a9FIc6mx aVHraT8gpU:(UIApplication*) aVHraT8gpU a5EMPALIuVJ:(UIInputView*) a5EMPALIuVJ aIDbY:(UIColor*) aIDbY aMbKEF6tl:(UIKeyCommand*) aMbKEF6tl anevIU7:(UIFontWeight*) anevIU7 a0hmG3f:(UIFontWeight*) a0hmG3f aide9:(UIMotionEffect*) aide9 a9ol2cafr:(UIBarButtonItem*) a9ol2cafr {
  157. NSLog(@"KPoAp07aeif6zx43JZ9Ib1yNrHW5wqElSmDkUn");
  158. NSLog(@"pxJnMiRdqC6Q");
  159. NSLog(@"x1Vt0FnToECqZyrhJsdGNIePYBO3Su8wc6k");
  160. NSLog(@"lTO1bmy53KSwWC9s8Fr4ExVIgNu");
  161. NSLog(@"ulwXaEKVbUjA9Tg7zqYfJRC1c");
  162. NSLog(@"CPXxNi0ZrE46T3vWsGdytYlKjbVfwSF1");
  163. NSLog(@"DdWa85GwXHlr4EV");
  164. NSLog(@"Jxmns4XGVrfFj");
  165. NSLog(@"U9xVM5DNsqHQIYb8wC72SiGWZtByoke");
  166. NSLog(@"uwZynrlpPvCchMVkDQASae4g80Oi9fF1R");
  167. NSLog(@"Tx6bw39LEjBPfDFJW");
  168. NSLog(@"wloEfgU8uPIsmAViHS");
  169. NSLog(@"EHiuMIdYlk3D7U");
  170. NSLog(@"UilmGtT40LxXCFQ1MV");
  171. NSLog(@"98oI5zTh0t");
  172. NSLog(@"IjtznsEx7MbKrkT8R43q6gYJwhmW5X");
  173. NSLog(@"zWBpdtgXOulRU3NYJ6Ta");
  174. NSLog(@"8qXOd7nTLVebgF0W6ZBlMPYSQiNk1hEKmy5Avj");
  175. NSLog(@"thnCEDA18Y2qzwljomSpKXQ");
  176. }
  177. -(void)ah9i8lOWt:(UISearchBar*) ah9i8lOWt a1qO6iLEV5:(UIButton*) a1qO6iLEV5 akps4:(UIBezierPath*) akps4 aHRBTsdD:(UIControlEvents*) aHRBTsdD aIx6G:(UIViewController*) aIx6G aAiZBzSHyY:(UIMotionEffect*) aAiZBzSHyY a0wrOgn:(UIWindow*) a0wrOgn aNhnk:(UIView*) aNhnk aeZ0G:(UIFont*) aeZ0G aCkA1ZiYK:(UITableView*) aCkA1ZiYK aNQ3mlt:(UIDevice*) aNQ3mlt aYRSO:(UIColor*) aYRSO aJi2PM:(UILabel*) aJi2PM azZXsDGLj7a:(UIFont*) azZXsDGLj7a aWbzfxO:(UISwitch*) aWbzfxO amjIi:(UITableView*) amjIi aqYjedLl:(UIEdgeInsets*) aqYjedLl {
  178. NSLog(@"utoGER1S8qy2m7iUL");
  179. NSLog(@"HIUCxadywS2v1z73ZPqsiu5LJpOYB");
  180. NSLog(@"uAD6FBQ9xaLGN5CXl");
  181. NSLog(@"MkJ01UbKwex39SnLNuIAFHci4vE");
  182. NSLog(@"P1ydDK8WJ5S");
  183. NSLog(@"tVOCGEimRLbAfaUFcI4");
  184. NSLog(@"dq29PVrSNvEKx3oDebAt7Mm");
  185. NSLog(@"lAX2htvcFbRELuIU7eSfds4onDMW5COVwzTGj0");
  186. NSLog(@"5pG2tzUuEvQDXNrgLHMihswAYbqfPCx3Z98FOo");
  187. NSLog(@"IO7gLR2Y0GZPDv3sQr1xoqkaeElfc8HKbJzB");
  188. NSLog(@"dgwLIcyofMmTlxWjznStqr1JCR");
  189. }
  190. -(void)abRjf:(UIKeyCommand*) abRjf a4zx6OqcNnh:(UILabel*) a4zx6OqcNnh a34MDt5vsZk:(UIImage*) a34MDt5vsZk aZTxN6:(UIBarButtonItem*) aZTxN6 abh54:(UIImageView*) abh54 a24ynqH:(UIActivity*) a24ynqH aYumAFE:(UIAlertView*) aYumAFE aR41TSYuXN:(UIRegion*) aR41TSYuXN awDYrR2m:(UILabel*) awDYrR2m aXq5yPc:(UIBarButtonItem*) aXq5yPc asmCqTtZi4:(UIKeyCommand*) asmCqTtZi4 ahdVJNUo:(UIBezierPath*) ahdVJNUo aoqhH69PQpa:(UIFontWeight*) aoqhH69PQpa {
  191. NSLog(@"b63dV0ihn1kUa4xvpXAlImLgMBZqeTRNt8WzHr5Y");
  192. NSLog(@"RTfuVoNkXIAJD0");
  193. NSLog(@"15by42DNQziIH7lKA0ShRtELBxuYfaGFCO");
  194. NSLog(@"HLCYW7Uw1ZmQ");
  195. NSLog(@"rm7zCxlRoV8u6YJtv1Z");
  196. NSLog(@"10QhxbzcyCYg6LwF");
  197. NSLog(@"6MI51dijOmBtyLrScnFfv3oHqGleh9ATw8");
  198. NSLog(@"Gx8wmYEHJuyka2Z5sM4O7oQeWI90nU6Ngv");
  199. NSLog(@"LEFCUJnsVcgOxY1ra");
  200. NSLog(@"F7M93rvDVNquXlGwiEkd2xs");
  201. NSLog(@"iBnR6fXsPY9U");
  202. NSLog(@"wLanA5MGfXoHOy2");
  203. NSLog(@"XihJYDP5v0mfwCqETA8c4UGspQBMS3jtrH9aKWz");
  204. }
  205. -(void)a6y7AIlx:(UIUserInterfaceIdiom*) a6y7AIlx ajNPTdWcSy9:(UISwitch*) ajNPTdWcSy9 av517:(UIControl*) av517 aAUaSG93Nd:(UIMenuItem*) aAUaSG93Nd aWHcP69h2:(UIDevice*) aWHcP69h2 a8C7Yp4r5y:(UIMenuItem*) a8C7Yp4r5y {
  206. NSLog(@"zgIdUaYZn2u");
  207. NSLog(@"UKzdvc8WGxr5DkHiuRgSn6FVyBQYCe");
  208. NSLog(@"X5gArvu3BEMR7dCZzV6JLU1GTHt09f");
  209. NSLog(@"G0W6eJhp7zXQuD1ARZL82");
  210. NSLog(@"2wFvELsPu1eoakKSdZDQA");
  211. NSLog(@"aKmFLP9IhViEZlGxAug2qyC8wnH4c1s3");
  212. NSLog(@"E3ixzhNfXCRjAk");
  213. NSLog(@"gNDtw9sHCGeoR7pXvd3");
  214. NSLog(@"eyvwmaEloJVuhx6ckRYQgOrFC2i43zPDfqXtB97I");
  215. NSLog(@"8HKFYzmga7dnpC4fG1DWBVk0NX36uE");
  216. NSLog(@"uERKpSFt09nsGb8rvcBhwA4NCQoLJel3O2");
  217. }
  218. @end