提交
This commit is contained in:
@@ -438,7 +438,8 @@
|
||||
return;
|
||||
}
|
||||
/// 2为背包
|
||||
NSString *type = self.categoryView.selectedIndex==0?@"2":@"1";
|
||||
// NSString *type = self.categoryView.selectedIndex==0?@"2":@"1";
|
||||
NSString *type = @"1";
|
||||
[QXDynamicNetwork dynamicGiveGiftWithId:self.dynamicId
|
||||
gift_id:self.giftModel.gift_id
|
||||
num:self.giftCount
|
||||
@@ -517,19 +518,29 @@
|
||||
[QXMineNetwork giftLabelSuccessBlock:^(NSArray<QXGiftLabelModel *> * _Nonnull list) {
|
||||
[weakSelf.titles removeAllObjects];
|
||||
[weakSelf.titles addObjectsFromArray:list];
|
||||
if (self.type != QXSendGiftViewTypeFind) {
|
||||
QXGiftLabelModel *md = [[QXGiftLabelModel alloc] init];
|
||||
md.name = @"背包";
|
||||
md.id = @"-10";
|
||||
[weakSelf.titles insertObject:md atIndex:0];
|
||||
}
|
||||
NSMutableArray *arr = [NSMutableArray array];
|
||||
for (QXGiftLabelModel*md in weakSelf.titles) {
|
||||
[arr addObject:md.name];
|
||||
|
||||
if (weakSelf.type != QXSendGiftViewTypeFind) {
|
||||
QXGiftLabelModel *model = [[QXGiftLabelModel alloc] init];
|
||||
model.name = @"背包";
|
||||
model.id = @"-10";
|
||||
[weakSelf.titles insertObject:model atIndex:0];
|
||||
weakSelf.categoryView.titles = arr;
|
||||
for (QXGiftLabelModel*md in weakSelf.titles) {
|
||||
[arr addObject:md.name];
|
||||
}
|
||||
[weakSelf.categoryView setDefaultSelectedIndex:1];
|
||||
[weakSelf.categoryView reloadData];
|
||||
}else{
|
||||
for (QXGiftLabelModel*md in weakSelf.titles) {
|
||||
[arr addObject:md.name];
|
||||
}
|
||||
weakSelf.categoryView.titles = arr;
|
||||
[weakSelf.categoryView setDefaultSelectedIndex:0];
|
||||
[weakSelf.categoryView reloadData];
|
||||
}
|
||||
weakSelf.categoryView.titles = arr;
|
||||
[weakSelf.categoryView setDefaultSelectedIndex:1];
|
||||
[weakSelf.categoryView reloadData];
|
||||
|
||||
|
||||
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
|
||||
|
||||
}];
|
||||
@@ -563,6 +574,12 @@
|
||||
// }else{
|
||||
// self.funnyView.hidden = YES;
|
||||
// }
|
||||
if (self.type == QXSendGiftViewTypeFind) {
|
||||
self.cornLabel.text = self.coin;
|
||||
self.sendAllBtn.hidden = YES;
|
||||
self.rechargeBtn.hidden = !QXGlobal.shareGlobal.isOpenRecharge;
|
||||
return;
|
||||
}
|
||||
if (index == 0) {
|
||||
self.sendAllBtn.hidden = NO;
|
||||
self.cornLabel.text = self.giftBagPrice;
|
||||
|
||||
Reference in New Issue
Block a user