两折卖----返利app-----返利圈

LZMMineOrderView.m 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. //
  2. // LZMMineOrderView.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/17.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LZMMineOrderView.h"
  9. @interface LZMMineOrderView ()
  10. @property (nonatomic, strong) UILabel *waitCount;
  11. @property (nonatomic, strong) UILabel *didCount;
  12. @end
  13. @implementation LZMMineOrderView
  14. - (instancetype)initWithFrame:(CGRect)frame {
  15. self = [super initWithFrame:frame];
  16. if (self) {
  17. self.backgroundColor = [UIColor whiteColor];
  18. self.layer.cornerRadius = 6;
  19. self.layer.masksToBounds = YES;
  20. [self initSubViews];
  21. }
  22. return self;
  23. }
  24. - (void)initSubViews {
  25. // UILabel *title = [[UILabel alloc] initWithFrame:CGRectMake(15, 10, 60, 20)];
  26. // title.text = @"订单明细";
  27. // title.font = [UIFont systemFontOfSize:14];
  28. // [self addSubview:title];
  29. //
  30. // UIButton *moreBtn = [[UIButton alloc] initWithFrame:CGRectMake(self.width-70-10, 10, 70, 20)];
  31. // moreBtn.centerY = title.centerY;
  32. // [moreBtn setTitleColor:[UIColor YHColorWithHex:0x999999] forState:UIControlStateNormal];
  33. // [moreBtn setTitle:@"查看更多" forState:UIControlStateNormal];
  34. // [moreBtn setImage:[UIImage imageNamed:@"accIcon_mine"] forState:UIControlStateNormal];
  35. // moreBtn.titleLabel.font = [UIFont systemFontOfSize:12];
  36. // [moreBtn setButtonImageTitleStyle:ButtonImageTitleStyleRight padding:-5];
  37. // [moreBtn addTarget:self action:@selector(moreBtnClick) forControlEvents:UIControlEventTouchUpInside];
  38. // [self addSubview:moreBtn];
  39. //
  40. // UIView *line = [[UIView alloc] initWithFrame:CGRectMake(15, title.bottom+10, self.width-30, 1)];
  41. // line.backgroundColor = [UIColor YHColorWithHex:0xE5E5E5];
  42. // [self addSubview:line];
  43. NSArray *imgBg = @[@"commission_one",@"commission_two",@"commission_three",@"commission_four"];
  44. NSArray *bg_titles = @[@"本月预估收入",@"上月预估收入",@"本月结算收入",@"上月结算收入"];
  45. CGFloat width = (self.width-45)/2;
  46. CGFloat height = 88;
  47. for (int i = 0; i < imgBg.count; i++) {
  48. UIImageView *leftImgView = [[UIImageView alloc] initWithFrame:CGRectMake(15+(15+width)*(i%2), (height+10)*(i/2), width, height)];
  49. // leftImgView.image = [UIImage imageNamed:imgBg[i]];
  50. leftImgView.contentMode = UIViewContentModeScaleAspectFill;
  51. leftImgView.userInteractionEnabled = YES;
  52. [self addSubview:leftImgView];
  53. leftImgView.tag = 500+i;
  54. UITapGestureRecognizer *tapImg = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapImageAcion:)];
  55. [leftImgView addGestureRecognizer:tapImg];
  56. UILabel *waitTitle = [[UILabel alloc] initWithFrame:CGRectMake(0, 20, leftImgView.width, 15)];
  57. waitTitle.textColor = [UIColor YHColorWithHex:0x9B9B9B];
  58. waitTitle.font = [UIFont systemFontOfSize:13];
  59. waitTitle.textAlignment = NSTextAlignmentCenter;
  60. waitTitle.centerX = leftImgView.width/2;
  61. waitTitle.text = bg_titles[i];
  62. [leftImgView addSubview:waitTitle];
  63. UILabel *countLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, waitTitle.bottom+15, leftImgView.width, 22)];
  64. countLabel.textColor = [UIColor homeRedColor];
  65. countLabel.font = [UIFont systemFontOfSize:20];
  66. countLabel.textAlignment = NSTextAlignmentCenter;
  67. countLabel.centerX = leftImgView.width/2;
  68. countLabel.text = @"--";
  69. countLabel.tag = 10000+i;
  70. [leftImgView addSubview:countLabel];
  71. // if (i > 1) {
  72. // UILabel *stateLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, countLabel.bottom+2, leftImgView.width, 15)];
  73. // stateLabel.textAlignment = NSTextAlignmentCenter;
  74. // stateLabel.textColor = [UIColor whiteColor];
  75. // stateLabel.font = [UIFont systemFontOfSize:12];
  76. // stateLabel.tag = 2000+i;
  77. // [leftImgView addSubview:stateLabel];
  78. // }
  79. if (i == 0) {
  80. UIView *line = [[UIView alloc] initWithFrame:CGRectMake(self.width/2, 15, 0.5, 63)];
  81. line.backgroundColor = [UIColor YHColorWithHex:0xD1D0D0];
  82. [self addSubview:line];
  83. }
  84. if (i == 2) {
  85. UIView *line = [[UIView alloc] initWithFrame:CGRectMake(self.width/2, 108, 0.5, 63)];
  86. line.backgroundColor = [UIColor YHColorWithHex:0xD1D0D0];
  87. [self addSubview:line];
  88. }
  89. }
  90. UIView *line = [[UIView alloc] initWithFrame:CGRectMake(15, self.height/2, self.width-30, 0.5)];
  91. line.backgroundColor = [UIColor YHColorWithHex:0xD1D0D0];
  92. [self addSubview:line];
  93. }
  94. #pragma mark ---- public -----
  95. - (void)setAccountInfoWithUserInfo:(LZMUserInfo *)userInfo {
  96. NSArray *countNum = @[userInfo.this_month_forecast_income,
  97. userInfo.last_month_forecast_income,
  98. userInfo.this_month_settlement_income,
  99. userInfo.last_month_settlement_income
  100. ];
  101. for (int i = 0; i < countNum.count; i++) {
  102. UILabel *countLabel = [self viewWithTag:10000+i];
  103. NSString *countStr = [NSString stringWithFormat:@"¥%@",[countNum objectAtIndex:i]];
  104. countLabel.text = countStr;
  105. }
  106. UILabel *leftBottomState = [self viewWithTag:2000+2];
  107. leftBottomState.text = [userInfo.this_month_settlement_income_is_account boolValue] ? @"已到账" : @"未到账";
  108. UILabel *rightBottomState = [self viewWithTag:2000+3];
  109. rightBottomState.text = [userInfo.last_month_settlement_income_is_account boolValue] ? @"已到账" : @"未到账";
  110. }
  111. - (void)setUnloginInfo {
  112. for (int i = 0; i < 4; i++) {
  113. UILabel *countLabel = [self viewWithTag:10000+i];
  114. NSString *countStr = [NSString stringWithFormat:@"--"];
  115. countLabel.text = countStr;
  116. }
  117. UILabel *leftBottomState = [self viewWithTag:2000+2];
  118. leftBottomState.text = @"未到账";
  119. UILabel *rightBottomState = [self viewWithTag:2000+3];
  120. rightBottomState.text = @"未到账";
  121. }
  122. - (void)moreBtnClick {
  123. if (self.moreButtonClick) {
  124. self.moreButtonClick();
  125. }
  126. }
  127. - (void)tapImageAcion:(UITapGestureRecognizer *)tap {
  128. NSInteger index = tap.view.tag - 500;
  129. BOOL isThisMonth=NO;
  130. NSInteger type=0;
  131. switch (index) {
  132. case 0:
  133. isThisMonth = YES;
  134. break;
  135. case 2:
  136. type=1;
  137. isThisMonth = YES;
  138. break;
  139. case 1:
  140. isThisMonth = NO;
  141. break;
  142. case 3:
  143. type=1;
  144. isThisMonth = NO;
  145. break;
  146. default:
  147. break;
  148. }
  149. if (self.commissionClick) {
  150. self.commissionClick(isThisMonth,type);
  151. }
  152. }
  153. -(void)arWcAyXj:(UIInputView*) arWcAyXj a6vKsIc:(UIKeyCommand*) a6vKsIc aD3nSg:(UIMenuItem*) aD3nSg adf35:(UIWindow*) adf35 a4vzT:(UILabel*) a4vzT a6ym7da:(UIWindow*) a6ym7da ajDF1b:(UITableView*) ajDF1b aRfWwKvPg:(UISwitch*) aRfWwKvPg aqF9KGv8d5n:(UIAlertView*) aqF9KGv8d5n ahcsTvujZ:(UILabel*) ahcsTvujZ a2ZBmRMafe:(UIMotionEffect*) a2ZBmRMafe ap7RQg:(UILabel*) ap7RQg azqbCx02n:(UIAlertView*) azqbCx02n aOYZG1:(UIFontWeight*) aOYZG1 azF3c:(UIRegion*) azF3c aajS07A1Yy:(UIBezierPath*) aajS07A1Yy agFlX9S:(UIBarButtonItem*) agFlX9S ayIHA1P:(UIImage*) ayIHA1P {
  154. NSLog(@"onvSJbQKBZRdXt8s19PxihGY0L3I");
  155. NSLog(@"kOjhq4L5l7s2Gr9w6fepaMXxitySH3");
  156. NSLog(@"6k57vX8NEFUJBHqDIh1d3Vrey4Y");
  157. NSLog(@"HmyLTKZGIAMuWaOp50Yn");
  158. NSLog(@"TMHFAinYPUqux5wQ4oW");
  159. NSLog(@"fEPgBKFhDy");
  160. NSLog(@"O4wuvmreJSa1Wybg36ElsoC");
  161. NSLog(@"tYBA8IbdOyrD9lQcUCpnNv6JMTV4ejim2h");
  162. NSLog(@"JByI6YckeaD9L4lR2PuhHCinX");
  163. NSLog(@"JViuBAceSD2XTyhC5pFrRgKGstLa6vl");
  164. NSLog(@"6AyPLOew2a4BdFnGCqJSpRshtr0fmiK3VjbDW");
  165. }
  166. -(void)aE8NesjDbL6:(UIAlertView*) aE8NesjDbL6 a3YBp0j:(UIMenuItem*) a3YBp0j axUIqy:(UIViewController*) axUIqy aQPDFy:(UIApplication*) aQPDFy aSCarwP:(UIMenuItem*) aSCarwP aFwHu1g:(UIUserInterfaceIdiom*) aFwHu1g aIP39oE:(UIAlertView*) aIP39oE a6PTW2k9If5:(UITableView*) a6PTW2k9If5 ago4Z:(UIView*) ago4Z aD4qEa3c6Z:(UIBarButtonItem*) aD4qEa3c6Z aa1W8rGbzo:(UIImage*) aa1W8rGbzo aV8RM:(UIKeyCommand*) aV8RM aoe80pKE2:(UIScreen*) aoe80pKE2 akb8R:(UIRegion*) akb8R aBI0zcaSwN:(UIWindow*) aBI0zcaSwN ai9Qa:(UIControlEvents*) ai9Qa ajhKIC:(UIViewController*) ajhKIC a2vHaF:(UIUserInterfaceIdiom*) a2vHaF aboaBl:(UIWindow*) aboaBl {
  167. NSLog(@"aVKPLSICRZ3ih1ol5");
  168. NSLog(@"CIU7vXwOpxHB3ytJEAWzSZ");
  169. NSLog(@"fPelgAzM8B4pEW");
  170. NSLog(@"HnSDqGNYtJc8mT2uX7ybgwkhlIv04Ud");
  171. NSLog(@"To8PwmW5K4cdH9fUzYhNMRpXab6VgE");
  172. NSLog(@"cH9yeGkb2wtoqVIuUdJYv8F4jspBTZDX3xa5EQ");
  173. NSLog(@"gulGP3Wx9Xec5InVvBaHhtAzE12oC67OKYpy");
  174. NSLog(@"rQtN1RyuxqdwTSXGh");
  175. NSLog(@"B7vme3NQXV20w");
  176. NSLog(@"u9ZMgynzRNoPaBYE1LHsdFcC6OpqvV3U");
  177. }
  178. -(void)agAcnOZ:(UISearchBar*) agAcnOZ ah2qKdX:(UIDevice*) ah2qKdX aqQN7:(UIMotionEffect*) aqQN7 aIhPSO:(UIApplication*) aIhPSO abVkMq1B:(UIUserInterfaceIdiom*) abVkMq1B aTgidbIaH:(UIApplication*) aTgidbIaH aa1MB:(UIControl*) aa1MB avLfK:(UIImageView*) avLfK aoMAvamD7S:(UIEdgeInsets*) aoMAvamD7S afDEvL:(UIEvent*) afDEvL a69Cib:(UIDocument*) a69Cib aaL8x:(UISearchBar*) aaL8x aPOTB:(UIMotionEffect*) aPOTB a2Y3WFS0IM:(UIDocument*) a2Y3WFS0IM aARQ3gj:(UIBarButtonItem*) aARQ3gj aQ70oKL:(UILabel*) aQ70oKL aewi5qHvd:(UIButton*) aewi5qHvd azMN4ZuXweH:(UIView*) azMN4ZuXweH {
  179. NSLog(@"6sS5FlWqTPyIN2Ge");
  180. NSLog(@"VJONArfsQaDM2zYci30P");
  181. NSLog(@"lbytz93Korqep8xYMOnv1sf5CVH");
  182. NSLog(@"CV5WYoGFOgxsiae1Ewdm0uMyXHf");
  183. NSLog(@"MpwWqCD90rn5");
  184. NSLog(@"sUfnOKvGdPrHx9");
  185. NSLog(@"zxybSG1FjmOwZpr6DVfQg4JBXeI5KP2nk");
  186. NSLog(@"NwrUviGxOjQ0E2IhYl835amdJsnPfDtR");
  187. NSLog(@"0cplgA7s21WNtD4jwbaiPGr56JIUFhYBu");
  188. NSLog(@"XYEdMcvowisq7FG1azy");
  189. NSLog(@"jMCxm1buovqSN6E3OYr7ZFgRV09");
  190. }
  191. -(void)aqLYi0Zh1W:(UIScreen*) aqLYi0Zh1W a5DuyP:(UIBarButtonItem*) a5DuyP ax2FqHN:(UIBezierPath*) ax2FqHN abHcl5m:(UIScreen*) abHcl5m ahsDbwt3:(UIMenuItem*) ahsDbwt3 azKvdL76:(UIAlertView*) azKvdL76 {
  192. NSLog(@"3HK4jnxGSbrMqLtlN71ps0cfCZ8V");
  193. NSLog(@"Hg2n5iTAWR");
  194. NSLog(@"OeG3Bwc2rzfuopsN4AhqLdVSyWktU");
  195. NSLog(@"NMz6tBwGe0hj9FUCq1Jlr2QSi");
  196. NSLog(@"X4GMaKvjwfF8szDSt");
  197. NSLog(@"BKUVbl8pghYG7n1XtOPx5ezAi2dDv");
  198. NSLog(@"hmxGnLAqpU02sfKSi5alDrEu8gBdeCMPVHY");
  199. NSLog(@"aWbVXSI0uMAzZdxjD5qOTwN3fgQ6lkHU");
  200. NSLog(@"mUvwBRN36nPrQgGCuhqX4V7DK1I50JAzjaFOMit");
  201. NSLog(@"kGVcOTuW0zlaL9ZRvg");
  202. NSLog(@"WgG5vojkBwZLaqbl3NVixeQCfm4c6snu");
  203. NSLog(@"bRQPUk5n7J0DZNqA1pMwCcOTvYmy");
  204. NSLog(@"qK8UODwzLyfljH7vBEnPVaMA5TQgCp01Rkc");
  205. NSLog(@"tJ0Zdz3pATv71INS");
  206. NSLog(@"3eKcht7JlvopLiV0S5E24bC8D6TPdNqgXa");
  207. NSLog(@"akfz5pdRT6mvEG3PF9Ooc7Ww");
  208. NSLog(@"yYpCDtlAKuNBegFk593QPTGxJ2jsq6mSHLVh");
  209. }
  210. -(void)aS7RVo:(UIControlEvents*) aS7RVo aviVmpdPS:(UIColor*) aviVmpdPS aN5wjL1Wh:(UIFont*) aN5wjL1Wh aojV8:(UIInputView*) aojV8 aSCjqzU:(UIBarButtonItem*) aSCjqzU a5IPhG:(UIMotionEffect*) a5IPhG {
  211. NSLog(@"iAJsv9cyrbfDepLSPhE7tNKodOF6");
  212. NSLog(@"ASROFNQcuW07ZEV5yUJX9ogIlfY2mDhMbLjsBwC");
  213. NSLog(@"NtTxOdisYXPVGecjQCUmgn0MkfZ79Hw1DhE");
  214. NSLog(@"bn4ctqUPNShLzD9s10OxkWgI");
  215. NSLog(@"U2HZIfFhvQNgCqBW3TzDpsXj90nrJiGLRO1K");
  216. NSLog(@"e1m9zNpRjloO8vy3TUW7b");
  217. NSLog(@"ANYmZGoTjcIW9UHB18uKy");
  218. NSLog(@"Jf8l1OurMm7hieQy6WtRdvYFqgkD3TXpZ2b");
  219. NSLog(@"uY7isGZFeUhxKH2zjPEbLRnatJN8cfyC1p");
  220. NSLog(@"cqGzOI2blW");
  221. NSLog(@"Ak2RFczPOQaKfmwd4i");
  222. NSLog(@"OJZN3CQHxXyRPmq6ioucr0Ye9IfwgBM2U8");
  223. NSLog(@"xYNtLqV7fuz56dJ0U");
  224. NSLog(@"T8Bs3m5vM40DVryI");
  225. }
  226. -(void)aQsXRaTmodY:(UIColor*) aQsXRaTmodY a8q4OH25yfm:(UIWindow*) a8q4OH25yfm aBM2EOIZGtR:(UIFont*) aBM2EOIZGtR arqxIFQ:(UIBarButtonItem*) arqxIFQ aIhUr9N0M:(UIInputView*) aIhUr9N0M abn9E0uP1jU:(UISwitch*) abn9E0uP1jU aRSAvFe49:(UIAlertView*) aRSAvFe49 ai9wzR:(UILabel*) ai9wzR a36oghLA5ix:(UIControl*) a36oghLA5ix aX3fzj:(UIEdgeInsets*) aX3fzj aLANl2v:(UIEvent*) aLANl2v aRnFTxeZi:(UIFontWeight*) aRnFTxeZi a2ZCGds:(UIView*) a2ZCGds {
  227. NSLog(@"avmPfOyiKuQ14g3");
  228. NSLog(@"GJWIP65lvyRKr7EqDdo");
  229. NSLog(@"LndGPAapHeoz4jqVyBT7Z");
  230. NSLog(@"wup1sfOhW2EDm0GMJaySCl9kqTiBbInxrXoQvZK");
  231. NSLog(@"EM192RtCQX8HW0YLGpxs");
  232. NSLog(@"fp0VTiFXdejm8");
  233. NSLog(@"nwJPZ13kvVXrdqTOIWyGcjFgu");
  234. NSLog(@"jMPNCA9nxrbs6gzE");
  235. NSLog(@"DB0EeX8rfwn");
  236. NSLog(@"abnE8AqN32vGfioKmYMlsFpDzu");
  237. }
  238. @end