This commit is contained in:
启星
2025-12-05 21:03:04 +08:00
parent 57975eafc1
commit afcf3cc9aa
12 changed files with 42 additions and 22 deletions

View File

@@ -10,7 +10,7 @@
NS_ASSUME_NONNULL_BEGIN
@interface QXGuildViewController : QXBaseViewController
@property (nonatomic,strong)NSString*joinGuild;
@end
NS_ASSUME_NONNULL_END

View File

@@ -44,7 +44,12 @@ static void *WKWebBrowserContext = &WKWebBrowserContext;
}
- (void)loadData {
NSInteger safeTop = kSafeAreaTop;
NSURL* url=[NSURL URLWithString:[NSString stringWithFormat:@"%@web/index.html#/pages/union/index?id=%@&h=%ld",H5ServerUrl,[QXGlobal shareGlobal].loginModel.token,safeTop]];
NSString *urlString = [NSString stringWithFormat:@"%@web/index.html#/pages/union/index?id=%@&h=%ld",H5ServerUrl,[QXGlobal shareGlobal].loginModel.token,safeTop];
if ([self.joinGuild isExist]) {
urlString = [urlString stringByAppendingFormat:@"&guild_id=%@",self.joinGuild];
}
NSURL* url=[NSURL URLWithString:urlString];
NSURLRequest *request =[NSURLRequest requestWithURL:url];
[self.contentWebView loadRequest:request];
}

View File

@@ -9,7 +9,7 @@
NS_ASSUME_NONNULL_BEGIN
@interface QXGiftWallSubViewController : QXBaseViewController<JXCategoryListContentViewDelegate>
@interface QXGiftWallSubViewController : UIViewController<JXCategoryListContentViewDelegate>
/// 是否为已点亮
@property(nonatomic,assign)BOOL isLight;
/// 数据源

View File

@@ -19,9 +19,9 @@
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
[self initSubViews];
}
- (void)initSubViews{
self.bgImageHidden = YES;
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
int itemWidth = (SCREEN_WIDTH-16*2-12*2)/3;
layout.itemSize = CGSizeMake(itemWidth, ScaleWidth(143));