优化提交
This commit is contained in:
@@ -110,7 +110,7 @@
|
||||
layout.minimumLineSpacing = 23;
|
||||
layout.minimumInteritemSpacing = 23;
|
||||
layout.sectionInset = UIEdgeInsetsMake(0, 17, 0, 17);
|
||||
layout.itemSize = CGSizeMake((SCREEN_WIDTH-17*2-23*2)/3, ScaleWidth(128));
|
||||
layout.itemSize = CGSizeMake((SCREEN_WIDTH-17*2-23*2-1)/3, ScaleWidth(128));
|
||||
_collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, self.ruleImageView.bottom+10, SCREEN_WIDTH, self.bgView.height-self.ruleImageView.bottom) collectionViewLayout:layout];
|
||||
_collectionView.delegate = self;
|
||||
_collectionView.dataSource = self;
|
||||
|
||||
@@ -221,7 +221,7 @@
|
||||
layout.minimumLineSpacing = 16;
|
||||
layout.minimumInteritemSpacing = 16;
|
||||
layout.sectionInset = UIEdgeInsetsMake(0, 12, 0, 12);
|
||||
layout.itemSize = CGSizeMake((self.bgCoverView.width-12*2-16*2)/3, ScaleWidth(123));
|
||||
layout.itemSize = CGSizeMake((self.bgCoverView.width-12*2-16*2-1)/3, ScaleWidth(123));
|
||||
_collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, self.myRecordBtn.bottom+10, self.bgCoverView.width, self.bgCoverView.height-self.myRecordBtn.bottom-5) collectionViewLayout:layout];
|
||||
_collectionView.delegate = self;
|
||||
_collectionView.dataSource = self;
|
||||
|
||||
@@ -473,7 +473,7 @@ static NSInteger toSlowCount = 4;
|
||||
return;
|
||||
}
|
||||
if (self.isDrawing) {
|
||||
showToast(@"正在抽奖中");
|
||||
// showToast(@"正在抽奖中");
|
||||
return;
|
||||
}
|
||||
[self resetViews];
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
layout.minimumLineSpacing = 23;
|
||||
layout.minimumInteritemSpacing = 23;
|
||||
layout.sectionInset = UIEdgeInsetsMake(0, 17, 0, 17);
|
||||
layout.itemSize = CGSizeMake((SCREEN_WIDTH-17*2-23*2)/3, ScaleWidth(128));
|
||||
layout.itemSize = CGSizeMake((SCREEN_WIDTH-17*2-23*2-1)/3, ScaleWidth(128));
|
||||
_collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, self.ruleImageView.bottom+10, SCREEN_WIDTH, self.bgView.height-self.ruleImageView.bottom) collectionViewLayout:layout];
|
||||
_collectionView.delegate = self;
|
||||
_collectionView.dataSource = self;
|
||||
|
||||
@@ -221,7 +221,7 @@
|
||||
layout.minimumLineSpacing = 16;
|
||||
layout.minimumInteritemSpacing = 16;
|
||||
layout.sectionInset = UIEdgeInsetsMake(0, 12, 0, 12);
|
||||
layout.itemSize = CGSizeMake((self.bgCoverView.width-12*2-16*2)/3, ScaleWidth(123));
|
||||
layout.itemSize = CGSizeMake((self.bgCoverView.width-12*2-16*2-1)/3, ScaleWidth(123));
|
||||
_collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, self.myRecordBtn.bottom+10, self.bgCoverView.width, self.bgCoverView.height-self.myRecordBtn.bottom-5) collectionViewLayout:layout];
|
||||
_collectionView.delegate = self;
|
||||
_collectionView.dataSource = self;
|
||||
|
||||
@@ -505,7 +505,7 @@ static NSInteger toSlowCount = 4;
|
||||
return;
|
||||
}
|
||||
if (self.isDrawing) {
|
||||
showToast(@"正在抽奖中");
|
||||
// showToast(@"正在抽奖中");
|
||||
return;
|
||||
}
|
||||
[self resetViews];
|
||||
|
||||
@@ -15,7 +15,7 @@ typedef NS_ENUM(NSInteger) {
|
||||
/// 抽10次
|
||||
QXMeetDrawBtnTypeTen = 10,
|
||||
/// 抽100次
|
||||
QXMeetDrawBtnTypeHundred = 100,
|
||||
QXMeetDrawBtnTypeHundred = 20,
|
||||
}QXMeetDrawBtnType;
|
||||
@interface QXMeetActivityView : UIView
|
||||
-(void)showInView:(UIView *)view;
|
||||
|
||||
@@ -388,7 +388,7 @@
|
||||
}
|
||||
-(void)drawGiftWithNum:(NSString*)num{
|
||||
if (self.isDrawing) {
|
||||
showToast(@"正在抽奖中");
|
||||
// showToast(@"正在抽奖中");
|
||||
return;
|
||||
}
|
||||
NSDictionary *parameters = @{
|
||||
@@ -571,6 +571,7 @@
|
||||
_resultView = [[QXMeetActivityResultView alloc] init];
|
||||
MJWeakSelf
|
||||
_resultView.againBlock = ^(NSString * _Nonnull times) {
|
||||
// weakSelf.jumpAnimateBtn.selected = YES;
|
||||
[weakSelf drawGiftWithNum:times];
|
||||
};
|
||||
}
|
||||
@@ -794,7 +795,7 @@
|
||||
break;
|
||||
case QXMeetDrawBtnTypeHundred:
|
||||
{
|
||||
self.titleLabel.text = @"抽百次";
|
||||
self.titleLabel.text = @"抽二十次";
|
||||
[self.giftCoin setTitle:@"1000币一次" forState:(UIControlStateNormal)];
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
layout.minimumLineSpacing = 23;
|
||||
layout.minimumInteritemSpacing = 23;
|
||||
layout.sectionInset = UIEdgeInsetsMake(0, 17, 0, 17);
|
||||
layout.itemSize = CGSizeMake((SCREEN_WIDTH-17*2-23*2)/3, ScaleWidth(128));
|
||||
layout.itemSize = CGSizeMake((SCREEN_WIDTH-17*2-23*2-1)/3, ScaleWidth(128));
|
||||
_collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, self.ruleImageView.bottom+10, SCREEN_WIDTH, self.bgView.height-self.ruleImageView.bottom) collectionViewLayout:layout];
|
||||
_collectionView.delegate = self;
|
||||
_collectionView.dataSource = self;
|
||||
|
||||
@@ -221,7 +221,7 @@
|
||||
layout.minimumLineSpacing = 16;
|
||||
layout.minimumInteritemSpacing = 16;
|
||||
layout.sectionInset = UIEdgeInsetsMake(0, 12, 0, 12);
|
||||
layout.itemSize = CGSizeMake((self.bgCoverView.width-12*2-16*2)/3, ScaleWidth(123));
|
||||
layout.itemSize = CGSizeMake((self.bgCoverView.width-12*2-16*2-1)/3, ScaleWidth(123));
|
||||
_collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, self.myRecordBtn.bottom+10, self.bgCoverView.width, self.bgCoverView.height-self.myRecordBtn.bottom-5) collectionViewLayout:layout];
|
||||
_collectionView.delegate = self;
|
||||
_collectionView.dataSource = self;
|
||||
|
||||
@@ -506,7 +506,7 @@ static NSInteger toSlowCount = 4;
|
||||
return;
|
||||
}
|
||||
if (self.isDrawing) {
|
||||
showToast(@"正在抽奖中");
|
||||
// showToast(@"正在抽奖中");
|
||||
return;
|
||||
}
|
||||
[self resetViews];
|
||||
|
||||
Reference in New Issue
Block a user