小游戏进房的UI
This commit is contained in:
@@ -10,11 +10,13 @@
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <flutter_boost/FlutterBoost.h>
|
||||
///Tool
|
||||
#import "TTPopup.h"
|
||||
#import "XPMacro.h"
|
||||
#import "XPHtmlUrl.h"
|
||||
#import "UIButton+EnlargeTouchArea.h"
|
||||
#import "StatisticsServiceHelper.h"
|
||||
#import "XPConstant.h"
|
||||
#import "Api+Room.h"
|
||||
///Model
|
||||
#import "XPMineItemModel.h"
|
||||
#import "UserInfoModel.h"
|
||||
@@ -27,6 +29,7 @@
|
||||
#import "XPMineHeadItemTableViewCell.h"
|
||||
#import "XPMineHeadView.h"
|
||||
#import "XPMineSkillTipView.h"
|
||||
#import "XPLittleGameRoomOpenView.h"
|
||||
///VC
|
||||
#import "XPMineSettingViewController.h"
|
||||
#import "XPMineTeenagerViewController.h"
|
||||
@@ -196,7 +199,21 @@
|
||||
case XPMineItemType_My_Room:
|
||||
{
|
||||
NSString* roomUid = [NSString stringWithFormat:@"%ld", (long)self.userInfo.uid];
|
||||
[XPRoomViewController openRoom:roomUid viewController:self];
|
||||
[Api getRoomInfo:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) {
|
||||
if (code == 200) {
|
||||
RoomInfoModel * roomInfo = [RoomInfoModel modelWithJSON:data.data];
|
||||
roomInfo.isReselect = YES;
|
||||
if (roomInfo.isReselect) {
|
||||
XPLittleGameRoomOpenView * roomOpenView = [[XPLittleGameRoomOpenView alloc] init];
|
||||
[TTPopup popupView:roomOpenView style:TTPopupStyleActionSheet];
|
||||
} else {
|
||||
[XPRoomViewController openRoom:roomUid viewController:self];
|
||||
}
|
||||
} else {
|
||||
[self showErrorToast:msg];
|
||||
}
|
||||
} uid:roomUid intoUid:roomUid];
|
||||
|
||||
}
|
||||
break;
|
||||
case XPMineItemType_My_Dressup:
|
||||
|
Reference in New Issue
Block a user