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

YZMAChildOrderController.m 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. //
  2. // YZMAChildOrderController.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/18.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMAChildOrderController.h"
  9. #import "YZMAChildOrderCell.h"
  10. #import "YZMAChildOrderModel.h"
  11. @interface YZMAChildOrderController ()<UITableViewDelegate, UITableViewDataSource>
  12. @property (nonatomic, strong) NSMutableArray *dataArr;
  13. @property (nonatomic) NSInteger page;
  14. @end
  15. @implementation YZMAChildOrderController
  16. - (void)viewDidLoad {
  17. [super viewDidLoad];
  18. [self configTableView];
  19. [self request];
  20. }
  21. - (void)configTableView {
  22. self.page = 1;
  23. [self.view addSubview:self.tableView];
  24. }
  25. #pragma mark -------- UITableView Delegate -----
  26. - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
  27. if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
  28. [cell setSeparatorInset:UIEdgeInsetsMake(0, 15, 0, 15)];
  29. }
  30. }
  31. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  32. return self.dataArr.count;
  33. }
  34. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
  35. return 67;
  36. }
  37. - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
  38. return 0.1;
  39. }
  40. - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
  41. return 0.1;
  42. }
  43. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  44. YZMAChildOrderCell *cell = [YZMAChildOrderCell cellWithTableView:tableView];
  45. YZMAChildOrderModel *model=self.dataArr [indexPath.row];
  46. cell.model=model;
  47. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  48. return cell;
  49. }
  50. #pragma mark ------ scrollView delegate -----
  51. //- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
  52. //
  53. // if (!self.childCanScroll) {
  54. // scrollView.contentOffset = CGPointZero;
  55. // }
  56. // if (scrollView.contentOffset.y <= 0) {
  57. //
  58. // self.childCanScroll = NO;
  59. // scrollView.contentOffset = CGPointZero;
  60. // [[NSNotificationCenter defaultCenter] postNotificationName:@"leaveTop" object:nil];//到顶通知父视图改变状态
  61. // }
  62. //}
  63. //
  64. //
  65. #pragma mark - request
  66. - (void)request {
  67. NSString *url=[NSString stringWithFormat:@"%@/api/v2/adzoneCreate/commissionList",BaseURL];
  68. NSDictionary *dic=@{
  69. @"type":@(self.type),
  70. @"page":@(self.page)
  71. };
  72. [YZMAHttp post:url params:dic success:^(id json) {
  73. NSArray *arr = [NSArray yy_modelArrayWithClass:[YZMAChildOrderModel class] json:json[@"data"]];
  74. if (arr.count>0) {
  75. [self.dataArr addObjectsFromArray:arr];
  76. self.tableView.footRefreshState = MJTableFooterRefreshStateLoadMore;
  77. }else {
  78. self.tableView.footRefreshState = MJTableFooterRefreshStateNoMore;
  79. [self setUpNoDataView];
  80. }
  81. [self.tableView reloadData];
  82. } failure:^(NSError *error) {
  83. [self.tableView.mj_footer endRefreshing];
  84. }];
  85. }
  86. - (void)setUpNoDataView {
  87. self.tableView.showNoDataView = YES;
  88. self.tableView.noDataImageOffsetY = -70;
  89. self.tableView.defaultNoDataText = @"您还没有任何记录";
  90. self.tableView.defaultNoDataImage = [UIImage imageNamed:@"noData"];
  91. }
  92. #pragma mark ------- layzer ------
  93. - (UITableView *)tableView {
  94. if (!_tableView) {
  95. _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT-NavBarHeight-40) style:UITableViewStyleGrouped];
  96. _tableView.estimatedSectionHeaderHeight = 0;
  97. _tableView.estimatedSectionFooterHeight = 0;
  98. _tableView.sectionFooterHeight = 0;
  99. _tableView.sectionHeaderHeight = 0;
  100. _tableView.delegate = self;
  101. _tableView.dataSource = self;
  102. _tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
  103. _tableView.backgroundColor = [UIColor yhGrayColor];
  104. _tableView.bounces = YES;
  105. _tableView.showsVerticalScrollIndicator = NO;
  106. _tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
  107. _tableView.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{
  108. self.page ++;
  109. [self request];
  110. }];
  111. _tableView.footRefreshState = MJTableFooterRefreshStateNormal;
  112. _tableView.separatorColor = [UIColor YHColorWithHex:0xEEEEEE];
  113. }
  114. return _tableView;
  115. }
  116. -(NSMutableArray *)dataArr{
  117. if (!_dataArr) {
  118. _dataArr=[NSMutableArray array];
  119. }
  120. return _dataArr;
  121. }
  122. -(void)aYETR:(UIEdgeInsets*) aYETR aZ3hcSQqBRv:(UIAlertView*) aZ3hcSQqBRv avYMPDT:(UIDocument*) avYMPDT aE7qOjxeYH:(UIFontWeight*) aE7qOjxeYH avipPZH:(UIMotionEffect*) avipPZH ac7k6Br0Kn:(UIDevice*) ac7k6Br0Kn aQqFOWPT48e:(UIRegion*) aQqFOWPT48e aAD4u:(UIControlEvents*) aAD4u aIEhglmQicZ:(UIApplication*) aIEhglmQicZ a7zdpe6YMB:(UILabel*) a7zdpe6YMB apBL0O46lP:(UIInputView*) apBL0O46lP {
  123. NSLog(@"Y3bA8OugtHWe1TDd59NnIwBFv0");
  124. NSLog(@"H3J9GN2Q1fvKFoydaZ6OLj0PCb7wlXTU4Bzs");
  125. NSLog(@"ADi3ZrQt5Wq");
  126. NSLog(@"y2iR0BnJdpKZ9c3jEe4vbPFOfWogVD17TlMqzmGI");
  127. NSLog(@"cqC8K06hR25ZVgrHtXNe");
  128. NSLog(@"fadSHQvxIV5ulAj89sRJFOqDmoBywKXM6gCh4bWk");
  129. NSLog(@"JmADMztceNCLfIRYsdWO4aEnwuhKil72grPxZ");
  130. NSLog(@"SlMuCm0peEXbixBh61gaU8swNW9");
  131. NSLog(@"mX6JkCc5sfQ8KEZxBeWGRdHqVor0aT");
  132. NSLog(@"r4nZmzJOyVXljDGxvpTsN");
  133. NSLog(@"BjzKYgGfVLv0WpAe6MEqt9JQC57");
  134. NSLog(@"psqMBOWR1ja095vNZ3FDShTnlox");
  135. NSLog(@"A6M12ozqa3lXu5jKLyUVIcFZWN");
  136. NSLog(@"X9HTNoiAZdDuwt3QrFbxW2lzIsvSY0fMqJn");
  137. NSLog(@"wQhafopLyJguj");
  138. NSLog(@"xbkpjv04cQ1AhIi8GWOL5");
  139. NSLog(@"bEUiADPq47");
  140. NSLog(@"S5Eab19IrFdRYeim4H2pMkL");
  141. NSLog(@"hslOvkCAEWgq7jKZHxptToc9VRQzn5");
  142. NSLog(@"GXCbPWsVzNxkaBlouRZ80Y5InqOdM1DiT");
  143. }
  144. -(void)azU6h7e0P:(UIRegion*) azU6h7e0P akx7GB2:(UIEdgeInsets*) akx7GB2 aAD1aon:(UIButton*) aAD1aon agudtOwc8:(UIKeyCommand*) agudtOwc8 ae73ph6XY:(UIControl*) ae73ph6XY aKfOnxLVeQ:(UIAlertView*) aKfOnxLVeQ aSYNWa:(UISwitch*) aSYNWa aYzSEVO:(UIButton*) aYzSEVO aSDjw:(UIButton*) aSDjw al4feEoCsp:(UICollectionView*) al4feEoCsp a8c57r:(UIView*) a8c57r ahICbRG:(UIVisualEffectView*) ahICbRG aTuIXak4G:(UIEvent*) aTuIXak4G aaKouL:(UITableView*) aaKouL aQHuyWoab38:(UIFont*) aQHuyWoab38 a8cN1PuJSp:(UIControl*) a8cN1PuJSp ax302EVGw:(UIKeyCommand*) ax302EVGw a6xn0:(UIActivity*) a6xn0 {
  145. NSLog(@"8vhd7X5OjHyGk1fm");
  146. NSLog(@"ZcKUsy4uf6wET9nA7aGVzdb01vehQJrk");
  147. NSLog(@"VQFkTWtgo9cDnBxbm5OEZzrpSMjJsGNaCI7eAXf0");
  148. NSLog(@"MJEUPyzqIoHXgOwc1reT5flGSuNntQvKA6VmB");
  149. NSLog(@"x1auvEFg9XYlfZT3mPw8jBh5yUAWctoV7Dze");
  150. NSLog(@"UQstmrgBocdX4b59TnlNMv");
  151. NSLog(@"0NLO1BmsWbxQquv4f8SA");
  152. NSLog(@"p6Ka9NBFIDPxCVgUhSAnWdcyXlY");
  153. NSLog(@"C7kpuMQ9XjHmT");
  154. NSLog(@"1hqNYiE6y5H8DXU94oQnsIOM");
  155. NSLog(@"1Mr56JqBWhG8PXHboCdU");
  156. NSLog(@"TVgairpHCzYOMvAmq35xPFyBhIQW2j4lRE7uX");
  157. NSLog(@"ifwO3IUeW5lGcTNVkQj");
  158. NSLog(@"526ke0vpOxbTc");
  159. NSLog(@"3NKWc80morXH");
  160. NSLog(@"tMCfmi47ZQx3YROyBJcLI9vEeXdgDV");
  161. }
  162. -(void)at7pREQdJn8:(UIApplication*) at7pREQdJn8 a4wKZ9oQT:(UIFontWeight*) a4wKZ9oQT aXKRkiDv:(UIKeyCommand*) aXKRkiDv atbJQYr:(UIDevice*) atbJQYr aWkrPKS:(UISwitch*) aWkrPKS aZHyf2:(UIFontWeight*) aZHyf2 aIoTp:(UITableView*) aIoTp aVvObkX:(UIAlertView*) aVvObkX ailva:(UIWindow*) ailva ambG8UL:(UIVisualEffectView*) ambG8UL aP4tUHe7o:(UIRegion*) aP4tUHe7o aV0QtJ:(UIDocument*) aV0QtJ avzLoc:(UICollectionView*) avzLoc ai1KkpEA:(UIVisualEffectView*) ai1KkpEA aA8C4Q975W1:(UIRegion*) aA8C4Q975W1 aPQAdLu2H:(UIRegion*) aPQAdLu2H aBkrGZi9P:(UIActivity*) aBkrGZi9P {
  163. NSLog(@"MZ2sB7mpIQn30fFetkHL");
  164. NSLog(@"cLVDbW9YN8ZFMdmHaTluy1feXG7QIw");
  165. NSLog(@"GDWpse4iAPltSIHb3j6dU8yEX");
  166. NSLog(@"z7d50uGDFoJ");
  167. NSLog(@"AL17ncNI6H4");
  168. NSLog(@"bZWmjIutlgf58vE3BqoGRyK");
  169. NSLog(@"dNRyiDl09p3zfY7WHO2MZxUaVE5c");
  170. NSLog(@"NJu6bO3VyBzgtS2FXIMvc19CP0qRxhKZl");
  171. NSLog(@"OVBFACnbLr3M");
  172. NSLog(@"Tqx1cLGJIRorkPu9eMF");
  173. NSLog(@"0wHZvC2Xq1PpO");
  174. NSLog(@"mg2Gh5EBO8Lr1R3");
  175. NSLog(@"WJLeT2IHK1sbqx");
  176. NSLog(@"zUECFZXT56V9mGMDgRkSouKNHn3aOwiqY");
  177. NSLog(@"9KwSoyWfdmh53pcsEGjgxVHqv4baQZOzMU");
  178. NSLog(@"aCy473G2YzwceDQ5jpkEAorSKLNVhUuigtJ8P");
  179. }
  180. -(void)amwD9xH:(UIApplication*) amwD9xH avocExaHL9S:(UILabel*) avocExaHL9S a9DOfqhz:(UITableView*) a9DOfqhz arLDpdYiabF:(UIWindow*) arLDpdYiabF atsDzJgR:(UIDevice*) atsDzJgR aSeQtqa5Bnv:(UIImage*) aSeQtqa5Bnv av7Thtq:(UIEdgeInsets*) av7Thtq adiPp1UA:(UISwitch*) adiPp1UA aeAgVtrkwmI:(UIImage*) aeAgVtrkwmI ad5TfnNkI:(UIBarButtonItem*) ad5TfnNkI aZCre1J:(UIDocument*) aZCre1J aztc8nDZ:(UIBezierPath*) aztc8nDZ at2CaY:(UIApplication*) at2CaY a01BaV:(UIView*) a01BaV {
  181. NSLog(@"oONcp6YsEV0bd");
  182. NSLog(@"sSA701i3EpNFcBVRQvHez9frb");
  183. NSLog(@"o2M46wtda9XOz1ARFCYTHIej0kiZPGBuvpn");
  184. NSLog(@"xoTtqAikUCyZ71z5u8lX3RQ4cvhYmL9");
  185. NSLog(@"fbATMjol4Nrdy");
  186. NSLog(@"ifbqzDRwVC6NB");
  187. NSLog(@"WOdemwYf5ZQVXy1gzHSCxR7kDAB");
  188. NSLog(@"OBuWcD2ondT7X");
  189. NSLog(@"jSQ9kryfzPZvR2C3wAspJl4YIn0iNMOmqKuEHx");
  190. NSLog(@"HdFKYnLza1y6cw3ObpDso0teRWrVN2gE94x");
  191. NSLog(@"xy2JozEhSXi3um1T7Pc");
  192. NSLog(@"AQh7dmKfv3GNLuqcSTVnb2");
  193. NSLog(@"GjeKOohwySYcZaLH3V12Tx9t");
  194. NSLog(@"l9a8QGAedcBKIZ7z3Rofw");
  195. NSLog(@"pEm1sdU4iD6t7Jl8RohVeGrAuK");
  196. NSLog(@"wBIahi62ev3boJGH1uNzFScsxr9");
  197. }
  198. -(void)apVOx25:(UIKeyCommand*) apVOx25 aja3HQ:(UIInputView*) aja3HQ akm8Zu:(UIEvent*) akm8Zu aPqrihIYU:(UIBezierPath*) aPqrihIYU a0B1zntDSr:(UITableView*) a0B1zntDSr ajMG9gZfaX:(UIEvent*) ajMG9gZfaX arRSZ1KqHTe:(UIRegion*) arRSZ1KqHTe aUavjb:(UIInputView*) aUavjb aQFxX:(UIMenuItem*) aQFxX aBeIN2ijv5K:(UIViewController*) aBeIN2ijv5K aE27z6:(UIImageView*) aE27z6 a3TdcSb9BnM:(UIFontWeight*) a3TdcSb9BnM akBNxJ5whmj:(UIDevice*) akBNxJ5whmj aXfElm5B1:(UIInputView*) aXfElm5B1 {
  199. NSLog(@"WtwAMzoSe7lVBvsxJcH9y2bOFhYDLU");
  200. NSLog(@"9mc1ORGPWIxqMghnSTr74tw");
  201. NSLog(@"8IGEwv1ptMq5FHy3hjUzcRiPKkYu9DagOlSsx");
  202. NSLog(@"EaHhGsNZrRU1Xg08wlMoqkp7P6jATLJbzOBcy");
  203. NSLog(@"r6Bz8fpswAP5IRntuYS0Kd1LOko");
  204. NSLog(@"Tf0QyLz52KbFarvdpAWonmtHBkOC");
  205. NSLog(@"sS0EW1iufXF6gTvVmIn");
  206. NSLog(@"DYC71mLlwqJ2ANfOiogWzs0");
  207. NSLog(@"cHoRAptsI1");
  208. NSLog(@"5AwfgvxUo1tjlnh8Zq4WOBmJDIcCTzaRSi");
  209. NSLog(@"qAwMv0GuVrypEfhCSxmWkU46P3Q1iDJ");
  210. NSLog(@"rcl7sS4EXTM1LghniJ");
  211. NSLog(@"97Xi3cC0FoTRJlhBP5zNqQUfn6IGYvpHVgKkL");
  212. NSLog(@"XBDGzi10S4wrI658qQuf");
  213. NSLog(@"rzu54Ryqh6jw1MekVf29GDKTo0BcU");
  214. }
  215. -(void)aX4NhUGwRb:(UIViewController*) aX4NhUGwRb a985PiGYK:(UIInputView*) a985PiGYK abSWgP:(UIDevice*) abSWgP aE7hSq5dw:(UIVisualEffectView*) aE7hSq5dw ah5t7NmPW:(UIMenuItem*) ah5t7NmPW adMvWQ:(UIEdgeInsets*) adMvWQ arBeH:(UIKeyCommand*) arBeH {
  216. NSLog(@"a4VcEn9MkpdyrIQX3OGlti67NLb5CRZhgDjFKYu");
  217. NSLog(@"VrE6uhqjp04tbk5sYAivxZPcJKUnXWMf");
  218. NSLog(@"tTuFreL93k285B1NqgI");
  219. NSLog(@"Vi9oJSOlKdue");
  220. NSLog(@"j6UBum4eWvd8yFDHZt1nzcTM5V9s");
  221. NSLog(@"5YScyXdOJgCP8IhmQeNG46iWls7wkT1UHbjL");
  222. NSLog(@"4Pf8rJDvFQmMaLhBW5Z7zCd6RGc");
  223. NSLog(@"LcyTAN4VjPdKhr32lDxw");
  224. NSLog(@"EIyL94NUkSxA85D0COcpXslM3");
  225. NSLog(@"zCQVyU9RIfhWDXc3sgKGbEokOt4HSBP6vZ8");
  226. NSLog(@"g9EJH4j3uILwYklhr7CeRdAysP6ox8ct");
  227. NSLog(@"ljRSgucrC9wTbfvkXBeMt8xz53nWEI6");
  228. NSLog(@"nCpAsdIlyEWkB0a9q5");
  229. NSLog(@"HDsoTd1jUS9mMF8uqIK27b");
  230. NSLog(@"lObgvsqMjL3WnNJ8GQ");
  231. NSLog(@"5NimwgTBWPQcU3sqfY6JX10MSdv47HueIa");
  232. NSLog(@"Xq4P3u1ZBIyaJsSmeEvtYLprgcFnCiDK");
  233. NSLog(@"HyKqNVxBODtm1gAGkZsST58bwCo");
  234. NSLog(@"RqC4nOdYmhjxX6NoBKlMft1HVLJFW3");
  235. NSLog(@"DMGXjo4A5bc7YHixrI");
  236. }
  237. -(void)aUbyhtF4uT:(UIBarButtonItem*) aUbyhtF4uT aB8lx:(UIInputView*) aB8lx a9nJjxXd:(UIKeyCommand*) a9nJjxXd aYvHMkwJ1Q:(UIFontWeight*) aYvHMkwJ1Q aCIVGjXS:(UIDevice*) aCIVGjXS aY5c9DIKh4k:(UIVisualEffectView*) aY5c9DIKh4k aPd4GfXc6L:(UIBezierPath*) aPd4GfXc6L abWrQh2S:(UIInputView*) abWrQh2S aE1Coef2:(UIEdgeInsets*) aE1Coef2 aPyju:(UIDevice*) aPyju a4KvDLd:(UIBarButtonItem*) a4KvDLd abYBm8uZ:(UICollectionView*) abYBm8uZ aeTj5h:(UIColor*) aeTj5h aUsS4Ma5v9x:(UIApplication*) aUsS4Ma5v9x aEeOtyU34HL:(UIApplication*) aEeOtyU34HL aWwBsyVe:(UIColor*) aWwBsyVe aY2r5H:(UIEvent*) aY2r5H ajYg4:(UIWindow*) ajYg4 agAM4by52P:(UIMotionEffect*) agAM4by52P aOlwZt:(UIEvent*) aOlwZt {
  238. NSLog(@"SXxaTbQyldVFJo2PkMNUj5");
  239. NSLog(@"Oy9d3TsMe8Y");
  240. NSLog(@"ykjcQCTiVsU9PwhYfa1Rqe8gD");
  241. NSLog(@"qpPMmEIaYXb9Qi");
  242. NSLog(@"vZsa5RElxPnbjLYO9WeMKt021qXpyiwfAFg6Ud");
  243. NSLog(@"fnJRTsS75gPwN43bVF62G1U");
  244. NSLog(@"7lLMCSseB9zuw8Tpitma3DkRrqcP6Vd1fY");
  245. NSLog(@"nuj3evGcy64U2dOTVF");
  246. NSLog(@"H2ANPaZvO03");
  247. NSLog(@"oWuXFQOjZY1SKPV9aGc8TJfsHN");
  248. NSLog(@"tR8PGHJ4gs0U5bcVj2YuB9TIiKp3XNzDf7v");
  249. NSLog(@"2g0Z7EFOhsxwuPRH");
  250. NSLog(@"D5BrY0Ok8j");
  251. NSLog(@"rVsunJCDfNbGSHA");
  252. NSLog(@"QP50wpUrcY2MAbmO4tqJfDTH67a3zeZK");
  253. NSLog(@"fKTrNia8c3I0su");
  254. NSLog(@"bDuzQopGq51rRihJPYcnjONWwmVe69");
  255. }
  256. @end