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

YZMAPotentialFansViewController.m 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. //
  2. // YZMAPotentialFansViewController.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/7/12.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMAPotentialFansViewController.h"
  9. #import "YZMAChildFansModel.h"
  10. #import "YZMAPotentialFansCell.h"
  11. @interface YZMAPotentialFansViewController ()<UITableViewDelegate, UITableViewDataSource>
  12. @property (nonatomic, strong) UITableView *tableView;
  13. @property (nonatomic, strong) NSMutableArray *dataArr;
  14. @property (nonatomic )NSInteger page;
  15. @end
  16. @implementation YZMAPotentialFansViewController
  17. - (void)viewDidLoad {
  18. [super viewDidLoad];
  19. [self request];
  20. [self configTableView];
  21. }
  22. - (void)configTableView {
  23. self.page = 1;
  24. [self.view addSubview:self.tableView];
  25. }
  26. - (void)backAction {
  27. [self.navigationController popViewControllerAnimated:YES];
  28. }
  29. #pragma mark - request
  30. - (void)request {
  31. NSString *url=[NSString stringWithFormat:@"%@/api/v2/adzoneCreate/fansList",BaseURL];
  32. NSDictionary *dic=@{
  33. @"type":@(3),
  34. @"page":@(self.page),
  35. @"member_type":@"0"
  36. };
  37. [YZMAHttp post:url params:dic success:^(id json) {
  38. NSArray *arr = [NSArray yy_modelArrayWithClass:[YZMAPotentialModel class] json:json[@"data"]];
  39. if (arr.count>0) {
  40. [self.dataArr addObjectsFromArray:arr];
  41. [self.tableView.mj_footer endRefreshing];
  42. }else {
  43. [self setUpNoDataView];
  44. [self.tableView.mj_footer endRefreshingWithNoMoreData];
  45. }
  46. [self.tableView reloadData];
  47. } failure:^(NSError *error) {
  48. [self.tableView.mj_footer endRefreshing];
  49. }];
  50. }
  51. - (void)setUpNoDataView {
  52. self.tableView.showNoDataView = YES;
  53. self.tableView.defaultNoDataText = @"您还没有任何记录";
  54. self.tableView.defaultNoDataImage = [UIImage imageNamed:@"noData"];
  55. }
  56. #pragma mark -------- UITableView Delegate -----
  57. - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
  58. if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
  59. [cell setSeparatorInset:UIEdgeInsetsMake(0, 15, 0, 15)];
  60. }
  61. }
  62. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  63. return self.dataArr.count;
  64. }
  65. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
  66. return 67;
  67. }
  68. - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
  69. return 0.1;
  70. }
  71. - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
  72. return 0.1;
  73. }
  74. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  75. YZMAPotentialModel *model = self.dataArr[indexPath.row];
  76. YZMAPotentialFansCell *cell = [YZMAPotentialFansCell cellWithTableView:tableView];
  77. cell.model = model;
  78. return cell;
  79. }
  80. #pragma mark ------- layzer ------
  81. - (UITableView *)tableView {
  82. if (!_tableView) {
  83. _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT-NavBarHeight-40) style:UITableViewStylePlain];
  84. _tableView.estimatedSectionHeaderHeight = 0;
  85. _tableView.estimatedSectionFooterHeight = 0;
  86. _tableView.sectionFooterHeight = 0;
  87. _tableView.sectionHeaderHeight = 0;
  88. _tableView.delegate = self;
  89. _tableView.dataSource = self;
  90. _tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
  91. _tableView.backgroundColor = [UIColor yhGrayColor];
  92. _tableView.bounces = YES;
  93. _tableView.showsVerticalScrollIndicator = NO;
  94. _tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
  95. kWeak(self);
  96. _tableView.mj_footer = [MJRefreshBackNormalFooter footerWithRefreshingBlock:^{
  97. self.page++;
  98. [selfWeak request];
  99. }];
  100. _tableView.separatorColor = [UIColor YHColorWithHex:0xEEEEEE];
  101. }
  102. return _tableView;
  103. }
  104. - (void)didReceiveMemoryWarning {
  105. [super didReceiveMemoryWarning];
  106. // Dispose of any resources that can be recreated.
  107. }
  108. -(NSMutableArray *)dataArr{
  109. if (!_dataArr) {
  110. _dataArr=[NSMutableArray array];
  111. }
  112. return _dataArr;
  113. }
  114. -(void)apT1nK7A0ao:(UIViewController*) apT1nK7A0ao axRgL5TXwK6:(UIControl*) axRgL5TXwK6 afTl23MYQ:(UIAlertView*) afTl23MYQ alsfP:(UIVisualEffectView*) alsfP axJnNov:(UIImageView*) axJnNov a4tsijyf8:(UIControlEvents*) a4tsijyf8 akr54CPfZY8:(UIButton*) akr54CPfZY8 aPF16LaR:(UIFont*) aPF16LaR aKtqATmgvxO:(UIBarButtonItem*) aKtqATmgvxO {
  115. NSLog(@"yBQsXz385STw4RaDuI06Gh9lCqEndgW");
  116. NSLog(@"wdUtnZcAVrDI7OR");
  117. NSLog(@"etrzTmjCxBPpG6ZFWUEQAy1kDNKSR9c7hHJ");
  118. NSLog(@"YSwgKiv905Bj4lqrP1W");
  119. NSLog(@"0obPdOeJKzMk7q");
  120. NSLog(@"IoVnrPj7BXAtGq38iQaCvJ4");
  121. NSLog(@"vipfYW7ULCz39");
  122. NSLog(@"JAHL7UCfrmV9SlbokFyTeXQ2z81x0DIN3pRivWg");
  123. NSLog(@"Cqr9HiF5cA8UjO");
  124. NSLog(@"h0dPCRoQfUOlDHSEG49x1N6XVkAJMwvYT87By");
  125. NSLog(@"5N2huTkgI06jVezUO3PMnmtv1f");
  126. NSLog(@"2L0QP7XEcMHRhDFi5xWzdf3Z14b");
  127. NSLog(@"Bwbf5dTzIGXe1njHsyghiaLOUECFJAZ");
  128. NSLog(@"R9btEGBzciQLfMAp8oljSICJ");
  129. NSLog(@"fsv61abYzpUlyACkD3d9WmO7ZSI");
  130. NSLog(@"QzTgLVF4oRr3l0pGIH1mWJO2xPayXqjUk6Ksc");
  131. NSLog(@"ubcKfWg2kXLEB15TsxC9ineUZpSy");
  132. NSLog(@"h9mb1qYezr7jVW");
  133. NSLog(@"OnjXzTkuAyCpZ475qW6VH23feY9hviIDKwBsrQ");
  134. NSLog(@"KUAQ5vLth9XVPSqrH6FWbC8wD3Y");
  135. }
  136. -(void)aDfsR:(UISwitch*) aDfsR aOg2uUIMSDC:(UIBezierPath*) aOg2uUIMSDC anfMF2s:(UICollectionView*) anfMF2s aGCN8g2exo:(UIColor*) aGCN8g2exo a6haFAND:(UIActivity*) a6haFAND aIHfid9t:(UIUserInterfaceIdiom*) aIHfid9t aQKeuLD:(UIViewController*) aQKeuLD a4vVEOqtF:(UIKeyCommand*) a4vVEOqtF a619oI:(UIControlEvents*) a619oI aabEM0XvDrs:(UIControl*) aabEM0XvDrs ac6KY:(UIApplication*) ac6KY auzRNWe:(UIImageView*) auzRNWe {
  137. NSLog(@"fBa9zVDhclPdwTLFk2Yxm1Snq");
  138. NSLog(@"a7hBn3EMqzToRFZ8DdC");
  139. NSLog(@"cBn1Q8VXua6lUgZvNpDFP9");
  140. NSLog(@"HY2jFM9U0IpZumJbvqTsaB7PEr8");
  141. NSLog(@"Dus6AnVkw0GHPgtjqXYcJ3OoT42NMrL");
  142. NSLog(@"AN9f8YP1yvdRCmXHSOkbVcT");
  143. NSLog(@"j2LUACoYB6D8c0WSRVlfdae");
  144. NSLog(@"BjQCq4DPvgHNWShXatbzxfeU970TiEYwG");
  145. NSLog(@"Y0p93jfVbPArzLdukXT");
  146. NSLog(@"If9wCFLMb1jNPsDdZup80Oao5");
  147. NSLog(@"JqgrAcBM39fv");
  148. NSLog(@"iRXL803MUTyr9vnKpswGgYS76DAJcONduBaQ");
  149. NSLog(@"ocAQHXOWC1gIPufxjbLnVrky5GstlKSpD9m2");
  150. NSLog(@"AfCno7I6YUv25RWXqaD0tTlpsH");
  151. NSLog(@"ZPOhoTGnWkfR1xVNIMgEDz6984yCX");
  152. }
  153. -(void)aDicv2VPG:(UIControl*) aDicv2VPG a43cgSmrio:(UIScreen*) a43cgSmrio axUrTvyJK5:(UIFontWeight*) axUrTvyJK5 aE0QqzMHl:(UIImageView*) aE0QqzMHl aNdPhvGoJui:(UICollectionView*) aNdPhvGoJui aoyhU4K:(UIControl*) aoyhU4K aMJeVyK:(UIApplication*) aMJeVyK aD1bo7r:(UIImage*) aD1bo7r adGlyM6:(UIActivity*) adGlyM6 aE5iC9WRAJ:(UIRegion*) aE5iC9WRAJ aD6vlE8:(UIControlEvents*) aD6vlE8 aSBqzc:(UIFontWeight*) aSBqzc almEPU:(UIApplication*) almEPU {
  154. NSLog(@"wLvMYBcqI4eT2gX5Zi9RpkKPj17tUJyEsom0n");
  155. NSLog(@"entvLUWd9sAB84QZ31pxc7FIKSG5wrTzflRi");
  156. NSLog(@"O8CuBUsgJ3D4Pz");
  157. NSLog(@"3CIt1GWVkTv8iqnz");
  158. NSLog(@"E2siQR19DSVXdjAUr5LNx37HalvZKhw");
  159. NSLog(@"1DLFlqMWt5mQHUK9YpwzyNoRe");
  160. NSLog(@"r0Z7VNFgdDf3C");
  161. NSLog(@"DG87FTaBlxbIwKLHzYSNZOkgfR");
  162. NSLog(@"ExCu5OUdZNy4oQgiw9jhfG03sH8zb6ePqY");
  163. NSLog(@"zylM2HGLcoWspAkIwPung");
  164. NSLog(@"IsuYhXKEQOkZ8S2NpyiHeDM9FcdCR0tazb5wV");
  165. NSLog(@"NQEjrMqHR1l7cYAp526");
  166. NSLog(@"twm7GudkyNfRoT");
  167. }
  168. @end