123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 |
- //
- // LZMPotentialFansViewController.m
- // YouHuiProject
- //
- // Created by 小花 on 2018/7/12.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "LZMPotentialFansViewController.h"
- #import "LZMChildFansModel.h"
- #import "LZMPotentialFansCell.h"
- @interface LZMPotentialFansViewController ()<UITableViewDelegate, UITableViewDataSource>
- @property (nonatomic, strong) UITableView *tableView;
- @property (nonatomic, strong) NSMutableArray *dataArr;
- @property (nonatomic )NSInteger page;
- @end
- @implementation LZMPotentialFansViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self request];
- [self configTableView];
- }
- - (void)configTableView {
- self.page = 1;
- [self.view addSubview:self.tableView];
- }
- - (void)backAction {
- [self.navigationController popViewControllerAnimated:YES];
- }
- #pragma mark - request
- - (void)request {
- NSString *url=[NSString stringWithFormat:@"%@/api/v2/adzoneCreate/fansList",BaseURL];
- NSDictionary *dic=@{
- @"type":@(3),
- @"page":@(self.page),
- @"member_type":@"0"
- };
- [LZMHttp post:url params:dic success:^(id json) {
-
- NSArray *arr = [NSArray yy_modelArrayWithClass:[LZMPotentialModel class] json:json[@"data"]];
- if (arr.count>0) {
- [self.dataArr addObjectsFromArray:arr];
- [self.tableView.mj_footer endRefreshing];
- }else {
- [self setUpNoDataView];
- [self.tableView.mj_footer endRefreshingWithNoMoreData];
- }
- [self.tableView reloadData];
- } failure:^(NSError *error) {
- [self.tableView.mj_footer endRefreshing];
- }];
-
-
- }
- - (void)setUpNoDataView {
- self.tableView.showNoDataView = YES;
- self.tableView.defaultNoDataText = @"您还没有任何记录";
- self.tableView.defaultNoDataImage = [UIImage imageNamed:@"noData"];
- }
- #pragma mark -------- UITableView Delegate -----
- - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
- if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
- [cell setSeparatorInset:UIEdgeInsetsMake(0, 15, 0, 15)];
- }
- }
- - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
- return self.dataArr.count;
- }
- - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
- return 67;
- }
- - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
- return 0.1;
- }
- - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
- return 0.1;
- }
- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
-
- LZMPotentialModel *model = self.dataArr[indexPath.row];
- LZMPotentialFansCell *cell = [LZMPotentialFansCell cellWithTableView:tableView];
- cell.model = model;
- return cell;
- }
- #pragma mark ------- layzer ------
- - (UITableView *)tableView {
- if (!_tableView) {
- _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT-NavBarHeight-40) style:UITableViewStylePlain];
- _tableView.estimatedSectionHeaderHeight = 0;
- _tableView.estimatedSectionFooterHeight = 0;
- _tableView.sectionFooterHeight = 0;
- _tableView.sectionHeaderHeight = 0;
- _tableView.delegate = self;
- _tableView.dataSource = self;
- _tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
- _tableView.backgroundColor = [UIColor yhGrayColor];
- _tableView.bounces = YES;
- _tableView.showsVerticalScrollIndicator = NO;
- _tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
- kWeak(self);
- _tableView.mj_footer = [MJRefreshBackNormalFooter footerWithRefreshingBlock:^{
- self.page++;
- [selfWeak request];
- }];
- _tableView.separatorColor = [UIColor YHColorWithHex:0xEEEEEE];
-
- }
- return _tableView;
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- -(NSMutableArray *)dataArr{
- if (!_dataArr) {
- _dataArr=[NSMutableArray array];
- }
- return _dataArr;
- }
- -(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 {
- NSLog(@"wsy6eKBQIRoiWx0dv2Lf");
- NSLog(@"kIGjvBx8yPpoFZArWOs6");
- NSLog(@"8sHA6DtYSMJZhIXL4cVz");
- NSLog(@"rXtON6dTx7Hhfa5icFnJ9LC");
- NSLog(@"EHlR0AuO2G17ynLvgNIKrfFViCtbpaMzm");
- NSLog(@"FOg0qhiv5ktSfZ4UnX");
- NSLog(@"ujqmOPLHFanUDCr39YgJW50Zyx4vlskBXwhfGb7");
- NSLog(@"SMutR76yI152g4zaHndbwhDXm");
- NSLog(@"u02gDNvpKSdxfqT1iZYF4Uhzon6GR3lkAbmJHer");
- NSLog(@"Kq593JYIbNB");
- NSLog(@"AaDx8JIFyTjXOQ5lM2ZLY");
- NSLog(@"KzdZLfNgCQUhRYb17isuwk2OrqGW3aSt8");
- }
- -(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 {
- NSLog(@"DNmS6nb9iVTzY0RcqHxdCfLIeu2otyj");
- NSLog(@"Kgq18H0Zs45MUT6bhEIuPGwVSCFnp");
- NSLog(@"CQX58advrMTwD4Sp");
- NSLog(@"uX7bMqF2ca4KEoVASn8Qk0Dfi5gLsHOZwpyUx");
- NSLog(@"1YuJDrH6vZ");
- NSLog(@"3iuLNnFG7m5I1");
- NSLog(@"rTnOEu9gqIe4Jm6b8kRG");
- NSLog(@"wLSP6W4A18EX");
- NSLog(@"pwH2GREON3YZ0d1iBPbV6Dz8");
- NSLog(@"JTe2pMIjrPfvZ7Nsb");
- NSLog(@"KmcEkvPI1hZ5qtXOAzYDusarwGoUlVn3087");
- NSLog(@"40kAn7daigKrNXWw9xHbSlJ8cp");
- NSLog(@"xz35tYBaC6MQr9JRsfSpZkjw8UNLTXoK71bD2hum");
- NSLog(@"eR8uMsCI9kVU3ivYlhanm6EfPW21");
- NSLog(@"9Eg0KodIHahjqv");
- NSLog(@"QJsYlkFxjNmEn7TRSDhGtqbZi3pouzeAf");
- NSLog(@"gpk94zdmn5AOuaHrcql30JTeGy8D");
- NSLog(@"v5YoaK7UbwjdzqL0VkyGuF");
- NSLog(@"vqtsm0jwV5nR2C1M");
- }
- -(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 {
- NSLog(@"ZoRnKxqkNpPmgATD7");
- NSLog(@"mgW1ARBCnH0hbMF4Yu8LISQKv");
- NSLog(@"4kzLaA2uEGPOtxo");
- NSLog(@"xEL6uyZtfCe1sb0pkDSA3MvN");
- NSLog(@"NkvIHugFPxY9tKAMo8XiCpJwb4BEs71jcVzehq");
- NSLog(@"4oXCyJqwdzYhTMNrcABbmi");
- NSLog(@"ByA2Div8Q5KJ3LpOGRgEUMhbm6Xfca09s");
- NSLog(@"dw7Te1i6ZN4uGhDRp3YrgWUb5xkSLvMzKPOCV");
- NSLog(@"KcrMaPQlxI8p7gmyRHVweGzWX3d0oE");
- NSLog(@"uC3vnQE75khAJp0GRTS4z");
- }
- -(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 {
- NSLog(@"sqMQDHt4dmC3VoR");
- NSLog(@"G8wjSeo4xD0yTa");
- NSLog(@"MjT5v6qkIYUFsBSAbiCzOG40");
- NSLog(@"IGcWze9wQvdTsCVpbk6");
- NSLog(@"ZKIaOoUhQMBkYn56djG0fuDr3zFlCpPiRHLV");
- NSLog(@"1gA8yrMP7xY");
- NSLog(@"JPA1o0j7lwqzSvYVWIEnObuykQ4F2M");
- NSLog(@"yVItiBRYv5lX3eOf0NJFGC7zHgk2Z9dmpsD");
- NSLog(@"UiBorvz9lKMcJPyALYf30IuEx");
- NSLog(@"e2sAdOyw1mtY79DFNH4TVRlinZKUI");
- NSLog(@"Cu543Z8lKqYmpcsX1PvUVT");
- NSLog(@"dqijGkKLUcpSYxZTD");
- NSLog(@"G2FgoSnE0puDf1mCqNl");
- NSLog(@"UzlQ8dNryRgjEHqc7tvMk1D0Xa5fubWx");
- NSLog(@"7tiPsf5kSnFxYmblvXROgz3yJT");
- }
- -(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 {
- NSLog(@"2csJpgov9DXwPM3WHhCELFVYiG0Br65bIn");
- NSLog(@"JHhIkoY0ftnOb758rpDAd");
- NSLog(@"xgnYksdjWZtpNuq7K5oy");
- NSLog(@"VqnhPAjMSoYCxtfBXbQs6IvTgNGw28dDl");
- NSLog(@"rQ7PzdvtaW");
- NSLog(@"pNwVj7HJaW");
- NSLog(@"nuwWrxVQJkbv03icHf6Ts8GgRl4NI");
- NSLog(@"gDyLasrvl5GCbFj0Ux");
- NSLog(@"iIbGvAdYSC8NkzQ");
- NSLog(@"wfNYToWsiXmC4u1");
- NSLog(@"FwIb9oQe4TGYAMd");
- NSLog(@"oNJEgaScLx8r");
- NSLog(@"M74AoYLnyUrVJKbW0dGeHx");
- NSLog(@"SjzMErnagfHpk0GZmWLXCqsPJ3e");
- }
- @end
|