两折买改口袋样式

LZMPotentialFansViewController.m 9.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. //
  2. // LZMPotentialFansViewController.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/7/12.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LZMPotentialFansViewController.h"
  9. #import "LZMChildFansModel.h"
  10. #import "LZMPotentialFansCell.h"
  11. @interface LZMPotentialFansViewController ()<UITableViewDelegate, UITableViewDataSource>
  12. @property (nonatomic, strong) UITableView *tableView;
  13. @property (nonatomic, strong) NSMutableArray *dataArr;
  14. @property (nonatomic )NSInteger page;
  15. @end
  16. @implementation LZMPotentialFansViewController
  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. [LZMHttp post:url params:dic success:^(id json) {
  38. NSArray *arr = [NSArray yy_modelArrayWithClass:[LZMPotentialModel 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. LZMPotentialModel *model = self.dataArr[indexPath.row];
  76. LZMPotentialFansCell *cell = [LZMPotentialFansCell 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)aLeTQ:(UIActivity*) aLeTQ aRZE07iL4t8:(UIControl*) aRZE07iL4t8 a8pWdoTDHue:(UIButton*) a8pWdoTDHue azyJcinke:(UIButton*) azyJcinke atZ5srh68K:(UIImage*) atZ5srh68K a8JqSiEGv7:(UITableView*) a8JqSiEGv7 aGcw7Wt:(UIColor*) aGcw7Wt a0zatU6kLwj:(UIView*) a0zatU6kLwj azLNbiE:(UIApplication*) azLNbiE a2Ug6EC:(UIUserInterfaceIdiom*) a2Ug6EC amthJT:(UIApplication*) amthJT {
  115. NSLog(@"wsy6eKBQIRoiWx0dv2Lf");
  116. NSLog(@"kIGjvBx8yPpoFZArWOs6");
  117. NSLog(@"8sHA6DtYSMJZhIXL4cVz");
  118. NSLog(@"rXtON6dTx7Hhfa5icFnJ9LC");
  119. NSLog(@"EHlR0AuO2G17ynLvgNIKrfFViCtbpaMzm");
  120. NSLog(@"FOg0qhiv5ktSfZ4UnX");
  121. NSLog(@"ujqmOPLHFanUDCr39YgJW50Zyx4vlskBXwhfGb7");
  122. NSLog(@"SMutR76yI152g4zaHndbwhDXm");
  123. NSLog(@"u02gDNvpKSdxfqT1iZYF4Uhzon6GR3lkAbmJHer");
  124. NSLog(@"Kq593JYIbNB");
  125. NSLog(@"AaDx8JIFyTjXOQ5lM2ZLY");
  126. NSLog(@"KzdZLfNgCQUhRYb17isuwk2OrqGW3aSt8");
  127. }
  128. -(void)aiZ5LAdj2e:(UIBezierPath*) aiZ5LAdj2e aFyqBch0:(UIDevice*) aFyqBch0 aqrdt:(UICollectionView*) aqrdt awTYKDRF1Ct:(UIImage*) awTYKDRF1Ct aht5QnRXosS:(UIImageView*) aht5QnRXosS aX3CS9v:(UISwitch*) aX3CS9v a8yXc50YG:(UISearchBar*) a8yXc50YG ahmKTAc:(UIBarButtonItem*) ahmKTAc a5febSy:(UIFontWeight*) a5febSy asO1NR:(UIView*) asO1NR aa9xtgLvn:(UIMotionEffect*) aa9xtgLvn a3gAvzc9:(UIColor*) a3gAvzc9 ajANV:(UIView*) ajANV awWVAF9d:(UIMenuItem*) awWVAF9d a8Ce5n:(UIDocument*) a8Ce5n aosnFkq:(UISearchBar*) aosnFkq ajaz5h0:(UICollectionView*) ajaz5h0 a3LUO:(UIScreen*) a3LUO aTxBW5L9Uk:(UIDocument*) aTxBW5L9Uk {
  129. NSLog(@"DNmS6nb9iVTzY0RcqHxdCfLIeu2otyj");
  130. NSLog(@"Kgq18H0Zs45MUT6bhEIuPGwVSCFnp");
  131. NSLog(@"CQX58advrMTwD4Sp");
  132. NSLog(@"uX7bMqF2ca4KEoVASn8Qk0Dfi5gLsHOZwpyUx");
  133. NSLog(@"1YuJDrH6vZ");
  134. NSLog(@"3iuLNnFG7m5I1");
  135. NSLog(@"rTnOEu9gqIe4Jm6b8kRG");
  136. NSLog(@"wLSP6W4A18EX");
  137. NSLog(@"pwH2GREON3YZ0d1iBPbV6Dz8");
  138. NSLog(@"JTe2pMIjrPfvZ7Nsb");
  139. NSLog(@"KmcEkvPI1hZ5qtXOAzYDusarwGoUlVn3087");
  140. NSLog(@"40kAn7daigKrNXWw9xHbSlJ8cp");
  141. NSLog(@"xz35tYBaC6MQr9JRsfSpZkjw8UNLTXoK71bD2hum");
  142. NSLog(@"eR8uMsCI9kVU3ivYlhanm6EfPW21");
  143. NSLog(@"9Eg0KodIHahjqv");
  144. NSLog(@"QJsYlkFxjNmEn7TRSDhGtqbZi3pouzeAf");
  145. NSLog(@"gpk94zdmn5AOuaHrcql30JTeGy8D");
  146. NSLog(@"v5YoaK7UbwjdzqL0VkyGuF");
  147. NSLog(@"vqtsm0jwV5nR2C1M");
  148. }
  149. -(void)as3OyNX7:(UIAlertView*) as3OyNX7 adGpV:(UIBezierPath*) adGpV atA8vP:(UILabel*) atA8vP aYA8Q5FJTL:(UISearchBar*) aYA8Q5FJTL apmyuJ7bFoN:(UIImageView*) apmyuJ7bFoN aQBkratNsh:(UIActivity*) aQBkratNsh akYcRg87o:(UIImage*) akYcRg87o aHZN5:(UIFontWeight*) aHZN5 a5EwNI:(UISearchBar*) a5EwNI aydIaKjnpM:(UIActivity*) aydIaKjnpM aobV9GI:(UIView*) aobV9GI anxBWV:(UIImage*) anxBWV anJy1aNGd:(UIColor*) anJy1aNGd aY8QH:(UIApplication*) aY8QH aIb7zqX2:(UIApplication*) aIb7zqX2 awcyW7Cadl:(UIAlertView*) awcyW7Cadl akAPn2dG6:(UIFont*) akAPn2dG6 ahSje:(UIActivity*) ahSje ahFe8IH:(UIControl*) ahFe8IH aXnZdvlmCyt:(UIAlertView*) aXnZdvlmCyt {
  150. NSLog(@"ZoRnKxqkNpPmgATD7");
  151. NSLog(@"mgW1ARBCnH0hbMF4Yu8LISQKv");
  152. NSLog(@"4kzLaA2uEGPOtxo");
  153. NSLog(@"xEL6uyZtfCe1sb0pkDSA3MvN");
  154. NSLog(@"NkvIHugFPxY9tKAMo8XiCpJwb4BEs71jcVzehq");
  155. NSLog(@"4oXCyJqwdzYhTMNrcABbmi");
  156. NSLog(@"ByA2Div8Q5KJ3LpOGRgEUMhbm6Xfca09s");
  157. NSLog(@"dw7Te1i6ZN4uGhDRp3YrgWUb5xkSLvMzKPOCV");
  158. NSLog(@"KcrMaPQlxI8p7gmyRHVweGzWX3d0oE");
  159. NSLog(@"uC3vnQE75khAJp0GRTS4z");
  160. }
  161. -(void)abiQ39p2:(UIFont*) abiQ39p2 aYP21V8oQ3U:(UIApplication*) aYP21V8oQ3U au03Ps:(UIApplication*) au03Ps aNd2wM6prJf:(UIMotionEffect*) aNd2wM6prJf aGbwN:(UIAlertView*) aGbwN aUja9ys:(UISearchBar*) aUja9ys a4BhIPAsr:(UIView*) a4BhIPAsr awOs1edP6f:(UIEdgeInsets*) awOs1edP6f aWy2Cnwz:(UIControl*) aWy2Cnwz axZz9uCk:(UIMotionEffect*) axZz9uCk abgVIQyX7NW:(UIColor*) abgVIQyX7NW aIzMR:(UIMenuItem*) aIzMR aHNAOvPpZ:(UITableView*) aHNAOvPpZ anPdMI:(UIEvent*) anPdMI a7J9vx:(UIImage*) a7J9vx aSy7v2:(UIColor*) aSy7v2 {
  162. NSLog(@"sqMQDHt4dmC3VoR");
  163. NSLog(@"G8wjSeo4xD0yTa");
  164. NSLog(@"MjT5v6qkIYUFsBSAbiCzOG40");
  165. NSLog(@"IGcWze9wQvdTsCVpbk6");
  166. NSLog(@"ZKIaOoUhQMBkYn56djG0fuDr3zFlCpPiRHLV");
  167. NSLog(@"1gA8yrMP7xY");
  168. NSLog(@"JPA1o0j7lwqzSvYVWIEnObuykQ4F2M");
  169. NSLog(@"yVItiBRYv5lX3eOf0NJFGC7zHgk2Z9dmpsD");
  170. NSLog(@"UiBorvz9lKMcJPyALYf30IuEx");
  171. NSLog(@"e2sAdOyw1mtY79DFNH4TVRlinZKUI");
  172. NSLog(@"Cu543Z8lKqYmpcsX1PvUVT");
  173. NSLog(@"dqijGkKLUcpSYxZTD");
  174. NSLog(@"G2FgoSnE0puDf1mCqNl");
  175. NSLog(@"UzlQ8dNryRgjEHqc7tvMk1D0Xa5fubWx");
  176. NSLog(@"7tiPsf5kSnFxYmblvXROgz3yJT");
  177. }
  178. -(void)awl0y9gc:(UIView*) awl0y9gc akZfTt8h:(UIFont*) akZfTt8h aDbE4S9OP:(UIControlEvents*) aDbE4S9OP a9IZ4:(UIActivity*) a9IZ4 aS0n8Wq:(UIMenuItem*) aS0n8Wq ayzIVAS5Odx:(UIBarButtonItem*) ayzIVAS5Odx agnAb:(UIKeyCommand*) agnAb apBHI8FSxZA:(UIImageView*) apBHI8FSxZA aea5SBz8:(UILabel*) aea5SBz8 anpYCmhS0:(UIInputView*) anpYCmhS0 a5rF3RU:(UIUserInterfaceIdiom*) a5rF3RU aStEedgLw9:(UITableView*) aStEedgLw9 aa4klRXSx:(UIScreen*) aa4klRXSx {
  179. NSLog(@"2csJpgov9DXwPM3WHhCELFVYiG0Br65bIn");
  180. NSLog(@"JHhIkoY0ftnOb758rpDAd");
  181. NSLog(@"xgnYksdjWZtpNuq7K5oy");
  182. NSLog(@"VqnhPAjMSoYCxtfBXbQs6IvTgNGw28dDl");
  183. NSLog(@"rQ7PzdvtaW");
  184. NSLog(@"pNwVj7HJaW");
  185. NSLog(@"nuwWrxVQJkbv03icHf6Ts8GgRl4NI");
  186. NSLog(@"gDyLasrvl5GCbFj0Ux");
  187. NSLog(@"iIbGvAdYSC8NkzQ");
  188. NSLog(@"wfNYToWsiXmC4u1");
  189. NSLog(@"FwIb9oQe4TGYAMd");
  190. NSLog(@"oNJEgaScLx8r");
  191. NSLog(@"M74AoYLnyUrVJKbW0dGeHx");
  192. NSLog(@"SjzMErnagfHpk0GZmWLXCqsPJ3e");
  193. }
  194. @end