提交
This commit is contained in:
@@ -26,6 +26,8 @@ typedef NS_ENUM(NSInteger) {
|
||||
QXRoomSettingTypeRoomTypeKSing = 200,
|
||||
/// 点唱房
|
||||
QXRoomSettingTypeRoomTypeSinger = 300,
|
||||
/// 签约房
|
||||
QXRoomSettingTypeRoomTypeSign = 400,
|
||||
|
||||
/// 常用工具
|
||||
/// 房间补贴
|
||||
|
||||
@@ -46,6 +46,8 @@
|
||||
@property (nonatomic,strong)QXRoomSettingModel *roomTypeKSing;
|
||||
/// 练歌房
|
||||
@property (nonatomic,strong)QXRoomSettingModel *roomTypeSinger;
|
||||
/// 签约房
|
||||
@property (nonatomic,strong)QXRoomSettingModel *roomTypeSign;
|
||||
|
||||
|
||||
|
||||
@@ -176,7 +178,7 @@
|
||||
NSArray *roomTypeArr;
|
||||
NSArray *toolsArr;
|
||||
NSArray *moreArr;
|
||||
roomTypeArr = @[self.roomTypeSing,self.roomTypeAuction,self.roomTypeFriend,self.roomTypeKSing,self.roomTypeSinger];
|
||||
roomTypeArr = @[self.roomTypeSing,self.roomTypeAuction,self.roomTypeFriend,self.roomTypeKSing,self.roomTypeSinger,self.roomTypeSign];
|
||||
switch (roleType) {
|
||||
// 主持
|
||||
case QXRoomRoleTypeCompere:{
|
||||
@@ -331,7 +333,8 @@
|
||||
|| model.type == QXRoomSettingTypeRoomTypeFriend
|
||||
|| model.type == QXRoomSettingTypeRoomTypeFunny
|
||||
|| model.type == QXRoomSettingTypeRoomTypeKSing
|
||||
|| model.type == QXRoomSettingTypeRoomTypeSinger) {
|
||||
|| model.type == QXRoomSettingTypeRoomTypeSinger
|
||||
|| model.type == QXRoomSettingTypeRoomTypeSign) {
|
||||
self.alertView.message = [NSString stringWithFormat:@"您确定要修改为%@房吗?",model.name];
|
||||
[[QXGlobal shareGlobal] showView:self.alertView controller:self.viewController popType:(PopViewTypeTopToCenter) tapDismiss:NO finishBlock:^{
|
||||
|
||||
@@ -372,7 +375,10 @@
|
||||
type = @"8";
|
||||
}else if (roomType == QXRoomSettingTypeRoomTypeSinger) {
|
||||
type = @"9";
|
||||
}else if (roomType == QXRoomSettingTypeRoomTypeSign) {
|
||||
type = @"10";
|
||||
}
|
||||
|
||||
[QXMineNetwork changeRoomTypeWithRoomId:self.roomModel.room_info.room_id type:type successBlock:^(NSDictionary * _Nonnull dict) {
|
||||
|
||||
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
|
||||
@@ -470,6 +476,16 @@
|
||||
return _roomTypeSinger;
|
||||
}
|
||||
|
||||
-(QXRoomSettingModel *)roomTypeSign{
|
||||
if (!_roomTypeSign) {
|
||||
_roomTypeSign = [[QXRoomSettingModel alloc] init];
|
||||
_roomTypeSign.name = QXText(@"签约");
|
||||
_roomTypeSign.type = QXRoomSettingTypeRoomTypeSign;
|
||||
_roomTypeSign.icon = @"room_set_room_type_sign";
|
||||
}
|
||||
return _roomTypeSign;
|
||||
}
|
||||
|
||||
-(QXRoomSettingModel *)roomSubsidy{
|
||||
if (!_roomSubsidy) {
|
||||
_roomSubsidy = [[QXRoomSettingModel alloc] init];
|
||||
|
||||
Reference in New Issue
Block a user