炼仙传说+春节皮肤

This commit is contained in:
启星
2026-01-27 19:10:51 +08:00
parent e5191e0f71
commit f57a8051d9
311 changed files with 18415 additions and 19 deletions

View File

@@ -19,6 +19,8 @@
#import "QXSignInAppView.h"
#import "QXCreatPhotosViewController.h"
#import "QXCreateRoomViewController.h"
#import "QXTaskCrystalTagView.h"
#import "JFRoomWishView.h"
@interface QXTaskViewController ()<UITableViewDataSource,UITableViewDelegate,QXDayTaskCellDelegate,UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout>
@property (nonatomic,strong)QXDayTaskTopView *topView;
@@ -28,6 +30,7 @@
@property (nonatomic,strong)QXDayTaskModel *model;
@property (nonatomic,strong)QXDayTaskTypeModel *typeModel;
@property (nonatomic,strong)UIImageView *nodataView;
@property (nonatomic,strong)QXTaskCrystalTagView *shuijingView;
@property (nonatomic,assign)NSInteger selectedInex;
@end
@@ -77,6 +80,12 @@
self.nodataView.hidden = YES;
[self.bottomView addSubview:self.nodataView];
[self createTaskTypeView];
// self.shuijingView = [[QXTaskCrystalTagView alloc] init];
// self.shuijingView.startBlock = ^{
// [JFRoomWishView show];
// };
// [self.view addSubview:self.shuijingView];
}
-(void)createTaskTypeView{
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];

View File

@@ -12,6 +12,8 @@
NS_ASSUME_NONNULL_BEGIN
@interface QXPropShopSubVC : QXBaseViewController<JXCategoryListContentViewDelegate>
/// 是否为购买房间热度卡
@property (nonatomic,assign)BOOL isBuyRoomHotCard;
@property (nonatomic,strong)QXUserDressTypeModel *model;
@end

View File

@@ -10,7 +10,8 @@
NS_ASSUME_NONNULL_BEGIN
@interface QXPropShopVC : QXBaseViewController
/// 是否为购买房间热度卡
@property (nonatomic,assign)BOOL isBuyRoomHotCard;
@end
NS_ASSUME_NONNULL_END

View File

@@ -72,10 +72,20 @@
[QXMineNetwork getDressTypeListWithFrom:@"1" successBlock:^(NSArray<QXUserDressTypeModel *> * _Nonnull list) {
[weakSelf.dataArray removeAllObjects];
[weakSelf.dataArray addObjectsFromArray:list];
for (QXUserDressTypeModel*model in list) {
NSInteger roomHotCardIndex = 0;
for (int i = 0; i < list.count; i++) {
QXUserDressTypeModel*model = list[i];
[weakSelf.titles addObject:model.name];
if ([model.id isEqualToString:@"13"]) {
roomHotCardIndex = i;
}
}
weakSelf.categoryView.titles = weakSelf.titles;
if (weakSelf.isBuyRoomHotCard) {
[weakSelf.categoryView setDefaultSelectedIndex:roomHotCardIndex];
}else{
[weakSelf.categoryView setDefaultSelectedIndex:0];
}
[weakSelf.categoryView reloadData];
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
@@ -104,6 +114,7 @@
}
-(id<JXCategoryListContentViewDelegate>)listContainerView:(JXCategoryListContainerView *)listContainerView initListForIndex:(NSInteger)index{
QXPropShopSubVC *vc = [[QXPropShopSubVC alloc] init];
vc.isBuyRoomHotCard = self.isBuyRoomHotCard;
QXUserDressTypeModel *model = self.dataArray[index];
vc.model = model;
return vc;

View File

@@ -672,7 +672,7 @@
+(void)quitRoomWithRoomId:(NSString *)room_id user_id:(NSString *)user_id successBlock:(void (^)(NSDictionary * _Nonnull))successBlock failBlock:(void (^)(NSError * _Nonnull, NSString * _Nonnull))failBlock{
NSDictionary *parameters =@{
@"room_id":room_id,
@"user_id":user_id
@"user_id":user_id?user_id:@""
};
[[QXRequset shareInstance] postWithUrl:QXQuitRoom parameters:parameters needCache:NO success:^(id responseObject) {
if (successBlock) {

View File

@@ -0,0 +1,16 @@
//
// QXTaskCrystalTagView.h
// QXLive
//
// Created by 启星 on 2026/1/26.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface QXTaskCrystalTagView : UIView
@property (nonatomic,copy)void(^startBlock)(void);
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,71 @@
//
// QXTaskCrystalTagView.m
// QXLive
//
// Created by on 2026/1/26.
//
#import "QXTaskCrystalTagView.h"
@interface QXTaskCrystalTagView()
@property (nonatomic,strong)UIImageView *imageView;
@property (nonatomic,strong)UILabel *timeLabel;
@property (nonatomic,strong)UIButton *btn;
@property (nonatomic,strong)UILabel *unreadLabel;
@end
@implementation QXTaskCrystalTagView
- (instancetype)init
{
self = [super init];
if (self) {
self.frame = CGRectMake(SCREEN_WIDTH-104, SCREEN_HEIGHT-400, 104, 104);
[self initSubviews];
}
return self;
}
-(void)initSubviews{
self.imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"task_shuijing"]];
self.imageView.frame = CGRectMake(0, 0, 104, 104);
[self addSubview:self.imageView];
self.timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.imageView.bottom-20-15, self.width, 20)];
self.timeLabel.textAlignment = NSTextAlignmentCenter;
self.timeLabel.font = [UIFont fontWithName:@"DIN Condensed" size:16];
self.timeLabel.textColor = RGB16(0xFFEA00);
self.timeLabel.text = @"许愿卡x0";
[self addSubview:self.timeLabel];
self.btn = [[UIButton alloc] initWithFrame:self.bounds];
[self.btn addTarget:self action:@selector(btnClick) forControlEvents:(UIControlEventTouchUpInside)];
[self addSubview:self.btn];
UIPanGestureRecognizer *panRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePan:)];
[self addGestureRecognizer:panRecognizer];
}
-(void)btnClick{
if (self.startBlock) {
self.startBlock();
}
}
-(void)handlePan:(UIPanGestureRecognizer*)recognizer{
if (recognizer.state == UIGestureRecognizerStateEnded) {
NSLog(@"拖动结束");
}
CGPoint translation = [recognizer translationInView:self.viewController.view];
CGPoint panCenter = CGPointMake(recognizer.view.center.x + translation.x,
recognizer.view.center.y + translation.y);
if (panCenter.y < kSafeAreaTop || panCenter.y> SCREEN_HEIGHT-kSafeAreaBottom) {
return;
}
recognizer.view.center = CGPointMake(SCREEN_WIDTH-ScaleWidth(104)/2,
recognizer.view.center.y + translation.y);
[recognizer setTranslation:CGPointZero inView:self.viewController.view];
}
@end