| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | ////  ASHomeNewInSubCollectCell.m//  Asteria////  Created by iOS on 2023/6/9.//#import "ASHomeNewInSubCollectCell.h"@implementation ASHomeNewInSubCollectCell- (void)setModel:(ASProductBaseModel *)model {    _model = model;    self.contView.model = model;}- (void)layoutSubviews {    [self loadSubV];}- (void)loadSubV {    self.backgroundColor = UIColor.clearColor;    self.contentView.backgroundColor = UIColor.clearColor;    [self addSubview:self.contView];    [self.contView mas_makeConstraints:^(MASConstraintMaker *make) {        make.top.left.right.equalTo(self);        make.width.equalTo(self.contView.mas_height).offset(-productHWithOutImg-10);        make.bottom.equalTo(@0);    }];    }- (ASProductItemView *)contView {    if (!_contView) {        ASHomeNewInProductItemView *v = [[ASHomeNewInProductItemView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth-20, KScreenWidth-20+productHWithOutImg + 10)];        _contView = v;    }    return _contView;}@end
 |