暂时提交

This commit is contained in:
启星
2025-10-13 14:16:49 +08:00
parent 0879779fb3
commit de1d090b93
38 changed files with 404 additions and 72 deletions

View File

@@ -54,7 +54,9 @@
[self.timeDownbgView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.bgImageView).offset(ScaleWidth(117));
make.left.equalTo(self.bgImageView).offset(9);
make.size.mas_equalTo(CGSizeMake(ScaleWidth(179), ScaleWidth(20)));
make.right.equalTo(self.bgImageView).offset(-9);
make.width.mas_equalTo(ScaleWidth(20));
}];
self.timeDownLabel = [[UILabel alloc] init];
@@ -172,7 +174,7 @@
MJWeakSelf
[QXHomePageNetwork getSkyDropGiftListSuccessBlock:^(QXNiceGiftRechargeModel * _Nonnull model) {
weakSelf.model = model;
weakSelf.timeDownLabel.text = model.effective_time;
weakSelf.timeDownLabel.text = [NSString stringWithFormat:@"结束时间:%@",model.effective_time];
NSMutableAttributedString *attr = [[NSMutableAttributedString alloc] initWithString:model.counter];
[attr yy_setColor:QXConfig.themeColor range:[model.counter rangeOfString:model.money]];
[attr yy_setColor:QXConfig.themeColor range:[model.counter rangeOfString:model.diamond]];
@@ -191,15 +193,15 @@
-(__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
QXGiftCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"QXGiftCell" forIndexPath:indexPath];
cell.cellType = QXGiftCellTypeNiceGift;
cell.roomGiftModel = self.model.gift_list[indexPath.row];
cell.niceGiftModel = self.model.gift_list[indexPath.row];
return cell;
}
//
-(void)getAction{
if (self.getActionBlock) {
self.getActionBlock();
if (self.rechargeActionBlock) {
self.rechargeActionBlock(self.model.money,self.model.gift_bag_id);
}
}
-(void)closeAction{