两折卖----返利app-----返利圈

LZMModuleView.m 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. //
  2. // LZMModuleView.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/7/4.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LZMModuleView.h"
  9. #import "LZMModuleCollectionCell.h"
  10. static NSString *ldModuleCollectionCell = @"ldModuleCollectionCell";
  11. @interface LZMModuleView()<UICollectionViewDelegate, UICollectionViewDataSource,UICollectionViewDelegateFlowLayout>{
  12. NSArray *_dataArr;
  13. }
  14. @property (nonatomic, strong) UICollectionView *collectionView;
  15. @end
  16. @implementation LZMModuleView
  17. - (void)setRecommonData:(NSArray *)dataArr {
  18. _dataArr = dataArr.mutableCopy;
  19. [self.collectionView reloadData];
  20. }
  21. - (instancetype)initWithFrame:(CGRect)frame {
  22. self = [super initWithFrame:frame];
  23. if (self) {
  24. self.layer.masksToBounds = YES;
  25. [self initSubView];
  26. }
  27. return self;
  28. }
  29. - (void)initSubView {
  30. UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc]init];
  31. self.collectionView = [[UICollectionView alloc]initWithFrame:CGRectMake(0, 0, self.width, self.height) collectionViewLayout:flowLayout];
  32. flowLayout.minimumLineSpacing = 5;
  33. flowLayout.minimumInteritemSpacing = 10;
  34. flowLayout.scrollDirection = UICollectionViewScrollDirectionHorizontal;
  35. self.collectionView.backgroundColor = [UIColor whiteColor];
  36. [self.collectionView registerClass:[LZMModuleCollectionCell class] forCellWithReuseIdentifier:ldModuleCollectionCell];
  37. self.collectionView.delegate = self;
  38. self.collectionView.dataSource = self;
  39. self.collectionView.showsHorizontalScrollIndicator = NO;
  40. [self addSubview:self.collectionView];
  41. }
  42. #pragma mark ---- UICollectionView Delegate ------
  43. -(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
  44. return CGSizeMake((SCREEN_WIDTH-30)/3, self.collectionView.height);
  45. }
  46. - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
  47. return 1;
  48. }
  49. - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
  50. return _dataArr.count;
  51. }
  52. - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section
  53. {
  54. return CGSizeMake(0, 0);
  55. }
  56. - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout referenceSizeForFooterInSection:(NSInteger)section
  57. {
  58. return CGSizeMake(0, 0);
  59. }
  60. - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
  61. LZMChildGoodModel *model = _dataArr[indexPath.row];
  62. LZMModuleCollectionCell *cell = [self.collectionView dequeueReusableCellWithReuseIdentifier:ldModuleCollectionCell forIndexPath:indexPath];
  63. cell.model = model;
  64. return cell;
  65. }
  66. - (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout insetForSectionAtIndex:(NSInteger)section {
  67. return UIEdgeInsetsMake(0, 10, 0, 0);
  68. }
  69. - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
  70. LZMChildGoodModel *model = _dataArr[indexPath.row];
  71. if (self.didSelectedGood) {
  72. self.didSelectedGood(model);
  73. }
  74. }
  75. -(void)a1NK4mXiYya:(UIVisualEffectView*) a1NK4mXiYya aNHagI:(UIImageView*) aNHagI aupglcAQeN:(UILabel*) aupglcAQeN abXj93KWG:(UIEvent*) abXj93KWG agTLr:(UIColor*) agTLr abGTYSZ:(UIMotionEffect*) abGTYSZ acCK5O:(UIFont*) acCK5O agKpo9xwd:(UIRegion*) agKpo9xwd a2T0W:(UITableView*) a2T0W aZsBx:(UIView*) aZsBx anfUWsz:(UIApplication*) anfUWsz {
  76. NSLog(@"wbPgx3cT5sJ0KY6utA9o4hpVman7vX");
  77. NSLog(@"1OPaXC9E3tIA4e82bshWBjUZ5kVRFix0Mwz7Qmv");
  78. NSLog(@"X3at8OyPUekLDGJrsmQocf7VYpb0lj");
  79. NSLog(@"514ombFABDTv");
  80. NSLog(@"frDRLZ4E6SO");
  81. NSLog(@"itILpAzauEDm5");
  82. NSLog(@"1btwEUDgQVydmXi9N8uk");
  83. NSLog(@"CT5VvgKR7PLS4zlwZ");
  84. NSLog(@"bihuDkzrcj8FnOSHUfwWQZRY6esgEJP7NxVv2C");
  85. NSLog(@"9qskOm7rDMXUJBf26dYPCuKplF8GgSITW3");
  86. NSLog(@"W5Lz6wENn0gQfmKIaxlF37RiT");
  87. }
  88. -(void)ahIgZUY:(UIVisualEffectView*) ahIgZUY a05Volq9OH:(UIViewController*) a05Volq9OH aJLVP2C:(UIInputView*) aJLVP2C afl4NTq7:(UIVisualEffectView*) afl4NTq7 asWmLr6kb5C:(UIInputView*) asWmLr6kb5C aAVr9LfhQu:(UIButton*) aAVr9LfhQu aAIhJ:(UIWindow*) aAIhJ a9N6gHnF:(UIEdgeInsets*) a9N6gHnF {
  89. NSLog(@"6cQKI1hlBbwX5zHrU0u9SCfaPvOM3Ng");
  90. NSLog(@"RrK74UmgAOipSdvyLV");
  91. NSLog(@"dVBSyc4lMa6jHUt1nvXowxfChZ5rJP7iFNkeu");
  92. NSLog(@"9lnjCa2FREDQcG0IbiB3vxsVy");
  93. NSLog(@"AhHBPEQU5l13rVftuxI0JWqked2LMTyvCzsR");
  94. NSLog(@"vjKYdDmfsR");
  95. NSLog(@"RW7YIudesgwzoiyHNr1a52G");
  96. NSLog(@"UQpOtmdjX0af7nLAMHr483RPBY6");
  97. NSLog(@"r0cFPAUTYJnqya2z7Hv");
  98. NSLog(@"eGLOYjC53XWbAZVadEpsrmNoxBMSK");
  99. NSLog(@"0fbBcN9q78JI2zvjP");
  100. NSLog(@"KHlxAY3fIpFdQjGs2SD1rNuCEckW5JO");
  101. NSLog(@"Lzkp5ZgOTs3a0BIXV8jhybK2HC7wrA4GqE");
  102. NSLog(@"XtpC6Lb7h3dKrV0PzHa9ufEYFBqi5mATn2");
  103. NSLog(@"CEeDjYSrdZhaG24z7Fpv9");
  104. NSLog(@"gyTKD4W1ZLSBJjrQl");
  105. }
  106. -(void)aNHaz:(UIUserInterfaceIdiom*) aNHaz aTPIv0OWft:(UIBezierPath*) aTPIv0OWft a37TKnQhegU:(UIInputView*) a37TKnQhegU aGAZPyv86s:(UIViewController*) aGAZPyv86s ak83mMZ6Qw:(UIControlEvents*) ak83mMZ6Qw {
  107. NSLog(@"Tq7Gvz6j3IEmdV");
  108. NSLog(@"jvi7VWf0XEh9StRIqkm2HZwb6DKl5upJ");
  109. NSLog(@"AFZiRqwxM8hlSmpJBs0cXQatkeyDU6jWzHnLgdV9");
  110. NSLog(@"sN0I7yG9DnT1fJ5AvZXj");
  111. NSLog(@"U45nuKoIQtiXH7WAjvMTZEs");
  112. NSLog(@"N0hCy3H4ZaoijpAbu6n1vJc92RtVXlzWD");
  113. NSLog(@"7iqxAp2ftXLCE9oSlghzrQ");
  114. NSLog(@"fpOv6lSoKJVy0a27c5QPZMwjNr9k");
  115. NSLog(@"qx6SG1bkFVpd4ljhEPvKiTQO0Wfz2cgmaH5s9");
  116. NSLog(@"OoNb2dABsFtYuXmKQJTe6iRZEchCMj");
  117. NSLog(@"yoEvcxS8Azwp1ZmQYXigFHBIN527uMWG0ODj");
  118. NSLog(@"9aoSiEWRcebMYGBKznuNtgIJDf51");
  119. NSLog(@"lqxYjvI67oZ1B9g0PUtkwQScizfVG");
  120. NSLog(@"PQIecD1rEmdWfu3GL");
  121. NSLog(@"GxVlwi6BLIqQKZtu");
  122. NSLog(@"LzaqZJ4rENy");
  123. }
  124. -(void)aaQGiLHMx:(UIFontWeight*) aaQGiLHMx aQ9XP:(UIFont*) aQ9XP aNbi0:(UIInputView*) aNbi0 aMpeZUQX:(UIFontWeight*) aMpeZUQX a3Bh9qe:(UIWindow*) a3Bh9qe a1ki6UyHgq3:(UIWindow*) a1ki6UyHgq3 aAjfsSoUlHy:(UIBezierPath*) aAjfsSoUlHy aL7vnH:(UIImage*) aL7vnH auLgyiKW5V:(UIColor*) auLgyiKW5V aIoh8ZKzOp:(UIVisualEffectView*) aIoh8ZKzOp amhF68L2:(UICollectionView*) amhF68L2 a7j54:(UIBarButtonItem*) a7j54 a0OLMm:(UIVisualEffectView*) a0OLMm avjnx:(UIScreen*) avjnx aZ39OyLgn:(UITableView*) aZ39OyLgn ayA9l:(UIBarButtonItem*) ayA9l aMH5y8zP3:(UIBarButtonItem*) aMH5y8zP3 abS9f1VrtZ7:(UIVisualEffectView*) abS9f1VrtZ7 aS8PDbMWqV:(UIView*) aS8PDbMWqV {
  125. NSLog(@"qyQXtngvd095z42HELRNUr");
  126. NSLog(@"aDFnXL83PI6UTgsHQJtc9mGq5lo2OYZ0");
  127. NSLog(@"9XSvQCyuBItNj");
  128. NSLog(@"9xWLHETiXSGCqUd8hoYbs");
  129. NSLog(@"EKMkiFLDvjWqmxfhz5oG8w27nUeraJNbdP4c");
  130. NSLog(@"hXAvwRmcOeduFsgZ");
  131. NSLog(@"LjvWqHMOozZwislt4x8hgyAbdKJT");
  132. NSLog(@"W5D2gsjFaC");
  133. NSLog(@"EgZu5O8cyTkJ9lvFIni2Q6UMr0L7tpS");
  134. NSLog(@"gZEk49mCsa");
  135. }
  136. -(void)aG4t0peBH76:(UICollectionView*) aG4t0peBH76 aZNwCMQ:(UIView*) aZNwCMQ aohvXHxbiM:(UISwitch*) aohvXHxbiM aRXV2Gp7:(UIDevice*) aRXV2Gp7 ap93XPTVbd:(UIActivity*) ap93XPTVbd aJbL4szYl:(UIControl*) aJbL4szYl avGPr:(UICollectionView*) avGPr a1F9z:(UIMenuItem*) a1F9z a9tBW5UN:(UIMenuItem*) a9tBW5UN ahKlScNq:(UIKeyCommand*) ahKlScNq aoQlNm17:(UIRegion*) aoQlNm17 aHwCr1b:(UIControl*) aHwCr1b ao8nJKq4mXb:(UIRegion*) ao8nJKq4mXb ajT6nF:(UIColor*) ajT6nF aIx4aENwFMZ:(UIFontWeight*) aIx4aENwFMZ aoHxC:(UIControlEvents*) aoHxC aHDzS:(UIViewController*) aHDzS {
  137. NSLog(@"afX3DzPZ9rh");
  138. NSLog(@"pAP8nQzlO0xY");
  139. NSLog(@"8wqgDk5AoT");
  140. NSLog(@"ZeEMNzdbYgDyV0xijUqsKOwWLTI9lmSB");
  141. NSLog(@"cOuYgwS7b8jL");
  142. NSLog(@"uTEWV9AvCm0twobk1ZR");
  143. NSLog(@"JLR5vbk6UpKQ0gNCarud8xVP9WXSqsIMf");
  144. NSLog(@"wt8KQYXmLUu7alTOP3B5x2NVWpEj4Gfydr");
  145. NSLog(@"e1QDkNm4LxJVyGtWg82SXuh75KbdCAlfZM");
  146. NSLog(@"D5oWbVYg3RKJqPlmQiNpCGU");
  147. NSLog(@"RlIcsTVHdNhyCDwAX2Q3kUiJeZoap4q7BmFft9");
  148. NSLog(@"tGk8M3SYD9uLse");
  149. NSLog(@"3g7fCNhaUuH8D0Gnrbeo9x1EMSRymvdkVLWI");
  150. NSLog(@"JWc1ZfhGr4ObKMBVo58AgXTp67yDmqtYs3Q");
  151. NSLog(@"6wZn9gb17uymMFOtsQr");
  152. NSLog(@"3G5InNvkoP1M42E680dJSbpYWB");
  153. NSLog(@"sY1CIL4yoi9BvTr8buagfdXczkn0P");
  154. }
  155. @end