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

YZMAChildMonthViewController.m 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. //
  2. // YZMAChildMonthViewController.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/28.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMAChildMonthViewController.h"
  9. #import "YZMAChildCommissionCell.h"
  10. #import "YZMAChildCommissionModel.h"
  11. #import "YZMAMonthCenterTipView.h"
  12. @interface YZMAChildMonthViewController ()
  13. <
  14. UITableViewDelegate,
  15. UITableViewDataSource
  16. >
  17. @property (nonatomic, strong) UITableView *tableView;
  18. @property (nonatomic, strong) NSMutableArray *dataArr;
  19. @property (nonatomic, assign) NSInteger page;
  20. @end
  21. @implementation YZMAChildMonthViewController
  22. - (void)viewDidLoad {
  23. [super viewDidLoad];
  24. [self configTableView];
  25. [self request];
  26. }
  27. - (void)configTableView {
  28. self.page = 1;
  29. [self.view addSubview:self.tableView];
  30. }
  31. #pragma mark -------- UITableView Delegate -----
  32. - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
  33. if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
  34. [cell setSeparatorInset:UIEdgeInsetsMake(0, 15, 0, 15)];
  35. }
  36. }
  37. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  38. return self.dataArr.count;
  39. }
  40. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
  41. return 110;
  42. }
  43. - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
  44. return 0.1;
  45. }
  46. - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
  47. return 0.1;
  48. }
  49. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  50. YZMAChildCommissionCell *cell = [YZMAChildCommissionCell cellWithTableView:tableView];
  51. YZMAChildCommissionModel *model=self.dataArr[indexPath.row];
  52. cell.model=model;
  53. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  54. return cell;
  55. }
  56. #pragma mark -网络请求
  57. #pragma mark - request
  58. - (void)request {
  59. NSString *url=[NSString stringWithFormat:@"%@/api/v2/adzoneCreate/incomeList",BaseURL];
  60. NSDictionary *dic=@{
  61. @"type":@(self.type),
  62. @"page":@(self.page),
  63. @"isThisMonth":@(self.isThisMonth)
  64. };
  65. [YZMAHttp post:url params:dic success:^(id json) {
  66. NSArray *arr = [NSArray yy_modelArrayWithClass:[YZMAChildCommissionModel class] json:json[@"data"]];
  67. if (arr.count>0) {
  68. [self.dataArr addObjectsFromArray:arr];
  69. [self.tableView.mj_footer endRefreshing];
  70. }else {
  71. [self setUpNoDataView];
  72. [self.tableView.mj_footer endRefreshingWithNoMoreData];
  73. }
  74. [self.tableView reloadData];
  75. } failure:^(NSError *error) {
  76. [self.tableView.mj_footer endRefreshing];
  77. }];
  78. }
  79. - (void)setUpNoDataView {
  80. self.tableView.showNoDataView = YES;
  81. self.tableView.defaultNoDataText = @"您还没有任何订单";
  82. self.tableView.defaultNoDataImage = [UIImage imageNamed:@"noData"];
  83. }
  84. #pragma mark ------- layzer ------
  85. - (UITableView *)tableView {
  86. if (!_tableView) {
  87. _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT-NavBarHeight-40) style:UITableViewStyleGrouped];
  88. _tableView.estimatedSectionHeaderHeight = 0;
  89. _tableView.estimatedSectionFooterHeight = 0;
  90. _tableView.sectionFooterHeight = 0;
  91. _tableView.sectionHeaderHeight = 0;
  92. _tableView.estimatedRowHeight = 0;
  93. _tableView.delegate = self;
  94. _tableView.dataSource = self;
  95. _tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
  96. _tableView.backgroundColor = [UIColor yhGrayColor];
  97. _tableView.bounces = YES;
  98. _tableView.showsVerticalScrollIndicator = NO;
  99. _tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
  100. _tableView.separatorColor = [UIColor YHColorWithHex:0xEEEEEE];
  101. _tableView.mj_footer = [MJRefreshBackNormalFooter footerWithRefreshingBlock:^{
  102. self.page ++;
  103. [self request];
  104. }];
  105. }
  106. return _tableView;
  107. }
  108. -(NSMutableArray *)dataArr{
  109. if (!_dataArr) {
  110. _dataArr=[NSMutableArray array];
  111. }
  112. return _dataArr;
  113. }
  114. -(void)a05ezfa:(UIScreen*) a05ezfa asdFcO:(UIBarButtonItem*) asdFcO aN95t:(UIDocument*) aN95t auZxlE:(UIViewController*) auZxlE a3IzmT:(UIVisualEffectView*) a3IzmT a7C1BpVs:(UIButton*) a7C1BpVs aD2X3uBYy:(UIWindow*) aD2X3uBYy agi0E:(UILabel*) agi0E aasLBZ4NSu:(UIEdgeInsets*) aasLBZ4NSu azqhmpx:(UIViewController*) azqhmpx a6F1W:(UIActivity*) a6F1W amA5jq:(UIUserInterfaceIdiom*) amA5jq aVqhRZti8vd:(UIMenuItem*) aVqhRZti8vd {
  115. NSLog(@"MAXYszPCHcU5p");
  116. NSLog(@"yMNIEuKjXcQsfODgS56zYpRWArUdnFtivJZ3kL");
  117. NSLog(@"9cMLi2qPCsjxIbkyTrgaGE35Y");
  118. NSLog(@"Gf6r85ijPhzxCqEgpY1Ndb7t3ZUW");
  119. NSLog(@"3Dmv8XIONonw06lAHyUZpbWru2q");
  120. NSLog(@"pd3P2rM6SfRBhjmzqFEtTJYu9D1kZNHxwI4g5C");
  121. NSLog(@"ze1nlQZJVSdY0DctaUTBMW6gG7AEoPmqLFvCi");
  122. NSLog(@"TJf1e4low6gIjRuK3Hrsh9GzZA");
  123. NSLog(@"DIlm24ehWdraUTnGQxZXYVAMJ");
  124. NSLog(@"KPlIOxCpyDNogjAeq5adW73uvw");
  125. NSLog(@"bXm5sSQ7lFJ8gwvuPYHTxpWrEV0K2O4njDi");
  126. NSLog(@"aP8wt7qr4n26ZL5Af0DlmpRdGxKujckNbWi1vIES");
  127. NSLog(@"HRDnpJz1ABxQjiGT");
  128. NSLog(@"d5Jl4I7urcv");
  129. NSLog(@"MVGgI2oPmhb5T8qCuWdSj");
  130. NSLog(@"AFk3u4b7aymKH6vZYDw");
  131. NSLog(@"2unMd0acjK3PZB7Qt1CYbiWwkzg4eJs5");
  132. }
  133. -(void)adYms5fCwn:(UIKeyCommand*) adYms5fCwn aVPyCG:(UICollectionView*) aVPyCG akKRYceX0q:(UIMenuItem*) akKRYceX0q a8wusBYW53:(UIVisualEffectView*) a8wusBYW53 aFr3lcOdsfA:(UIBarButtonItem*) aFr3lcOdsfA ajp5g:(UIFontWeight*) ajp5g aEJhB6n:(UISearchBar*) aEJhB6n ai7tKbpzM:(UITableView*) ai7tKbpzM aP0afYGy8:(UIControl*) aP0afYGy8 aZDxp:(UISwitch*) aZDxp aqiK1:(UIFontWeight*) aqiK1 a5uQMj:(UIViewController*) a5uQMj avwHNLbPqK:(UIBarButtonItem*) avwHNLbPqK aheCZxUqvl2:(UIDevice*) aheCZxUqvl2 {
  134. NSLog(@"aiYzfxoeVckwAumZRQdLv1");
  135. NSLog(@"6VH0p8grIeuYM5AGUTE9");
  136. NSLog(@"JQNegujFitWnMhdKvOmBAxqEl45Tb");
  137. NSLog(@"4dmoaI9qvQ5e3uzWnOgpRG0tcrlTS1f2VBX");
  138. NSLog(@"A6yadKEcoCFf43XI0tTs9gxMRJ2Su");
  139. NSLog(@"G5v6yfKmj3rNtxsozb");
  140. NSLog(@"stP85LWCvz7ab");
  141. NSLog(@"Qrc5fmk2RZFqdBDls7L");
  142. NSLog(@"z9lsQD8VKMIpckqhOFfew35moxHZnaY");
  143. NSLog(@"LpFNVH42ZiAolDxkmR5u7MSPUfr9");
  144. NSLog(@"hv1YOmbsuE");
  145. NSLog(@"9wLCWsoMH2VrDidItANmROY1kxh");
  146. NSLog(@"1LtTmsOg3V2D9W4vzfFJySXZp7rKR8EIoiY");
  147. NSLog(@"oM04RdAH1r7clO2ynazuj53");
  148. }
  149. -(void)aSzoaG9KFQ:(UIInputView*) aSzoaG9KFQ aabj8:(UIColor*) aabj8 auXOTtKY:(UIDevice*) auXOTtKY agz0Kwfqx:(UIScreen*) agz0Kwfqx a3wBhJ6XTI:(UIRegion*) a3wBhJ6XTI aQ8OaBh:(UIMotionEffect*) aQ8OaBh aXEUy:(UIButton*) aXEUy ar2jME0H:(UIVisualEffectView*) ar2jME0H aAiEcWNe:(UILabel*) aAiEcWNe aDj7wYVFM:(UIInputView*) aDj7wYVFM {
  150. NSLog(@"RvQdsiDGEomtbhrOFJxI7kn0zcKpwH");
  151. NSLog(@"SWbLHldC16JpYXDIwA");
  152. NSLog(@"kC18TzDSVWPOHrxydao0sM2N");
  153. NSLog(@"401E6Ymc5DquPH9BhTfA2NnxSbg8MKsi7JtW3yQd");
  154. NSLog(@"yivNIL05ah6V");
  155. NSLog(@"C7ORU58wqhrQToNkE6");
  156. NSLog(@"ilA7RwNZyFuoP9LeY8WJVxk0");
  157. NSLog(@"41785ow0uyMs2JT3");
  158. NSLog(@"7lvGFk4Xi8ymnPgVuJ1TZ96ULwb");
  159. NSLog(@"1fF02AOiIyESke79lV6b");
  160. NSLog(@"3V7Imt0jdovWAOs8wpGDB6S");
  161. NSLog(@"flrW0OhHAzCY9ERv");
  162. }
  163. -(void)apNxnXvkTh:(UITableView*) apNxnXvkTh aoDdft3GByc:(UIColor*) aoDdft3GByc aPdfmKkYTZ:(UIWindow*) aPdfmKkYTZ a0oiaVYpxL:(UICollectionView*) a0oiaVYpxL aFosrXm72:(UILabel*) aFosrXm72 adHPXQ:(UIActivity*) adHPXQ asWC0p9w:(UIActivity*) asWC0p9w aakO2o:(UILabel*) aakO2o aNO0b:(UIBezierPath*) aNO0b aU5NuWe1BHf:(UISearchBar*) aU5NuWe1BHf aEqjgJ5FPC:(UISwitch*) aEqjgJ5FPC {
  164. NSLog(@"BInvf7gPAsbwdeXmCFM");
  165. NSLog(@"sGJf7eImZhBLDg");
  166. NSLog(@"q6KVBoJ3NHhSEyQCmv2gMfxtlwbcYur9p5kF");
  167. NSLog(@"xaz6me2ivu0T7DhIBCnbqWPX9pFwVfctMglAK");
  168. NSLog(@"T9dAlXLFxQfab7vjZJB2mu4sIKNcqokYC8");
  169. NSLog(@"5Kt2ma9Uq46Heo1sGMwRhkVCZprJvF");
  170. NSLog(@"83l4xiIKghfkbEq9pW0tcJz2NVPAFCwyr5QR");
  171. NSLog(@"DHCZx6y2RbukI8sJvhlOcqQz7YSLBKG9MnorX3");
  172. NSLog(@"0LO9SrCaKJuDhoWA4");
  173. NSLog(@"b4y0YLrz7GIoXPHfSZiFKtl9pMgqhCAsk");
  174. NSLog(@"yBNYgWL7JifxrH9CD1sQPUGdqXEZK3RkTzAv2");
  175. NSLog(@"LctvAW1xMTSpmub");
  176. NSLog(@"jyhUgJvS3wGapuW1Lc");
  177. NSLog(@"Sd4bTe2pvAaoYHG75VqxKUcWJz0hNfrw91IMQyDj");
  178. NSLog(@"98cqUZoHxg6Yvrd2hWQXEz5jRISGtFbsml");
  179. }
  180. @end