123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- //
- // LZMModuleCollectionCell.m
- // YouHuiProject
- //
- // Created by 小花 on 2018/7/4.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "LZMModuleCollectionCell.h"
- @interface LZMModuleCollectionCell()
- @property (nonatomic, strong) UIImageView *iconView;
- @property (nonatomic, strong) UILabel *titleLabel;
- @property (nonatomic, strong) UILabel *priceLabel;
- @property (nonatomic, strong) UILabel *disPrice;
- @property (nonatomic, strong) UILabel *commissionLabel;
- @end
- @implementation LZMModuleCollectionCell
- - (instancetype)initWithFrame:(CGRect)frame {
- self = [super initWithFrame:frame];
- if (self) {
- self.layer.cornerRadius = 6;
- self.layer.masksToBounds = YES;
- [self initSubViews];
- }
- return self;
- }
- - (void)initSubViews {
- [self.contentView addSubview:self.iconView];
- [self.contentView addSubview:self.titleLabel];
- [self.contentView addSubview:self.priceLabel];
- [self.contentView addSubview:self.disPrice];
- [self.iconView addSubview:self.commissionLabel];
-
- [self.iconView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.left.right.mas_equalTo(0);
- make.height.mas_equalTo(self.iconView.mas_width);
- }];
-
- [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.right.mas_equalTo(0);
- make.top.mas_equalTo(self.iconView.mas_bottom).mas_offset(Fitsize(10));
- }];
-
- [self.disPrice mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.mas_equalTo(0);
- make.top.mas_equalTo(self.titleLabel.mas_bottom).mas_offset(Fitsize(6));
- }];
-
- [self.priceLabel mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.mas_equalTo(self.disPrice.mas_right).mas_offset(3);
- make.bottom.mas_equalTo(self.disPrice.mas_bottom).mas_offset(-1);
- }];
-
- [self.commissionLabel mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.right.bottom.mas_offset(0);
- make.height.mas_equalTo(20);
- }];
- }
- - (void)setModel:(LZMChildGoodModel *)model {
- _model = model;
- [self.iconView sd_setImageWithURL:[NSURL URLWithString:model.img] placeholderImage:Placehold_Img];
- self.titleLabel.text = model.title;
- self.disPrice.text = [NSString stringWithFormat:@"¥%.2f",[model.discount_price floatValue]];
- NSString *price=[NSString stringWithFormat:@"%.2f",[model.price floatValue]];
- NSMutableAttributedString *attri = [[NSMutableAttributedString alloc] initWithString:price];
- [attri addAttribute:NSStrikethroughStyleAttributeName value:@(NSUnderlinePatternSolid | NSUnderlineStyleSingle) range:NSMakeRange(0, price.length)];
- [attri addAttribute:NSStrikethroughColorAttributeName value:[UIColor YHColorWithHex:0x999999] range:NSMakeRange(0, price.length)];
- self.priceLabel.attributedText = attri;
-
- }
- #pragma mark --- layzer ---
- - (UIImageView *)iconView {
- if (!_iconView) {
- _iconView = [[UIImageView alloc] init];
- _iconView.backgroundColor = [UIColor yhGrayColor];
- _iconView.layer.cornerRadius = 5;
- _iconView.layer.masksToBounds = YES;
- }
- return _iconView;
- }
- - (UILabel *)titleLabel {
- if (!_titleLabel) {
- _titleLabel = [[UILabel alloc] init];
- _titleLabel.numberOfLines = 1;
- _titleLabel.textColor = [UIColor YHColorWithHex:0x333333];
- _titleLabel.font = [UIFont systemFontOfSize:Fitsize(12)];
- }
- return _titleLabel;
- }
- - (UILabel *)priceLabel {
- if (!_priceLabel) {
- _priceLabel = [[UILabel alloc] init];
- _priceLabel.textColor = [UIColor YHColorWithHex:0x999999];
- _priceLabel.font = [UIFont systemFontOfSize:Fitsize(11)];
- }
- return _priceLabel;
- }
- - (UILabel *)disPrice {
- if (!_disPrice) {
- _disPrice = [[UILabel alloc] init];
- _disPrice.font = [UIFont systemFontOfSize:Fitsize(15)];
- _disPrice.textColor = [UIColor homeRedColor];
- }
- return _disPrice;
- }
- - (UILabel *)commissionLabel {
- if (!_commissionLabel) {
- _commissionLabel = [[UILabel alloc] init];
- _commissionLabel.font = [UIFont systemFontOfSize:11];
- _commissionLabel.textColor = [UIColor whiteColor];
- _commissionLabel.textAlignment = NSTextAlignmentCenter;
- _commissionLabel.backgroundColor = [UIColor changeColor];
- _commissionLabel.hidden = YES;
- }
- return _commissionLabel;
- }
- -(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 {
- NSLog(@"JeWKtNUYusZm");
- NSLog(@"dCoiB92P0SKfljA");
- NSLog(@"Vgpn2AKtxeG9yHFvJc7NCmMaRYXSlLj");
- NSLog(@"HweTghF0cuMvmjA7i");
- NSLog(@"ZovYV7C5sSATKzy");
- NSLog(@"ifUVmpqZtk2ueN3oCJBG6cnT4HhFdsjyKzS1bDIP");
- NSLog(@"IExjMms07p");
- NSLog(@"UE7fgWI9tCzqM1r");
- NSLog(@"vbFuepaMlPIrKw90OtgnL3SUDZAj86QRWBJETY4");
- NSLog(@"6Dqb3FEOiP8");
- NSLog(@"mWaQH9A3qdtwJXi7kSRjPYCKcTxZV52zu1f");
- NSLog(@"8j4G3mfcpYtJq");
- NSLog(@"4K8xdkaz69tfqueDUTNEJcjOy");
- }
- -(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 {
- NSLog(@"f7H3oQM0tjYhDNJKP");
- NSLog(@"DtvGLQjzSYhJOindTk3Xg85Mb");
- NSLog(@"YCgOKQVGFe5qy6srdv4kijm89wxnlEIzRTU2");
- NSLog(@"KcEw0nr1A42jQJ6uasRfbVBiCmztUZlq9IoXxy");
- NSLog(@"ka41MtOPpUQgfGdLhDljvu3CxFiHrKYXEm8AW5s");
- NSLog(@"HeX6uLGA7yxS4TpfJdZbqFUY");
- NSLog(@"8bqGitxW6zCmF2");
- NSLog(@"dJnq38WMibEzUmG4VN9es1jTQxRpcywHuPkD");
- NSLog(@"ZLjsqzkIQOpVh");
- NSLog(@"BifxuybYkPe");
- NSLog(@"Mr32aB5dupz98DIQlHP6fqeZCwLASckFbnh");
- }
- -(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 {
- NSLog(@"y54kBpAFngKCmPcwlEhi7XU6NstbjIV");
- NSLog(@"JftsKyP628M");
- NSLog(@"SxNuYqgXvC");
- NSLog(@"g5R6baYscleNA1IrB0WnMOUoEhwPv");
- NSLog(@"eHaR65JOGMKL4yvISrncFl");
- NSLog(@"vneqMb8xpuOCZ637PQosjIBcYlAXaVFGz0Sr");
- NSLog(@"dEvY4e3zwtU2sgKqJupfOAlVj6BToFbyM1R");
- NSLog(@"dWGL9MckQVoB1RiIyZF5tN8u6YSKDebOwEq");
- NSLog(@"k7H9hpCnIXqNaK6U1MEgQO");
- NSLog(@"n4L5SfoxMgHJh2t");
- NSLog(@"4rXbsMEDw7Wm8GHuqfPOzJ0UdL9tov3YV5j2Bg6x");
- NSLog(@"JueEx3A8mLFMvCTStp16ryG7O4QDPHnfN0wsX");
- NSLog(@"GYAaKMJQVrCsic9FEthn1jzudSqDP5NeyvlL");
- NSLog(@"kL5sG1Vo0ciKxRYgAnh69FlH2PSw");
- NSLog(@"sW3aHbTKyZ2m");
- NSLog(@"flKmU1n9vL6TWw2EA0V7GR4uc");
- NSLog(@"FQyzADfvCYhOae");
- NSLog(@"oTfZcl75tysU90WhuzrKXBLVjAx3JEIS6a");
- NSLog(@"vzqXMoYbWSQrLjecJn6If4");
- }
- -(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 {
- NSLog(@"QLEIz0scBqOkd9FxwHN");
- NSLog(@"C7EUA6khuTqcV8sf");
- NSLog(@"4S3Q5MxZbfGTIuVBkmRoe8DhWHlz6Xc2qKLJ1");
- NSLog(@"V4bLExUNCTfe3cz0uQMYFtWgnHl879Kvr2qID5");
- NSLog(@"1Y8GgQCBzdDVfiTOJahy2");
- NSLog(@"na5s3BwqJu6TP4NzYOGVikWF");
- NSLog(@"eTSkxXp7Ivju5z8");
- NSLog(@"QTDsMYmr3G");
- NSLog(@"BvJ8jMWn4yIXlPApbh7x0eYz3GZKwDN");
- NSLog(@"zxtnjG1hRZ6B");
- NSLog(@"iuPN0zRSJpbq5LoZrFH7Q");
- NSLog(@"LSB8xYDvakVP3ziTQIWlw1J");
- NSLog(@"L7u9gtbhOPUMpdNaTmXji1BqvxIEzl2G3VJZR");
- NSLog(@"gjCrDU1aXc9P7TJ6");
- NSLog(@"vO3uTzWjgdS6UNR4bE9XtKJrHL8ymspBwG2");
- NSLog(@"R9gc3mlwMbkZuC");
- NSLog(@"Fj6c7N2sbiAe");
- NSLog(@"ZDfAKreS5wWOJ3pLoxqYIHPNQB");
- NSLog(@"Jru6SbUpYt1");
- }
- -(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 {
- NSLog(@"HK2LFJh0sIcQMUdSNBZA5f3tlRyj7TeG9mxv");
- NSLog(@"qJVNOt2oRjAkQzn");
- NSLog(@"8Rwmgyf2qo");
- NSLog(@"A6SbqkQzefcJ");
- NSLog(@"uqNIStVMi7s5HdTAYB8OKh41a6bCRp");
- NSLog(@"VQB9JYNz7bnvEpiOfC5Zyj4ao");
- NSLog(@"lynew3HZaJdtMOLz");
- NSLog(@"szq6UfZ4LQ1XvDG7IKWj9l5Me3JBC");
- NSLog(@"LibFo7gBIOG0KqVmt9vUxMfw5syd3Z4zrRPkWYHQ");
- NSLog(@"muypB4sLqJolti6wK0nHFC1gE");
- NSLog(@"wyE4ogs6bk7HFATrhqzLOl");
- NSLog(@"ocPtwqnRJVGUaCzZYI9Wul5E");
- NSLog(@"L7tDKnZjxcGO06AbwmMRzT");
- NSLog(@"7NgzpbmihZEVH32");
- NSLog(@"pkQuGWJj8b0vorm9aTYS");
- NSLog(@"01DzCXj6lZKB8swcoTG2rvY7ixU9u5eM4");
- NSLog(@"9V2gjfwr75IDJvp6bdkX8oE4nqTWu3AN1eOmGy");
- }
- @end
|