房间榜换成h5

This commit is contained in:
fengshuo
2022-01-14 11:38:09 +08:00
parent f1ec673b26
commit 68971411e9
7 changed files with 29 additions and 7 deletions

View File

@@ -8,12 +8,14 @@
#import "XPRoomFunctionContainerView.h"
///Tool
#import "XPMacro.h"
#import "XPHtmlUrl.h"
#import "TTPopup.h"
///Third
#import <Masonry/Masonry.h>
///Model
#import "RoomInfoModel.h"
///View
#import "XPRoomRankViewController.h"
#import "XPRoomHalfWebView.h"
@interface XPRoomFunctionContainerView ()
///host
@property (nonatomic,weak) id<RoomHostDelegate>delegate;
@@ -50,8 +52,9 @@
#pragma mark - Event Response
- (void)contributionButtonAction:(UIButton *)sender {
NSString * roomUid = [NSString stringWithFormat:@"%ld", self.delegate.getRoomInfo.uid];
XPRoomRankViewController * rankVC = [[XPRoomRankViewController alloc] initWithRoomUid:roomUid delegate:self.delegate];
[self.delegate.getCurrentNav presentViewController:rankVC animated:YES completion:nil];
XPRoomHalfWebView * webView = [[XPRoomHalfWebView alloc] init];
webView.url = [NSString stringWithFormat:@"%@?roomUid=%@", URLWithType(kRoomRankURL), roomUid];
[TTPopup popupView:webView style:TTPopupStyleActionSheet];
}
#pragma mark - Getters And Setters