|
@@ -40,6 +40,18 @@
|
|
|
_collectionView.layer.masksToBounds = YES;
|
|
_collectionView.layer.masksToBounds = YES;
|
|
|
[self addSubview:self.collectionView];
|
|
[self addSubview:self.collectionView];
|
|
|
|
|
|
|
|
|
|
+ [self.titleL mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
+ make.top.mas_offset(0);
|
|
|
|
|
+ make.left.mas_offset(15);
|
|
|
|
|
+ }];
|
|
|
|
|
+
|
|
|
|
|
+ [self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
+ make.left.equalTo(self.titleL);
|
|
|
|
|
+ make.top.equalTo(self.titleL.mas_bottom).mas_offset(10);
|
|
|
|
|
+ make.right.mas_offset(-15);
|
|
|
|
|
+ make.bottom.mas_offset(0);
|
|
|
|
|
+ }];
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- (void)setModel:(AccountRechargeModel *)model{
|
|
- (void)setModel:(AccountRechargeModel *)model{
|
|
@@ -88,7 +100,7 @@
|
|
|
|
|
|
|
|
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath{
|
|
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath{
|
|
|
|
|
|
|
|
- return CGSizeMake(kScreenW, kRealValue(40));
|
|
|
|
|
|
|
+ return CGSizeMake(collectionView.width, kRealValue(60));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -98,7 +110,7 @@
|
|
|
|
|
|
|
|
- (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section
|
|
- (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section
|
|
|
{
|
|
{
|
|
|
- return UIEdgeInsetsMake(10, 10, 10, 10);
|
|
|
|
|
|
|
+ return UIEdgeInsetsMake(0, 0, 0, 0);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-(UILabel *)titleL{
|
|
-(UILabel *)titleL{
|