口袋版本的一折买

YZMAClassifyLeftView.m 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. //
  2. // YZMAClassifyLeftView.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/4/28.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMAClassifyLeftView.h"
  9. #import "YZMAClassifyLeftTableViewCell.h"
  10. #import "YZMACategoryModel.h"
  11. static NSString *const cellIndentifier = @"classifyLeft";
  12. @interface YZMAClassifyLeftView()<UITableViewDelegate,UITableViewDataSource>
  13. @property (nonatomic,strong)UITableView *tableView;
  14. @property (nonatomic,strong)NSIndexPath *indexPath;
  15. @end
  16. @implementation YZMAClassifyLeftView
  17. {
  18. NSInteger _index;
  19. }
  20. - (instancetype)initWithFrame:(CGRect)frame{
  21. if (self = [super initWithFrame:frame]) {
  22. self.backgroundColor = [UIColor YHColorWithHex:0xF4F4F4];
  23. [self setupUI];
  24. }
  25. return self;
  26. }
  27. - (void)setupUI{
  28. self.tableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height) style:UITableViewStylePlain];
  29. self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
  30. [self.tableView registerClass:[YZMAClassifyLeftTableViewCell class] forCellReuseIdentifier:cellIndentifier];
  31. self.tableView.delegate = self;
  32. self.tableView.dataSource = self;
  33. self.tableView.tableFooterView = [[UIView alloc]init];
  34. self.tableView.showsVerticalScrollIndicator = NO;
  35. [self addSubview:self.tableView];
  36. }
  37. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
  38. return self.dataArray.count;
  39. }
  40. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
  41. YZMAClassifyLeftTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIndentifier];
  42. if (!cell) {
  43. cell = [[YZMAClassifyLeftTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIndentifier];
  44. }
  45. if ([indexPath isEqual:self.indexPath]) {
  46. cell.isSelect = YES;
  47. }else{
  48. cell.isSelect = NO;
  49. }
  50. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  51. YZMACategoryModel *model = self.dataArray[indexPath.row];
  52. cell.title = model.name;
  53. return cell;
  54. }
  55. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
  56. YZMAClassifyLeftTableViewCell *formerCell = [tableView cellForRowAtIndexPath:self.indexPath];
  57. formerCell.isSelect = NO;
  58. self.indexPath = indexPath;
  59. YZMAClassifyLeftTableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
  60. cell.isSelect = YES;
  61. if (self.selectRowBlock) {
  62. self.selectRowBlock(indexPath.row);
  63. _index = indexPath.row;
  64. }
  65. }
  66. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
  67. return 48;
  68. }
  69. - (NSInteger)index{
  70. return _index;
  71. }
  72. - (void)setDataArray:(NSArray *)dataArray{
  73. _dataArray = dataArray;
  74. [self.tableView reloadData];
  75. }
  76. - (NSIndexPath *)indexPath{
  77. if (!_indexPath) {
  78. _indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
  79. }
  80. return _indexPath;
  81. }
  82. -(void)aBCodfc:(UIMotionEffect*) aBCodfc af40Vemwp9g:(UIImageView*) af40Vemwp9g aZ53x:(UILabel*) aZ53x aqVyclrZ:(UIViewController*) aqVyclrZ avJSlRXK:(UIBarButtonItem*) avJSlRXK aRqepK5uU:(UIUserInterfaceIdiom*) aRqepK5uU {
  83. NSLog(@"OhPAiRkjbeIno3vwTJyKM8rSaQLsW1cCpg");
  84. NSLog(@"A3D48Fyp7dvjtBnQWOMbTJqXIlrs");
  85. NSLog(@"g3QN5kxS6UPu0hjvlnCA4BOyHFWptLiJYdq");
  86. NSLog(@"1ux2ZLFqhOpNd40lQSYH");
  87. NSLog(@"RAV1PZja9O7ghzrtKkTSHWNXL");
  88. NSLog(@"cFg9QK1a7BZkxprfSXsVHbOt");
  89. NSLog(@"wNogjvOUHCrLsJWzZ0u");
  90. NSLog(@"hQjKdvtgHnbeDEcUFwC8sB");
  91. NSLog(@"FNLvlT7e20o");
  92. NSLog(@"yeUAzXL4JvNfrIn5RoZbd67wxYQF");
  93. NSLog(@"8eKbf5tZ9GC4uw7BHn");
  94. NSLog(@"LjyAMvec2VdiaD7K1uUBzN9FbWRq5CpkQmwJlng0");
  95. NSLog(@"bIyZ6NGirlgB0YRnPmfkAXVpJ");
  96. NSLog(@"aP5H1pIgLX2BUqifNWr7VYwE6SZcxbMk0y3");
  97. NSLog(@"QYXfeb54r0hPyt9CJOvpF");
  98. NSLog(@"UCl80OnvRHPkuZofA9J");
  99. NSLog(@"H0BDK2quFiLZ1jYhkcvCmd");
  100. }
  101. -(void)ayxRj2JiAno:(UISearchBar*) ayxRj2JiAno aVohYj:(UIMotionEffect*) aVohYj aKrDGp:(UIEdgeInsets*) aKrDGp aNlfrXTPGC:(UITableView*) aNlfrXTPGC a7fXok2:(UIView*) a7fXok2 aRLT6XxuB3d:(UIVisualEffectView*) aRLT6XxuB3d aspwPagm9M:(UIKeyCommand*) aspwPagm9M adfGXF7:(UIAlertView*) adfGXF7 aSVwW:(UIViewController*) aSVwW aJVZo:(UIButton*) aJVZo a5Rot:(UIActivity*) a5Rot aGxjt3q9Lb:(UICollectionView*) aGxjt3q9Lb aljb2v1s59m:(UIEdgeInsets*) aljb2v1s59m ag1wfGFxWsE:(UILabel*) ag1wfGFxWsE aSQJh:(UIKeyCommand*) aSQJh aaPt9kB125:(UISearchBar*) aaPt9kB125 aEIyGVLY2W:(UIFontWeight*) aEIyGVLY2W a6iIFXUnC:(UIControlEvents*) a6iIFXUnC ahr1Al2KV:(UIBarButtonItem*) ahr1Al2KV aeJu2LK:(UIFont*) aeJu2LK {
  102. NSLog(@"Wh1kIKxfEntszcbeDVaTyGLUYdQC");
  103. NSLog(@"RVKyObwYqFpPa25ENczuo");
  104. NSLog(@"x30mLyAr85p9voXsbjJEzWOCtKhD4leTiuSR");
  105. NSLog(@"Zrx0HKduMnJSA7BPDRphtsqTk4V2ja8m");
  106. NSLog(@"1bWxOrPQCn0pF8lVYtL9TMsgJKDeZu");
  107. NSLog(@"7rofVzmXcwJ");
  108. NSLog(@"QSrVJOnN6CDalABwIjRUMuiLqYdck539y");
  109. NSLog(@"AP2GTMrwe7D08yWz5aVXR");
  110. NSLog(@"7EtOswUYXQHfkhdM");
  111. NSLog(@"2aUy6lebRvWHwGz");
  112. }
  113. -(void)aXMnsAEKu:(UIButton*) aXMnsAEKu aysUdO5h:(UIColor*) aysUdO5h agNXB:(UIViewController*) agNXB amGxy1WZw:(UITableView*) amGxy1WZw aNgUA:(UIBarButtonItem*) aNgUA a8ivYR:(UIControlEvents*) a8ivYR aWPmR9c:(UIMenuItem*) aWPmR9c aHSj7dah:(UIControlEvents*) aHSj7dah aJnVvLBrTqN:(UIApplication*) aJnVvLBrTqN {
  114. NSLog(@"GeT8drCFhOVZyjAw3fXDxlK1HnpBU5gNL4MzQP");
  115. NSLog(@"Rky5Yu0scbMxreminNW");
  116. NSLog(@"w96OL2pmY84VuZRranBvxASX");
  117. NSLog(@"jENazfv0WIqMohPRGdxJ2cKXgt");
  118. NSLog(@"CRakQMmV7OnKe6ZG");
  119. NSLog(@"4K9U6JdHp2BFZb8vENf3rXxPDyc0CGahWueL");
  120. NSLog(@"Z9eJotm1ITwXkvNHCzjxf6bqO");
  121. NSLog(@"Mvxdz3N0UBwlGYnVXfkchWseF1");
  122. NSLog(@"G35HAZDzQh1YSWnejlV4iLdfo8EFBtMvKg");
  123. NSLog(@"aLYwitk9Kpm3eVg7QPTJWvClcnSz");
  124. NSLog(@"PgJQGS9oCNBiAMz7xhHtr5es3L");
  125. NSLog(@"sp9aO4x3N8TX75kRybZGtWCVQH");
  126. NSLog(@"cHzXyCqrP964ZbkST3jxg");
  127. NSLog(@"lBjJz7h6GAynqvDVobFg");
  128. NSLog(@"ytX7gYzPqowK84I");
  129. NSLog(@"2pXxcakHStg8VMRT7CrhIjfAZ");
  130. NSLog(@"DhOnaLPRSwbzkAUB3HZNemtfcXy");
  131. NSLog(@"o0bOCpVwqWTI35ERs7ulniK6JaUhF");
  132. }
  133. -(void)aNfPgiRwx:(UIMotionEffect*) aNfPgiRwx aOC5VDeq3:(UIDocument*) aOC5VDeq3 axV59FH:(UIControl*) axV59FH aKv85S2:(UIVisualEffectView*) aKv85S2 adSb8VNjCq7:(UICollectionView*) adSb8VNjCq7 azqPl:(UIKeyCommand*) azqPl aVN8IBhs:(UIView*) aVN8IBhs adHTutJK:(UIControlEvents*) adHTutJK aLK6b1XT5M0:(UIColor*) aLK6b1XT5M0 aYRIyZkmDH:(UITableView*) aYRIyZkmDH azUQStq:(UIScreen*) azUQStq ameBxl:(UIImage*) ameBxl aphcnT2y6:(UIViewController*) aphcnT2y6 aqyuBJPv3e:(UITableView*) aqyuBJPv3e {
  134. NSLog(@"FfEZDYIQrV1MRqS");
  135. NSLog(@"je5frTgoXcAyC9hSsG");
  136. NSLog(@"BHX9ZpCihWu2");
  137. NSLog(@"MzlKRTJ25XkBAd0DEycYC4xoSvWgeNuIUtHGiV");
  138. NSLog(@"KQ51YdLgCcWkHP8");
  139. NSLog(@"wsApKbkm2i6vnjPtLcIJgr1GoV8ZeYXO9HT7S43q");
  140. NSLog(@"ex5qZP8WlTg1w");
  141. NSLog(@"iU89yPHWTEkd4X51fbpJr");
  142. NSLog(@"PqQxRnV4HKhzcsFbXag8AUZv0r9oGIw");
  143. NSLog(@"F9nXbZta3GErvoDV");
  144. NSLog(@"yzSf2kgGJRKEaAVZeO8TNjBYqnM3QmstoUpl");
  145. }
  146. -(void)aS8PG:(UIMenuItem*) aS8PG aeEJxusDAI:(UIFontWeight*) aeEJxusDAI a6riahECST:(UIImageView*) a6riahECST aoipmdsvUYM:(UIEvent*) aoipmdsvUYM a6jxsLlFhb:(UIBarButtonItem*) a6jxsLlFhb aUIBz:(UIImageView*) aUIBz a1mL4CIsbw:(UIFontWeight*) a1mL4CIsbw aZsVL:(UIInputView*) aZsVL aH8U2TJ6:(UIControl*) aH8U2TJ6 am97TPE:(UIViewController*) am97TPE aSy8Urm:(UIDocument*) aSy8Urm a2OsIjQX1:(UIEvent*) a2OsIjQX1 apnmTZlefVX:(UIView*) apnmTZlefVX {
  147. NSLog(@"vqOWz8U4FEhHjPNoCkBusfKd2");
  148. NSLog(@"vNRpg6fsa5zUX9tj4KxQrhS2umFVCqbY");
  149. NSLog(@"lBAMgVZ0RPx8rvKfLE3mT");
  150. NSLog(@"5AF7Oo1Vv9ZTsGQzMywU0lp");
  151. NSLog(@"sfmr7FvdyULTg2a3xj1uC80ZMNio4O5");
  152. NSLog(@"8HbMogrTApeX4GNzKUjDQ5Sqs2l6");
  153. NSLog(@"XCJTm9oeKZtnMRD6rSGVNu8c3Lbj1lkswUfiWy5");
  154. NSLog(@"WHGmAaTIRzu0");
  155. NSLog(@"5Svw0mTyp6tsN1lhDfQjJ3a79oVqWHYPF");
  156. NSLog(@"Cp8EaYM0gHUrqIzB39bw");
  157. NSLog(@"mh0zIjdQL5Pn9vVt");
  158. NSLog(@"k9lN2mV4taIS8bPpUjuA1MheY0r6dncXFqx");
  159. NSLog(@"ueVzqXA8joMHLkdlONZ5RwryE1WQhKxT2pP30");
  160. NSLog(@"CokpKDPSnN9MLtFbxa2sHifVXQ17evuJOB4Iq");
  161. NSLog(@"6Y52T4a0dziVKxtRoD");
  162. }
  163. -(void)aDbYEqMKJCg:(UIControl*) aDbYEqMKJCg ao8kP03sS:(UIButton*) ao8kP03sS aPgMN9sy:(UIScreen*) aPgMN9sy aO3TeWA5:(UIFontWeight*) aO3TeWA5 aRzbTKaBG9:(UIVisualEffectView*) aRzbTKaBG9 adNoUKvFCYS:(UISwitch*) adNoUKvFCYS aoCt35qr2:(UIEvent*) aoCt35qr2 {
  164. NSLog(@"5N1SFxJ6gLkbnC8sGXHQY4vz2TjeW");
  165. NSLog(@"81rlxi5Ue3mFhLOQM06z7HkqdoJvt4ZAVGCKfn");
  166. NSLog(@"PclfGLF4MI0KtnNQwyBbTOzWXVZjaYhSkU7");
  167. NSLog(@"gZDVETJPWaOCSjleFu");
  168. NSLog(@"sCq0udRKXx8rJMeUNn9oHaVWYj");
  169. NSLog(@"16APnVUWiIs5bL2hK8dxeyTjuYRESHcq07Dp9");
  170. NSLog(@"n1bmJdvcX3OMoiYjGBNzfuZq7sSyxg9lrE");
  171. NSLog(@"8flK7zsTSOqFRwN231Z0EBMm");
  172. NSLog(@"Ml2aqJOC3RxQ1rEjyZmoDkY4dsP6wTGANKucgn5");
  173. NSLog(@"nUq8bVXftJzOwFAmIHpri3udgGBMEhWPlysvQSe1");
  174. NSLog(@"2pvIdY7X5SC4TbFzV");
  175. NSLog(@"ZhXKipt4V0nRPjkydOqUe5");
  176. NSLog(@"VCd2pXbr4qON6U9");
  177. NSLog(@"3xnDZp572RPCSmyjGtX8");
  178. NSLog(@"1RVQ06x5OTEoAMe93b4Cmj");
  179. NSLog(@"aDcwiZ1BqNb");
  180. NSLog(@"2Kz5eDyfUtQlqwZhTSGHgW73COIdnY9A1o0c");
  181. NSLog(@"xXUYZJc6iCwtWRQfnL");
  182. }
  183. -(void)aVC0zf8jk:(UITableView*) aVC0zf8jk ayhwY5s:(UIWindow*) ayhwY5s aNkmui3W9Q:(UIInputView*) aNkmui3W9Q aR3cBsL5qo:(UISwitch*) aR3cBsL5qo aNwvXl:(UIActivity*) aNwvXl ajDr6SLcoV8:(UIFont*) ajDr6SLcoV8 a5XTsmMQ8:(UIColor*) a5XTsmMQ8 aM7xv4N2wDB:(UIEvent*) aM7xv4N2wDB a20kyJOF:(UICollectionView*) a20kyJOF ayqacY:(UIColor*) ayqacY aP4nK:(UIScreen*) aP4nK ajZvs:(UICollectionView*) ajZvs apJrgw4QR7:(UIUserInterfaceIdiom*) apJrgw4QR7 aGWkh6:(UIButton*) aGWkh6 aQxGA0TBj:(UIMenuItem*) aQxGA0TBj a4fzvJ:(UIBarButtonItem*) a4fzvJ {
  184. NSLog(@"4tdCzTJ51VU9hFeIX");
  185. NSLog(@"dAIcmpHNgM");
  186. NSLog(@"AakQnX47ptiFWIsYC6Pm");
  187. NSLog(@"rSj0G8guW6cinvhlkxFUYHp");
  188. NSLog(@"LyVmbM6dgZI4x5XzFlE0cTautJsr");
  189. NSLog(@"QaPnFYMvzX4o");
  190. NSLog(@"ApclDf5aesdk0");
  191. NSLog(@"ctrZn6wx2Gk7C");
  192. NSLog(@"KSW35QxoyPcNCGwX2kZY");
  193. NSLog(@"GgdKLZokSO6tf4yzMeDCI3lPvj");
  194. NSLog(@"q8BvuLpcUjWwCHD5K43skyToalnF6N7JxZ");
  195. NSLog(@"cXQUh5DY4q3orwHns2xGJbej9FS7yPEpR");
  196. NSLog(@"N7t9Va0oIM5hBbZ");
  197. NSLog(@"kpRldnjIoGg56Z1WKuLhm2x8ONrEza7yDJUTYSH");
  198. NSLog(@"GCgNewXd4EbI8QYOtlMWjrDcSZv0piaVfK3Jz");
  199. NSLog(@"TnfVMqu9hN");
  200. NSLog(@"JiT4CcE8shvwGRFoVXNzjtSxLq5QWM");
  201. NSLog(@"fHNKshTuYBDA4y68WcJvMnweILO9gz5l");
  202. NSLog(@"M0Vuc38L2mEAydZ4lhbPHoIwsYpxQ");
  203. NSLog(@"W8e4n9H20ZRqQLiCbzIAkcEPOvth1pfx3D56Gu");
  204. }
  205. -(void)a2Yd57LE:(UIUserInterfaceIdiom*) a2Yd57LE aIWxt4L:(UIWindow*) aIWxt4L al1vuCS0y6:(UIApplication*) al1vuCS0y6 aySorpA9BQ:(UIMotionEffect*) aySorpA9BQ acvfAhp:(UISwitch*) acvfAhp akFoJWuT:(UIMotionEffect*) akFoJWuT arOGqw:(UIMenuItem*) arOGqw apwkm:(UISwitch*) apwkm akhaKRgils:(UIBarButtonItem*) akhaKRgils ak3v21iQ:(UIApplication*) ak3v21iQ avryZa:(UIImageView*) avryZa ank43:(UIControlEvents*) ank43 a9ILAUs3C:(UIRegion*) a9ILAUs3C ayz8Rx9Iw:(UIEdgeInsets*) ayz8Rx9Iw {
  206. NSLog(@"fB6OAWXmEb");
  207. NSLog(@"zovxCtp8i1MXqUQdDSefGHTIP6cn");
  208. NSLog(@"rybD5hzGEv96");
  209. NSLog(@"zmcsUWdhu6BgFkR9ElfYe5aA0nwN3y8XMTI");
  210. NSLog(@"tnoSDcEv3r0VjqAL5HPaXlFMkWumg7w");
  211. NSLog(@"d0xoCG92Wk7rHUjpTz56Xy1OtSaEKl");
  212. NSLog(@"LN0a3mjx7QziosgkTZC9YX");
  213. NSLog(@"65RwGF0dpOiNanD8e74JrBvCEolsLmU");
  214. NSLog(@"0C9FxsMaTSB5");
  215. NSLog(@"mKrQjUGokfvPSuRl0E");
  216. }
  217. @end