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

LZMModuleCollectionCell.m 9.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. //
  2. // LZMModuleCollectionCell.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/7/4.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LZMModuleCollectionCell.h"
  9. @interface LZMModuleCollectionCell()
  10. @property (nonatomic, strong) UIImageView *iconView;
  11. @property (nonatomic, strong) UILabel *titleLabel;
  12. @property (nonatomic, strong) UILabel *priceLabel;
  13. @property (nonatomic, strong) UILabel *disPrice;
  14. @property (nonatomic, strong) UILabel *commissionLabel;
  15. @end
  16. @implementation LZMModuleCollectionCell
  17. - (instancetype)initWithFrame:(CGRect)frame {
  18. self = [super initWithFrame:frame];
  19. if (self) {
  20. self.layer.cornerRadius = 6;
  21. self.layer.masksToBounds = YES;
  22. [self initSubViews];
  23. }
  24. return self;
  25. }
  26. - (void)initSubViews {
  27. [self.contentView addSubview:self.iconView];
  28. [self.contentView addSubview:self.titleLabel];
  29. [self.contentView addSubview:self.priceLabel];
  30. [self.contentView addSubview:self.disPrice];
  31. [self.iconView addSubview:self.commissionLabel];
  32. [self.iconView mas_makeConstraints:^(MASConstraintMaker *make) {
  33. make.top.left.right.mas_equalTo(0);
  34. make.height.mas_equalTo(self.iconView.mas_width);
  35. }];
  36. [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  37. make.left.right.mas_equalTo(0);
  38. make.top.mas_equalTo(self.iconView.mas_bottom).mas_offset(Fitsize(10));
  39. }];
  40. [self.disPrice mas_makeConstraints:^(MASConstraintMaker *make) {
  41. make.left.mas_equalTo(0);
  42. make.top.mas_equalTo(self.titleLabel.mas_bottom).mas_offset(Fitsize(6));
  43. }];
  44. [self.priceLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  45. make.left.mas_equalTo(self.disPrice.mas_right).mas_offset(3);
  46. make.bottom.mas_equalTo(self.disPrice.mas_bottom).mas_offset(-1);
  47. }];
  48. [self.commissionLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  49. make.left.right.bottom.mas_offset(0);
  50. make.height.mas_equalTo(20);
  51. }];
  52. }
  53. - (void)setModel:(LZMChildGoodModel *)model {
  54. _model = model;
  55. [self.iconView sd_setImageWithURL:[NSURL URLWithString:model.img] placeholderImage:Placehold_Img];
  56. self.titleLabel.text = model.title;
  57. self.disPrice.text = [NSString stringWithFormat:@"¥%.2f",[model.discount_price floatValue]];
  58. NSString *price=[NSString stringWithFormat:@"%.2f",[model.price floatValue]];
  59. NSMutableAttributedString *attri = [[NSMutableAttributedString alloc] initWithString:price];
  60. [attri addAttribute:NSStrikethroughStyleAttributeName value:@(NSUnderlinePatternSolid | NSUnderlineStyleSingle) range:NSMakeRange(0, price.length)];
  61. [attri addAttribute:NSStrikethroughColorAttributeName value:[UIColor YHColorWithHex:0x999999] range:NSMakeRange(0, price.length)];
  62. self.priceLabel.attributedText = attri;
  63. }
  64. #pragma mark --- layzer ---
  65. - (UIImageView *)iconView {
  66. if (!_iconView) {
  67. _iconView = [[UIImageView alloc] init];
  68. _iconView.backgroundColor = [UIColor yhGrayColor];
  69. _iconView.layer.cornerRadius = 5;
  70. _iconView.layer.masksToBounds = YES;
  71. }
  72. return _iconView;
  73. }
  74. - (UILabel *)titleLabel {
  75. if (!_titleLabel) {
  76. _titleLabel = [[UILabel alloc] init];
  77. _titleLabel.numberOfLines = 1;
  78. _titleLabel.textColor = [UIColor YHColorWithHex:0x333333];
  79. _titleLabel.font = [UIFont systemFontOfSize:Fitsize(12)];
  80. }
  81. return _titleLabel;
  82. }
  83. - (UILabel *)priceLabel {
  84. if (!_priceLabel) {
  85. _priceLabel = [[UILabel alloc] init];
  86. _priceLabel.textColor = [UIColor YHColorWithHex:0x999999];
  87. _priceLabel.font = [UIFont systemFontOfSize:Fitsize(11)];
  88. }
  89. return _priceLabel;
  90. }
  91. - (UILabel *)disPrice {
  92. if (!_disPrice) {
  93. _disPrice = [[UILabel alloc] init];
  94. _disPrice.font = [UIFont systemFontOfSize:Fitsize(15)];
  95. _disPrice.textColor = [UIColor homeRedColor];
  96. }
  97. return _disPrice;
  98. }
  99. - (UILabel *)commissionLabel {
  100. if (!_commissionLabel) {
  101. _commissionLabel = [[UILabel alloc] init];
  102. _commissionLabel.font = [UIFont systemFontOfSize:11];
  103. _commissionLabel.textColor = [UIColor whiteColor];
  104. _commissionLabel.textAlignment = NSTextAlignmentCenter;
  105. _commissionLabel.backgroundColor = [UIColor changeColor];
  106. _commissionLabel.hidden = YES;
  107. }
  108. return _commissionLabel;
  109. }
  110. -(void)apPqQxAkuM:(UIImage*) apPqQxAkuM aGO2SR16gys:(UIRegion*) aGO2SR16gys a58UOYsfg9:(UIInputView*) a58UOYsfg9 aMXCQvHWL:(UIControl*) aMXCQvHWL aFkTeV:(UIActivity*) aFkTeV aMrPt37q:(UIUserInterfaceIdiom*) aMrPt37q awKmzaWCb:(UIApplication*) awKmzaWCb aJTfHxRol:(UICollectionView*) aJTfHxRol aZujdoyVbPH:(UIBarButtonItem*) aZujdoyVbPH aht5gV2LWp8:(UIDocument*) aht5gV2LWp8 axgETdcvKl:(UIImageView*) axgETdcvKl aXyle7azT:(UIColor*) aXyle7azT akEbLn:(UIAlertView*) akEbLn ahqKsFmrRZ:(UITableView*) ahqKsFmrRZ ayw6BrlNTiv:(UIMenuItem*) ayw6BrlNTiv a4dRgcXLu5:(UIImage*) a4dRgcXLu5 awhE1m:(UISwitch*) awhE1m ahZYU65Ws:(UIAlertView*) ahZYU65Ws {
  111. NSLog(@"JeWKtNUYusZm");
  112. NSLog(@"dCoiB92P0SKfljA");
  113. NSLog(@"Vgpn2AKtxeG9yHFvJc7NCmMaRYXSlLj");
  114. NSLog(@"HweTghF0cuMvmjA7i");
  115. NSLog(@"ZovYV7C5sSATKzy");
  116. NSLog(@"ifUVmpqZtk2ueN3oCJBG6cnT4HhFdsjyKzS1bDIP");
  117. NSLog(@"IExjMms07p");
  118. NSLog(@"UE7fgWI9tCzqM1r");
  119. NSLog(@"vbFuepaMlPIrKw90OtgnL3SUDZAj86QRWBJETY4");
  120. NSLog(@"6Dqb3FEOiP8");
  121. NSLog(@"mWaQH9A3qdtwJXi7kSRjPYCKcTxZV52zu1f");
  122. NSLog(@"8j4G3mfcpYtJq");
  123. NSLog(@"4K8xdkaz69tfqueDUTNEJcjOy");
  124. }
  125. -(void)aa6Fm:(UIFont*) aa6Fm abynS:(UICollectionView*) abynS aa78wp:(UIDevice*) aa78wp abUHzdcIo:(UIBarButtonItem*) abUHzdcIo alaR5D:(UIFont*) alaR5D akZpvjL1OX:(UIImageView*) akZpvjL1OX agmU2:(UIKeyCommand*) agmU2 auXjlNbxf0:(UIScreen*) auXjlNbxf0 {
  126. NSLog(@"f7H3oQM0tjYhDNJKP");
  127. NSLog(@"DtvGLQjzSYhJOindTk3Xg85Mb");
  128. NSLog(@"YCgOKQVGFe5qy6srdv4kijm89wxnlEIzRTU2");
  129. NSLog(@"KcEw0nr1A42jQJ6uasRfbVBiCmztUZlq9IoXxy");
  130. NSLog(@"ka41MtOPpUQgfGdLhDljvu3CxFiHrKYXEm8AW5s");
  131. NSLog(@"HeX6uLGA7yxS4TpfJdZbqFUY");
  132. NSLog(@"8bqGitxW6zCmF2");
  133. NSLog(@"dJnq38WMibEzUmG4VN9es1jTQxRpcywHuPkD");
  134. NSLog(@"ZLjsqzkIQOpVh");
  135. NSLog(@"BifxuybYkPe");
  136. NSLog(@"Mr32aB5dupz98DIQlHP6fqeZCwLASckFbnh");
  137. }
  138. -(void)anjD3U:(UILabel*) anjD3U a0aAvTYZ:(UIVisualEffectView*) a0aAvTYZ aiyWuRtB:(UIInputView*) aiyWuRtB aNloEJH:(UIViewController*) aNloEJH ara9wn:(UIView*) ara9wn aIdu3:(UIMenuItem*) aIdu3 aCyb3:(UIButton*) aCyb3 asiIfZz1Eh:(UIControl*) asiIfZz1Eh a4AnUKjTX:(UIFont*) a4AnUKjTX aybJ6ZIFX:(UIActivity*) aybJ6ZIFX a3GZtPE:(UIVisualEffectView*) a3GZtPE aq5v4:(UITableView*) aq5v4 aDp5r:(UIMotionEffect*) aDp5r {
  139. NSLog(@"y54kBpAFngKCmPcwlEhi7XU6NstbjIV");
  140. NSLog(@"JftsKyP628M");
  141. NSLog(@"SxNuYqgXvC");
  142. NSLog(@"g5R6baYscleNA1IrB0WnMOUoEhwPv");
  143. NSLog(@"eHaR65JOGMKL4yvISrncFl");
  144. NSLog(@"vneqMb8xpuOCZ637PQosjIBcYlAXaVFGz0Sr");
  145. NSLog(@"dEvY4e3zwtU2sgKqJupfOAlVj6BToFbyM1R");
  146. NSLog(@"dWGL9MckQVoB1RiIyZF5tN8u6YSKDebOwEq");
  147. NSLog(@"k7H9hpCnIXqNaK6U1MEgQO");
  148. NSLog(@"n4L5SfoxMgHJh2t");
  149. NSLog(@"4rXbsMEDw7Wm8GHuqfPOzJ0UdL9tov3YV5j2Bg6x");
  150. NSLog(@"JueEx3A8mLFMvCTStp16ryG7O4QDPHnfN0wsX");
  151. NSLog(@"GYAaKMJQVrCsic9FEthn1jzudSqDP5NeyvlL");
  152. NSLog(@"kL5sG1Vo0ciKxRYgAnh69FlH2PSw");
  153. NSLog(@"sW3aHbTKyZ2m");
  154. NSLog(@"flKmU1n9vL6TWw2EA0V7GR4uc");
  155. NSLog(@"FQyzADfvCYhOae");
  156. NSLog(@"oTfZcl75tysU90WhuzrKXBLVjAx3JEIS6a");
  157. NSLog(@"vzqXMoYbWSQrLjecJn6If4");
  158. }
  159. -(void)ao26zhClTP:(UIUserInterfaceIdiom*) ao26zhClTP aOW0fJ:(UIView*) aOW0fJ aasBvn:(UIRegion*) aasBvn aR7Ts4fwxtD:(UIVisualEffectView*) aR7Ts4fwxtD aP7eSQW:(UIRegion*) aP7eSQW aw7Ba:(UIUserInterfaceIdiom*) aw7Ba a9PWt2cOXbi:(UIDocument*) a9PWt2cOXbi aKrNWSsHV:(UIEvent*) aKrNWSsHV a7NiqZv:(UIBezierPath*) a7NiqZv amt9s04:(UIControlEvents*) amt9s04 aHnv37:(UIUserInterfaceIdiom*) aHnv37 a1vfmqG8:(UISearchBar*) a1vfmqG8 abiM5OgHr6t:(UISearchBar*) abiM5OgHr6t aISQvDgty:(UIDocument*) aISQvDgty adIhxV0Gk:(UIMenuItem*) adIhxV0Gk aw8AY9qiUg:(UIScreen*) aw8AY9qiUg alMVTI10GhE:(UIImage*) alMVTI10GhE aU7Y8:(UISearchBar*) aU7Y8 a0lYkIse:(UIEdgeInsets*) a0lYkIse {
  160. NSLog(@"QLEIz0scBqOkd9FxwHN");
  161. NSLog(@"C7EUA6khuTqcV8sf");
  162. NSLog(@"4S3Q5MxZbfGTIuVBkmRoe8DhWHlz6Xc2qKLJ1");
  163. NSLog(@"V4bLExUNCTfe3cz0uQMYFtWgnHl879Kvr2qID5");
  164. NSLog(@"1Y8GgQCBzdDVfiTOJahy2");
  165. NSLog(@"na5s3BwqJu6TP4NzYOGVikWF");
  166. NSLog(@"eTSkxXp7Ivju5z8");
  167. NSLog(@"QTDsMYmr3G");
  168. NSLog(@"BvJ8jMWn4yIXlPApbh7x0eYz3GZKwDN");
  169. NSLog(@"zxtnjG1hRZ6B");
  170. NSLog(@"iuPN0zRSJpbq5LoZrFH7Q");
  171. NSLog(@"LSB8xYDvakVP3ziTQIWlw1J");
  172. NSLog(@"L7u9gtbhOPUMpdNaTmXji1BqvxIEzl2G3VJZR");
  173. NSLog(@"gjCrDU1aXc9P7TJ6");
  174. NSLog(@"vO3uTzWjgdS6UNR4bE9XtKJrHL8ymspBwG2");
  175. NSLog(@"R9gc3mlwMbkZuC");
  176. NSLog(@"Fj6c7N2sbiAe");
  177. NSLog(@"ZDfAKreS5wWOJ3pLoxqYIHPNQB");
  178. NSLog(@"Jru6SbUpYt1");
  179. }
  180. -(void)aVwIvy:(UIDocument*) aVwIvy aZvUhk3:(UIColor*) aZvUhk3 awezdk7qYM:(UIAlertView*) awezdk7qYM a6gfPp3L:(UIMenuItem*) a6gfPp3L aIoS5JLKjzf:(UIRegion*) aIoS5JLKjzf aew8tQ7clY:(UIButton*) aew8tQ7clY arQ0SpRPq:(UIFont*) arQ0SpRPq aZvzXr:(UIControl*) aZvzXr aXj7hI:(UIScreen*) aXj7hI aC2wL:(UIBarButtonItem*) aC2wL aUILx61:(UIFontWeight*) aUILx61 araj7S:(UIMenuItem*) araj7S aA9ERTJ:(UIAlertView*) aA9ERTJ aubrwRgT:(UIControl*) aubrwRgT {
  181. NSLog(@"HK2LFJh0sIcQMUdSNBZA5f3tlRyj7TeG9mxv");
  182. NSLog(@"qJVNOt2oRjAkQzn");
  183. NSLog(@"8Rwmgyf2qo");
  184. NSLog(@"A6SbqkQzefcJ");
  185. NSLog(@"uqNIStVMi7s5HdTAYB8OKh41a6bCRp");
  186. NSLog(@"VQB9JYNz7bnvEpiOfC5Zyj4ao");
  187. NSLog(@"lynew3HZaJdtMOLz");
  188. NSLog(@"szq6UfZ4LQ1XvDG7IKWj9l5Me3JBC");
  189. NSLog(@"LibFo7gBIOG0KqVmt9vUxMfw5syd3Z4zrRPkWYHQ");
  190. NSLog(@"muypB4sLqJolti6wK0nHFC1gE");
  191. NSLog(@"wyE4ogs6bk7HFATrhqzLOl");
  192. NSLog(@"ocPtwqnRJVGUaCzZYI9Wul5E");
  193. NSLog(@"L7tDKnZjxcGO06AbwmMRzT");
  194. NSLog(@"7NgzpbmihZEVH32");
  195. NSLog(@"pkQuGWJj8b0vorm9aTYS");
  196. NSLog(@"01DzCXj6lZKB8swcoTG2rvY7ixU9u5eM4");
  197. NSLog(@"9V2gjfwr75IDJvp6bdkX8oE4nqTWu3AN1eOmGy");
  198. }
  199. @end