瀏覽代碼

* 充值页面UI问题修复

zwp 7 月之前
父節點
當前提交
a21147195d

+ 14 - 2
BuguLive/Class/Sections/Home/V3NewUIController/NewRechargeUI/View/BogoRechargePayTypeCollection.m

@@ -40,6 +40,18 @@
     _collectionView.layer.masksToBounds = YES;
     [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{
@@ -88,7 +100,7 @@
 
 - (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
 {
-    return UIEdgeInsetsMake(10, 10, 10, 10);
+    return UIEdgeInsetsMake(0, 0, 0, 0);
 }
 
 -(UILabel *)titleL{