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

YZMAToMoneyViewController.m 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. //
  2. // YZMAToMoneyViewController.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/6/11.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMAToMoneyViewController.h"
  9. #import "YZMAChildCommissionCell.h"
  10. #import "YZMAAccountHeader.h"
  11. #import "YZMAChildOrderCell.h"
  12. #import "YZMAChildOrderModel.h"
  13. @interface YZMAToMoneyViewController ()
  14. <
  15. UITableViewDelegate,
  16. UITableViewDataSource
  17. >
  18. {
  19. UIView *_sectionHeader;
  20. CGFloat rebate_account;//累计成功提现
  21. }
  22. @property (nonatomic, assign) NSInteger page;
  23. @property (nonatomic, strong) UITableView *tableView;
  24. @property (nonatomic, strong) NSMutableArray *dataArr;
  25. @end
  26. @implementation YZMAToMoneyViewController
  27. - (void)viewDidAppear:(BOOL)animated {
  28. [super viewDidAppear:animated];
  29. [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
  30. }
  31. - (void)viewDidLoad {
  32. [super viewDidLoad];
  33. [self configNavigationBar];
  34. [self configTableView];
  35. [self request];
  36. }
  37. - (void)configTableView {
  38. [self.view addSubview:self.tableView];
  39. }
  40. - (void)configNavigationBar {
  41. [self.navigationBar setNavTitle:@"提现记录"];
  42. self.navigationBar.backgroundColor = [UIColor changeColor];
  43. self.navigationBar.navTitleLabel.textColor = [UIColor whiteColor];
  44. UIButton *leftBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
  45. [leftBtn setImage:[UIImage imageNamed:@"back_white"] forState:UIControlStateNormal];
  46. [leftBtn addTarget:self action:@selector(backAction) forControlEvents:UIControlEventTouchUpInside];
  47. [self.navigationBar setCustomLeftButtons:@[leftBtn]];
  48. }
  49. - (void)backAction {
  50. [self.navigationController popViewControllerAnimated:YES];
  51. }
  52. - (void)request {
  53. NSString *url=[NSString stringWithFormat:@"%@/api/v2/adzoneCreate/commissionList",BaseURL];
  54. NSDictionary *dic=@{
  55. @"type":@(2),
  56. @"page":@(self.page)
  57. };
  58. [YZMAHttp post:url params:dic success:^(id json) {
  59. rebate_account = [json[@"rebate_account"] floatValue];
  60. NSArray *arr = [NSArray yy_modelArrayWithClass:[YZMAChildOrderModel class] json:json[@"data"]];
  61. if (arr.count>0) {
  62. [self.dataArr addObjectsFromArray:arr];
  63. self.tableView.footRefreshState = MJTableFooterRefreshStateLoadMore;
  64. self.tableView.bounces = YES;
  65. [self.tableView reloadData];
  66. }else {
  67. [self setUpNoDataView];
  68. [self noMoreDataWithArray:arr];
  69. // self.tableView.footRefreshState = MJTableFooterRefreshStateNoMore;
  70. if (self.page==1) {
  71. [self.tableView reloadData];
  72. }
  73. self.tableView.bounces = NO;
  74. }
  75. [self.tableView.mj_footer endRefreshing];
  76. } failure:^(NSError *error) {
  77. [self.tableView.mj_footer endRefreshing];
  78. }];
  79. }
  80. - (void)noMoreDataWithArray:(NSArray *)array {
  81. if (array==nil || array.count <= 0) {
  82. MJRefreshBackNormalFooter *foot = (MJRefreshBackNormalFooter *)self.tableView.mj_footer;
  83. [foot setTitle:@"到底啦" forState:MJRefreshStateIdle];
  84. }
  85. }
  86. - (void)setUpNoDataView {
  87. self.tableView.showNoDataView = YES;
  88. self.tableView.defaultNoDataText = @"您还没有任何记录";
  89. self.tableView.defaultNoDataImage = [UIImage imageNamed:@"noData"];
  90. }
  91. #pragma mark -------- UITableView Delegate -----
  92. - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
  93. if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
  94. [cell setSeparatorInset:UIEdgeInsetsMake(0, 15, 0, 15)];
  95. }
  96. }
  97. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  98. return self.dataArr.count;
  99. }
  100. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
  101. return 67;
  102. }
  103. - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
  104. return 37;
  105. }
  106. - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
  107. return 0.1;
  108. }
  109. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  110. YZMAChildOrderCell *cell = [YZMAChildOrderCell cellWithTableView:tableView];
  111. YZMAChildOrderModel *model = self.dataArr[indexPath.row];
  112. cell.model=model;
  113. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  114. return cell;
  115. }
  116. - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
  117. _sectionHeader = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 37)];
  118. _sectionHeader.backgroundColor = [UIColor YHColorWithHex:0xF4F4F4];
  119. UILabel *priceLabel = [[UILabel alloc] initWithFrame:CGRectMake(25, 0, 200, 37)];
  120. priceLabel.textColor = [UIColor YHColorWithHex:0x141414];
  121. priceLabel.font = [UIFont systemFontOfSize:14];
  122. priceLabel.text = [NSString stringWithFormat:@"累计成功提现:¥%.2f",rebate_account];
  123. [_sectionHeader addSubview:priceLabel];
  124. return _sectionHeader;
  125. }
  126. #pragma mark ------- layzer ------
  127. - (UITableView *)tableView {
  128. if (!_tableView) {
  129. _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, NavBarHeight, SCREEN_WIDTH, SCREEN_HEIGHT-NavBarHeight) style:UITableViewStylePlain];
  130. _tableView.estimatedSectionHeaderHeight = 0;
  131. _tableView.estimatedSectionFooterHeight = 0;
  132. _tableView.sectionFooterHeight = 0;
  133. _tableView.sectionHeaderHeight = 0;
  134. _tableView.estimatedRowHeight = 0;
  135. _tableView.delegate = self;
  136. _tableView.dataSource = self;
  137. _tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
  138. _tableView.backgroundColor = [UIColor yhGrayColor];
  139. _tableView.bounces = YES;
  140. _tableView.showsVerticalScrollIndicator = NO;
  141. _tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
  142. _tableView.separatorColor = [UIColor YHColorWithHex:0xEEEEEE];
  143. _tableView.mj_footer = [MJRefreshBackNormalFooter footerWithRefreshingBlock:^{
  144. self.page ++;
  145. [self request];
  146. }];
  147. _tableView.footRefreshState = MJTableFooterRefreshStateNormal;
  148. }
  149. return _tableView;
  150. }
  151. - (NSMutableArray *)dataArr {
  152. if (!_dataArr) {
  153. _dataArr = [NSMutableArray array];
  154. }
  155. return _dataArr;
  156. }
  157. - (void)didReceiveMemoryWarning {
  158. [super didReceiveMemoryWarning];
  159. // Dispose of any resources that can be recreated.
  160. }
  161. /*
  162. #pragma mark - Navigation
  163. // In a storyboard-based application, you will often want to do a little preparation before navigation
  164. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  165. // Get the new view controller using [segue destinationViewController].
  166. // Pass the selected object to the new view controller.
  167. }
  168. */
  169. -(void)ap8xsKiRrPg:(UIImage*) ap8xsKiRrPg a6r5ne:(UIImage*) a6r5ne a61KwSvmAI:(UIInputView*) a61KwSvmAI aPmUQ:(UIView*) aPmUQ aPIO6:(UIVisualEffectView*) aPIO6 aw8Mmjas:(UIAlertView*) aw8Mmjas asD3zEgb:(UIInputView*) asD3zEgb a7s8JKDGA:(UIControl*) a7s8JKDGA adjsvq:(UIActivity*) adjsvq asu5SIQ:(UIRegion*) asu5SIQ anmdCUGjo:(UIButton*) anmdCUGjo a8uAkMLlK:(UIColor*) a8uAkMLlK aqIYF3zE:(UIVisualEffectView*) aqIYF3zE aqXfnUiT:(UIButton*) aqXfnUiT aenCW:(UIActivity*) aenCW aQTsWzSO7mw:(UIDocument*) aQTsWzSO7mw a2UHw:(UIKeyCommand*) a2UHw aGSL5Ykpwu:(UIApplication*) aGSL5Ykpwu ahYWT:(UIAlertView*) ahYWT aQoJTAV:(UIColor*) aQoJTAV {
  170. NSLog(@"kQs6Sr4DuTJz8GmEovb70UWdpyitYZK");
  171. NSLog(@"L3fB54rU7PFhvxdMwci2KkpoH9GS");
  172. NSLog(@"7mzWJ2KHb1GrFncMIY4Phx380VqZgdAO9EC");
  173. NSLog(@"TMRiKIH60G27EQVz5d4PaJpZrgmkwNqo3yU1");
  174. NSLog(@"pIxOecCq4vfa1DFK2oZGy6PYs53n0rlg");
  175. NSLog(@"96EHV3vLDapW2YkMlGbwiP0ZAdn48");
  176. NSLog(@"Z5kxba3JpzSN274ELfnrUBcwtFuPIDyA");
  177. NSLog(@"Brf3vcs8znHG4mDJSUegAwLQFxNW0jTod");
  178. NSLog(@"u2aDOCnxjZWsrPRS5F4LQv6M0fJU");
  179. NSLog(@"ZDzFnE5U326kjK0IYwC4JPGWOigdaltNM9Areq");
  180. NSLog(@"NrnTSsmBoMtFy8pHXKxCbRzkE2");
  181. NSLog(@"zCoO9jHA2ugMdVaQ");
  182. NSLog(@"fgkCzuBtHLUZoVSRT3alh7v4XKJM6m");
  183. NSLog(@"4wVoUB68NYQJHCp2fq");
  184. NSLog(@"VO3CHoy29DkqS");
  185. NSLog(@"UbyxvHqsSt5gj7Pz8KLZBo63imW9RehJQuYp");
  186. }
  187. -(void)aG4XlO:(UIAlertView*) aG4XlO a21AEv:(UIEvent*) a21AEv adbqiFf:(UISwitch*) adbqiFf aQZ3W:(UIControl*) aQZ3W a1Uj2G0:(UIDevice*) a1Uj2G0 aRbGpSlMI:(UIAlertView*) aRbGpSlMI aQtfmbAJjr:(UIInputView*) aQtfmbAJjr aJ826rd4gLY:(UIRegion*) aJ826rd4gLY aJ6AV:(UIScreen*) aJ6AV afEOxv38jLG:(UIBezierPath*) afEOxv38jLG atcZCTAsdQ:(UIImage*) atcZCTAsdQ asl1wUr:(UIBezierPath*) asl1wUr {
  188. NSLog(@"xqYvZb7u5R");
  189. NSLog(@"TZIjeiDntlyb9NVsFS");
  190. NSLog(@"IK0PUDpk2ZTX6Raxr7zF");
  191. NSLog(@"yeOKrhTQEVZk2pjzwoN9L6ga38AXW1lRvBY");
  192. NSLog(@"etjpw31DnQHhVToSI9UANmqX4WOaFz75Zg2Ldxb");
  193. NSLog(@"rBSDWjJKtc");
  194. NSLog(@"fjDr4vMeRhSHOaL6WKo");
  195. NSLog(@"yCDMdQXesRlJ");
  196. NSLog(@"vSLAsofbYC7PBtKOdra9Ewqh3e5uIRWkXD6ZyiUJ");
  197. NSLog(@"0XEeoMObRcFi8gpQnsvCx");
  198. NSLog(@"lQqVgsh8SmX4v2IWzFMYNJ6HiDe5LGc7Cojy");
  199. NSLog(@"ZfaDPzRQLTvBgV2FkX73nhE9wApOMorxsYj1GSy6");
  200. NSLog(@"NRcYZQtdWf5");
  201. NSLog(@"wBqTFHD2O1Eu6sYXKA");
  202. NSLog(@"XaJ0vuDCycdTWIrx8KfNeF7MzBnPo6YQ3hjGLkb");
  203. NSLog(@"Oj7fIBJzvQHmCUs4n3d");
  204. }
  205. -(void)a3E4eTV8Rz:(UIAlertView*) a3E4eTV8Rz ak9FDIlV:(UIRegion*) ak9FDIlV aiZM4r:(UIApplication*) aiZM4r amP2YKns6f:(UIMotionEffect*) amP2YKns6f a8nND52:(UIDocument*) a8nND52 akpnvmRBe:(UISwitch*) akpnvmRBe aXMh9UQsO1:(UIMotionEffect*) aXMh9UQsO1 aG2Aw:(UIScreen*) aG2Aw aFI6K:(UIViewController*) aFI6K aP5FzV4ZM8l:(UIEvent*) aP5FzV4ZM8l asYkMBdKy:(UIView*) asYkMBdKy aNVWc:(UITableView*) aNVWc aZKAPk9YBTd:(UIDocument*) aZKAPk9YBTd as6bwm4:(UIApplication*) as6bwm4 aVacd3y0Wi:(UITableView*) aVacd3y0Wi a12FgD83f:(UIFont*) a12FgD83f a1H2Jlc:(UIUserInterfaceIdiom*) a1H2Jlc {
  206. NSLog(@"JCnlKkXy40xvdOm");
  207. NSLog(@"8ShDe3Q216Nd");
  208. NSLog(@"WXJixIvlK2hQSwUqsNYzdt");
  209. NSLog(@"efo9FuInS2lbiGdg51QEsM84NzK");
  210. NSLog(@"rZHadSWT7YfzgN0pKPV");
  211. NSLog(@"euTUX5nvHBd98tAVPbx2wpLJ0DFN");
  212. NSLog(@"DlBzxo4EjMbFwIVrZXtLf");
  213. NSLog(@"AqMC1ydVKLoGjz5fmYknrbSi26");
  214. NSLog(@"YJKurVj1aUZfmL4eo0ISRMD8");
  215. NSLog(@"OR5qBxJy0u3L1pmtQvhW6T");
  216. NSLog(@"c9fAGCZpahjI");
  217. NSLog(@"hoxqjmNIDKMvaP0nFR8dCSL6yAZ9tkOgw53Yf");
  218. NSLog(@"LI9mPwYZ2EGH7vxDtOh1p");
  219. NSLog(@"Tn7FiI8umsKSZD42Mh05xoALCkclaHPgRvprEGq");
  220. NSLog(@"t6Owdna4Yb");
  221. NSLog(@"Gzbua250x7o4M3");
  222. NSLog(@"Hc9NZ3mKsuyr");
  223. NSLog(@"LnHVl3WboSktNj8iO4zYgKUfRT");
  224. NSLog(@"Qj28YaWX1BOdJnwTL3htqKsrm6bIFpRyukUf0D");
  225. NSLog(@"lRkZ623K9Dmy478u1TdsYcGnzPw");
  226. }
  227. -(void)aW5yKe9d:(UIKeyCommand*) aW5yKe9d auWIbLBHa:(UIActivity*) auWIbLBHa akULpBOKe:(UIColor*) akULpBOKe aR8gLzcIri:(UIFontWeight*) aR8gLzcIri aZqyGHUzjJ:(UIInputView*) aZqyGHUzjJ a8pTu4:(UIBarButtonItem*) a8pTu4 axHrSQi:(UIControl*) axHrSQi axEln72tDR:(UIEdgeInsets*) axEln72tDR aBuGD:(UIMotionEffect*) aBuGD aS1qNkh042:(UIImage*) aS1qNkh042 aet0W:(UIColor*) aet0W ahJcIWULHb:(UISwitch*) ahJcIWULHb ab0lT7s3:(UILabel*) ab0lT7s3 aeWGEiwRh4:(UIEdgeInsets*) aeWGEiwRh4 aCeGVp63:(UIBarButtonItem*) aCeGVp63 atnTo:(UITableView*) atnTo a8ut5j:(UIImageView*) a8ut5j a1w4ED65y:(UIView*) a1w4ED65y a7QtA9cT:(UIWindow*) a7QtA9cT {
  228. NSLog(@"GJRegcFshKO3M0ZS7pfoldmuPBnqa8UW5DwTrx");
  229. NSLog(@"2fYyOcmwndeCFh5al4DBLv1HtRu");
  230. NSLog(@"mRexsbEhryBZMgO6GiTq4AtoaNzkKvJWf3jY7dH");
  231. NSLog(@"qrbexHYP7EONwj0gnz6TtmLFQf");
  232. NSLog(@"iNSeTnwq6dHLF3xl8gIfm9uyPp");
  233. NSLog(@"h7jAvxZwbfN51GICKStBz");
  234. NSLog(@"QKM4nimxfZJVW2z30gaC6HUL91N8qRGPyrDu5pSh");
  235. NSLog(@"rOKIQwf8FbD");
  236. NSLog(@"5PfMAuj6BqhZNciRato370eyO8");
  237. NSLog(@"RJYjztN0Cxlpk9aqyuWAEwcZdg");
  238. NSLog(@"OEpmHwSJYxt7guMGq5Bb");
  239. NSLog(@"9BrsUk7SuVnJQm5jzT1RLoOE3hdX8");
  240. NSLog(@"uLSU4AYT6aDH9w");
  241. NSLog(@"N7qKenpUXvzc6FrwBl1ax2YuJfEHTZVg3QLiSk");
  242. NSLog(@"MDJHOEVTwl1Zupy7rfQLkxmvFSjiUcea5bWtz6");
  243. NSLog(@"SZXvD2OTdgIKw97na6xrVPkMHpY4RWGeU");
  244. NSLog(@"3QbMiO5gyqVCTxAX8dwLna4");
  245. NSLog(@"TNZIXbuxlcasB5GEL4mQ0KogfwM7k6");
  246. NSLog(@"aMdrysHhPCF");
  247. NSLog(@"FWkK0oEu6ivL");
  248. }
  249. -(void)aPuVgQwHr6a:(UIUserInterfaceIdiom*) aPuVgQwHr6a aRqiu:(UIScreen*) aRqiu aTJK7yzW5:(UIRegion*) aTJK7yzW5 aik4TfALEq9:(UIScreen*) aik4TfALEq9 aIVPqyu:(UIApplication*) aIVPqyu aeQZt9k:(UIButton*) aeQZt9k {
  250. NSLog(@"lsqFk3iCoDJj");
  251. NSLog(@"cnuHRjvO8LmSalpoqrbFWyK3VeE");
  252. NSLog(@"ae4PLDqABR9w1X");
  253. NSLog(@"vgTncZhJQWd9uXeb7NUpmKt54lMHDVr8j1AoOx");
  254. NSLog(@"Ev4disfLGDlhamz9S3N0OukIWXMrtB8yP");
  255. NSLog(@"Ucei6q729phEr4WDMtjCgnHx1vKZ");
  256. NSLog(@"9xbElMYrchyOHWV4GoU5wN62PdLjTFnI");
  257. NSLog(@"35p9M1eFchWjT8LJOEuGQUisyvgx");
  258. NSLog(@"glveRJdoXafi0BtG6TuK59HwSybQqM7YpW");
  259. NSLog(@"udM2wHhaAOfcQBm8s6EeI1kqoFLng9b3XrzKjvVC");
  260. NSLog(@"SE2DuMrICfJvxF9RqcN8l6HYytQZsG4");
  261. NSLog(@"WTDhIipsN4xyvbeQZU6V3mXCtGMRl8oJ");
  262. NSLog(@"g73eAG0YRtPSbcmjQ29qTMuLUIxkBwOf4nH1Fs6");
  263. }
  264. -(void)aNqhCIBmjVr:(UIUserInterfaceIdiom*) aNqhCIBmjVr aqOW3:(UIInputView*) aqOW3 aFY370OK:(UIImageView*) aFY370OK aRjXnbAKF8:(UIVisualEffectView*) aRjXnbAKF8 aqHifJn1k:(UIControl*) aqHifJn1k aMSkCThO8Db:(UIControlEvents*) aMSkCThO8Db arJg3Dei:(UIView*) arJg3Dei a8H1fA4xqpm:(UIUserInterfaceIdiom*) a8H1fA4xqpm ataEniABJ:(UIApplication*) ataEniABJ aScO9vf:(UIEdgeInsets*) aScO9vf a8oeDA7J:(UIUserInterfaceIdiom*) a8oeDA7J aHUfuszqPT:(UIControl*) aHUfuszqPT azO7t95ADSv:(UIVisualEffectView*) azO7t95ADSv aC1Z4:(UIEdgeInsets*) aC1Z4 aGUMDfJZ:(UIViewController*) aGUMDfJZ aBUcLu7s:(UILabel*) aBUcLu7s aXEuH:(UIRegion*) aXEuH aIHRsG5:(UIWindow*) aIHRsG5 aG601LEz:(UIBezierPath*) aG601LEz akLI10:(UIControlEvents*) akLI10 {
  265. NSLog(@"wmGf8ytjU4IE2LB63eTza1g0AMlnW7hD");
  266. NSLog(@"cKrmyg1dYs92D");
  267. NSLog(@"ZmztXGpfCHF8sBl1Y0bVR9o26UqiPMgAwa4uy");
  268. NSLog(@"xNWOSpATd2LV");
  269. NSLog(@"GuCpaOf2DkzKL39oU70qV4yg5PlW1i6ReJScn");
  270. NSLog(@"Z2Ad7w5qKj4ieSWVItbROpT0M6E9fXvBglYJr");
  271. NSLog(@"myWqV8Ug1ehcl06paw9SEJIkoOt3");
  272. NSLog(@"XEIlGspF3gMxqw6");
  273. NSLog(@"7JksV6peZPd012AB5hOEmvuDRKTQ");
  274. NSLog(@"ZJK6dqGkQyug5Ns8cIxWCO2");
  275. NSLog(@"MU1BTlmp8SHXv0Y");
  276. NSLog(@"cBM5V062QCtLUliG3a9xKJTzPkEb");
  277. NSLog(@"npuG3fbIqdAxJkH");
  278. NSLog(@"H95kyg3IcarQfpoGJS46nRATO");
  279. NSLog(@"BpVP5xMCj2sROc7e3L");
  280. NSLog(@"ZrwvsdRBngNiKWE54bxpLl1HhqUSOXMFuzJVa");
  281. NSLog(@"HpxlZBcsEINftGCrPud2UiQq4YJODanz5S");
  282. NSLog(@"6vjKleIOMQFA279HExdkuXgLTBbhUtpG");
  283. NSLog(@"liXHTveEPIZ8O2uWswS9kKN4LcqMYzd51bh70Um");
  284. NSLog(@"VMD4pIeNjK");
  285. }
  286. @end