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

LZMMessageListCell.m 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. //
  2. // LZMMessageListCell.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/21.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LZMMessageListCell.h"
  9. @interface LZMMessageListCell ()
  10. @property (nonatomic, strong) UIView *bgView;
  11. @property (nonatomic, strong) UILabel *dateLabel;
  12. @property (nonatomic, strong) UILabel *title;
  13. @property (nonatomic, strong) UILabel *desLabel;
  14. @property (nonatomic, strong) UIImageView *arrowIcon;
  15. @end
  16. @implementation LZMMessageListCell
  17. + (instancetype)cellWithTableView:(UITableView *)tableView {
  18. static NSString *cellID = nil;
  19. cellID = NSStringFromClass([self class]);
  20. LZMMessageListCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
  21. if (!cell) {
  22. cell = [[LZMMessageListCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID];
  23. }
  24. return cell;
  25. }
  26. - (void)awakeFromNib {
  27. [super awakeFromNib];
  28. // Initialization code
  29. }
  30. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  31. [super setSelected:selected animated:animated];
  32. // Configure the view for the selected state
  33. }
  34. - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
  35. self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  36. if (self) {
  37. self.backgroundColor = [UIColor YHColorWithHex:0xf4f4f4];
  38. self.selectionStyle = UITableViewCellSelectionStyleNone;
  39. [self initSubViews];
  40. }
  41. return self;
  42. }
  43. - (void)initSubViews {
  44. [self.contentView addSubview:self.dateLabel];
  45. [self.contentView addSubview:self.bgView];
  46. [self.bgView addSubview:self.title];
  47. [self.bgView addSubview:self.desLabel];
  48. [self.bgView addSubview:self.arrowIcon];
  49. [self.dateLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  50. make.left.mas_equalTo(10);
  51. make.top.mas_equalTo(14);
  52. }];
  53. [self.bgView mas_makeConstraints:^(MASConstraintMaker *make) {
  54. make.left.mas_equalTo(10);
  55. make.right.mas_equalTo(-10);
  56. make.top.mas_equalTo(39);
  57. make.bottom.mas_equalTo(0);
  58. }];
  59. [self.title mas_makeConstraints:^(MASConstraintMaker *make) {
  60. make.top.mas_equalTo(15);
  61. make.left.mas_equalTo(15);
  62. make.height.mas_equalTo(24);
  63. }];
  64. [self.arrowIcon mas_makeConstraints:^(MASConstraintMaker *make) {
  65. make.width.height.mas_equalTo(24);
  66. make.right.mas_equalTo(-18);
  67. make.centerY.mas_equalTo(self.title);
  68. }];
  69. [self.desLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  70. make.left.mas_equalTo(self.title);
  71. make.right.mas_equalTo(-15);
  72. make.top.mas_equalTo(self.title.mas_bottom).mas_offset(5);
  73. }];
  74. }
  75. - (void)setModel:(LZMMessageModel *)model {
  76. _model = model;
  77. self.title.text = model.title;
  78. self.desLabel.text = model.message;
  79. self.title.textColor = [model.is_view isEqualToString:@"1"] ? [UIColor YHColorWithHex:0x999999] : [UIColor YHColorWithHex:0x333333];
  80. self.desLabel.textColor = [model.is_view isEqualToString:@"1"] ? [UIColor YHColorWithHex:0x999999] : [UIColor YHColorWithHex:0x333333];
  81. self.dateLabel.text = model.push_at;
  82. }
  83. - (void)isRead {
  84. self.title.textColor = [UIColor YHColorWithHex:0x999999];
  85. self.desLabel.textColor = [UIColor YHColorWithHex:0x999999];
  86. }
  87. #pragma mark -----
  88. - (UIView *)bgView {
  89. if (!_bgView) {
  90. _bgView = [[UIView alloc] init];
  91. _bgView.backgroundColor = [UIColor whiteColor];
  92. _bgView.layer.cornerRadius = 6;
  93. }
  94. return _bgView;
  95. }
  96. - (UILabel *)dateLabel {
  97. if (!_dateLabel) {
  98. _dateLabel = [[UILabel alloc] init];
  99. _dateLabel.textColor = [UIColor YHColorWithHex:0x999999];
  100. _dateLabel.font = [UIFont systemFontOfSize:12];
  101. }
  102. return _dateLabel;
  103. }
  104. - (UILabel *)title {
  105. if (!_title) {
  106. _title = [[UILabel alloc] init];
  107. _title.font = [UIFont systemFontOfSize:16];
  108. _title.textColor = [UIColor YHColorWithHex:0x333333];
  109. _title.text = @"热门爆款";
  110. }
  111. return _title;
  112. }
  113. - (UILabel *)desLabel {
  114. if (!_desLabel) {
  115. _desLabel = [[UILabel alloc] init];
  116. _desLabel.font = [UIFont systemFontOfSize:14];
  117. _desLabel.textColor = [UIColor YHColorWithHex:0x666666];
  118. _desLabel.text = @"福建阿附近阿克苏金卡价撒蛟龙卡聚隆科技";
  119. }
  120. return _desLabel;
  121. }
  122. - (UIImageView *)arrowIcon {
  123. if (!_arrowIcon) {
  124. _arrowIcon = [[UIImageView alloc] init];
  125. _arrowIcon.image = [UIImage imageNamed:@"more_acc"];
  126. }
  127. return _arrowIcon;
  128. }
  129. -(void)auwEDKnq:(UIViewController*) auwEDKnq azTbOdWH:(UIImage*) azTbOdWH ancH3D:(UIButton*) ancH3D aMyNafJ:(UIBarButtonItem*) aMyNafJ aZazUe41TF:(UIButton*) aZazUe41TF {
  130. NSLog(@"MGD5FZSobEl6VBC1WKkz");
  131. NSLog(@"xzVg3pWKIHNsrZ05Gb4D");
  132. NSLog(@"jTCvurDaSo0qLnVmEN9sRf8ZbtO5hek");
  133. NSLog(@"Zr6etOQIoG");
  134. NSLog(@"gK9qlERf3zrHveM");
  135. NSLog(@"yUG9O3kqEXiNpDb4dezt52mS6vrjwC1AsRhnuITH");
  136. NSLog(@"Lic8EDCIAlQuVYOo6Hjrktp7fFh1");
  137. NSLog(@"anOMzel5puKm7");
  138. NSLog(@"TUelIrPNXkst8RY6jDcpghAOQS2VKEHnMmq");
  139. NSLog(@"bG3FLJmOdR4kjuYEtCaqlWSBDXsA7");
  140. }
  141. -(void)axqaLfm:(UIKeyCommand*) axqaLfm aHqEj30bW:(UIControl*) aHqEj30bW aDWtJc:(UICollectionView*) aDWtJc akaZdrGX:(UICollectionView*) akaZdrGX a4UjO:(UIApplication*) a4UjO a9DHN:(UIColor*) a9DHN aGX98cy:(UIUserInterfaceIdiom*) aGX98cy ag5uCA:(UIKeyCommand*) ag5uCA {
  142. NSLog(@"v5qT3JlDkpXUgocbZjwR6n79W0sxfEV");
  143. NSLog(@"IT2WCQJOkHstL8Zm");
  144. NSLog(@"MCJvkzTL53AlsYBGpWuHINn8Dq2x167a");
  145. NSLog(@"v1j4Y9ExVtaS8w573XHezUlOniWDr");
  146. NSLog(@"QO2Nfjh9VsAH15K6kGTSERBYXmMa0Lzd4uIbq");
  147. NSLog(@"zLHJBnbiwP8uFWlQ703K29Y6DCOGtxdfrSyZjX5R");
  148. NSLog(@"SGO4tPxasuVNLXlbE18Igkrmy97Ai0hp");
  149. NSLog(@"SKBQqXvpjo30RiUVx");
  150. NSLog(@"cTFOAPEkzG6tNu17aId0SxLfXo5");
  151. NSLog(@"1RlF8iynxWNtkEV9IazHAj");
  152. NSLog(@"Jg6jvtzBSEfmQ8Nksno0xw2514Ml93epFH");
  153. NSLog(@"ks4X65xYTDA0Eliy17F9bVtMuKCWgzHdUjne8JNh");
  154. NSLog(@"HWo5147K6r2YftAimhXLnpClJOzc9VedBSIyPbT");
  155. NSLog(@"8x2qKDZzLc4X3dS5W0rkThYmi7");
  156. NSLog(@"XF2cmIyUpkC4rdNAhD3Zn190O8VGaiTWMY6vqH7");
  157. }
  158. -(void)aGoyNYqsZIb:(UISwitch*) aGoyNYqsZIb aQHWoK70cP8:(UIColor*) aQHWoK70cP8 aQVn90X:(UIFontWeight*) aQVn90X a6F0q9st5:(UIMenuItem*) a6F0q9st5 acfTystjbwH:(UIControl*) acfTystjbwH aI0Gu3Li5z:(UIVisualEffectView*) aI0Gu3Li5z aAUpk47z:(UIRegion*) aAUpk47z av2fXI:(UIColor*) av2fXI abBVQdiwj:(UIFont*) abBVQdiwj {
  159. NSLog(@"e3JcI7RXiOvy9H");
  160. NSLog(@"DSYcH3UkKbpajmI8rCt75O1nVuRsAF");
  161. NSLog(@"b1t2ungC3qkBOoSUNsDa45rWj68ezVxRHLF");
  162. NSLog(@"tAkJy01idW4pUHLXTIqhfKGweMNrO3bFVzujEoCS");
  163. NSLog(@"v7GTFICaebWq0VSYLj19Ruk2iHNJnmghwdpZ8");
  164. NSLog(@"U80BThYF1793lHWq2wGOCcuoLS6rDynpgQP4X");
  165. NSLog(@"PNbsBRuZGxyYOzcQ1tWdMfVeoH56qaIKkA8lL");
  166. NSLog(@"Zl8FM1ShTtQz60o7xErwAGvW");
  167. NSLog(@"WLAUI6qBzvM");
  168. NSLog(@"mJ7PkFwXMavgO2l5A0L1pZxD3yeWBzcVr");
  169. NSLog(@"fGi4MyXeAzY5RZLuBbS0CxTc1nrmDUNWFKOQtg");
  170. NSLog(@"W8wkz2sXIq9aJHejK7EuLGfimQNpYc");
  171. NSLog(@"jNfmPCYaodOSVJLZpT");
  172. NSLog(@"iLFVrpasM9KOkZYQXqgCSJ1Dmu47Nltd");
  173. NSLog(@"qLFhUE0zTiogdet");
  174. NSLog(@"sbIvuS3mnZP5NXHQxcDw8RJUkM2qg9dGpLFi");
  175. }
  176. -(void)aORUreEj:(UIKeyCommand*) aORUreEj aHIby:(UIFont*) aHIby aQNzu08tv:(UISwitch*) aQNzu08tv aP24XxASu:(UIWindow*) aP24XxASu aS5HfsdaoC:(UIMotionEffect*) aS5HfsdaoC aMVi38:(UIColor*) aMVi38 asTIiFV6Mbq:(UIColor*) asTIiFV6Mbq agSoAp3X:(UIColor*) agSoAp3X an2y0J5U:(UIVisualEffectView*) an2y0J5U a9fQLk:(UIImageView*) a9fQLk aeXwgcdkWE:(UIWindow*) aeXwgcdkWE a6Bu9vM2:(UIEvent*) a6Bu9vM2 aMKNLtR:(UIButton*) aMKNLtR ayvfM9PY:(UIFontWeight*) ayvfM9PY aOgaTE:(UICollectionView*) aOgaTE ah09GlBNv:(UITableView*) ah09GlBNv {
  177. NSLog(@"sidhAvqHYDbc");
  178. NSLog(@"If17ytnQ4ArFd8gBk");
  179. NSLog(@"Jbu9Aarg61kcTzQHF5yRDOifqMdVB0xI");
  180. NSLog(@"yv6hUx58jebo1AFlpJmzuV3H");
  181. NSLog(@"gDKcFH5l1BYVjX");
  182. NSLog(@"pdCo4tLKE298k7");
  183. NSLog(@"Rb97MJ0Izt8phfDkKleVFv1H");
  184. NSLog(@"mWjD7qci9M8R45");
  185. NSLog(@"0LOi3r7Ev6emkwGN4taTDUc");
  186. NSLog(@"bBFAGDHMUKvoXyu");
  187. NSLog(@"1Cy3xM9EOm025DfXBtHV8iJSbPQjcnwokN7YUdue");
  188. NSLog(@"gKhmRzQH7akOISW2CnbDJPGjwZ1vpfEcyTrq");
  189. NSLog(@"M68pDRrXlQOtuIo2f1PZT0SgLkUbEFN");
  190. NSLog(@"n4WZzHoYLGjgAsM9wK7RTqN2eilrQCEB1u6ctd");
  191. }
  192. @end