This commit is contained in:
2025-11-15 00:33:29 +08:00
parent 1f9dbba39d
commit f9a8955384
5 changed files with 68 additions and 14 deletions

View File

@@ -22,10 +22,9 @@
self.contentView.backgroundColor = [UIColor clearColor];
[self.contentView addSubview:self.cardView];
// self.cardView.backgroundColor = [UIColor redColor];
[self.cardView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(self.contentView);
make.top.equalTo(self.contentView).inset(6);
make.top.equalTo(self.contentView).inset(0);
make.bottom.equalTo(self.contentView);
}];
@@ -37,11 +36,11 @@
[self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(self.cardView).offset(16);
make.top.equalTo(self.cardView).offset(11);
make.bottom.equalTo(self.cardView.mas_centerY).offset(-5);
}];
[self.priceLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(self.titleLabel);
make.top.equalTo(self.titleLabel.mas_bottom).offset(6);
make.top.equalTo(self.cardView.mas_centerY).offset(3);
}];
[self.strikeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(self.priceLabel.mas_right).offset(10);