英文适配

This commit is contained in:
liyuhua
2024-04-11 15:47:44 +08:00
parent fd1f870c2d
commit c4ac454a15
123 changed files with 872 additions and 482 deletions

View File

@@ -55,7 +55,6 @@
14EB640D29A5C16000A4A00B /* XPMomentsSimpleDetailNav.m in Sources */ = {isa = PBXBuildFile; fileRef = 14EB640C29A5C16000A4A00B /* XPMomentsSimpleDetailNav.m */; }; 14EB640D29A5C16000A4A00B /* XPMomentsSimpleDetailNav.m in Sources */ = {isa = PBXBuildFile; fileRef = 14EB640C29A5C16000A4A00B /* XPMomentsSimpleDetailNav.m */; };
180116F9279E8C4C00F2CBC0 /* PLTimeUtil.m in Sources */ = {isa = PBXBuildFile; fileRef = 180116F8279E8C4C00F2CBC0 /* PLTimeUtil.m */; }; 180116F9279E8C4C00F2CBC0 /* PLTimeUtil.m in Sources */ = {isa = PBXBuildFile; fileRef = 180116F8279E8C4C00F2CBC0 /* PLTimeUtil.m */; };
180116FC279E8CCE00F2CBC0 /* NVDate.m in Sources */ = {isa = PBXBuildFile; fileRef = 180116FA279E8CCE00F2CBC0 /* NVDate.m */; }; 180116FC279E8CCE00F2CBC0 /* NVDate.m in Sources */ = {isa = PBXBuildFile; fileRef = 180116FA279E8CCE00F2CBC0 /* NVDate.m */; };
180806D827293794001FD836 /* NSObject+MJExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 180806D727293794001FD836 /* NSObject+MJExtension.m */; };
180806FB2729A354001FD836 /* ThemeColor+Room.m in Sources */ = {isa = PBXBuildFile; fileRef = 180806FA2729A354001FD836 /* ThemeColor+Room.m */; }; 180806FB2729A354001FD836 /* ThemeColor+Room.m in Sources */ = {isa = PBXBuildFile; fileRef = 180806FA2729A354001FD836 /* ThemeColor+Room.m */; };
1808072D2731598F001FD836 /* XPNetImageYYLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = 1808072C2731598F001FD836 /* XPNetImageYYLabel.m */; }; 1808072D2731598F001FD836 /* XPNetImageYYLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = 1808072C2731598F001FD836 /* XPNetImageYYLabel.m */; };
1808073027315E8E001FD836 /* NetImageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 1808072F27315E8E001FD836 /* NetImageView.m */; }; 1808073027315E8E001FD836 /* NetImageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 1808072F27315E8E001FD836 /* NetImageView.m */; };
@@ -245,6 +244,7 @@
236BA4982BB6AFED00C7C73A /* PINoblePrivilegeEmptyCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 236BA4972BB6AFED00C7C73A /* PINoblePrivilegeEmptyCell.m */; }; 236BA4982BB6AFED00C7C73A /* PINoblePrivilegeEmptyCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 236BA4972BB6AFED00C7C73A /* PINoblePrivilegeEmptyCell.m */; };
237700CD2BC697A100D661F1 /* pi_app_logo_new_bg.png in Resources */ = {isa = PBXBuildFile; fileRef = 237700CC2BC697A100D661F1 /* pi_app_logo_new_bg.png */; }; 237700CD2BC697A100D661F1 /* pi_app_logo_new_bg.png in Resources */ = {isa = PBXBuildFile; fileRef = 237700CC2BC697A100D661F1 /* pi_app_logo_new_bg.png */; };
237700CF2BC697D500D661F1 /* pi_login_new_logo.png in Resources */ = {isa = PBXBuildFile; fileRef = 237700CE2BC697D400D661F1 /* pi_login_new_logo.png */; }; 237700CF2BC697D500D661F1 /* pi_login_new_logo.png in Resources */ = {isa = PBXBuildFile; fileRef = 237700CE2BC697D400D661F1 /* pi_login_new_logo.png */; };
237700D32BC7CC7C00D661F1 /* NSObject+MJExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 237700D22BC7CC7C00D661F1 /* NSObject+MJExtension.m */; };
237B94BC2A984DA7007853E3 /* XPTrumpetPresenter.m in Sources */ = {isa = PBXBuildFile; fileRef = 237B94AE2A984DA7007853E3 /* XPTrumpetPresenter.m */; }; 237B94BC2A984DA7007853E3 /* XPTrumpetPresenter.m in Sources */ = {isa = PBXBuildFile; fileRef = 237B94AE2A984DA7007853E3 /* XPTrumpetPresenter.m */; };
237B94BD2A984DA7007853E3 /* XPNobleTrumpetModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 237B94B32A984DA7007853E3 /* XPNobleTrumpetModel.m */; }; 237B94BD2A984DA7007853E3 /* XPNobleTrumpetModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 237B94B32A984DA7007853E3 /* XPNobleTrumpetModel.m */; };
237B94BE2A984DA7007853E3 /* XPRoomTrumpetViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 237B94B72A984DA7007853E3 /* XPRoomTrumpetViewController.m */; }; 237B94BE2A984DA7007853E3 /* XPRoomTrumpetViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 237B94B72A984DA7007853E3 /* XPRoomTrumpetViewController.m */; };
@@ -1583,8 +1583,6 @@
180116F8279E8C4C00F2CBC0 /* PLTimeUtil.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PLTimeUtil.m; sourceTree = "<group>"; }; 180116F8279E8C4C00F2CBC0 /* PLTimeUtil.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PLTimeUtil.m; sourceTree = "<group>"; };
180116FA279E8CCE00F2CBC0 /* NVDate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NVDate.m; sourceTree = "<group>"; }; 180116FA279E8CCE00F2CBC0 /* NVDate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NVDate.m; sourceTree = "<group>"; };
180116FB279E8CCE00F2CBC0 /* NVDate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NVDate.h; sourceTree = "<group>"; }; 180116FB279E8CCE00F2CBC0 /* NVDate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NVDate.h; sourceTree = "<group>"; };
180806D627293794001FD836 /* NSObject+MJExtension.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSObject+MJExtension.h"; sourceTree = "<group>"; };
180806D727293794001FD836 /* NSObject+MJExtension.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "NSObject+MJExtension.m"; sourceTree = "<group>"; };
180806DA27297269001FD836 /* MicroViewProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MicroViewProtocol.h; sourceTree = "<group>"; }; 180806DA27297269001FD836 /* MicroViewProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MicroViewProtocol.h; sourceTree = "<group>"; };
180806F827298F9B001FD836 /* RoomGuestDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RoomGuestDelegate.h; sourceTree = "<group>"; }; 180806F827298F9B001FD836 /* RoomGuestDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RoomGuestDelegate.h; sourceTree = "<group>"; };
180806F92729A354001FD836 /* ThemeColor+Room.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ThemeColor+Room.h"; sourceTree = "<group>"; }; 180806F92729A354001FD836 /* ThemeColor+Room.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ThemeColor+Room.h"; sourceTree = "<group>"; };
@@ -1968,6 +1966,8 @@
236BA4972BB6AFED00C7C73A /* PINoblePrivilegeEmptyCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PINoblePrivilegeEmptyCell.m; sourceTree = "<group>"; }; 236BA4972BB6AFED00C7C73A /* PINoblePrivilegeEmptyCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PINoblePrivilegeEmptyCell.m; sourceTree = "<group>"; };
237700CC2BC697A100D661F1 /* pi_app_logo_new_bg.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = pi_app_logo_new_bg.png; sourceTree = "<group>"; }; 237700CC2BC697A100D661F1 /* pi_app_logo_new_bg.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = pi_app_logo_new_bg.png; sourceTree = "<group>"; };
237700CE2BC697D400D661F1 /* pi_login_new_logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = pi_login_new_logo.png; sourceTree = "<group>"; }; 237700CE2BC697D400D661F1 /* pi_login_new_logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = pi_login_new_logo.png; sourceTree = "<group>"; };
237700D12BC7CC7C00D661F1 /* NSObject+MJExtension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSObject+MJExtension.h"; sourceTree = "<group>"; };
237700D22BC7CC7C00D661F1 /* NSObject+MJExtension.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSObject+MJExtension.m"; sourceTree = "<group>"; };
237B94AD2A984DA7007853E3 /* XPTrumpetPresenter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XPTrumpetPresenter.h; sourceTree = "<group>"; }; 237B94AD2A984DA7007853E3 /* XPTrumpetPresenter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XPTrumpetPresenter.h; sourceTree = "<group>"; };
237B94AE2A984DA7007853E3 /* XPTrumpetPresenter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XPTrumpetPresenter.m; sourceTree = "<group>"; }; 237B94AE2A984DA7007853E3 /* XPTrumpetPresenter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XPTrumpetPresenter.m; sourceTree = "<group>"; };
237B94B02A984DA7007853E3 /* XPRoomTrumpetProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XPRoomTrumpetProtocol.h; sourceTree = "<group>"; }; 237B94B02A984DA7007853E3 /* XPRoomTrumpetProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XPRoomTrumpetProtocol.h; sourceTree = "<group>"; };
@@ -4882,8 +4882,7 @@
189DD74D26E21D9000AB55B1 /* GCDHelper */, 189DD74D26E21D9000AB55B1 /* GCDHelper */,
189DD74226E21CCC00AB55B1 /* Reachability */, 189DD74226E21CCC00AB55B1 /* Reachability */,
189DD73626E21C3F00AB55B1 /* YYUtility */, 189DD73626E21C3F00AB55B1 /* YYUtility */,
180806D627293794001FD836 /* NSObject+MJExtension.h */, 237700D02BC7CC7C00D661F1 /* MJExtension */,
180806D727293794001FD836 /* NSObject+MJExtension.m */,
); );
path = Tools; path = Tools;
sourceTree = "<group>"; sourceTree = "<group>";
@@ -5549,6 +5548,15 @@
path = Api; path = Api;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
237700D02BC7CC7C00D661F1 /* MJExtension */ = {
isa = PBXGroup;
children = (
237700D12BC7CC7C00D661F1 /* NSObject+MJExtension.h */,
237700D22BC7CC7C00D661F1 /* NSObject+MJExtension.m */,
);
path = MJExtension;
sourceTree = "<group>";
};
237B94AB2A984DA7007853E3 /* NobleTrumpet */ = { 237B94AB2A984DA7007853E3 /* NobleTrumpet */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
@@ -11256,7 +11264,6 @@
E83ABEF9280EAF3F00322EE4 /* MessageContentOpenLiveView.m in Sources */, E83ABEF9280EAF3F00322EE4 /* MessageContentOpenLiveView.m in Sources */,
E83ABF06280EDE2B00322EE4 /* MessageContentLevelUpgradeView.m in Sources */, E83ABF06280EDE2B00322EE4 /* MessageContentLevelUpgradeView.m in Sources */,
E85E7B0E2A4EB0D200B6D00A /* GuildSearchSuperAdminModel.m in Sources */, E85E7B0E2A4EB0D200B6D00A /* GuildSearchSuperAdminModel.m in Sources */,
180806D827293794001FD836 /* NSObject+MJExtension.m in Sources */,
E85E7B4C2A4EB0D300B6D00A /* XPMineGuildManagerPerViewController.m in Sources */, E85E7B4C2A4EB0D300B6D00A /* XPMineGuildManagerPerViewController.m in Sources */,
E87DF4BF2A42C8C1009C1185 /* HomeTagModel.m in Sources */, E87DF4BF2A42C8C1009C1185 /* HomeTagModel.m in Sources */,
23FF25652ABC3B3C0064E904 /* XPHomeGameView.m in Sources */, 23FF25652ABC3B3C0064E904 /* XPHomeGameView.m in Sources */,
@@ -12067,6 +12074,7 @@
E8788948273A55D000BF1D57 /* XPGiftBarView.m in Sources */, E8788948273A55D000BF1D57 /* XPGiftBarView.m in Sources */,
E89DCF5728FFF076001647EC /* XPWishGiftEmptyTableViewCell.m in Sources */, E89DCF5728FFF076001647EC /* XPWishGiftEmptyTableViewCell.m in Sources */,
14A6034929A3567200D2A6A5 /* XPSimpleMineViewController.m in Sources */, 14A6034929A3567200D2A6A5 /* XPSimpleMineViewController.m in Sources */,
237700D32BC7CC7C00D661F1 /* NSObject+MJExtension.m in Sources */,
E8D4DE442940462C00EC788D /* XPGiftTwelveStarBroadcastView.m in Sources */, E8D4DE442940462C00EC788D /* XPGiftTwelveStarBroadcastView.m in Sources */,
E81060DF29876D3A00B772F0 /* MessageTimeModel.m in Sources */, E81060DF29876D3A00B772F0 /* MessageTimeModel.m in Sources */,
E81A65422835120200F55894 /* XPMonentsInteractivePresenter.m in Sources */, E81A65422835120200F55894 /* XPMonentsInteractivePresenter.m in Sources */,

View File

@@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "ms_login_choose_phone_icon@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ms_login_choose_phone_icon@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 914 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -75,7 +75,8 @@
}]; }];
[self.originButton mas_makeConstraints:^(MASConstraintMaker *make) { [self.originButton mas_makeConstraints:^(MASConstraintMaker *make) {
make.size.mas_equalTo(CGSizeMake(50, 25)); make.height.mas_equalTo(25);
make.width.mas_equalTo(100);
make.left.mas_equalTo(self.photoButton.mas_right).offset(20); make.left.mas_equalTo(self.photoButton.mas_right).offset(20);
make.centerY.mas_equalTo(self.photoButton); make.centerY.mas_equalTo(self.photoButton);
}]; }];

View File

@@ -44,9 +44,9 @@ typedef NS_ENUM(NSUInteger, URLType) {
kHomeRankURL, kHomeRankURL,
///相亲规则介绍 ///相亲规则介绍
kRoomDatingRule, kRoomDatingRule,
///贵族规则 ///VIP规则
kNobleRuleURL, kNobleRuleURL,
///贵族排行榜 ///VIP排行榜
kNobleRankURL, kNobleRankURL,
///用户充值协议 ///用户充值协议
kUserRechargeAgrURL, kUserRechargeAgrURL,

View File

@@ -12,24 +12,17 @@
@implementation YUMIHtmlUrl @implementation YUMIHtmlUrl
NSString * const URLWithType(URLType type) { NSString * const URLWithType(URLType type) {
NSString * prefix = @"p"; NSString * prefix = @"molistar";
prefix = [NSString stringWithFormat:@"%@e",prefix]; NSDictionary *newDic = @{
prefix = [NSString stringWithFormat:@"%@k",prefix]; @(kTreasureTicketBuyURL) : @"modules/act-treasureSnatching/index.html",///
prefix = [NSString stringWithFormat:@"%@o",prefix]; @(kTreasureRankListURL) : @"modules/act-treasureSnatching/list.html",///
@(kTreasureRuleURL) : @"modules/act-treasureSnatching/rule.html",///
@(kTreasureRecordURL) : @"modules/act-treasureSnatching/record.html",///
@(kNobleRankURL) : @"modules/noble/index.html",///
@(kGoldEarningsRecord) : @"modules/myincome/index.html#/GoldLog",///
NSDictionary *newDic = @{ @(kCandyTreeRuleURL) : @"modules/rule/newWishingWellRule.html",/// modules/rank/index.html#/wishingWellRule
@(kTreasureTicketBuyURL) : @"modules/act-treasureSnatching/index.html",/// @(kChannelUrl) : @"modules/%@/index.html?channelType=%@&deviceId=%@",
@(kTreasureRankListURL) : @"modules/act-treasureSnatching/list.html",/// };
@(kTreasureRuleURL) : @"modules/act-treasureSnatching/rule.html",///
@(kTreasureRecordURL) : @"modules/act-treasureSnatching/record.html",///
@(kNobleRankURL) : @"modules/noble/index.html",///
@(kGoldEarningsRecord) : @"modules/myincome/index.html#/GoldLog",///
@(kCandyTreeRuleURL) : @"modules/rule/newWishingWellRule.html",/// modules/rank/index.html#/wishingWellRule
@(kChannelUrl) : @"modules/%@/index.html?channelType=%@&deviceId=%@",
};
NSString * newUrl = [newDic objectForKey:@(type)]; NSString * newUrl = [newDic objectForKey:@(type)];
if(newUrl != nil){ if(newUrl != nil){
NSString * url = [newDic objectForKey:@(type)]; NSString * url = [newDic objectForKey:@(type)];
@@ -38,56 +31,56 @@ NSString * const URLWithType(URLType type) {
NSDictionary * dic = @{ NSDictionary * dic = @{
@(kPrivacyURL) : @"sPa8x4YF1hFEeCeH5v+RMOulemxgjjZLbxkN8ZrBSM8=",// modules/rule/privacy-wap.html @(kPrivacyURL) : @"sPa8x4YF1hFEeCeH5v+RMOulemxgjjZLbxkN8ZrBSM8=",// modules/rule/privacy-wap.html
@(kPrivacySDKURL) : @"EXbb0qKoel1tyEL3rQ3//BQ6p/uA56xs9iAOyFI7TRU=",//-SDK modules/rule/sdk.html @(kPrivacySDKURL) : @"EXbb0qKoel1tyEL3rQ3//BQ6p/uA56xs9iAOyFI7TRU=",//-SDK modules/rule/sdk.html
@(kPrivacyPersonalURL) : @"u+t46y/9x4S49BgHUeSXxxu2D69UtZtmyhA93HUTvzI=",//- modules/rule/personal-info.html @(kPrivacyPersonalURL) : @"u+t46y/9x4S49BgHUeSXxxu2D69UtZtmyhA93HUTvzI=",//- modules/rule/personal-info.html
@(kPrivacyDeviceURL) : @"u+t46y/9x4S49BgHUeSXx/rPFwLB78TiQyN+xJKENGQ=",//- modules/rule/permissions.html @(kPrivacyDeviceURL) : @"u+t46y/9x4S49BgHUeSXx/rPFwLB78TiQyN+xJKENGQ=",//- modules/rule/permissions.html
@(kUserProtocalURL) : @"0sBhBaRqf7oBlYvNK4azCrVPTFjv9FYF0A2v9+qkSxg=",/// modules/rule/protocol.html @(kUserProtocalURL) : @"0sBhBaRqf7oBlYvNK4azCrVPTFjv9FYF0A2v9+qkSxg=",/// modules/rule/protocol.html
@(kUserInviteFriendURL) : @"HInhWCyiR3L4dAlHrmQ/GttrZqXhOtq85WujAcETPPI=",/// @(kUserInviteFriendURL) : @"HInhWCyiR3L4dAlHrmQ/GttrZqXhOtq85WujAcETPPI=",///
@(kFAQURL) : @"k/Bqnh8nGkuhV8KhU6xN5a8EkxEQrbDMAWNBtaAdJCo=",// modules/rule/guide.html @(kFAQURL) : @"k/Bqnh8nGkuhV8KhU6xN5a8EkxEQrbDMAWNBtaAdJCo=",// modules/rule/guide.html
@(kIdentityURL) : @"EQtrsRlCX2+rJN89+qyAT6JtfEnprTylInFU0tTPyLA=",// modules/identity/new.html @(kIdentityURL) : @"EQtrsRlCX2+rJN89+qyAT6JtfEnprTylInFU0tTPyLA=",// modules/identity/new.html
@(kGameBindAccountURL) : @"5s9YWzw5Lt6ro86UN4pUFETAyuCsIL3wl00gLK5rCek=",/// modules/game/bindAccount.html @(kGameBindAccountURL) : @"5s9YWzw5Lt6ro86UN4pUFETAyuCsIL3wl00gLK5rCek=",/// modules/game/bindAccount.html
@(kNurseryURL) : @"ZT1/YWK/T7gXs1rGDAYnbqG0OrzjhPKJfaebh80/1ro=",/// activity/cleanNet/index.html @(kNurseryURL) : @"ZT1/YWK/T7gXs1rGDAYnbqG0OrzjhPKJfaebh80/1ro=",/// activity/cleanNet/index.html
@(kRechargePrivacyURL) : @"boJayVmf9bj+vVXabUop2cc110U9LaDdAJhHfbinDzXLhlBtiv3h7J6Sivv3v1Lr",// modules/rule/rechargeAgreement.html @(kRechargePrivacyURL) : @"boJayVmf9bj+vVXabUop2cc110U9LaDdAJhHfbinDzXLhlBtiv3h7J6Sivv3v1Lr",// modules/rule/rechargeAgreement.html
@(kReportRoomURL) : @"TbIA4vIU9O5Z/RGJKEELZNe7SFzF9ig/Lvo6D1upv/g=",/// @(kReportRoomURL) : @"TbIA4vIU9O5Z/RGJKEELZNe7SFzF9ig/Lvo6D1upv/g=",///
@(kShareRoomURL) : @"k+TyUH/PriZr4MWmS/rq8BUYAu34MX3ZyAZsDLF0Eck=",/// modules/share_room/index.html @(kShareRoomURL) : @"k+TyUH/PriZr4MWmS/rq8BUYAu34MX3ZyAZsDLF0Eck=",/// modules/share_room/index.html
@(kCandyTreeURL) : @"uGP8LbEVEzTWPSSD357NnkHsXf118dGp9qeZO+8idY4=",/// activity/explore/index.html @(kCandyTreeURL) : @"uGP8LbEVEzTWPSSD357NnkHsXf118dGp9qeZO+8idY4=",/// activity/explore/index.html
@(kCandyTreeRecordURL) : @"V6XAvR9DZVl5TTczQ/JABDNKGpFSnSP/r6WLbu91uPKWKlwVlmlYvkETALeLk7Jz",/// modules/rank/index.html#/newWishingWellRecord @(kCandyTreeRecordURL) : @"V6XAvR9DZVl5TTczQ/JABDNKGpFSnSP/r6WLbu91uPKWKlwVlmlYvkETALeLk7Jz",/// modules/rank/index.html#/newWishingWellRecord
@(kRoomCharmRankURL) : @"a5qVnItWuLLh148cl8R/+VuVNfOSOd1nzVzfSFbAxUA=",// modules/charm/index.html @(kRoomCharmRankURL) : @"a5qVnItWuLLh148cl8R/+VuVNfOSOd1nzVzfSFbAxUA=",// modules/charm/index.html
@(kRoomRankURL) : @"DqPWO/9EdbpkGl4PoRVQy4+hE8o8EuE30v2vN/yeZFg=", // modules/room_rank/index.html @(kRoomRankURL) : @"DqPWO/9EdbpkGl4PoRVQy4+hE8o8EuE30v2vN/yeZFg=", // modules/room_rank/index.html
@(kRoomHourRankURL) : @"DqPWO/9EdbpkGl4PoRVQy7m9/mGnCSpoi673bWBnwBc=", // modules/room_rank/hourRank.html @(kRoomHourRankURL) : @"DqPWO/9EdbpkGl4PoRVQy7m9/mGnCSpoi673bWBnwBc=", // modules/room_rank/hourRank.html
@(kUserLevelURL) : @"NE+tamYZsEj7S9BySlTpcCyRDMdxsWDzm6KrZTs9Lbo=",// modules/level/index.html @(kUserLevelURL) : @"NE+tamYZsEj7S9BySlTpcCyRDMdxsWDzm6KrZTs9Lbo=",// modules/level/index.html
@(kHomeRankURL) : @"V6XAvR9DZVl5TTczQ/JABNoH8I7E1sQ4oZmqs01zOfc=", // modules/rank/index.html#/rank @(kHomeRankURL) : @"V6XAvR9DZVl5TTczQ/JABNoH8I7E1sQ4oZmqs01zOfc=", // modules/rank/index.html#/rank
@(kRoomDatingRule) : @"BbMeRujqQH/yCud2VyM4tZMYe8oHwrQCEcP50kTTxgQ=",// modules/rule/dating.html @(kRoomDatingRule) : @"BbMeRujqQH/yCud2VyM4tZMYe8oHwrQCEcP50kTTxgQ=",// modules/rule/dating.html
@(kNobleRuleURL) : @"4x4Blbka3DFMAyZGSVqxAp0jXvE4/JUx48YfowufzircU1vr/Du8GqrouZUzD9Uq", // modules/rule/introduction-patrician.html @(kNobleRuleURL) : @"4x4Blbka3DFMAyZGSVqxAp0jXvE4/JUx48YfowufzircU1vr/Du8GqrouZUzD9Uq", // VIP modules/rule/introduction-patrician.html
@(kUserRechargeAgrURL) : @"boJayVmf9bj+vVXabUop2cc110U9LaDdAJhHfbinDzXLhlBtiv3h7J6Sivv3v1Lr", /// @(kUserRechargeAgrURL) : @"boJayVmf9bj+vVXabUop2cc110U9LaDdAJhHfbinDzXLhlBtiv3h7J6Sivv3v1Lr", ///
@(kUserRegiServiceAgrURL): @"0sBhBaRqf7oBlYvNK4azCrVPTFjv9FYF0A2v9+qkSxg=",// modules/rule/protocol.html @(kUserRegiServiceAgrURL): @"0sBhBaRqf7oBlYvNK4azCrVPTFjv9FYF0A2v9+qkSxg=",// modules/rule/protocol.html
@(kLiveServiceAgrURL) : @"83qLuhoOlxXOw3gwkchLAnb0iz5PEjqOS5dKRRzIxVw=", /// modules/rule/live-protocol.html @(kLiveServiceAgrURL) : @"83qLuhoOlxXOw3gwkchLAnb0iz5PEjqOS5dKRRzIxVw=", /// modules/rule/live-protocol.html
@(kCommunitySpecURL) : @"oZs0ygpb9qtOkpZG1zcj1qS3fx0xzBArL1h358e1NM3hbbSU8qTOBmxkpJ03iq+K", /// modules/rule/community-norms.html @(kCommunitySpecURL) : @"oZs0ygpb9qtOkpZG1zcj1qS3fx0xzBArL1h358e1NM3hbbSU8qTOBmxkpJ03iq+K", /// modules/rule/community-norms.html
@(kAccountlogoutAgrURL) : @"8pzk0dLk9GPSIKjn894dHtmPvxfIJTkUYNP5qTE7GzYpYAG7LWwF1pK7NWb4E0D9", /// @(kAccountlogoutAgrURL) : @"8pzk0dLk9GPSIKjn894dHtmPvxfIJTkUYNP5qTE7GzYpYAG7LWwF1pK7NWb4E0D9", ///
@(kAccountlogoutURL) : @"8pzk0dLk9GPSIKjn894dHmMgQS2OHgRpZ6NNmxGMZ7E=", /// modules/rule/loginout.html @(kAccountlogoutURL) : @"8pzk0dLk9GPSIKjn894dHmMgQS2OHgRpZ6NNmxGMZ7E=", /// modules/rule/loginout.html
@(kAnchorFansOpenURL) : @"mLMTNiyvF2Tbv4qan6+ogPrhx2U0FdD+3WkY/LdNbduiPL2qYSUiF2VJ2Dfbgnpn", ///-v modules/fans_club/nameplate.html @(kAnchorFansOpenURL) : @"mLMTNiyvF2Tbv4qan6+ogPrhx2U0FdD+3WkY/LdNbduiPL2qYSUiF2VJ2Dfbgnpn", ///-v modules/fans_club/nameplate.html
@(kAnchorFansListURL) : @"mLMTNiyvF2Tbv4qan6+ogDXuGLEHnNEEiALV6JCC/gE=", ///- modules/fans_club/myfans.html @(kAnchorFansListURL) : @"mLMTNiyvF2Tbv4qan6+ogDXuGLEHnNEEiALV6JCC/gE=", ///- modules/fans_club/myfans.html
@(kAnchorFansRankURL) : @"mLMTNiyvF2Tbv4qan6+ogCO6lES2UPVnrnZbAxJMj9o+Oz0MAqy0RX8j1QuItbfT", ///- modules/fans_club/fans_rank.html @(kAnchorFansRankURL) : @"mLMTNiyvF2Tbv4qan6+ogCO6lES2UPVnrnZbAxJMj9o+Oz0MAqy0RX8j1QuItbfT", ///- modules/fans_club/fans_rank.html
@(kAnchorFansRuleURL) : @"mLMTNiyvF2Tbv4qan6+ogG32ymd/DYTOoOeZFye3U9A=", ///- modules/fans_club/rule.html @(kAnchorFansRuleURL) : @"mLMTNiyvF2Tbv4qan6+ogG32ymd/DYTOoOeZFye3U9A=", ///- modules/fans_club/rule.html
@(kNewWeekStarURL) : @"GmT6HOvcXNUSbxa4g7oNm8j+6DnTtsNc9nMk6SrEyCdP95p3Jwz84r/fjSNcBBRi", ///- modules/weekStar/newWeekStar.html @(kNewWeekStarURL) : @"GmT6HOvcXNUSbxa4g7oNm8j+6DnTtsNc9nMk6SrEyCdP95p3Jwz84r/fjSNcBBRi", ///- modules/weekStar/newWeekStar.html
@(kLicenseHourRankURL) : @"DqPWO/9EdbpkGl4PoRVQyyMfaOgNqIr7sGIOi+kLkijf1EAcL9tVSblMXjNuq+Qy",/// modules/room_rank/hourRankLicense.html @(kLicenseHourRankURL) : @"DqPWO/9EdbpkGl4PoRVQyyMfaOgNqIr7sGIOi+kLkijf1EAcL9tVSblMXjNuq+Qy",/// modules/room_rank/hourRankLicense.html
@(kLuckyGiftPlayRuleURL) : @"DcADpWwvzNDc5QYX9hmrJDFatpu+zp4ynUPdb+KeBx0+iFBaBI/MRU80MenYMHKQ",/// modules/rule/luckyGiftRule.html?giftID=%@ @(kLuckyGiftPlayRuleURL) : @"DcADpWwvzNDc5QYX9hmrJDFatpu+zp4ynUPdb+KeBx0+iFBaBI/MRU80MenYMHKQ",/// modules/rule/luckyGiftRule.html?giftID=%@
@(kSailingActivityURL) : @"ZrQv+cP5sXzlvQp0nvUa20JB5cyCS6X8LTGvUroUfxk=", /// activity/act-sail/more.html @(kSailingActivityURL) : @"ZrQv+cP5sXzlvQp0nvUa20JB5cyCS6X8LTGvUroUfxk=", /// activity/act-sail/more.html
@(kSailingPlayDescdURL) : @"ZrQv+cP5sXzlvQp0nvUa23RXydMeqE8YfwP1J1xHCv3PdHFTlEJiRJ1vhrmu25pu", /// activity/act-sail/play_explain.html @(kSailingPlayDescdURL) : @"ZrQv+cP5sXzlvQp0nvUa23RXydMeqE8YfwP1J1xHCv3PdHFTlEJiRJ1vhrmu25pu", /// activity/act-sail/play_explain.html
@(kSailingRecordURL) : @"ZrQv+cP5sXzlvQp0nvUa2w5kpdXwSP1aQbPEWUi/gPvrXEWTD9m43qlvhznGtWx1", /// activity/act-sail/win_record.html @(kSailingRecordURL) : @"ZrQv+cP5sXzlvQp0nvUa2w5kpdXwSP1aQbPEWUi/gPvrXEWTD9m43qlvhznGtWx1", /// activity/act-sail/win_record.html
@(kNetworkRenovateURL) : @"vMZOLHkGF9uAzm9Ii2dzmQVhtZPf5IUKeg8H7/5FGcWE3YbMNrK59iMSV91HEHz/",/// activity/activemodel/index.html?code=ZBGG @(kNetworkRenovateURL) : @"vMZOLHkGF9uAzm9Ii2dzmQVhtZPf5IUKeg8H7/5FGcWE3YbMNrK59iMSV91HEHz/",/// activity/activemodel/index.html?code=ZBGG
@(kMonentsShareURL) : @"s06Uv+UqjOdDhupnk0YpKKnSCSFCZssMEJxKZdf+s0Ge3zIFKv3knVVNr710Y5eF",/// modules/world/share-page/index.html @(kMonentsShareURL) : @"s06Uv+UqjOdDhupnk0YpKKnSCSFCZssMEJxKZdf+s0Ge3zIFKv3knVVNr710Y5eF",/// modules/world/share-page/index.html
@(kRedPacketRuleURL) : @"nRMNKGz9zmwOEcoRr/bGneWzsrl+qHbvUGgXJhFAfVGcldkazbiNrc/v2rR0HFw+",/// modules/rule/red-packet-rule.html @(kRedPacketRuleURL) : @"nRMNKGz9zmwOEcoRr/bGneWzsrl+qHbvUGgXJhFAfVGcldkazbiNrc/v2rR0HFw+",/// modules/rule/red-packet-rule.html
@(kXinZuoStarURL) : @"3l3NxeDKO2bNAESpzjZ76mvJa2D26Bgqy+nNusiuH1UHYM+bYk+MM/TNM4VRqk1K",/// activity/act-constellation/index.html @(kXinZuoStarURL) : @"3l3NxeDKO2bNAESpzjZ76mvJa2D26Bgqy+nNusiuH1UHYM+bYk+MM/TNM4VRqk1K",/// activity/act-constellation/index.html
@(kMineEarningsRecord) : @"0HJ5o+40NtYGeHo1KRoQE3VdLhFQnvGyqgph9CCLjyU53rS29T2nD7UEh3CpX2BG",/// @(kMineEarningsRecord) : @"0HJ5o+40NtYGeHo1KRoQE3VdLhFQnvGyqgph9CCLjyU53rS29T2nD7UEh3CpX2BG",///
}; };
NSString * url = [dic objectForKey:@(type)]; NSString * url = [dic objectForKey:@(type)];
NSString * webUrl = [AESUtils aesDecrypt:url]; NSString * webUrl = [AESUtils aesDecrypt:url];
return [NSString stringWithFormat:@"%@/%@",prefix, webUrl]; return [NSString stringWithFormat:@"%@/%@",prefix, webUrl];
} }
@end @end

View File

@@ -27,6 +27,21 @@ NS_ASSUME_NONNULL_BEGIN
-(void)thirdLoginByFBWithPresentingViewController:(UIViewController *)presentingViewController; -(void)thirdLoginByFBWithPresentingViewController:(UIViewController *)presentingViewController;
///第三方登录line登录 ///第三方登录line登录
-(void)thirdLoginByLine:(UIViewController *)presentingViewController; -(void)thirdLoginByLine:(UIViewController *)presentingViewController;
/// 获取手机的验证码
/// @param phone 手机号
/// @param type 类型
- (void)phoneSmsCode:(NSString *)phone type:(GetSmsType)type phoneAreaCode:(NSString *)phoneAreaCode;
/// 使用手机号和验证码登录
/// @param phone 手机号
/// @param code 验证码
- (void)loginWithPhone:(NSString *)phone code:(NSString *)code phoneAreaCode:(NSString *)phoneAreaCode;
/// 使用手机号和密码登录
/// @param phone 手机号
/// @param password 验证码
- (void)loginWithPhone:(NSString *)phone password:(NSString *)password;
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END

View File

@@ -20,7 +20,7 @@
///Model ///Model
#import "ThirdUserInfo.h" #import "ThirdUserInfo.h"
#import "AccountModel.h" #import "AccountModel.h"
#import "DESEncrypt.h"
#import <FBSDKCoreKit/FBSDKCoreKit.h> #import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h> #import <FBSDKLoginKit/FBSDKLoginKit.h>
#import "YuMi-swift.h" #import "YuMi-swift.h"
@@ -39,7 +39,7 @@
queue:[NSOperationQueue mainQueue] queue:[NSOperationQueue mainQueue]
usingBlock: usingBlock:
^(NSNotification *notification) { ^(NSNotification *notification) {
@strongify(self);
if ([FBSDKProfile currentProfile]) { if ([FBSDKProfile currentProfile]) {
// //
[FBSDKProfile loadCurrentProfileWithCompletion: [FBSDKProfile loadCurrentProfileWithCompletion:
@@ -147,7 +147,7 @@
AccountModel * model = [AccountModel modelWithDictionary:data.data]; AccountModel * model = [AccountModel modelWithDictionary:data.data];
if (model != nil) { if (model != nil) {
[[AccountInfoStorage instance] saveAccountInfo:model]; [[AccountInfoStorage instance] saveAccountInfo:model];
[[self getView] loginSuccess]; [[self getView] loginThirdPartSuccess];
[XPAdjustEvent loginEvent]; [XPAdjustEvent loginEvent];
[XNDJTDDLoadingTool hideOnlyView:kWindow]; [XNDJTDDLoadingTool hideOnlyView:kWindow];
[[NSUserDefaults standardUserDefaults]setValue:@(type) forKey:@"kLoginSuccessType"]; [[NSUserDefaults standardUserDefaults]setValue:@(type) forKey:@"kLoginSuccessType"];
@@ -247,7 +247,7 @@
AccountModel * model = [AccountModel modelWithDictionary:data.data]; AccountModel * model = [AccountModel modelWithDictionary:data.data];
if (model != nil) { if (model != nil) {
[[AccountInfoStorage instance] saveAccountInfo:model]; [[AccountInfoStorage instance] saveAccountInfo:model];
[[self getView] loginSuccess]; [[self getView] loginThirdPartSuccess];
[XPAdjustEvent loginEvent]; [XPAdjustEvent loginEvent];
[[NSUserDefaults standardUserDefaults]setValue:@(ThirdLoginType_Gmail) forKey:@"kLoginSuccessType"]; [[NSUserDefaults standardUserDefaults]setValue:@(ThirdLoginType_Gmail) forKey:@"kLoginSuccessType"];
[[NSUserDefaults standardUserDefaults]synchronize]; [[NSUserDefaults standardUserDefaults]synchronize];
@@ -259,6 +259,47 @@
} showLoading:YES] openid:openid unionid:unionid access_token:access_token type:[NSString stringWithFormat:@"%lu", (unsigned long)ThirdLoginType_Gmail]]; } showLoading:YES] openid:openid unionid:unionid access_token:access_token type:[NSString stringWithFormat:@"%lu", (unsigned long)ThirdLoginType_Gmail]];
} }
///
/// @param phone
/// @param type
- (void)phoneSmsCode:(NSString *)phone type:(GetSmsType)type phoneAreaCode:(NSString *)phoneAreaCode {
NSString * desPhone = [DESEncrypt encryptUseDES:phone key:KeyWithType(KeyType_PasswordEncode)];
[Api phoneSmsCode:[self createHttpCompletion:^(id _Nonnull data) {
[[self getView] phoneSmsCodeSuccess];
}] mobile:desPhone type:[NSString stringWithFormat:@"%lu", (unsigned long)type] phoneAreaCode:phoneAreaCode];
}
/// 使
/// @param phone
/// @param code
- (void)loginWithPhone:(NSString *)phone code:(NSString *)code phoneAreaCode:(NSString *)phoneAreaCode{
NSString * desPhone = [DESEncrypt encryptUseDES:phone key:KeyWithType(KeyType_PasswordEncode)];
[Api loginWithCode:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
AccountModel * accountModel = [AccountModel modelWithDictionary:data.data];
if (accountModel && accountModel.access_token.length > 0) {
[[AccountInfoStorage instance] saveAccountInfo:accountModel];
}
[[self getView] loginWithPhoenSuccess];
} fail:^(NSInteger code, NSString * _Nullable msg) {
[[self getView] loginFailWithMsg:msg];
} errorToast:YES] phone:desPhone code:code client_secret:@"uyzjdhds" version:@"1" client_id:@"erban-client" grant_type:@"password" phoneAreaCode:phoneAreaCode];
}
/// 使
/// @param phone
/// @param password
- (void)loginWithPhone:(NSString *)phone password:(NSString *)password {
NSString * desPassword = [DESEncrypt encryptUseDES:password key:KeyWithType(KeyType_PasswordEncode)];
NSString * desPhone = [DESEncrypt encryptUseDES:phone key:KeyWithType(KeyType_PasswordEncode)];
[Api loginWithPassword:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
AccountModel * accountModel = [AccountModel modelWithDictionary:data.data];
if (accountModel && accountModel.access_token.length > 0) {
[[AccountInfoStorage instance] saveAccountInfo:accountModel];
}
[[self getView] loginSuccess];
} fail:^(NSInteger code, NSString * _Nullable msg) {
[[self getView] loginFailWithMsg:msg];
} errorToast:YES] phone:desPhone password:desPassword client_secret:@"uyzjdhds" version:@"1" client_id:@"erban-client" grant_type:@"password"];
}
@end @end

View File

@@ -19,15 +19,15 @@ NS_ASSUME_NONNULL_BEGIN
/// @param phone 手机号 /// @param phone 手机号
/// @param code 验证码 /// @param code 验证码
- (void)loginWithPhone:(NSString *)phone code:(NSString *)code phoneAreaCode:(NSString *)phoneAreaCode; - (void)loginWithPhone:(NSString *)phone code:(NSString *)code phoneAreaCode:(NSString *)phoneAreaCode;
/// 绑定手机号
/// @param phone 手机号
/// @param code 验证码
- (void)bindWithPhone:(NSString *)phone code:(NSString *)code phoneAreaCode:(NSString *)phoneAreaCode;
/// 使用手机号和密码登录 /// 使用手机号和密码登录
/// @param phone 手机号 /// @param phone 手机号
/// @param password 验证码 /// @param password 验证码
- (void)loginWithPhone:(NSString *)phone password:(NSString *)password; - (void)loginWithPhone:(NSString *)phone password:(NSString *)password;
/// 绑定手机号
/// @param phone 手机号
/// @param code 验证码
- (void)bindWithPhone:(NSString *)phone code:(NSString *)code phoneAreaCode:(NSString *)phoneAreaCode;
///绑定授权码 ///绑定授权码
-(void)bindAuthorizationCodeWithAuthCode:(NSString *)authCode; -(void)bindAuthorizationCodeWithAuthCode:(NSString *)authCode;
@end @end

View File

@@ -11,7 +11,14 @@ NS_ASSUME_NONNULL_BEGIN
@protocol LoginProtocol <NSObject> @protocol LoginProtocol <NSObject>
- (void)loginThirdPartSuccess;
- (void)loginSuccess; - (void)loginSuccess;
///请求手机号的验证码成功
- (void)phoneSmsCodeSuccess;
///手机号登录成功
- (void)loginWithPhoenSuccess;
///登录失败
- (void)loginFailWithMsg:(NSString *)msg;
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END

View File

@@ -42,7 +42,10 @@
- (LoginForgetPasswordPresent *)createPresenter { - (LoginForgetPasswordPresent *)createPresenter {
return [[LoginForgetPasswordPresent alloc] init]; return [[LoginForgetPasswordPresent alloc] init];
} }
- (void)viewWillDisappear:(BOOL)animated{
[super viewWillDisappear:animated];
[self.codeInputView cancelTimer];
}
- (void)viewDidLoad { - (void)viewDidLoad {
NSString *code = [NSString getCountryCode]; NSString *code = [NSString getCountryCode];
self.pi_phoneAreaCode = [code stringByReplacingOccurrencesOfString:@"+" withString:@""]; self.pi_phoneAreaCode = [code stringByReplacingOccurrencesOfString:@"+" withString:@""];

View File

@@ -31,7 +31,7 @@ NS_ASSUME_NONNULL_BEGIN
//开启倒计时 //开启倒计时
- (void)fireTimer; - (void)fireTimer;
-(void)cancelTimer;
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END

View File

@@ -23,7 +23,7 @@
- (instancetype)initWithFrame:(CGRect)frame { - (instancetype)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame]; self = [super initWithFrame:frame];
if (self) { if (self) {
self.backgroundColor = UIColorFromRGB(0xF5F6FA); self.backgroundColor = UIColorFromRGB(0xF3F5FA);
self.layer.cornerRadius = kGetScaleWidth(52)/2; self.layer.cornerRadius = kGetScaleWidth(52)/2;
self.layer.masksToBounds = YES; self.layer.masksToBounds = YES;
@@ -158,6 +158,7 @@
[self.smsCodeBtn setTitle:YMLocalizedString(@"XPLoginInputView1") forState:UIControlStateNormal]; [self.smsCodeBtn setTitle:YMLocalizedString(@"XPLoginInputView1") forState:UIControlStateNormal];
self.smsCodeBtn.userInteractionEnabled = YES; self.smsCodeBtn.userInteractionEnabled = YES;
dispatch_cancel(self.timer); dispatch_cancel(self.timer);
self.timer = nil;
}else{ }else{
[self.smsCodeBtn setTitle:[NSString stringWithFormat:@"%lds",count] forState:UIControlStateNormal]; [self.smsCodeBtn setTitle:[NSString stringWithFormat:@"%lds",count] forState:UIControlStateNormal];
self.smsCodeBtn.userInteractionEnabled = NO; self.smsCodeBtn.userInteractionEnabled = NO;
@@ -166,5 +167,10 @@
dispatch_resume(timer); dispatch_resume(timer);
self.timer = timer; self.timer = timer;
} }
-(void)cancelTimer{
if (self.timer != nil){
dispatch_cancel(self.timer);
self.timer = nil;
}
}
@end @end

View File

@@ -27,17 +27,19 @@
#import "LoginPresenter.h" #import "LoginPresenter.h"
#import "LoginProtocol.h" #import "LoginProtocol.h"
#import "PILoginManager.h" #import "PILoginManager.h"
#import "XPLoginInputView.h"
#import "XPLoginAraeViewController.h"
#import "XPForgetPwdViewController.h"
UIKIT_EXTERN NSString * const kYouMiNumberCountKey; UIKIT_EXTERN NSString * const kYouMiNumberCountKey;
NSString * const HadAgreePrivacy = @"HadAgreePrivacy"; NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
@interface XPLoginViewController ()<LoginProtocol> @interface XPLoginViewController ()<LoginProtocol,XPLoginInputViewDelegate,XPLoginAraeViewControllerDelegate>
/// ///
@property(nonatomic,strong) UIImageView *bgImageView; @property(nonatomic,strong) UIImageView *bgImageView;
///logo ///logo
@property(nonatomic,strong) UIImageView *logoView; @property(nonatomic,strong) UIImageView *logoView;
///
@property (nonatomic, strong) UIButton *quickLoginBtn;
@property(nonatomic,strong) UIImageView *quickArrowView;
/// ///
@property (nonatomic, strong) UIButton *agreeBtn; @property (nonatomic, strong) UIButton *agreeBtn;
/// ///
@@ -64,6 +66,34 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
/// ///
@property(nonatomic,strong) UILabel *nextLabel; @property(nonatomic,strong) UILabel *nextLabel;
///
@property(nonatomic,strong) UIImageView *chooseTypeView;
///
@property(nonatomic,strong) UIButton *chooseAccountBtn;
///
@property(nonatomic,strong) UIButton *chooseSMSBtn;
///
@property (nonatomic, strong) XPLoginInputView *phoneInputView;
///
@property (nonatomic, strong) XPLoginInputView *codeInputView;
/////
@property (nonatomic, strong) XPLoginInputView *accountView;
///
@property (nonatomic, strong) XPLoginInputView *accountPwdView;
///
@property (nonatomic, strong) UIButton *forgetBtn;
///
@property (nonatomic, strong) UIButton *loginBtn;
///
@property (nonatomic,copy) NSString *pi_phoneAreaCode;
///,01.
@property(nonatomic,assign) int selectType;
@end @end
@implementation XPLoginViewController @implementation XPLoginViewController
@@ -78,16 +108,29 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
- (void)viewDidLoad { - (void)viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
[self createUI]; [self createUI];
[self racBind];
self.selectType = 0;
NSString *code = [NSString getCountryCode];
self.pi_phoneAreaCode = [code stringByReplacingOccurrencesOfString:@"+" withString:@""];
[[NSNotificationCenter defaultCenter]postNotificationName:@"kInLoginVC" object:nil]; [[NSNotificationCenter defaultCenter]postNotificationName:@"kInLoginVC" object:nil];
} }
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
- (void)viewWillAppear:(BOOL)animated { [self.view endEditing:YES];
[super viewWillAppear:animated];
} }
- (void)racBind {
@weakify(self);
RAC(self.loginBtn, enabled) = [[RACSignal combineLatest:@[self.phoneInputView.inputTextField.rac_textSignal, self.codeInputView.inputTextField.rac_textSignal,self.accountView.inputTextField.rac_textSignal,self.accountPwdView.inputTextField.rac_textSignal] reduce:^id _Nonnull(NSString *phone, NSString* smsCode,NSString *account,NSString *accountPwd){
@strongify(self);
if(self.selectType == 0){
return @(account.length > 0 && accountPwd.length >= 6);
}
return @((phone.length > 0) && smsCode.length > 0);
}] takeUntil:self.rac_willDeallocSignal];
}
- (void)createUI { - (void)createUI {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
@@ -96,9 +139,22 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
self.view.backgroundColor = [UIColor whiteColor]; self.view.backgroundColor = [UIColor whiteColor];
[self.view addSubview:self.bgImageView]; [self.view addSubview:self.bgImageView];
[self.view addSubview:self.logoView]; [self.view addSubview:self.logoView];
[self.view addSubview:self.chooseAccountBtn];
[self.view addSubview:self.chooseSMSBtn];
[self.view addSubview:self.chooseTypeView];
[self.view addSubview:self.accountView];
[self.view addSubview:self.accountPwdView];
[self.view addSubview:self.phoneInputView];
[self.view addSubview:self.codeInputView];
[self.view addSubview:self.forgetBtn];
[self.view addSubview:self.loginBtn];
[self.view addSubview:self.stackView]; [self.view addSubview:self.stackView];
[self.view addSubview:self.quickLoginBtn];
[self.view addSubview:self.quickArrowView];
[self.view addSubview:self.protocolLabel]; [self.view addSubview:self.protocolLabel];
[self.view addSubview:self.agreeBtn]; [self.view addSubview:self.agreeBtn];
@@ -108,13 +164,7 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
if (@available(iOS 13.0, *)) { if (@available(iOS 13.0, *)) {
#ifdef DEBUG #ifdef DEBUG
[self.stackView addArrangedSubview:self.appleButton]; [self.stackView addArrangedSubview:self.appleButton];
#else #else
if(isEnterprise == YES){ if(isEnterprise == YES){
[self.stackView addArrangedSubview:self.appleButton]; [self.stackView addArrangedSubview:self.appleButton];
@@ -129,32 +179,82 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
[self.bgImageView mas_makeConstraints:^(MASConstraintMaker *make) { [self.bgImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.top.equalTo(self.view); make.left.right.top.equalTo(self.view);
make.height.mas_equalTo(kGetScaleWidth(355)); make.height.mas_equalTo(kGetScaleWidth(91));
}]; }];
[self.logoView mas_makeConstraints:^(MASConstraintMaker *make) { [self.logoView mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.mas_offset(kGetScaleWidth(130)); make.width.mas_offset(kGetScaleWidth(162));
make.height.mas_equalTo(kGetScaleWidth(148)); make.height.mas_equalTo(kGetScaleWidth(32));
make.centerX.equalTo(self.view); make.centerX.equalTo(self.view);
make.top.mas_equalTo(kGetScaleWidth(100)); make.top.equalTo(self.bgImageView.mas_bottom).mas_offset(kGetScaleWidth(10));
}]; }];
CGFloat width = KScreenWidth/2;
[self.chooseAccountBtn mas_makeConstraints:^(MASConstraintMaker *make) {
make.leading.mas_equalTo(0);
make.height.mas_equalTo(kGetScaleWidth(22));
make.width.mas_equalTo(width);
make.top.equalTo(self.logoView.mas_bottom).mas_offset(kGetScaleWidth(31));
}];
[self.chooseSMSBtn mas_makeConstraints:^(MASConstraintMaker *make) {
make.height.mas_equalTo(kGetScaleWidth(22));
make.width.mas_equalTo(width);
make.top.equalTo(self.logoView.mas_bottom).mas_offset(kGetScaleWidth(31));
make.trailing.mas_equalTo(0);
}];
[self.chooseTypeView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.logoView.mas_bottom).mas_offset(kGetScaleWidth(48));
make.width.height.mas_equalTo(kGetScaleWidth(24));
make.leading.mas_equalTo(KScreenWidth/4 - kGetScaleWidth(12));
}];
[self.accountView mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerX.equalTo(self.view);
make.width.mas_equalTo(kGetScaleWidth(303));
make.top.mas_equalTo(self.chooseTypeView.mas_bottom).offset(kGetScaleWidth(13));
make.height.mas_equalTo(kGetScaleWidth(52));
}];
[self.accountPwdView mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerX.equalTo(self.view);
make.width.mas_equalTo(kGetScaleWidth(303));
make.top.mas_equalTo(self.phoneInputView.mas_bottom).offset(kGetScaleWidth(20));
make.height.mas_equalTo(kGetScaleWidth(52));
}];
[self.phoneInputView mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.accountView);
}];
[self.codeInputView mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.accountPwdView);
}];
[self.forgetBtn mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.codeInputView.mas_bottom).mas_offset(kGetScaleWidth(8));
make.trailing.mas_equalTo(-kGetScaleWidth(52));
make.height.mas_equalTo(kGetScaleWidth(17));
}];
[self.loginBtn mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.mas_equalTo(kGetScaleWidth(303));
make.centerX.equalTo(self.view);
make.top.equalTo(self.forgetBtn.mas_bottom).mas_offset(kGetScaleWidth(23));
make.height.mas_equalTo(kGetScaleWidth(48));
}];
[self.stackView mas_makeConstraints:^(MASConstraintMaker *make) { [self.stackView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(self.self.logoView.mas_bottom).offset(kGetScaleWidth(60)); make.top.mas_equalTo(self.loginBtn.mas_bottom).offset(kGetScaleWidth(27));
make.centerX.mas_equalTo(self.view); make.centerX.mas_equalTo(self.view);
}]; }];
[self.quickLoginBtn mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerX.equalTo(self.view);
make.height.mas_equalTo(kGetScaleWidth(22));
make.top.equalTo(self.stackView.mas_bottom).mas_offset(kGetScaleWidth(18));
}];
[self.quickArrowView mas_makeConstraints:^(MASConstraintMaker *make) {
make.leading.equalTo(self.quickLoginBtn.mas_trailing).mas_offset(kGetScaleWidth(2));
make.centerY.equalTo(self.quickLoginBtn);
make.width.height.mas_equalTo(kGetScaleWidth(10));
}];
[self.protocolLabel mas_makeConstraints:^(MASConstraintMaker *make) { [self.protocolLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerX.mas_equalTo(self.view).offset(10); make.centerX.mas_equalTo(self.view).offset(10);
make.right.mas_lessThanOrEqualTo(-10); make.right.mas_lessThanOrEqualTo(-10);
@@ -180,15 +280,10 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
}]; }];
if (@available(iOS 13.0, *)) { if (@available(iOS 13.0, *)) {
#ifdef DEBUG #ifdef DEBUG
[self.appleButton mas_makeConstraints:^(MASConstraintMaker *make) { [self.appleButton mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.mas_equalTo(kGetScaleWidth(295)); make.width.mas_equalTo(kGetScaleWidth(295));
make.height.mas_equalTo(kGetScaleWidth(46)); make.height.mas_equalTo(kGetScaleWidth(46));
}]; }];
#else #else
if(isEnterprise == YES){ if(isEnterprise == YES){
[self.appleButton mas_makeConstraints:^(MASConstraintMaker *make) { [self.appleButton mas_makeConstraints:^(MASConstraintMaker *make) {
@@ -208,6 +303,8 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
make.width.mas_equalTo(kGetScaleWidth(295)); make.width.mas_equalTo(kGetScaleWidth(295));
make.height.mas_equalTo(kGetScaleWidth(46)); make.height.mas_equalTo(kGetScaleWidth(46));
}]; }];
self.fbButtonView.hidden = YES;
self.lineButtonView.hidden = YES;
[self.lineButtonView mas_makeConstraints:^(MASConstraintMaker *make) { [self.lineButtonView mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.mas_equalTo(kGetScaleWidth(295)); make.width.mas_equalTo(kGetScaleWidth(295));
make.height.mas_equalTo(kGetScaleWidth(46)); make.height.mas_equalTo(kGetScaleWidth(46));
@@ -220,11 +317,12 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
typeButton = self.appleButton; typeButton = self.appleButton;
}else if([type intValue] == ThirdLoginType_Gmail){ }else if([type intValue] == ThirdLoginType_Gmail){
typeButton = self.googleButtonView; typeButton = self.googleButtonView;
}else if([type intValue] == ThirdLoginType_FB){
typeButton = self.fbButtonView;
}else if([type intValue] == ThirdLoginType_Line){
typeButton = self.lineButtonView;
} }
// else if([type intValue] == ThirdLoginType_FB){
// typeButton = self.fbButtonView;
// }else if([type intValue] == ThirdLoginType_Line){
// typeButton = self.lineButtonView;
// }
if(typeButton == nil){ if(typeButton == nil){
return; return;
} }
@@ -324,32 +422,113 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
}]; }];
} }
} }
///
- (void)loginBtnClicked {
[XNDJTDDLoadingTool showOnlyView:self.view];
if(self.selectType == 0){
NSString *phone = self.accountView.inputTextField.text;
NSString *password = self.accountPwdView.inputTextField.text;
[self.presenter loginWithPhone:phone password:password];
return;
}
NSString *phone = self.phoneInputView.inputTextField.text;
NSString *smsCode = self.codeInputView.inputTextField.text;
NSString * phoneStr = [NSString stringWithFormat:@"%@%@",self.pi_phoneAreaCode, phone];
[self.presenter loginWithPhone:phoneStr code:smsCode phoneAreaCode:self.pi_phoneAreaCode];
}
- (void)forgetBtnClicked {
XPForgetPwdViewController *forgetVC = [[XPForgetPwdViewController alloc] init];
[self.navigationController pushViewController:forgetVC animated:YES];
}
#pragma mark - LoginProtocol #pragma mark - LoginProtocol
- (void)loginSuccess { - (void)loginThirdPartSuccess {
[self.codeInputView cancelTimer];
[PILoginManager loginWithVC:self isLoginPhone:NO]; [PILoginManager loginWithVC:self isLoginPhone:NO];
[self showSuccessToast:YMLocalizedString(@"XPLoginViewController4")]; [self showSuccessToast:YMLocalizedString(@"XPLoginViewController4")];
} }
-(void)chooseAccountAction{
self.selectType = 0;
}
-(void)chooseSMSAction{
self.selectType = 1;
}
-(void)setSelectType:(int)selectType{
_selectType = selectType;
_chooseAccountBtn.selected = _selectType == 0;
_chooseSMSBtn.selected = _selectType != 0;
_forgetBtn.hidden = _selectType != 0;
_accountView.hidden = _selectType != 0;
_accountPwdView.hidden = _selectType != 0;
_phoneInputView.hidden = _selectType == 0;
_codeInputView.hidden = _selectType == 0;
[self.chooseTypeView.superview layoutIfNeeded];
CGFloat lead = _selectType == 0 ? KScreenWidth/4 - kGetScaleWidth(12) : KScreenWidth/4 * 3 - kGetScaleWidth(12);
[UIView animateWithDuration:0.1 animations:^{
[self.chooseTypeView mas_updateConstraints:^(MASConstraintMaker *make) {
make.leading.mas_equalTo(lead);
}];
[self.chooseTypeView.superview layoutIfNeeded];
}];
}
#pragma mark - XPLoginInputViewDelegate
- (void)smsCodeAction {
NSString *phone = self.phoneInputView.inputTextField.text;
if (phone.length == 0 ) {
[self showErrorToast:YMLocalizedString(@"XPLoginPhoneViewController0")];
return;
}
[self.presenter phoneSmsCode:[NSString stringWithFormat:@"%@%@",self.pi_phoneAreaCode,phone] type:GetSmsType_Regist phoneAreaCode:self.pi_phoneAreaCode];
}
- (void)areaListAction {
XPLoginAraeViewController *codeVC = [XPLoginAraeViewController new];
codeVC.delegate = self;
[self.navigationController pushViewController:codeVC animated:YES];
}
#pragma mark - XPLoginAraeViewControllerDelegate
- (void)chooseAreaCodeSuccess:(NSString *)code {
if (code.length > 0) {
self.pi_phoneAreaCode = code;
[self.phoneInputView.areaCodeBtn setTitle:[NSString stringWithFormat:@"+%@", code] forState:UIControlStateNormal];
}
}
#pragma mark - LoginVerifCodeProtocol
- (void)loginWithPhoenSuccess{
[XNDJTDDLoadingTool hideOnlyView:self.view];
[[NSUserDefaults standardUserDefaults]setValue:@(ThirdLoginType_Phone) forKey:@"kLoginSuccessType"];
[[NSUserDefaults standardUserDefaults]synchronize];
[self showSuccessToast:YMLocalizedString(@"XPLoginPhoneViewController1")];
[PILoginManager loginWithVC:self isLoginPhone:YES];
}
- (void)loginSuccess {
[self.codeInputView cancelTimer];
[XNDJTDDLoadingTool hideOnlyView:self.view];
[[NSUserDefaults standardUserDefaults]removeObjectForKey:@"kLoginSuccessType"];
[self showSuccessToast:YMLocalizedString(@"XPLoginPhoneViewController1")];
[PILoginManager loginWithVC:self isLoginPhone:NO];
}
- (void)loginFailWithMsg:(NSString *)msg{
[self showErrorToast:msg];
[XNDJTDDLoadingTool hideOnlyView:self.view];
}
- (void)phoneSmsCodeSuccess {
[self showSuccessToast:YMLocalizedString(@"XPLoginPhoneViewController2")];
[self.codeInputView fireTimer];
}
#pragma mark - #pragma mark -
- (UIButton *)quickLoginBtn {
if (!_quickLoginBtn) {
_quickLoginBtn = [UIButton buttonWithType:UIButtonTypeCustom];
[_quickLoginBtn setTitle:YMLocalizedString(@"XPLoginViewController16") forState:UIControlStateNormal];
_quickLoginBtn.titleLabel.font = kFontRegular(14);
[_quickLoginBtn setTitleColor:UIColorFromRGB(0x1F1B4F) forState:UIControlStateNormal];
[_quickLoginBtn addTarget:self action:@selector(quickLoginBtnClicked) forControlEvents:UIControlEventTouchUpInside];
}
return _quickLoginBtn;
}
- (UIImageView *)quickArrowView{
if(!_quickArrowView){
_quickArrowView = [UIImageView new];
_quickArrowView.image = kImage(@"login_phone_white");
}
return _quickArrowView;
}
- (UIButton *)agreeBtn { - (UIButton *)agreeBtn {
if(!_agreeBtn) { if(!_agreeBtn) {
_agreeBtn = [UIButton buttonWithType:UIButtonTypeCustom]; _agreeBtn = [UIButton buttonWithType:UIButtonTypeCustom];
@@ -541,4 +720,130 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
} }
return _nextLabel; return _nextLabel;
} }
- (XPLoginInputView *)phoneInputView {
if (!_phoneInputView) {
_phoneInputView = [[XPLoginInputView alloc] init];
_phoneInputView.areaStackView.hidden = NO;
_phoneInputView.delegate = self;
NSMutableAttributedString *placeholder = [[NSMutableAttributedString alloc] initWithString:YMLocalizedString(@"XPLoginPhoneViewController5")];
[placeholder addAttribute:NSForegroundColorAttributeName value:UIColorFromRGB(0xB3B3C3) range:NSMakeRange(0, placeholder.length)];
_phoneInputView.inputTextField.attributedPlaceholder = placeholder;
_phoneInputView.inputTextField.keyboardType = UIKeyboardTypeNumberPad;
_phoneInputView.hidden = YES;
}
return _phoneInputView;
}
- (XPLoginInputView *)codeInputView {
if (!_codeInputView) {
_codeInputView = [[XPLoginInputView alloc] init];
_codeInputView.smsCodeBtn.hidden = NO;
NSMutableAttributedString *placeholder = [[NSMutableAttributedString alloc] initWithString:YMLocalizedString(@"XPLoginPhoneViewController6")];
[placeholder addAttribute:NSForegroundColorAttributeName value:UIColorFromRGB(0xB3B3C3) range:NSMakeRange(0, placeholder.length)];
_codeInputView.inputTextField.attributedPlaceholder = placeholder;
_codeInputView.inputTextField.keyboardType = UIKeyboardTypeNumberPad;
_codeInputView.delegate = self;
_codeInputView.hidden = YES;
}
return _codeInputView;
}
- (UIButton *)loginBtn {
if (!_loginBtn) {
_loginBtn = [UIButton buttonWithType:UIButtonTypeCustom];
UIImage *nextImage = [UIImage gradientColorImageFromColors:@[[DJDKMIMOMColor confirmButtonGradientStartColor],[DJDKMIMOMColor confirmButtonGradientMiddleColor],[DJDKMIMOMColor confirmButtonGradientEndColor]] gradientType:GradientTypeLeftToRight imgSize:CGSizeMake(kGetScaleWidth(303), kGetScaleWidth(48))];
UIImage *disableImage = [UIImage gradientColorImageFromColors:@[UIColorFromRGB(0xD1F9FF),UIColorFromRGB(0xDEE4FF),UIColorFromRGB(0xEEDCFF)] gradientType:GradientTypeLeftToRight imgSize:CGSizeMake(kGetScaleWidth(303), kGetScaleWidth(48))];
[_loginBtn setImage:nextImage forState:UIControlStateNormal];
[_loginBtn setImage:disableImage forState:UIControlStateDisabled];
_loginBtn.layer.cornerRadius = kGetScaleWidth(48)/2;
_loginBtn.layer.masksToBounds = YES;
UILabel *titleView = [UILabel labelInitWithText:YMLocalizedString(@"XPLoginPhoneViewController8") font:kFontMedium(16) textColor:[UIColor whiteColor]];
titleView.textAlignment = NSTextAlignmentCenter;
[_loginBtn addSubview:titleView];
[titleView mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.loginBtn);
}];
[_loginBtn addTarget:self action:@selector(loginBtnClicked) forControlEvents:UIControlEventTouchUpInside];
}
return _loginBtn;
}
- (UIImageView *)chooseTypeView{
if(!_chooseTypeView){
_chooseTypeView = [UIImageView new];
_chooseTypeView.userInteractionEnabled = YES;
[_chooseTypeView setImage:kImage(@"ms_login_choose_phone_icon")];
}
return _chooseTypeView;
}
- (UIButton *)chooseAccountBtn{
if(!_chooseAccountBtn){
_chooseAccountBtn = [UIButton new];
[_chooseAccountBtn setTitle:YMLocalizedString(@"XPLoginPhoneViewController9" ) forState:UIControlStateNormal];
[_chooseAccountBtn setTitleColor:UIColorFromRGB(0x84868A) forState:UIControlStateNormal];
[_chooseAccountBtn setTitleColor:UIColorFromRGB(0x000000) forState:UIControlStateSelected];
_chooseAccountBtn.titleLabel.font = kFontMedium(16);
[_chooseAccountBtn setEnlargeEdgeWithTop:10 right:10 bottom:10 left:10];
_chooseAccountBtn.selected = YES;
[_chooseAccountBtn addTarget:self action:@selector(chooseAccountAction) forControlEvents:UIControlEventTouchUpInside];
}
return _chooseAccountBtn;
}
- (UIButton *)chooseSMSBtn{
if(!_chooseSMSBtn){
_chooseSMSBtn = [UIButton new];
[_chooseSMSBtn setTitle:YMLocalizedString(@"XPLoginPhoneViewController10") forState:UIControlStateNormal];
[_chooseSMSBtn setTitleColor:UIColorFromRGB(0x84868A) forState:UIControlStateNormal];
[_chooseSMSBtn setTitleColor:UIColorFromRGB(0x000000) forState:UIControlStateSelected];
_chooseSMSBtn.titleLabel.font = kFontMedium(16);
[_chooseSMSBtn setEnlargeEdgeWithTop:10 right:10 bottom:10 left:10];
[_chooseSMSBtn addTarget:self action:@selector(chooseSMSAction) forControlEvents:UIControlEventTouchUpInside];
}
return _chooseSMSBtn;
}
- (XPLoginInputView *)accountView {
if (!_accountView) {
_accountView = [[XPLoginInputView alloc] init];
_accountView.areaStackView.hidden = YES;
NSMutableAttributedString *placeholder = [[NSMutableAttributedString alloc] initWithString:YMLocalizedString(@"XPLoginPwdViewController6")];
[placeholder addAttribute:NSForegroundColorAttributeName value:UIColorFromRGB(0xB4B7BD) range:NSMakeRange(0, placeholder.length)];
_accountView.inputTextField.attributedPlaceholder = placeholder;
_accountView.inputTextField.keyboardType = UIKeyboardTypeNumberPad;
}
return _accountView;
}
- (XPLoginInputView *)accountPwdView {
if (!_accountPwdView) {
_accountPwdView = [[XPLoginInputView alloc] init];
NSMutableAttributedString *placeholder = [[NSMutableAttributedString alloc] initWithString:YMLocalizedString(@"XPLoginPwdViewController3")];
[placeholder addAttribute:NSForegroundColorAttributeName value:UIColorFromRGB(0xB4B7BD) range:NSMakeRange(0, placeholder.length)];
_accountPwdView.inputTextField.attributedPlaceholder = placeholder;
_accountPwdView.inputTextField.keyboardType = UIKeyboardTypeAlphabet;
_accountPwdView.inputTextField.secureTextEntry = YES;
}
return _accountPwdView;
}
- (UIButton *)forgetBtn {
if (!_forgetBtn) {
_forgetBtn = [UIButton buttonWithType:UIButtonTypeCustom];
[_forgetBtn setTitle:YMLocalizedString(@"XPRoomRedPacketPwdView1") forState:UIControlStateNormal];
[_forgetBtn setTitleColor:UIColorFromRGB(0xB4B7BD) forState:UIControlStateNormal];
_forgetBtn.titleLabel.font = kFontRegular(12);
[_forgetBtn addTarget:self action:@selector(forgetBtnClicked) forControlEvents:UIControlEventTouchUpInside];
}
return _forgetBtn;
}
@end @end

View File

@@ -78,7 +78,7 @@ typedef NS_ENUM(NSUInteger, CustomMessageType) {
CustomMessageType_Room_Sailing = 81, CustomMessageType_Room_Sailing = 81,
///跨房PK ///跨房PK
CustomMessageType_Across_Room_PK = 83, CustomMessageType_Across_Room_PK = 83,
///贵族VIP ///VIPVIP
CustomMessageType_Noble_VIP = 85, CustomMessageType_Noble_VIP = 85,
///个播房观众点击空坑位,房主收到请求上麦提示 ///个播房观众点击空坑位,房主收到请求上麦提示
CustomMessageType_AnchorRoom_AudienceUpMic = 86, CustomMessageType_AnchorRoom_AudienceUpMic = 86,
@@ -492,19 +492,19 @@ typedef NS_ENUM(NSUInteger, CustomMessageSubAcrossRoomPK) {
///first = CustomMessageType_Noble_VIP ///first = CustomMessageType_Noble_VIP
typedef NS_ENUM(NSUInteger, CustomMessageSubNobleVIP) { typedef NS_ENUM(NSUInteger, CustomMessageSubNobleVIP) {
/// 开通贵族房内消息(公屏显示) /// 开通VIP房内消息(公屏显示)
Custom_Message_Sub_Room_Open_Noble_VIP = 851, Custom_Message_Sub_Room_Open_Noble_VIP = 851,
/// 开通贵族成功通知消息 /// 开通VIP成功通知消息
Custom_Message_Sub_Open_Noble_Success = 852, Custom_Message_Sub_Open_Noble_Success = 852,
/// 贵族升级房内消息(公屏显示) /// VIP升级房内消息(公屏显示)
Custom_Message_Sub_Room_Noble_LevelUp = 853, Custom_Message_Sub_Room_Noble_LevelUp = 853,
/// 贵族升级用户通知消息(弹窗) /// VIP升级用户通知消息(弹窗)
Custom_Message_Sub_Noble_LevelUp_User = 854, Custom_Message_Sub_Noble_LevelUp_User = 854,
/// 贵族升级全服飘屏通知消息 /// VIP升级全服飘屏通知消息
Custom_Message_Sub_Room_Noble_LevelUp_Suspend = 855, Custom_Message_Sub_Room_Noble_LevelUp_Suspend = 855,
/// 贵族升级全服房间公屏通知消息 /// VIP升级全服房间公屏通知消息
Custom_Message_Sub_AllRoom_Noble_LevelUp_Suspend = 856, Custom_Message_Sub_AllRoom_Noble_LevelUp_Suspend = 856,
/// 贵族小喇叭房间消息 /// VIP小喇叭房间消息
Custom_Message_Sub_Room_Trumpet = 857, Custom_Message_Sub_Room_Trumpet = 857,
}; };

View File

@@ -28,11 +28,11 @@ typedef NS_ENUM(NSInteger, SecretaryRouterType) {
SecretaryRouterType_Nameplate = 9, SecretaryRouterType_Nameplate = 9,
///设置密码 ///设置密码
SecretaryRouterType_Set_Password = 53, SecretaryRouterType_Set_Password = 53,
///贵族中心 ///VIP中心
SecretaryRouterType_Nobel_Center = 54, SecretaryRouterType_Nobel_Center = 54,
///资料卡装扮 ///资料卡装扮
SecretaryRouterType_User_Card = 55, SecretaryRouterType_User_Card = 55,
///贵族气泡 ///VIP气泡
SecretaryRouterType_Nobel_Bubble = 56, SecretaryRouterType_Nobel_Bubble = 56,
///装扮商城 ///装扮商城
SecretaryRouterType_Dressup_Shop = 73, SecretaryRouterType_Dressup_Shop = 73,

View File

@@ -75,7 +75,7 @@
@property (nonatomic,strong) UIView *userView; @property (nonatomic,strong) UIView *userView;
/// ///
@property (nonatomic,strong) NetImageView * avatarImageView; @property (nonatomic,strong) NetImageView * avatarImageView;
///icon ///VIPicon
@property (nonatomic,strong) NetImageView *nobleImageView; @property (nonatomic,strong) NetImageView *nobleImageView;
/// ///
@property (nonatomic,strong) YYAnimatedImageView *headWearImageView; @property (nonatomic,strong) YYAnimatedImageView *headWearImageView;

View File

@@ -448,11 +448,11 @@
[self.riskAlertView mas_makeConstraints:^(MASConstraintMaker *make) { [self.riskAlertView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.mas_equalTo(self.view); make.left.right.mas_equalTo(self.view);
make.top.mas_equalTo(self.sessionNavView.mas_bottom); make.top.mas_equalTo(self.sessionNavView.mas_bottom);
make.height.mas_equalTo(20); make.height.mas_equalTo(30);
}]; }];
} }
[self.sessionTableView mas_updateConstraints:^(MASConstraintMaker *make) { [self.sessionTableView mas_updateConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(self.sessionNavView.mas_bottom).mas_offset(20); make.top.mas_equalTo(self.sessionNavView.mas_bottom).mas_offset(30);
}]; }];
} else { } else {
[self.sessionTableView mas_updateConstraints:^(MASConstraintMaker *make) { [self.sessionTableView mas_updateConstraints:^(MASConstraintMaker *make) {
@@ -467,11 +467,11 @@
[self.riskAlertView mas_makeConstraints:^(MASConstraintMaker *make) { [self.riskAlertView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.mas_equalTo(self.view); make.left.right.mas_equalTo(self.view);
make.top.mas_equalTo(self.sessionNavView.mas_bottom); make.top.mas_equalTo(self.sessionNavView.mas_bottom);
make.height.mas_equalTo(20); make.height.mas_equalTo(30);
}]; }];
} }
[self.sessionTableView mas_updateConstraints:^(MASConstraintMaker *make) { [self.sessionTableView mas_updateConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(self.sessionNavView.mas_bottom).mas_offset(20); make.top.mas_equalTo(self.sessionNavView.mas_bottom).mas_offset(30);
}]; }];
} else { } else {
[self.sessionTableView mas_updateConstraints:^(MASConstraintMaker *make) { [self.sessionTableView mas_updateConstraints:^(MASConstraintMaker *make) {

View File

@@ -40,7 +40,8 @@
- (void)initSubViewConstraints { - (void)initSubViewConstraints {
[self.warnTextLabel mas_makeConstraints:^(MASConstraintMaker *make) { [self.warnTextLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerX.mas_equalTo(self.mas_centerX); make.leading.equalTo(self).inset(kGetScaleWidth(5));
make.trailing.mas_equalTo(-kGetScaleWidth(20));
make.centerY.mas_equalTo(self.mas_centerY); make.centerY.mas_equalTo(self.mas_centerY);
}]; }];
[self.closeButton mas_makeConstraints:^(MASConstraintMaker *make) { [self.closeButton mas_makeConstraints:^(MASConstraintMaker *make) {
@@ -71,6 +72,8 @@
_warnTextLabel.text = YMLocalizedString(@"SessionRiskView0"); _warnTextLabel.text = YMLocalizedString(@"SessionRiskView0");
_warnTextLabel.textColor = UIColorFromRGB(0xFF5858); _warnTextLabel.textColor = UIColorFromRGB(0xFF5858);
_warnTextLabel.font = [UIFont systemFontOfSize:12.f]; _warnTextLabel.font = [UIFont systemFontOfSize:12.f];
_warnTextLabel.numberOfLines = 2;
_warnTextLabel.textAlignment = NSTextAlignmentCenter;
} }
return _warnTextLabel; return _warnTextLabel;
} }

View File

@@ -34,7 +34,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic,assign) BOOL valid; @property (nonatomic,assign) BOOL valid;
///当前用户所在的房间 映射的字段 ///当前用户所在的房间 映射的字段
@property (nonatomic,copy) NSString *userInRoomUid; @property (nonatomic,copy) NSString *userInRoomUid;
///贵族信息 ///VIP信息
@property (nonatomic, strong) UserVipInfoVo *userVipInfoVO; @property (nonatomic, strong) UserVipInfoVo *userVipInfoVO;
///是否在房间中 本地字段 ///是否在房间中 本地字段
@property (nonatomic,assign) ContactUseingType useingType; @property (nonatomic,assign) ContactUseingType useingType;

View File

@@ -20,7 +20,7 @@ typedef NS_ENUM(NSInteger, XPMineItemType) {
XPMineItemType_Attention_List,///关注列表 XPMineItemType_Attention_List,///关注列表
XPMineItemType_Foot_Print, ///足迹、进房记录 XPMineItemType_Foot_Print, ///足迹、进房记录
XPMineItemType_Fans_List,///粉丝列表 XPMineItemType_Fans_List,///粉丝列表
XPMineItemType_Noble_Center,///贵族中心 XPMineItemType_Noble_Center,///VIP中心
XPMineItemType_Skill_Card, ///技能卡 XPMineItemType_Skill_Card, ///技能卡
XPMineItemType_My_Room = 64, ///我的房间 XPMineItemType_My_Room = 64, ///我的房间
XPMineItemType_Collect_Room = 65, ///收藏房间 XPMineItemType_Collect_Room = 65, ///收藏房间

View File

@@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN
/// 获取家族详细的信息 /// 获取家族详细的信息
- (void)getClanDetailInfo; - (void)getClanDetailInfo;
///获取贵族信息 ///获取VIP信息
- (void)getNobleInfo; - (void)getNobleInfo;
///获取个人功能列表 ///获取个人功能列表
- (void)getPersonItemList ; - (void)getPersonItemList ;

View File

@@ -89,7 +89,7 @@
[[self getView] onGetMineFuntionItemFail]; [[self getView] onGetMineFuntionItemFail];
}] uid:uid]; }] uid:uid];
} }
/// ///VIP
- (void)getNobleInfo { - (void)getNobleInfo {
[Api nobleCenterLevelList:[self createHttpCompletion:^(BaseModel * _Nonnull data) { [Api nobleCenterLevelList:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
NobleCenterModel *model = [NobleCenterModel modelWithDictionary:data.data]; NobleCenterModel *model = [NobleCenterModel modelWithDictionary:data.data];

View File

@@ -17,9 +17,9 @@ NS_ASSUME_NONNULL_BEGIN
- (void)getUserWalletInfo:(WalletInfoModel *)balanceInfo; - (void)getUserWalletInfo:(WalletInfoModel *)balanceInfo;
///获取账户余额失败 ///获取账户余额失败
- (void)getUserWalletInfoFail; - (void)getUserWalletInfoFail;
///获取贵族信息成功 ///获取VIP信息成功
- (void)getNobleCenterInfoSuccess:(NobleCenterModel *)model; - (void)getNobleCenterInfoSuccess:(NobleCenterModel *)model;
///获取贵族信息失败 ///获取VIP信息失败
- (void)getNobleCenterInfoFail; - (void)getNobleCenterInfoFail;
///获取家族信息成功 ///获取家族信息成功
- (void)onGetClanDetailInfoSuccess:(ClanDetailInfoModel *)clanInfo ; - (void)onGetClanDetailInfoSuccess:(ClanDetailInfoModel *)clanInfo ;

View File

@@ -27,7 +27,7 @@
@property (nonatomic,strong) NetImageView *experImageView; @property (nonatomic,strong) NetImageView *experImageView;
/// ///
@property (nonatomic,strong) NetImageView *charmImageView; @property (nonatomic,strong) NetImageView *charmImageView;
/// ///VIP
@property (nonatomic,strong) NetImageView *nobleImageView; @property (nonatomic,strong) NetImageView *nobleImageView;
/// ///
@property (nonatomic,strong) UILabel *signLabel; @property (nonatomic,strong) UILabel *signLabel;

View File

@@ -28,7 +28,7 @@
@property (nonatomic,strong) NetImageView *experImageView; @property (nonatomic,strong) NetImageView *experImageView;
/// ///
@property (nonatomic,strong) NetImageView *charmImageView; @property (nonatomic,strong) NetImageView *charmImageView;
/// ///VIP
@property (nonatomic,strong) NetImageView *nobleImageView; @property (nonatomic,strong) NetImageView *nobleImageView;
/// ///
@property (nonatomic,strong) UILabel *signLabel; @property (nonatomic,strong) UILabel *signLabel;

View File

@@ -28,7 +28,7 @@ NS_ASSUME_NONNULL_BEGIN
/// @param uid uid /// @param uid uid
+ (void)nameplateList:(HttpRequestHelperCompletion)completion ticket:(NSString *)ticket uid:(NSString *)uid page:(NSString *)page pageSize:(NSString *)pageSize; + (void)nameplateList:(HttpRequestHelperCompletion)completion ticket:(NSString *)ticket uid:(NSString *)uid page:(NSString *)page pageSize:(NSString *)pageSize;
/// 获取用户贵族资料卡 /// 获取用户VIP资料卡
/// @param completion 完成 /// @param completion 完成
/// @param ticket ticket /// @param ticket ticket
/// @param uid uid /// @param uid uid
@@ -61,7 +61,7 @@ NS_ASSUME_NONNULL_BEGIN
/// @param uid uid /// @param uid uid
+ (void)useNameplate:(HttpRequestHelperCompletion)completion userNameplateId:(NSString *)userNameplateId ticket:(NSString *)ticket uid:(NSString *)uid; + (void)useNameplate:(HttpRequestHelperCompletion)completion userNameplateId:(NSString *)userNameplateId ticket:(NSString *)ticket uid:(NSString *)uid;
/// 使用贵族资料卡 /// 使用VIP资料卡
/// @param completion 完成 /// @param completion 完成
/// @param cardId 资料卡idd 0 取消使用 /// @param cardId 资料卡idd 0 取消使用
/// @param ticket ticket /// @param ticket ticket

View File

@@ -37,7 +37,7 @@
} }
/// /// VIP
/// @param completion /// @param completion
/// @param ticket ticket /// @param ticket ticket
/// @param uid uid /// @param uid uid
@@ -85,9 +85,9 @@
[self makeRequest:fang method:HttpRequestHelperMethodPOST completion:completion, __FUNCTION__, userNameplateId, ticket, uid, nil]; [self makeRequest:fang method:HttpRequestHelperMethodPOST completion:completion, __FUNCTION__, userNameplateId, ticket, uid, nil];
} }
/// 使 /// 使VIP
/// @param completion /// @param completion
/// @param cardId id 0 使 /// @param cardId id 0 使VIP
/// @param ticket ticket /// @param ticket ticket
/// @param uid uid /// @param uid uid
+ (void)useNobleCard:(HttpRequestHelperCompletion)completion cardId:(NSString *)cardId ticket:(NSString *)ticket uid:(NSString *)uid { + (void)useNobleCard:(HttpRequestHelperCompletion)completion cardId:(NSString *)cardId ticket:(NSString *)ticket uid:(NSString *)uid {

View File

@@ -16,7 +16,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)getUserCarList; - (void)getUserCarList;
/// 获取用户铭牌列表 /// 获取用户铭牌列表
- (void)getUserNameplateList; - (void)getUserNameplateList;
/// 获取用户贵族资料卡列表 /// 获取用户VIP资料卡列表
- (void)getUserNobleCardList; - (void)getUserNobleCardList;
/// 获取用户公屏聊天气泡列表 /// 获取用户公屏聊天气泡列表
- (void)getUserChatBubbleList; - (void)getUserChatBubbleList;
@@ -29,8 +29,8 @@ NS_ASSUME_NONNULL_BEGIN
/// 使用铭牌 /// 使用铭牌
/// @param userNameplateId 铭牌的id 不使用的时候传0 /// @param userNameplateId 铭牌的id 不使用的时候传0
- (void)useNameplate:(NSString *)userNameplateId; - (void)useNameplate:(NSString *)userNameplateId;
/// 使用贵族资料卡 /// 使用VIP资料卡
/// @param nobleCardId 贵族资料卡的id 不使用的时候传0 /// @param nobleCardId VIP资料卡的id 不使用的时候传0
- (void)userNobleCard:(NSString *)nobleCardId; - (void)userNobleCard:(NSString *)nobleCardId;
/// 使用气泡 /// 使用气泡
/// @param bubbleId 气泡id /// @param bubbleId 气泡id

View File

@@ -49,7 +49,7 @@
}] ticket:ticket uid:uid page:@"1" pageSize:@"500"]; }] ticket:ticket uid:uid page:@"1" pageSize:@"500"];
} }
/// /// VIP
- (void)getUserNobleCardList { - (void)getUserNobleCardList {
NSString * uid = [AccountInfoStorage instance].getUid; NSString * uid = [AccountInfoStorage instance].getUid;
NSString * ticket = [AccountInfoStorage instance].getTicket; NSString * ticket = [AccountInfoStorage instance].getTicket;
@@ -97,8 +97,8 @@
} showLoading:YES] userNameplateId:userNameplateId ticket:ticket uid:uid]; } showLoading:YES] userNameplateId:userNameplateId ticket:ticket uid:uid];
} }
/// 使 /// 使VIP
/// @param nobleCardId id 使0 /// @param nobleCardId VIPid 使0
- (void)userNobleCard:(NSString *)nobleCardId { - (void)userNobleCard:(NSString *)nobleCardId {
NSString * uid = [AccountInfoStorage instance].getUid; NSString * uid = [AccountInfoStorage instance].getUid;
NSString * ticket = [AccountInfoStorage instance].getTicket; NSString * ticket = [AccountInfoStorage instance].getTicket;

View File

@@ -35,7 +35,7 @@ typedef NS_ENUM(NSInteger, DressUpShopListType) {
- (void)getUserCarListSuccess:(NSArray *)array; - (void)getUserCarListSuccess:(NSArray *)array;
///获取用户头饰列表成功 ///获取用户头饰列表成功
- (void)getUserNameplateListSuccess:(NSArray *)array; - (void)getUserNameplateListSuccess:(NSArray *)array;
///获取用户贵族资料卡成功 ///获取用户VIP资料卡成功
- (void)getUserNobleCardListSuccess:(NSArray *)array; - (void)getUserNobleCardListSuccess:(NSArray *)array;
///获取用户公屏气泡成功 ///获取用户公屏气泡成功
- (void)getUserChatBubbleListSuccess:(NSArray *)array; - (void)getUserChatBubbleListSuccess:(NSArray *)array;
@@ -45,7 +45,7 @@ typedef NS_ENUM(NSInteger, DressUpShopListType) {
- (void)useCarSuccess:(NSString *)carId; - (void)useCarSuccess:(NSString *)carId;
///使用铭牌成功 ///使用铭牌成功
- (void)useNameplateSuccess:(NSString *)nameplateId; - (void)useNameplateSuccess:(NSString *)nameplateId;
///使用贵族资料卡成功 ///使用VIP资料卡成功
- (void)userNobleCardSuccess:(NSString *)nobleCardId; - (void)userNobleCardSuccess:(NSString *)nobleCardId;
///使用气泡成功 ///使用气泡成功
- (void)useBubbleSuccess:(NSString *)bubbleId; - (void)useBubbleSuccess:(NSString *)bubbleId;

View File

@@ -16,7 +16,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)getUserCarListSuccess:(NSArray *)array; - (void)getUserCarListSuccess:(NSArray *)array;
///获取用户头饰列表成功 ///获取用户头饰列表成功
- (void)getUserNameplateListSuccess:(NSArray *)array; - (void)getUserNameplateListSuccess:(NSArray *)array;
///获取用户贵族资料卡成功 ///获取用户VIP资料卡成功
- (void)getUserNobleCardListSuccess:(NSArray *)array; - (void)getUserNobleCardListSuccess:(NSArray *)array;
///获取用户公屏气泡成功 ///获取用户公屏气泡成功
- (void)getUserChatBubbleListSuccess:(NSArray *)array; - (void)getUserChatBubbleListSuccess:(NSArray *)array;
@@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)useCarSuccess:(NSString *)carId; - (void)useCarSuccess:(NSString *)carId;
///使用铭牌成功 ///使用铭牌成功
- (void)useNameplateSuccess:(NSString *)nameplateId; - (void)useNameplateSuccess:(NSString *)nameplateId;
///使用贵族资料卡成功 ///使用VIP资料卡成功
- (void)userNobleCardSuccess:(NSString *)nobleCardId; - (void)userNobleCardSuccess:(NSString *)nobleCardId;
///使用气泡成功 ///使用气泡成功
- (void)useBubbleSuccess:(NSString *)bubbleId; - (void)useBubbleSuccess:(NSString *)bubbleId;

View File

@@ -12,7 +12,7 @@ NS_ASSUME_NONNULL_BEGIN
@class NobleCardModel, XPMineNobleCardTableViewCell; @class NobleCardModel, XPMineNobleCardTableViewCell;
@protocol XPMineNobleCardTableViewCellDelegate <NSObject> @protocol XPMineNobleCardTableViewCellDelegate <NSObject>
///使用贵族资料卡 ///使用VIP资料卡
- (void)xPMineNobleCardTableViewCell:(XPMineNobleCardTableViewCell *)view nobleCardId:(NSString *)nobleCardId; - (void)xPMineNobleCardTableViewCell:(XPMineNobleCardTableViewCell *)view nobleCardId:(NSString *)nobleCardId;
@end @end

View File

@@ -44,7 +44,7 @@
@property (nonatomic,strong) XPDressUpShopListViewController *carView; @property (nonatomic,strong) XPDressUpShopListViewController *carView;
/// ///
@property (nonatomic,strong) XPDressUpShopListViewController *nameplateView; @property (nonatomic,strong) XPDressUpShopListViewController *nameplateView;
/// ///VIP
@property (nonatomic, strong) XPDressUpShopCardViewController *nobleView; @property (nonatomic, strong) XPDressUpShopCardViewController *nobleView;
/// ///
@property (nonatomic, strong) XPDressUpShopListViewController *bubbleView; @property (nonatomic, strong) XPDressUpShopListViewController *bubbleView;

View File

@@ -36,7 +36,7 @@
@property (nonatomic,strong) XPMineDressUpListViewController *carView; @property (nonatomic,strong) XPMineDressUpListViewController *carView;
/// ///
@property (nonatomic,strong) XPMineDressUpListViewController *nameplateView; @property (nonatomic,strong) XPMineDressUpListViewController *nameplateView;
/// ///VIP
@property (nonatomic, strong) XPMineDressUpListViewController *nobleView; @property (nonatomic, strong) XPMineDressUpListViewController *nobleView;
/// ///
@property (nonatomic, strong) XPMineDressUpBubbleViewController *bubbleView; @property (nonatomic, strong) XPMineDressUpBubbleViewController *bubbleView;

View File

@@ -11,12 +11,12 @@ NS_ASSUME_NONNULL_BEGIN
@interface Api (NobleCenter) @interface Api (NobleCenter)
/// 贵族中心等级列表 /// VIP中心等级列表
/// @param completion 完成 /// @param completion 完成
+ (void)nobleCenterLevelList:(HttpRequestHelperCompletion)completion; + (void)nobleCenterLevelList:(HttpRequestHelperCompletion)completion;
///领取返利钻石 ///领取返利钻石
+ (void)getNobleCenterDiamond:(HttpRequestHelperCompletion)completion returnProfitRecordId:(NSString *)returnProfitRecordId; + (void)getNobleCenterDiamond:(HttpRequestHelperCompletion)completion returnProfitRecordId:(NSString *)returnProfitRecordId;
///获取开通贵族产品列表 ///获取开通VIP产品列表
+ (void)getChargeList:(HttpRequestHelperCompletion)completion type:(NSString *)type; + (void)getChargeList:(HttpRequestHelperCompletion)completion type:(NSString *)type;
/// 苹果下单 /// 苹果下单
@@ -43,7 +43,7 @@ NS_ASSUME_NONNULL_BEGIN
/// @param complection 完成回调 /// @param complection 完成回调
/// @param open 是否打开 /// @param open 是否打开
+ (void)changeEnterHidCompletion:(HttpRequestHelperCompletion)complection open:(NSString *)open; + (void)changeEnterHidCompletion:(HttpRequestHelperCompletion)complection open:(NSString *)open;
/// 使用钻石开通贵族 /// 使用钻石开通VIP
/// @param complection 完成回调 /// @param complection 完成回调
/// @param roomUid 房主的uid /// @param roomUid 房主的uid
+(void)openWithDiamond:(HttpRequestHelperCompletion)complection roomUid:(NSString *)roomUid vipLevel:(NSString *)vipLevel; +(void)openWithDiamond:(HttpRequestHelperCompletion)complection roomUid:(NSString *)roomUid vipLevel:(NSString *)vipLevel;

View File

@@ -9,7 +9,7 @@
@implementation Api (NobleCenter) @implementation Api (NobleCenter)
/// /// VIP
/// @param completion /// @param completion
+ (void)nobleCenterLevelList:(HttpRequestHelperCompletion)completion { + (void)nobleCenterLevelList:(HttpRequestHelperCompletion)completion {
[self makeRequest:@"vip/getVipPageInfo" method:HttpRequestHelperMethodGET completion:completion, __FUNCTION__, nil]; [self makeRequest:@"vip/getVipPageInfo" method:HttpRequestHelperMethodGET completion:completion, __FUNCTION__, nil];
@@ -18,7 +18,7 @@
+ (void)getNobleCenterDiamond:(HttpRequestHelperCompletion)completion returnProfitRecordId:(NSString *)returnProfitRecordId{ + (void)getNobleCenterDiamond:(HttpRequestHelperCompletion)completion returnProfitRecordId:(NSString *)returnProfitRecordId{
[self makeRequest:@"vip/returnProfit/receive" method:HttpRequestHelperMethodPOST completion:completion, __FUNCTION__, returnProfitRecordId,nil]; [self makeRequest:@"vip/returnProfit/receive" method:HttpRequestHelperMethodPOST completion:completion, __FUNCTION__, returnProfitRecordId,nil];
} }
/// ///VIP
+ (void)getChargeList:(HttpRequestHelperCompletion)completion type:(NSString *)type { + (void)getChargeList:(HttpRequestHelperCompletion)completion type:(NSString *)type {
[self makeRequest:@"chargeprod/getVipList" method:HttpRequestHelperMethodGET completion:completion, __FUNCTION__, type, nil]; [self makeRequest:@"chargeprod/getVipList" method:HttpRequestHelperMethodGET completion:completion, __FUNCTION__, type, nil];
} }
@@ -56,7 +56,7 @@
+ (void)changeEnterHidCompletion:(HttpRequestHelperCompletion)complection open:(NSString *)open { + (void)changeEnterHidCompletion:(HttpRequestHelperCompletion)complection open:(NSString *)open {
[self makeRequest:@"vip/changeInvisibleInRoom" method:HttpRequestHelperMethodGET completion:complection, __FUNCTION__,open, nil]; [self makeRequest:@"vip/changeInvisibleInRoom" method:HttpRequestHelperMethodGET completion:complection, __FUNCTION__,open, nil];
} }
/// 使 /// 使VIP
/// @param complection /// @param complection
/// @param roomUid uid /// @param roomUid uid
+(void)openWithDiamond:(HttpRequestHelperCompletion)complection roomUid:(NSString *)roomUid vipLevel:(NSString *)vipLevel{ +(void)openWithDiamond:(HttpRequestHelperCompletion)complection roomUid:(NSString *)roomUid vipLevel:(NSString *)vipLevel{

View File

@@ -13,15 +13,15 @@ NS_ASSUME_NONNULL_BEGIN
@interface NobleCenterModel : PIBaseModel @interface NobleCenterModel : PIBaseModel
///用户当前贵族等级 ///用户当前VIP等级
@property (nonatomic, assign) NSInteger currLevel; @property (nonatomic, assign) NSInteger currLevel;
///用户当前权力值 ///用户当前权力值
@property (nonatomic, assign) NSInteger currScore; @property (nonatomic, assign) NSInteger currScore;
///贵族到期剩余秒数 ///VIP到期剩余秒数
@property (nonatomic, assign) NSInteger remainSeconds; @property (nonatomic, assign) NSInteger remainSeconds;
///贵族权限信息列表 ///VIP权限信息列表
@property (nonatomic, strong) NSArray<NobleAuthInfo *> *vipAuthInfos; @property (nonatomic, strong) NSArray<NobleAuthInfo *> *vipAuthInfos;
///贵族信息列表 ///VIP信息列表
@property (nonatomic, strong) NSArray<NobleInfo *> *vipInfos; @property (nonatomic, strong) NSArray<NobleInfo *> *vipInfos;
///当前是否为最高等级 ///当前是否为最高等级
@property (nonatomic, assign) BOOL isMaxLevel; @property (nonatomic, assign) BOOL isMaxLevel;

View File

@@ -13,21 +13,21 @@ NS_ASSUME_NONNULL_BEGIN
///是否敬请期待1. 否 2.是 ///是否敬请期待1. 否 2.是
@property (nonatomic, assign) NSInteger comingSoon; @property (nonatomic, assign) NSInteger comingSoon;
///贵族保级值 ///VIP保级值
@property (nonatomic, assign) NSInteger levelKeepScore; @property (nonatomic, assign) NSInteger levelKeepScore;
///贵族升级值 ///VIP升级值
@property (nonatomic, assign) NSInteger levelUpScore; @property (nonatomic, assign) NSInteger levelUpScore;
@property (nonatomic, copy) NSString *ownAuthTypeStr; @property (nonatomic, copy) NSString *ownAuthTypeStr;
///有用的权限type列表 ///有用的权限type列表
@property (nonatomic, copy) NSArray<NSNumber *> *ownAuthTypes; @property (nonatomic, copy) NSArray<NSNumber *> *ownAuthTypes;
///贵族icon ///VIPicon
@property (nonatomic, copy) NSString *vipIcon; @property (nonatomic, copy) NSString *vipIcon;
///贵族等级 ///VIP等级
@property (nonatomic, assign) NSInteger vipLevel; @property (nonatomic, assign) NSInteger vipLevel;
///贵族logo ///VIPlogo
@property (nonatomic, copy) NSString *vipLogo; @property (nonatomic, copy) NSString *vipLogo;
///贵族名称 ///VIP名称
@property (nonatomic, copy) NSString *vipName; @property (nonatomic, copy) NSString *vipName;
///返钻 ///返钻
@property(nonatomic,copy) NSArray<PINobleRebateModel *> *returnProfits; @property(nonatomic,copy) NSArray<PINobleRebateModel *> *returnProfits;

View File

@@ -15,15 +15,15 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, strong) NSString *nick; @property (nonatomic, strong) NSString *nick;
///UID ///UID
@property (nonatomic, assign) long long uid; @property (nonatomic, assign) long long uid;
///贵族等级 ///VIP等级
@property (nonatomic, assign) NSInteger vipLevel; @property (nonatomic, assign) NSInteger vipLevel;
///贵族名称 ///VIP名称
@property (nonatomic, strong) NSString *vipName; @property (nonatomic, strong) NSString *vipName;
@property (nonatomic, copy) NSString *floatPic; @property (nonatomic, copy) NSString *floatPic;
///头像 ///头像
@property (nonatomic, copy) NSString *vipIcon; @property (nonatomic, copy) NSString *vipIcon;
///贵族logo动图 ///VIPlogo动图
@property (nonatomic, copy) NSString *vipLogo; @property (nonatomic, copy) NSString *vipLogo;
@end @end

View File

@@ -11,17 +11,17 @@ NS_ASSUME_NONNULL_BEGIN
@interface XPNobleCenterPresenter : BaseMvpPresenter @interface XPNobleCenterPresenter : BaseMvpPresenter
/// 获取贵族中心数据 /// 获取VIP中心数据
- (void)getNobleCenterInfo; - (void)getNobleCenterInfo;
/// 获取贵族中心数据 /// 获取VIP中心数据
- (void)getNobleCenterReturnDiamond:(NSString *)recordId; - (void)getNobleCenterReturnDiamond:(NSString *)recordId;
/// 获取用户信息 /// 获取用户信息
- (void)getUserInfo; - (void)getUserInfo;
///获取贵族充值产品列表 ///获取VIP充值产品列表
- (void)getNobleChargeProductListWithChannelType:(NSString *)type; - (void)getNobleChargeProductListWithChannelType:(NSString *)type;
/// 生成贵族充值的订单 /// 生成VIP充值的订单
/// @param chargeProdId 苹果服务器的充值 的id /// @param chargeProdId 苹果服务器的充值 的id
- (void)requestNobleIAPRechargeOrderWithChargeProdId:(NSString *)chargeProdId roomUid:(NSString *)roomUid ; - (void)requestNobleIAPRechargeOrderWithChargeProdId:(NSString *)chargeProdId roomUid:(NSString *)roomUid ;
@@ -37,7 +37,7 @@ NS_ASSUME_NONNULL_BEGIN
/// 切换隐身进房 /// 切换隐身进房
/// @param enterHide 隐身进房 /// @param enterHide 隐身进房
- (void)changeEnterHide:(BOOL)enterHide; - (void)changeEnterHide:(BOOL)enterHide;
/// 使用钻石开通贵族 /// 使用钻石开通VIP
/// @param roomUid 房主的uid /// @param roomUid 房主的uid
- (void)openVipWithDiamondRoomUid:(NSString *)roomUid vipLevel:(NSString *)vipLevel; - (void)openVipWithDiamondRoomUid:(NSString *)roomUid vipLevel:(NSString *)vipLevel;

View File

@@ -23,14 +23,14 @@
@implementation XPNobleCenterPresenter @implementation XPNobleCenterPresenter
/// /// VIP
- (void)getNobleCenterInfo { - (void)getNobleCenterInfo {
[Api nobleCenterLevelList:[self createHttpCompletion:^(BaseModel * _Nonnull data) { [Api nobleCenterLevelList:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
NobleCenterModel *model = [NobleCenterModel modelWithDictionary:data.data]; NobleCenterModel *model = [NobleCenterModel modelWithDictionary:data.data];
[[self getView] getNobleCenterInfoSuccess:model]; [[self getView] getNobleCenterInfoSuccess:model];
}]]; }]];
} }
/// /// VIP
- (void)getNobleCenterReturnDiamond:(NSString *)recordId{ - (void)getNobleCenterReturnDiamond:(NSString *)recordId{
[Api getNobleCenterDiamond:[self createHttpCompletion:^(BaseModel * _Nonnull data) { [Api getNobleCenterDiamond:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
[[self getView]getNobleCenterDiamondSuccess:recordId]; [[self getView]getNobleCenterDiamondSuccess:recordId];
@@ -47,7 +47,7 @@
}] uid:uid]; }] uid:uid];
} }
/// ///VIP
- (void)getNobleChargeProductListWithChannelType:(NSString *)type { - (void)getNobleChargeProductListWithChannelType:(NSString *)type {
[Api getChargeList:[self createHttpCompletion:^(BaseModel * _Nonnull data) { [Api getChargeList:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
NSArray *list = [RechargeListModel modelsWithArray:data.data]; NSArray *list = [RechargeListModel modelsWithArray:data.data];
@@ -57,7 +57,7 @@
}] type:type]; }] type:type];
} }
/// /// VIP
/// @param chargeProdId id /// @param chargeProdId id
- (void)requestNobleIAPRechargeOrderWithChargeProdId:(NSString *)chargeProdId roomUid:(NSString *)roomUid { - (void)requestNobleIAPRechargeOrderWithChargeProdId:(NSString *)chargeProdId roomUid:(NSString *)roomUid {
NSString * uid = [AccountInfoStorage instance].getUid; NSString * uid = [AccountInfoStorage instance].getUid;
@@ -105,7 +105,7 @@
[[self getView] changeEnterHideFail]; [[self getView] changeEnterHideFail];
}] open:[NSString stringWithFormat:@"%d", enterHide]]; }] open:[NSString stringWithFormat:@"%d", enterHide]];
} }
/// 使 /// 使VIP
/// @param roomUid uid /// @param roomUid uid
- (void)openVipWithDiamondRoomUid:(NSString *)roomUid vipLevel:(NSString *)vipLevel{ - (void)openVipWithDiamondRoomUid:(NSString *)roomUid vipLevel:(NSString *)vipLevel{

View File

@@ -10,14 +10,14 @@
@class NobleCenterModel, UserInfoModel, NobleRechargeModel; @class NobleCenterModel, UserInfoModel, NobleRechargeModel;
@protocol XPNobleCenterProtocol <NSObject> @protocol XPNobleCenterProtocol <NSObject>
@optional @optional
///获取贵族信息成功 ///获取VIP信息成功
- (void)getNobleCenterInfoSuccess:(NobleCenterModel *)model; - (void)getNobleCenterInfoSuccess:(NobleCenterModel *)model;
///获取贵族信息成功 ///获取VIP信息成功
- (void)getNobleCenterDiamondSuccess:(NSString *)recordId; - (void)getNobleCenterDiamondSuccess:(NSString *)recordId;
///获取用户信息成功 ///获取用户信息成功
- (void)onGetUserInfoSuccess:(UserInfoModel *)userInfo; - (void)onGetUserInfoSuccess:(UserInfoModel *)userInfo;
///获取贵族充值信息成功 ///获取VIP充值信息成功
- (void)onGetNobleRechargeDataSuccess:(NSArray *)list; - (void)onGetNobleRechargeDataSuccess:(NSArray *)list;
///请求充值id的状态成功 ///请求充值id的状态成功

View File

@@ -12,7 +12,7 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@interface PINobleCenterTitleView : JXCategoryTitleView @interface PINobleCenterTitleView : JXCategoryTitleView
///贵族信息列表 ///VIP信息列表
@property (nonatomic, strong) NSArray<NobleInfo *> *vipInfos; @property (nonatomic, strong) NSArray<NobleInfo *> *vipInfos;
@end @end

View File

@@ -3,7 +3,7 @@
// xplan-ios // xplan-ios
// //
// Created by GreenLand on 2022/1/5. // Created by GreenLand on 2022/1/5.
// 贵族权限说明弹窗 // VIP权限说明弹窗
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import "NobleAuthInfo.h" #import "NobleAuthInfo.h"

View File

@@ -39,7 +39,7 @@
@property (nonatomic, strong) UILabel *safeValueLabel; @property (nonatomic, strong) UILabel *safeValueLabel;
/// ///
@property (nonatomic, strong) UILabel *upGradeValueLabel; @property (nonatomic, strong) UILabel *upGradeValueLabel;
/// ///VIP
@property (nonatomic, strong) UILabel *openNobleButton; @property (nonatomic, strong) UILabel *openNobleButton;
/// ///
@property (nonatomic,strong) UIImageView *openNobleView; @property (nonatomic,strong) UIImageView *openNobleView;

View File

@@ -20,7 +20,7 @@ NS_ASSUME_NONNULL_BEGIN
///当前权力值 ///当前权力值
@property (nonatomic, assign) NSInteger currentScore; @property (nonatomic, assign) NSInteger currentScore;
///当前用户是否开通了贵族 ///当前用户是否开通了VIP
@property (nonatomic, assign) BOOL isOpenNoble; @property (nonatomic, assign) BOOL isOpenNoble;
@end @end

View File

@@ -17,15 +17,15 @@
@interface XPNobleCenterTableHeadView () @interface XPNobleCenterTableHeadView ()
/// ///VIP
//@property (nonatomic, strong) NetImageView *iconImageView; //@property (nonatomic, strong) NetImageView *iconImageView;
///logo ///VIPlogo
@property (nonatomic, strong) SVGAImageView *svgDisplayView; @property (nonatomic, strong) SVGAImageView *svgDisplayView;
/// ///
@property (nonatomic, strong) UIImageView *myLevelImageView; @property (nonatomic, strong) UIImageView *myLevelImageView;
/// ///
@property (nonatomic, strong) UILabel *currentValueLabel; @property (nonatomic, strong) UILabel *currentValueLabel;
/// ///VIP
@property (nonatomic, strong) UILabel *noOpenNobleLabel; @property (nonatomic, strong) UILabel *noOpenNobleLabel;
@property (strong, nonatomic) SVGAParser *parser; @property (strong, nonatomic) SVGAParser *parser;

View File

@@ -3,7 +3,7 @@
// xplan-ios // xplan-ios
// //
// Created by GreenLand on 2022/1/6. // Created by GreenLand on 2022/1/6.
// 贵族等级提升view // VIP等级提升view
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>

View File

@@ -26,7 +26,7 @@
/// ///
@property (nonatomic, strong) UIImageView *bgImageView; @property (nonatomic, strong) UIImageView *bgImageView;
///logo ///VIPlogo
@property (nonatomic, strong) SVGAImageView *svgDisplayView; @property (nonatomic, strong) SVGAImageView *svgDisplayView;
/// ///
@property (nonatomic, strong) UILabel *titleLabel; @property (nonatomic, strong) UILabel *titleLabel;
@@ -34,7 +34,7 @@
@property (nonatomic, strong) UILabel *subTitleLabel; @property (nonatomic, strong) UILabel *subTitleLabel;
/// ///
@property (nonatomic, strong) UIButton *closeButton; @property (nonatomic, strong) UIButton *closeButton;
/// ///VIP
@property (nonatomic, strong) UIButton *jumpButton; @property (nonatomic, strong) UIButton *jumpButton;
@property (strong, nonatomic) SVGAParser *parser; @property (strong, nonatomic) SVGAParser *parser;

View File

@@ -17,13 +17,13 @@ NS_ASSUME_NONNULL_BEGIN
///高亮文字颜色0xFFE3AF ///高亮文字颜色0xFFE3AF
+ (UIColor *)hightNobleLightTextColor; + (UIColor *)hightNobleLightTextColor;
///贵族特权未点亮标题颜色0x9F8052 ///VIP特权未点亮标题颜色0x9F8052
+ (UIColor *)noContainTitleTextColor; + (UIColor *)noContainTitleTextColor;
///贵族特权未点亮短描述颜色0x8B7245 ///VIP特权未点亮短描述颜色0x8B7245
+ (UIColor *)noContainDescTextColor; + (UIColor *)noContainDescTextColor;
///贵族设置背景颜色0x232017 ///VIP设置背景颜色0x232017
+ (UIColor *)nobleSettingBgColor; + (UIColor *)nobleSettingBgColor;
@end @end

View File

@@ -19,17 +19,17 @@
return UIColorFromRGB(0xFFE3AF); return UIColorFromRGB(0xFFE3AF);
} }
///0x9F8052 ///VIP0x9F8052
+ (UIColor *)noContainTitleTextColor { + (UIColor *)noContainTitleTextColor {
return UIColorFromRGB(0x9F8052); return UIColorFromRGB(0x9F8052);
} }
///0x8B7245 ///VIP0x8B7245
+ (UIColor *)noContainDescTextColor { + (UIColor *)noContainDescTextColor {
return UIColorFromRGB(0x8B7245); return UIColorFromRGB(0x8B7245);
} }
///0x232017 ///VIP0x232017
+ (UIColor *)nobleSettingBgColor { + (UIColor *)nobleSettingBgColor {
return UIColorFromRGB(0x232017); return UIColorFromRGB(0x232017);
} }

View File

@@ -20,7 +20,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, assign) BOOL isCurrentLevel; @property (nonatomic, assign) BOOL isCurrentLevel;
///当前权力值 ///当前权力值
@property (nonatomic, assign) NSInteger currentScore; @property (nonatomic, assign) NSInteger currentScore;
///当前用户是否开通了贵族 ///当前用户是否开通了VIP
@property (nonatomic, assign) BOOL isOpenNoble; @property (nonatomic, assign) BOOL isOpenNoble;
@end @end

View File

@@ -66,12 +66,12 @@
@property (nonatomic, strong) NobleCenterModel *model; @property (nonatomic, strong) NobleCenterModel *model;
/// ///
@property (nonatomic, strong) UserInfoModel *userInfo; @property (nonatomic, strong) UserInfoModel *userInfo;
/// ///VIP
@property (nonatomic, strong) UILabel *openNobleButton; @property (nonatomic, strong) UILabel *openNobleButton;
/// ///
@property (nonatomic,strong) UIImageView *openNobleView; @property (nonatomic,strong) UIImageView *openNobleView;
@property (nonatomic,strong) UIImageView *openNobleIconView; @property (nonatomic,strong) UIImageView *openNobleIconView;
///- ///VIP-VIP
@property (nonatomic, strong) XPNobleCenterMyNobleView *myNobleView; @property (nonatomic, strong) XPNobleCenterMyNobleView *myNobleView;
/// ///
@property (nonatomic, assign) BOOL needUpdateUserInfo; @property (nonatomic, assign) BOOL needUpdateUserInfo;
@@ -259,7 +259,7 @@
}]; }];
} }
} }
/// ///VIP
- (void)requestHttp { - (void)requestHttp {
[self.presenter getUserInfo]; [self.presenter getUserInfo];
[self checkTranscationIds]; [self checkTranscationIds];
@@ -396,7 +396,7 @@
} }
} }
/// ///VIP
- (void)onGetNobleRechargeDataSuccess:(NSArray *)list { - (void)onGetNobleRechargeDataSuccess:(NSArray *)list {
self.rechargeList = list; self.rechargeList = list;
} }
@@ -618,7 +618,7 @@
NSLog(@"json解析失败%@",err); NSLog(@"json解析失败%@",err);
return; return;
} }
if ([dic[@"first"] intValue] == CustomMessageType_Noble_VIP && [dic[@"second"] intValue] == Custom_Message_Sub_Open_Noble_Success) { // if ([dic[@"first"] intValue] == CustomMessageType_Noble_VIP && [dic[@"second"] intValue] == Custom_Message_Sub_Open_Noble_Success) { // VIP
[self requestHttp]; [self requestHttp];
} }
} }

View File

@@ -114,7 +114,7 @@
@property (nonatomic,strong) UILabel *soundPromptView; @property (nonatomic,strong) UILabel *soundPromptView;
/// ///
@property (nonatomic,strong) UIButton *toSoundBtn; @property (nonatomic,strong) UIButton *toSoundBtn;
///icon ///VIPicon
@property (nonatomic,strong) NetImageView *nobleImageView; @property (nonatomic,strong) NetImageView *nobleImageView;
@end @end

View File

@@ -19,7 +19,7 @@ typedef void(^CompletionHandler)(NSMutableAttributedString *);
- (void)xpMineHeadViewClickFans; - (void)xpMineHeadViewClickFans;
///点击了账户中心 ///点击了账户中心
- (void)xpMineHeadViewClickAcount; - (void)xpMineHeadViewClickAcount;
///点击了贵族中心 ///点击了VIP中心
- (void)xPMineHeadViewCliekNobleCenter; - (void)xPMineHeadViewCliekNobleCenter;
@end @end
@interface XPMineHeadView : UIView @interface XPMineHeadView : UIView

View File

@@ -49,7 +49,7 @@
@property (nonatomic,strong) XPMineFriendNumberView *fansView; @property (nonatomic,strong) XPMineFriendNumberView *fansView;
/// ///
@property (nonatomic, strong) XPMineAccountView *accountView; @property (nonatomic, strong) XPMineAccountView *accountView;
/// ///VIP
@property (nonatomic, strong) XPNobleCenterEntranceView *nobleEntranceView; @property (nonatomic, strong) XPNobleCenterEntranceView *nobleEntranceView;
//View //View
@property (nonatomic,strong) UIImageView *reviewView; @property (nonatomic,strong) UIImageView *reviewView;
@@ -187,7 +187,7 @@
[self.delegate xpMineHeadViewClickAcount]; [self.delegate xpMineHeadViewClickAcount];
} }
} }
/// ///VIP
- (void)tapNobleCenterrecognizer { - (void)tapNobleCenterrecognizer {
if (self.delegate && [self.delegate respondsToSelector:@selector(xPMineHeadViewCliekNobleCenter)]) { if (self.delegate && [self.delegate respondsToSelector:@selector(xPMineHeadViewCliekNobleCenter)]) {
[self.delegate xPMineHeadViewCliekNobleCenter]; [self.delegate xPMineHeadViewCliekNobleCenter];

View File

@@ -526,7 +526,7 @@ UIKIT_EXTERN NSString *kRequestRicket;
[self pushViewControllerWithType:XPMineItemType_Account functionItem:nil]; [self pushViewControllerWithType:XPMineItemType_Account functionItem:nil];
} }
/// ///VIP
- (void)xPMineHeadViewCliekNobleCenter { - (void)xPMineHeadViewCliekNobleCenter {
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventvipEntranceMeClick]; [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventvipEntranceMeClick];
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventusercenter_noble_card_click]; [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventusercenter_noble_card_click];
@@ -632,7 +632,7 @@ UIKIT_EXTERN NSString *kRequestRicket;
- (void)getUserWalletInfoFail{ - (void)getUserWalletInfoFail{
} }
/// ///VIP
- (void)getNobleCenterInfoSuccess:(NobleCenterModel *)model { - (void)getNobleCenterInfoSuccess:(NobleCenterModel *)model {
self.headView.nobleInfo = model; self.headView.nobleInfo = model;
[self.tableView reloadData]; [self.tableView reloadData];

View File

@@ -51,7 +51,7 @@ typedef NS_ENUM(NSInteger, MonentsContentType) {
@property (nonatomic,assign) BOOL squareTop; @property (nonatomic,assign) BOOL squareTop;
///话题是否置顶 ///话题是否置顶
@property (nonatomic,assign) BOOL topicTop; @property (nonatomic,assign) BOOL topicTop;
///贵族信息 ///VIP信息
@property (nonatomic, strong) UserVipInfoVo *userVipInfoVO; @property (nonatomic, strong) UserVipInfoVo *userVipInfoVO;
///发布的内容 ///发布的内容
@property (nonatomic,copy) NSArray<MonentsPicInfoModel *> *dynamicResList; @property (nonatomic,copy) NSArray<MonentsPicInfoModel *> *dynamicResList;

View File

@@ -25,7 +25,7 @@
@property (nonatomic,strong) UIStackView *nickStackView; @property (nonatomic,strong) UIStackView *nickStackView;
/// ///
@property (nonatomic,strong) NetImageView *avatarImageView; @property (nonatomic,strong) NetImageView *avatarImageView;
/// ///VIP
@property (nonatomic, strong) NetImageView *nobleImageView; @property (nonatomic, strong) NetImageView *nobleImageView;
/// ///
@property (nonatomic,strong) UILabel *nickLabel; @property (nonatomic,strong) UILabel *nickLabel;

View File

@@ -170,7 +170,7 @@
[[XPGiftStorage shareStorage] getGiftDatasource:roomUid]; [[XPGiftStorage shareStorage] getGiftDatasource:roomUid];
[Api requestNormalGiftList:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) { [Api requestNormalGiftList:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) {
NSArray *luckyBagGift = [GiftInfoModel modelsWithArray:data.data[@"luckyBagGift"]]; // NSArray *luckyBagGift = [GiftInfoModel modelsWithArray:data.data[@"luckyBagGift"]]; //
NSArray *vipGift = [GiftInfoModel modelsWithArray:data.data[@"vipGift"]]; // NSArray *vipGift = [GiftInfoModel modelsWithArray:data.data[@"vipGift"]]; // VIP
NSArray *luckyPoolGift = [GiftInfoModel modelsWithArray:data.data[@"luckyPoolGift"]];// NSArray *luckyPoolGift = [GiftInfoModel modelsWithArray:data.data[@"luckyPoolGift"]];//
NSArray *normalGift = [GiftInfoModel modelsWithArray:data.data[@"normalGift"]]; // NSArray *normalGift = [GiftInfoModel modelsWithArray:data.data[@"normalGift"]]; //
NSArray *weekStarGift = [GiftInfoModel modelsWithArray:data.data[@"weekStarGift"]]; // NSArray *weekStarGift = [GiftInfoModel modelsWithArray:data.data[@"weekStarGift"]]; //

View File

@@ -63,7 +63,7 @@
[self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) { [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerX.mas_equalTo(self); make.centerX.mas_equalTo(self);
make.top.mas_equalTo(self.tipImageView.mas_bottom).mas_offset(46); make.top.mas_equalTo(self.tipImageView.mas_bottom).mas_offset(46);
make.left.right.mas_equalTo(0); make.left.right.equalTo(self).inset(10);
}]; }];
} }
@@ -88,6 +88,7 @@
if (!_titleLabel) { if (!_titleLabel) {
_titleLabel = [[UILabel alloc] init]; _titleLabel = [[UILabel alloc] init];
_titleLabel.text = YMLocalizedString(@"AnchorRoomSrollTipView0"); _titleLabel.text = YMLocalizedString(@"AnchorRoomSrollTipView0");
_titleLabel.adjustsFontSizeToFitWidth = YES;
_titleLabel.font = [UIFont systemFontOfSize:20]; _titleLabel.font = [UIFont systemFontOfSize:20];
_titleLabel.textColor = [UIColor whiteColor]; _titleLabel.textColor = [UIColor whiteColor];
_titleLabel.textAlignment = NSTextAlignmentCenter; _titleLabel.textAlignment = NSTextAlignmentCenter;

View File

@@ -9,7 +9,7 @@
typedef enum : NSUInteger { typedef enum : NSUInteger {
GiftBannerType_Lucky,///福袋 GiftBannerType_Lucky,///福袋
GiftBannerType_Love,///寻爱之旅 GiftBannerType_Love,///寻爱之旅
GiftBannerType_Nobleman,///贵族 GiftBannerType_Nobleman,///VIP
GiftBannerType_kitchen,///厨房 GiftBannerType_kitchen,///厨房
GiftBannerType_AnchorHour,///个播小时榜 GiftBannerType_AnchorHour,///个播小时榜
GiftBannerType_LicneseHour,///牌照房小时榜 GiftBannerType_LicneseHour,///牌照房小时榜

View File

@@ -241,7 +241,7 @@
AttachmentModel *attachment = [AttachmentModel modelWithJSON:msgDictionary[@"body"]]; AttachmentModel *attachment = [AttachmentModel modelWithJSON:msgDictionary[@"body"]];
if (attachment.first == CustomMessageType_Gift && attachment.second == Custom_Message_Sub_Gift_ChannelNotify){///广 if (attachment.first == CustomMessageType_Gift && attachment.second == Custom_Message_Sub_Gift_ChannelNotify){///广
[self receiveBroadcastGift:attachment]; [self receiveBroadcastGift:attachment];
} else if (attachment.first == CustomMessageType_Noble_VIP && attachment.second == Custom_Message_Sub_Room_Noble_LevelUp_Suspend) {/// } else if (attachment.first == CustomMessageType_Noble_VIP && attachment.second == Custom_Message_Sub_Room_Noble_LevelUp_Suspend) {///VIP
[self receiveNobleLevelUp:attachment]; [self receiveNobleLevelUp:attachment];
}else if(attachment.first == CustomMessageType_LuckyBag && attachment.second == Custom_Message_Sub_Room_Gift_LuckBag_FullScree){ }else if(attachment.first == CustomMessageType_LuckyBag && attachment.second == Custom_Message_Sub_Room_Gift_LuckBag_FullScree){
[self receiveLuckyGiftBigPrize:attachment]; [self receiveLuckyGiftBigPrize:attachment];
@@ -1218,7 +1218,7 @@
[sailingView pop_addAnimation:springAnimation forKey:@"candyTreespingOutAnimation"]; [sailingView pop_addAnimation:springAnimation forKey:@"candyTreespingOutAnimation"];
} }
#pragma mark - #pragma mark - VIP
- (void)receiveNobleLevelUp:(AttachmentModel *)attachment { - (void)receiveNobleLevelUp:(AttachmentModel *)attachment {
[[NetImageView new]loadImageWithUrl:attachment.data[@"avatar"] completion:^(UIImage * _Nonnull image, NSURL * _Nonnull url) { [[NetImageView new]loadImageWithUrl:attachment.data[@"avatar"] completion:^(UIImage * _Nonnull image, NSURL * _Nonnull url) {
PIBaseAnimationViewModel *nobleModel = [PIBaseAnimationViewModel new]; PIBaseAnimationViewModel *nobleModel = [PIBaseAnimationViewModel new];

View File

@@ -13,7 +13,7 @@ typedef void(^CompletionBlock)(void);
@interface XPRoomNobleLevelUpView : UIView @interface XPRoomNobleLevelUpView : UIView
///贵族升级的信息 ///VIP升级的信息
@property (nonatomic,copy) NSDictionary * nobleInfo; @property (nonatomic,copy) NSDictionary * nobleInfo;
@property(nonatomic,copy) CompletionBlock completionBlock; @property(nonatomic,copy) CompletionBlock completionBlock;
@end @end

View File

@@ -19,7 +19,7 @@
/// ///
@property (strong, nonatomic) SVGAParser *parser; @property (strong, nonatomic) SVGAParser *parser;
/// ///VIP
@property (nonatomic,strong) SVGAImageView *nobleView; @property (nonatomic,strong) SVGAImageView *nobleView;

View File

@@ -56,7 +56,8 @@
}]; }];
[self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) { [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerY.mas_equalTo(self); make.centerY.mas_equalTo(self);
make.left.mas_equalTo(self.iconImageView.mas_right).mas_offset(4); make.leading.mas_equalTo(self.iconImageView.mas_trailing).mas_offset(4);
make.trailing.mas_equalTo(-kGetScaleWidth(0));
}]; }];
[self.iconImageView mas_makeConstraints:^(MASConstraintMaker *make) { [self.iconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.height.mas_equalTo(22); make.width.height.mas_equalTo(22);
@@ -88,8 +89,10 @@
if (_titleLabel == nil) { if (_titleLabel == nil) {
_titleLabel = [[UILabel alloc] init]; _titleLabel = [[UILabel alloc] init];
_titleLabel.textColor = UIColor.whiteColor; _titleLabel.textColor = UIColor.whiteColor;
_titleLabel.font = [UIFont systemFontOfSize:10 weight:UIFontWeightMedium]; _titleLabel.font = [UIFont systemFontOfSize:9 weight:UIFontWeightMedium];
_titleLabel.text = YMLocalizedString(@"XPRoomAnchorRankEnterView0"); _titleLabel.text = YMLocalizedString(@"XPRoomAnchorRankEnterView0");
_titleLabel.numberOfLines = 2;
} }
return _titleLabel; return _titleLabel;
} }

View File

@@ -1481,7 +1481,7 @@
self.delegate.getRoomInfo.winUid = nil; self.delegate.getRoomInfo.winUid = nil;
self.delegate.getRoomInfo.pkMatchStartTime = nil; self.delegate.getRoomInfo.pkMatchStartTime = nil;
} }
#pragma mark - #pragma mark - VIP
- (void)handleTrumpet:(AttachmentModel *)attachment { - (void)handleTrumpet:(AttachmentModel *)attachment {
if (self.trumpetQueue.count) { if (self.trumpetQueue.count) {
[self.trumpetQueue addObject:attachment.data]; [self.trumpetQueue addObject:attachment.data];
@@ -1597,7 +1597,7 @@
[self.hourRankEntranceView mas_makeConstraints:^(MASConstraintMaker *make) { [self.hourRankEntranceView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.mas_equalTo(15); make.left.mas_equalTo(15);
make.centerY.mas_equalTo(self.contributeEnterView); make.centerY.mas_equalTo(self.contributeEnterView);
make.width.mas_equalTo(61); make.width.mas_equalTo(66);
make.height.mas_equalTo(22); make.height.mas_equalTo(22);
}]; }];
} }

View File

@@ -38,7 +38,7 @@ typedef NS_ENUM(NSInteger, FaceDisplayType) {
@property (nonatomic, assign) NSInteger iconPos; @property (nonatomic, assign) NSInteger iconPos;
///是否是幸运表情 ///是否是幸运表情
@property (nonatomic,assign) BOOL isLuckFace; @property (nonatomic,assign) BOOL isLuckFace;
///是否是贵族表情 ///是否是VIP表情
@property (nonatomic,assign) BOOL isNobleFace; @property (nonatomic,assign) BOOL isNobleFace;
///表情的名字 ///表情的名字
@property (nonatomic,copy) NSString *name; @property (nonatomic,copy) NSString *name;

View File

@@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, RoomFaceTitleItemType) { typedef NS_ENUM(NSInteger, RoomFaceTitleItemType) {
///普通的表情 ///普通的表情
RoomFaceTitleItemType_Normal = 1, RoomFaceTitleItemType_Normal = 1,
///贵族表情 ///VIP表情
RoomFaceTitleItemType_Nobel, RoomFaceTitleItemType_Nobel,
}; };

View File

@@ -10,7 +10,7 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@class RoomFaceInfoModel; @class RoomFaceInfoModel;
@interface XPRoomFaceCollectionViewCell : UICollectionViewCell @interface XPRoomFaceCollectionViewCell : UICollectionViewCell
///贵族的等级 ///VIP的等级
@property (nonatomic,assign) NSInteger vipLevel; @property (nonatomic,assign) NSInteger vipLevel;
///表情信息 ///表情信息
@property (nonatomic,strong) RoomFaceInfoModel *faceInfo; @property (nonatomic,strong) RoomFaceInfoModel *faceInfo;

View File

@@ -19,9 +19,9 @@
@property (nonatomic,strong) UIImageView *faceImageView; @property (nonatomic,strong) UIImageView *faceImageView;
/// ///
@property (nonatomic,strong) UILabel *faceTitleLabel; @property (nonatomic,strong) UILabel *faceTitleLabel;
/// ///VIP
@property (nonatomic,strong) NetImageView *nobleTypeImageView; @property (nonatomic,strong) NetImageView *nobleTypeImageView;
///🔐 ///VIP🔐
@property (nonatomic,strong) UIImageView *nobleLockImageView; @property (nonatomic,strong) UIImageView *nobleLockImageView;
/// ///
@property (nonatomic,strong) UIView * coverView; @property (nonatomic,strong) UIView * coverView;

View File

@@ -41,7 +41,7 @@
@property (nonatomic,strong) UIStackView *titleStackView; @property (nonatomic,strong) UIStackView *titleStackView;
/// ///
@property (nonatomic,strong) UICollectionView *titleCollectionView; @property (nonatomic,strong) UICollectionView *titleCollectionView;
/// ///VIP
@property (nonatomic,strong) UIButton *noblePrivilButton; @property (nonatomic,strong) UIButton *noblePrivilButton;
/// ///
@property (nonatomic,strong) UICollectionView *faceCollectionView; @property (nonatomic,strong) UICollectionView *faceCollectionView;
@@ -53,7 +53,7 @@
@property (nonatomic,strong) RoomFaceTitleItemModel *selectTitleItem; @property (nonatomic,strong) RoomFaceTitleItemModel *selectTitleItem;
/// ///
@property (nonatomic,strong) NSArray<RoomFaceInfoModel *> *faceList; @property (nonatomic,strong) NSArray<RoomFaceInfoModel *> *faceList;
/// ///VIP
@property (nonatomic,strong) NSArray<RoomFaceInfoModel *> *nobelFaceList; @property (nonatomic,strong) NSArray<RoomFaceInfoModel *> *nobelFaceList;
/// ///
@property (nonatomic,strong) UserInfoModel *userInfo; @property (nonatomic,strong) UserInfoModel *userInfo;
@@ -244,7 +244,7 @@
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath { - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
if (collectionView == self.titleCollectionView) { if (collectionView == self.titleCollectionView) {
RoomFaceTitleItemModel * itemModel = [self.titleList safeObjectAtIndex1:indexPath.row]; RoomFaceTitleItemModel * itemModel = [self.titleList safeObjectAtIndex1:indexPath.row];
CGSize size = [itemModel.title boundingRectWithSize:CGSizeMake(100, CGFLOAT_MAX) options:NSStringDrawingUsesFontLeading | NSStringDrawingTruncatesLastVisibleLine CGSize size = [itemModel.title boundingRectWithSize:CGSizeMake(120, CGFLOAT_MAX) options:NSStringDrawingUsesFontLeading | NSStringDrawingTruncatesLastVisibleLine
attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:13]} context:nil].size; attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:13]} context:nil].size;
return CGSizeMake(size.width + 10, size.height); return CGSizeMake(size.width + 10, size.height);
} }

View File

@@ -117,17 +117,17 @@
NSLog(@"用户ID%@房间ID%@, 游戏ID%lld, code:%@", userId, roomId, self.currentmgId, self.code); NSLog(@"用户ID%@房间ID%@, 游戏ID%lld, code:%@", userId, roomId, self.currentmgId, self.code);
// //
NSString *language = [NSLocale preferredLanguages].firstObject; NSString *language = [NSBundle getLanguageText];
if ([language hasPrefix:@"zh"]) { if ([language hasPrefix:@"zh"]) {
if ([language rangeOfString:@"Hans"].location != NSNotFound) { if ([language rangeOfString:@"Hans"].location != NSNotFound) {
language = @"zh-Hans"; // language = @"zh-CN"; //
} else { } else {
language = @"zh-Hant"; // language = @"zh-TW"; //
} }
}else{ }else{
language = @"zh-Hant"; // language = @"en-US"; //
} }
self.fsmAPP2MG = [SudMGP loadMG:userId roomId:roomId code:self.code mgId:self.currentmgId language:[language isEqualToString:@"zh-Hant"]? @"zh-TW" : @"zh-CN" fsmMG:self rootView:self]; self.fsmAPP2MG = [SudMGP loadMG:userId roomId:roomId code:self.code mgId:self.currentmgId language:language fsmMG:self rootView:self];
} else { } else {
/// , /// ,
NSLog(@"ISudFSMMG:initGameSDKWithAppID:初始化sdk失败 :%@",retMsg); NSLog(@"ISudFSMMG:initGameSDKWithAppID:初始化sdk失败 :%@",retMsg);

View File

@@ -18,7 +18,7 @@ typedef NS_ENUM(NSInteger, XPRoomMenuItemType) {
XPRoomMenuItemType_More,///更多 XPRoomMenuItemType_More,///更多
XPRoomMenuItemType_ArrangeMic,///排麦 XPRoomMenuItemType_ArrangeMic,///排麦
XPRoomMenuItemType_Gift,///礼物 XPRoomMenuItemType_Gift,///礼物
XPRoomMenuItemType_Noble,///贵族 XPRoomMenuItemType_Noble,///VIP
}; };
@interface XPRoomMenuItem : NSObject @interface XPRoomMenuItem : NSObject

View File

@@ -54,7 +54,7 @@
@property (nonatomic,strong) UIButton *giftButton; @property (nonatomic,strong) UIButton *giftButton;
/// ///
@property (nonatomic,strong) UIButton *arrangeMicButton; @property (nonatomic,strong) UIButton *arrangeMicButton;
/// ///VIP
@property (nonatomic,strong) UIButton *nobleButton; @property (nonatomic,strong) UIButton *nobleButton;
/// ///
@property (nonatomic,strong) XPRoomSendTextView *inputTextView; @property (nonatomic,strong) XPRoomSendTextView *inputTextView;
@@ -249,7 +249,7 @@
}]; }];
[self.inputButton mas_makeConstraints:^(MASConstraintMaker *make) { [self.inputButton mas_makeConstraints:^(MASConstraintMaker *make) {
make.size.mas_equalTo(CGSizeMake(95, 32)); make.size.mas_equalTo(CGSizeMake(100, 32));
}]; }];
[self.giftButton mas_makeConstraints:^(MASConstraintMaker *make) { [self.giftButton mas_makeConstraints:^(MASConstraintMaker *make) {
@@ -460,7 +460,7 @@
_inputButton = [UIButton buttonWithType:UIButtonTypeCustom]; _inputButton = [UIButton buttonWithType:UIButtonTypeCustom];
[_inputButton setTitle:YMLocalizedString(@"XPRoomMenuContainerView2") forState:UIControlStateNormal]; [_inputButton setTitle:YMLocalizedString(@"XPRoomMenuContainerView2") forState:UIControlStateNormal];
[_inputButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; [_inputButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
_inputButton.titleLabel.font = [UIFont systemFontOfSize:12]; _inputButton.titleLabel.font = [UIFont systemFontOfSize:11];
_inputButton.titleLabel.numberOfLines = 2; _inputButton.titleLabel.numberOfLines = 2;
_inputButton.layer.masksToBounds = YES; _inputButton.layer.masksToBounds = YES;
_inputButton.layer.cornerRadius = 15; _inputButton.layer.cornerRadius = 15;

View File

@@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface XPMessageRemoteExtModel : PIBaseModel @interface XPMessageRemoteExtModel : PIBaseModel
@property (nonatomic , strong) UserLevelVo * userLevelVo; @property (nonatomic , strong) UserLevelVo * userLevelVo;
///贵族信息 ///VIP信息
@property (nonatomic, strong) UserVipInfoVo *userVipInfoVO; @property (nonatomic, strong) UserVipInfoVo *userVipInfoVO;
///魅力等级 ///魅力等级
@property (nonatomic,copy) NSString *charmUrl; @property (nonatomic,copy) NSString *charmUrl;
@@ -41,7 +41,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic,copy) NSString *inRoomNameplatePic; @property (nonatomic,copy) NSString *inRoomNameplatePic;
///铭牌的字 ///铭牌的字
@property (nonatomic,copy) NSString *inRoomNameplateWord; @property (nonatomic,copy) NSString *inRoomNameplateWord;
///贵族icon ///VIPicon
@property (nonatomic, copy) NSString *vipIcon; @property (nonatomic, copy) NSString *vipIcon;
///安卓房间公屏气泡 ///安卓房间公屏气泡
@property (nonatomic, copy) NSString *androidBubbleUrl; @property (nonatomic, copy) NSString *androidBubbleUrl;

View File

@@ -133,9 +133,9 @@
return [self createCollectRoomAttribute:attachment messageInfo:messageInfo]; return [self createCollectRoomAttribute:attachment messageInfo:messageInfo];
} else if(first == CustomMessageType_RoomPlay_Dating) { } else if(first == CustomMessageType_RoomPlay_Dating) {
return [self createRoomDatingAttribute:attachment messageInfo:messageInfo]; return [self createRoomDatingAttribute:attachment messageInfo:messageInfo];
} else if (first == CustomMessageType_Noble_VIP) {// } else if (first == CustomMessageType_Noble_VIP) {//VIP
return [self createNobleLevelAttribute:attachment messageInfo:messageInfo]; return [self createNobleLevelAttribute:attachment messageInfo:messageInfo];
} else if (first == CustomMessageType_Face) {// } else if (first == CustomMessageType_Face) {//VIP
return [self createRoomFaceAttribute:attachment messageInfo:messageInfo]; return [self createRoomFaceAttribute:attachment messageInfo:messageInfo];
} else if (first == CustomMessageType_Tarot) {// } else if (first == CustomMessageType_Tarot) {//
return [self createTarotAttribute:attachment messageInfo:messageInfo]; return [self createTarotAttribute:attachment messageInfo:messageInfo];
@@ -208,7 +208,7 @@
[attribute appendAttributedString:[self createLanguageImageAttribute:@"common_super_admin"]]; [attribute appendAttributedString:[self createLanguageImageAttribute:@"common_super_admin"]];
} }
if (model.vipIcon) {//icon if (model.vipIcon) {//VIPicon
[attribute appendAttributedString:[self createUrlImageAttribute:model.vipIcon]]; [attribute appendAttributedString:[self createUrlImageAttribute:model.vipIcon]];
[attribute appendAttributedString:[self createSapceAttribute:2]]; [attribute appendAttributedString:[self createSapceAttribute:2]];
} }
@@ -309,7 +309,7 @@
[attribute appendAttributedString:[self createSapceAttribute:2]]; [attribute appendAttributedString:[self createSapceAttribute:2]];
} }
if (extModel.vipIcon.length > 0) {//icon if (extModel.vipIcon.length > 0) {//VIPicon
[attribute appendAttributedString:[self createUrlImageAttribute:extModel.vipIcon]]; [attribute appendAttributedString:[self createUrlImageAttribute:extModel.vipIcon]];
[attribute appendAttributedString:[self createSapceAttribute:2]]; [attribute appendAttributedString:[self createSapceAttribute:2]];
} }
@@ -925,7 +925,7 @@
return messageInfo; return messageInfo;
} }
#pragma mark - #pragma mark - VIP
- (XPMessageInfoModel *)createNobleLevelAttribute:(AttachmentModel *)attachment messageInfo:(XPMessageInfoModel *)messageInfo{ - (XPMessageInfoModel *)createNobleLevelAttribute:(AttachmentModel *)attachment messageInfo:(XPMessageInfoModel *)messageInfo{
NSMutableAttributedString * attribute = [[NSMutableAttributedString alloc] init]; NSMutableAttributedString * attribute = [[NSMutableAttributedString alloc] init];
NSInteger uid = 0; NSInteger uid = 0;
@@ -934,13 +934,13 @@
} else if ([attachment.data[@"uid"] isKindOfClass:[NSString class]]) { } else if ([attachment.data[@"uid"] isKindOfClass:[NSString class]]) {
uid = ((NSString *)attachment.data[@"uid"]).integerValue; uid = ((NSString *)attachment.data[@"uid"]).integerValue;
} }
if (attachment.second == Custom_Message_Sub_Room_Open_Noble_VIP) {/// 851 if (attachment.second == Custom_Message_Sub_Room_Open_Noble_VIP) {/// VIP 851
[attribute appendAttributedString:[self createTextAttribute:YMLocalizedString(@"XPRoomMessageParser80") color:[DJDKMIMOMColor messageDefaultTextColor] font:kRoomMessageDefalutFont]]; [attribute appendAttributedString:[self createTextAttribute:YMLocalizedString(@"XPRoomMessageParser80") color:[DJDKMIMOMColor messageDefaultTextColor] font:kRoomMessageDefalutFont]];
[attribute appendAttributedString:[self createTextAttribute:[NSString stringWithFormat:@"%@(%@)", attachment.data[@"nick"], attachment.data[@"erbanNo"]] color:[DJDKMIMOMColor messageNickColor] font:kRoomMessageDefalutFont]]; [attribute appendAttributedString:[self createTextAttribute:[NSString stringWithFormat:@"%@(%@)", attachment.data[@"nick"], attachment.data[@"erbanNo"]] color:[DJDKMIMOMColor messageNickColor] font:kRoomMessageDefalutFont]];
[attribute appendAttributedString:[self createTextAttribute:YMLocalizedString(@"XPRoomMessageParser81") color:[DJDKMIMOMColor messageDefaultTextColor] font:kRoomMessageDefalutFont]]; [attribute appendAttributedString:[self createTextAttribute:YMLocalizedString(@"XPRoomMessageParser81") color:[DJDKMIMOMColor messageDefaultTextColor] font:kRoomMessageDefalutFont]];
[attribute appendAttributedString:[self createTextAttribute:attachment.data[@"currVipName"] color:[DJDKMIMOMColor messageTextColor] font:kRoomMessageDefalutFont]]; [attribute appendAttributedString:[self createTextAttribute:attachment.data[@"currVipName"] color:[DJDKMIMOMColor messageTextColor] font:kRoomMessageDefalutFont]];
[attribute appendAttributedString:[self createTextAttribute:YMLocalizedString(@"XPRoomMessageParser82") color:[DJDKMIMOMColor messageDefaultTextColor] font:kRoomMessageDefalutFont]]; [attribute appendAttributedString:[self createTextAttribute:YMLocalizedString(@"XPRoomMessageParser82") color:[DJDKMIMOMColor messageDefaultTextColor] font:kRoomMessageDefalutFont]];
} else if (attachment.second == Custom_Message_Sub_Room_Noble_LevelUp || attachment.second == Custom_Message_Sub_AllRoom_Noble_LevelUp_Suspend) {/// } else if (attachment.second == Custom_Message_Sub_Room_Noble_LevelUp || attachment.second == Custom_Message_Sub_AllRoom_Noble_LevelUp_Suspend) {///VIP
[attribute appendAttributedString:[self createTextAttribute:YMLocalizedString(@"XPRoomMessageParser83") color:[DJDKMIMOMColor messageDefaultTextColor] font:kRoomMessageDefalutFont]]; [attribute appendAttributedString:[self createTextAttribute:YMLocalizedString(@"XPRoomMessageParser83") color:[DJDKMIMOMColor messageDefaultTextColor] font:kRoomMessageDefalutFont]];
[attribute appendAttributedString:[self createTextAttribute:attachment.data[@"nick"] color:[DJDKMIMOMColor messageNickColor] font:kRoomMessageDefalutFont]]; [attribute appendAttributedString:[self createTextAttribute:attachment.data[@"nick"] color:[DJDKMIMOMColor messageNickColor] font:kRoomMessageDefalutFont]];
[attribute appendAttributedString:[self createTextAttribute:YMLocalizedString(@"XPRoomMessageParser84") color:[DJDKMIMOMColor messageDefaultTextColor] font:kRoomMessageDefalutFont]]; [attribute appendAttributedString:[self createTextAttribute:YMLocalizedString(@"XPRoomMessageParser84") color:[DJDKMIMOMColor messageDefaultTextColor] font:kRoomMessageDefalutFont]];

View File

@@ -54,7 +54,7 @@ NS_ASSUME_NONNULL_BEGIN
/// @param type 房间类型 /// @param type 房间类型
+ (void)roomRadioGetMsg:(HttpRequestHelperCompletion)completion roomType:(NSString *)type; + (void)roomRadioGetMsg:(HttpRequestHelperCompletion)completion roomType:(NSString *)type;
/// 获取房间贵族小喇叭 /// 获取房间VIP小喇叭
/// @param completion 完成 /// @param completion 完成
/// @param roomUid 房主的uid /// @param roomUid 房主的uid
+ (void)getUserVipRoomTrumpet:(HttpRequestHelperCompletion)completion roomUid:(NSString *)roomUid; + (void)getUserVipRoomTrumpet:(HttpRequestHelperCompletion)completion roomUid:(NSString *)roomUid;

View File

@@ -76,7 +76,7 @@
[self makeRequest:fang method:HttpRequestHelperMethodGET completion:completion, __FUNCTION__, type, nil]; [self makeRequest:fang method:HttpRequestHelperMethodGET completion:completion, __FUNCTION__, type, nil];
} }
/// /// VIP
/// @param completion /// @param completion
+ (void)getUserVipRoomTrumpet:(HttpRequestHelperCompletion)completion roomUid:(NSString *)roomUid { + (void)getUserVipRoomTrumpet:(HttpRequestHelperCompletion)completion roomUid:(NSString *)roomUid {
NSString * fang = [NSString stringFromBase64String:@"dmlwL2dldFVzZXJWaXBSb29tSG9ybg=="];///vip/getUserVipRoomHorn NSString * fang = [NSString stringFromBase64String:@"dmlwL2dldFVzZXJWaXBSb29tSG9ybg=="];///vip/getUserVipRoomHorn

View File

@@ -38,7 +38,7 @@ NS_ASSUME_NONNULL_BEGIN
///获取房间广播模板内容 ///获取房间广播模板内容
/// @param type 房间类型 /// @param type 房间类型
- (void)getRoomRadioMessageListWithType:(NSString *)type; - (void)getRoomRadioMessageListWithType:(NSString *)type;
/// 获取房间贵族小喇叭信息 /// 获取房间VIP小喇叭信息
- (void)getRoomgetUserVipRoomTrumpet:(NSString *)roomUid; - (void)getRoomgetUserVipRoomTrumpet:(NSString *)roomUid;
///结束个播跨房PK ///结束个播跨房PK
- (void)requestFinishAnchorPK:(NSString *)roundId; - (void)requestFinishAnchorPK:(NSString *)roundId;

View File

@@ -269,7 +269,7 @@
[[self getView] getReleaseRadioSuccess:model]; [[self getView] getReleaseRadioSuccess:model];
}] roomType:type]; }] roomType:type];
} }
/// /// VIP
- (void)getRoomgetUserVipRoomTrumpet:(NSString *)roomUid { - (void)getRoomgetUserVipRoomTrumpet:(NSString *)roomUid {
[Api getUserVipRoomTrumpet:[self createHttpCompletion:^(BaseModel * _Nonnull data) { [Api getUserVipRoomTrumpet:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
XPNobleTrumpetModel *model = [XPNobleTrumpetModel modelWithJSON:data.data]; XPNobleTrumpetModel *model = [XPNobleTrumpetModel modelWithJSON:data.data];

View File

@@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)closeRoomDatingSuccess; - (void)closeRoomDatingSuccess;
///获取房间广播信息成功 ///获取房间广播信息成功
- (void)getReleaseRadioSuccess:(XPReleaseRadioModel *)model; - (void)getReleaseRadioSuccess:(XPReleaseRadioModel *)model;
///获取房间贵族喇叭成功 ///获取房间VIP喇叭成功
- (void)getTrumpetSuccess:(XPNobleTrumpetModel *)model; - (void)getTrumpetSuccess:(XPNobleTrumpetModel *)model;
///结束个播跨房PK回调 ///结束个播跨房PK回调
- (void)endAnchorPkSuccess:(BOOL)success msg:(NSString *)msg; - (void)endAnchorPkSuccess:(BOOL)success msg:(NSString *)msg;

View File

@@ -73,6 +73,7 @@
_titleLabel.textAlignment = NSTextAlignmentCenter; _titleLabel.textAlignment = NSTextAlignmentCenter;
_titleLabel.font = [UIFont systemFontOfSize:10]; _titleLabel.font = [UIFont systemFontOfSize:10];
_titleLabel.textColor = [DJDKMIMOMColor mainTextColor]; _titleLabel.textColor = [DJDKMIMOMColor mainTextColor];
_titleLabel.numberOfLines = 2;
} }
return _titleLabel; return _titleLabel;
} }

View File

@@ -195,7 +195,7 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey;
releaseRadioVC.modalPresentationStyle = UIModalPresentationOverFullScreen; releaseRadioVC.modalPresentationStyle = UIModalPresentationOverFullScreen;
[self.hostDelegate.getCurrentNav presentViewController:releaseRadioVC animated:YES completion:nil]; [self.hostDelegate.getCurrentNav presentViewController:releaseRadioVC animated:YES completion:nil];
} }
/// ///VIP
- (void)getTrumpetSuccess:(XPNobleTrumpetModel *)model { - (void)getTrumpetSuccess:(XPNobleTrumpetModel *)model {
[self dismissViewControllerAnimated:YES completion:nil]; [self dismissViewControllerAnimated:YES completion:nil];
XPRoomTrumpetViewController * trumpetVC = [[XPRoomTrumpetViewController alloc] initWithDelegate:self.hostDelegate]; XPRoomTrumpetViewController * trumpetVC = [[XPRoomTrumpetViewController alloc] initWithDelegate:self.hostDelegate];

View File

@@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface Api (RoomTrumpet) @interface Api (RoomTrumpet)
// 发送贵族小喇叭消息 // 发送VIP小喇叭消息
+ (void)sendRoomTrumpet:(HttpRequestHelperCompletion)completion roomUid:(NSString *)roomUid content:(NSString *)content; + (void)sendRoomTrumpet:(HttpRequestHelperCompletion)completion roomUid:(NSString *)roomUid content:(NSString *)content;
@end @end

View File

@@ -9,7 +9,7 @@
@implementation Api (RoomTrumpet) @implementation Api (RoomTrumpet)
// // VIP
+ (void)sendRoomTrumpet:(HttpRequestHelperCompletion)completion roomUid:(NSString *)roomUid content:(NSString *)content { + (void)sendRoomTrumpet:(HttpRequestHelperCompletion)completion roomUid:(NSString *)roomUid content:(NSString *)content {
[self makeRequest:@"vip/sendRoomHorn" method:HttpRequestHelperMethodGET completion:completion, __FUNCTION__, roomUid, content, nil]; [self makeRequest:@"vip/sendRoomHorn" method:HttpRequestHelperMethodGET completion:completion, __FUNCTION__, roomUid, content, nil];
} }

View File

@@ -22,7 +22,7 @@
@property (nonatomic, strong) UIImageView *backView; @property (nonatomic, strong) UIImageView *backView;
/// ///
@property (nonatomic,strong) NetImageView *avatarImageView; @property (nonatomic,strong) NetImageView *avatarImageView;
/// ///VIP
@property (nonatomic,strong) NetImageView *nobleImageView; @property (nonatomic,strong) NetImageView *nobleImageView;
/// ///
@property (nonatomic, strong) UILabel *nickLabel; @property (nonatomic, strong) UILabel *nickLabel;

View File

@@ -47,8 +47,8 @@
make.top.mas_equalTo(kGetScaleWidth(17)); make.top.mas_equalTo(kGetScaleWidth(17));
}]; }];
[self.titleView mas_makeConstraints:^(MASConstraintMaker *make) { [self.titleView mas_makeConstraints:^(MASConstraintMaker *make) {
make.height.mas_equalTo(kGetScaleWidth(20));
make.leading.trailing.equalTo(self.bgImageView); make.leading.trailing.equalTo(self.bgImageView).inset(1);
make.top.mas_equalTo(kGetScaleWidth(68)); make.top.mas_equalTo(kGetScaleWidth(68));
}]; }];
@@ -90,6 +90,7 @@
if(!_titleView){ if(!_titleView){
_titleView = [UILabel labelInitWithText:YMLocalizedString(@"PIRoomPhotoAlbumChoosePhotoCell0") font:kFontRegular(10) textColor:UIColorFromRGB(0xB3B3C3)]; _titleView = [UILabel labelInitWithText:YMLocalizedString(@"PIRoomPhotoAlbumChoosePhotoCell0") font:kFontRegular(10) textColor:UIColorFromRGB(0xB3B3C3)];
_titleView.textAlignment = NSTextAlignmentCenter; _titleView.textAlignment = NSTextAlignmentCenter;
_titleView.numberOfLines = 2;
} }
return _titleView; return _titleView;
} }

View File

@@ -50,6 +50,7 @@
-(void)installConstraints{ -(void)installConstraints{
[self.titleView mas_makeConstraints:^(MASConstraintMaker *make) { [self.titleView mas_makeConstraints:^(MASConstraintMaker *make) {
make.leading.mas_equalTo(kGetScaleWidth(20)); make.leading.mas_equalTo(kGetScaleWidth(20));
make.width.mas_equalTo(kGetScaleWidth(100));
make.centerY.equalTo(self); make.centerY.equalTo(self);
}]; }];
[self.arrowView mas_makeConstraints:^(MASConstraintMaker *make) { [self.arrowView mas_makeConstraints:^(MASConstraintMaker *make) {
@@ -59,6 +60,7 @@
}]; }];
[self.tipsView mas_makeConstraints:^(MASConstraintMaker *make) { [self.tipsView mas_makeConstraints:^(MASConstraintMaker *make) {
make.trailing.equalTo(self.arrowView.mas_leading).mas_offset(-kGetScaleWidth(6)); make.trailing.equalTo(self.arrowView.mas_leading).mas_offset(-kGetScaleWidth(6));
make.leading.equalTo(self.titleView.mas_trailing).mas_offset(kGetScaleWidth(5));
make.centerY.equalTo(self); make.centerY.equalTo(self);
}]; }];
[self.pi_priceView mas_makeConstraints:^(MASConstraintMaker *make) { [self.pi_priceView mas_makeConstraints:^(MASConstraintMaker *make) {
@@ -118,6 +120,8 @@
- (UILabel *)tipsView{ - (UILabel *)tipsView{
if(!_tipsView){ if(!_tipsView){
_tipsView = [UILabel labelInitWithText:@"" font:kFontRegular(14) textColor:UIColorFromRGB(0xB3B3C3)]; _tipsView = [UILabel labelInitWithText:@"" font:kFontRegular(14) textColor:UIColorFromRGB(0xB3B3C3)];
_tipsView.numberOfLines = 2;
_tipsView.textAlignment = NSTextAlignmentRight;
} }
return _tipsView; return _tipsView;
} }

View File

@@ -36,7 +36,7 @@
- (void)initSubViewConstraints { - (void)initSubViewConstraints {
[self.emptyLabel mas_makeConstraints:^(MASConstraintMaker *make) { [self.emptyLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.mas_equalTo(self.contentView); make.left.right.mas_equalTo(self.contentView).inset(10);
make.centerY.mas_equalTo(self.contentView); make.centerY.mas_equalTo(self.contentView);
}]; }];
} }
@@ -49,6 +49,7 @@
_emptyLabel.font = [UIFont systemFontOfSize:14]; _emptyLabel.font = [UIFont systemFontOfSize:14];
_emptyLabel.textAlignment = NSTextAlignmentCenter; _emptyLabel.textAlignment = NSTextAlignmentCenter;
_emptyLabel.textColor = [UIColor whiteColor]; _emptyLabel.textColor = [UIColor whiteColor];
_emptyLabel.numberOfLines = 2;
} }
return _emptyLabel; return _emptyLabel;
} }

View File

@@ -15,7 +15,7 @@ typedef NS_ENUM(NSUInteger, GiftType) {
GiftType_Game = 2, // 游戏轰趴礼物 GiftType_Game = 2, // 游戏轰趴礼物
GiftType_Lucky = 3, // 福袋礼物 GiftType_Lucky = 3, // 福袋礼物
GiftType_LuckyPool = 5, //福袋奖池礼物 GiftType_LuckyPool = 5, //福袋奖池礼物
GiftType_Noble = 7, // 贵族礼物 GiftType_Noble = 7, // VIP礼物
GiftType_WeekStar = 8, //周星礼物 GiftType_WeekStar = 8, //周星礼物
GiftType_Graffiti = 10, //涂鸦礼物 GiftType_Graffiti = 10, //涂鸦礼物
GiftType_Anchor = 11, //个播礼物 GiftType_Anchor = 11, //个播礼物
@@ -109,7 +109,7 @@ typedef NS_ENUM(NSUInteger, RoomSendGiftType) {
@property (nonatomic,assign) BOOL isSelected;//是否被选中 @property (nonatomic,assign) BOOL isSelected;//是否被选中
///礼物来源 ///礼物来源
@property (nonatomic,assign) GiftSourceType sourceType; @property (nonatomic,assign) GiftSourceType sourceType;
///贵族礼物专属信息 ///VIP礼物专属信息
@property (nonatomic, strong) GiftNobleInfoModel *giftVipInfo; @property (nonatomic, strong) GiftNobleInfoModel *giftVipInfo;
/*----------周星礼物--------*/ /*----------周星礼物--------*/

View File

@@ -11,11 +11,11 @@ NS_ASSUME_NONNULL_BEGIN
@interface GiftNobleInfoModel : PIBaseModel @interface GiftNobleInfoModel : PIBaseModel
///贵族图标 ///VIP图标
@property (nonatomic, copy)NSString *vipIcon; @property (nonatomic, copy)NSString *vipIcon;
///可用贵族等级 ///可用VIP等级
@property (nonatomic, assign) NSInteger vipLevel; @property (nonatomic, assign) NSInteger vipLevel;
///贵族名称 ///VIP名称
@property (nonatomic, copy) NSString *vipName; @property (nonatomic, copy) NSString *vipName;
@end @end

View File

@@ -59,7 +59,7 @@
} }
[Api requestNormalGiftList:[self createHttpCompletion:^(BaseModel * _Nonnull data) { [Api requestNormalGiftList:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
NSArray *luckyBagGift = [GiftInfoModel modelsWithArray:data.data[@"luckyGift"]]; // NSArray *luckyBagGift = [GiftInfoModel modelsWithArray:data.data[@"luckyGift"]]; //
NSArray *vipGift = [GiftInfoModel modelsWithArray:data.data[@"vipGift"]]; // NSArray *vipGift = [GiftInfoModel modelsWithArray:data.data[@"vipGift"]]; // VIP
NSArray *luckyPoolGift = [GiftInfoModel modelsWithArray:data.data[@"luckyPoolGift"]];// NSArray *luckyPoolGift = [GiftInfoModel modelsWithArray:data.data[@"luckyPoolGift"]];//
NSArray *normalGift = [GiftInfoModel modelsWithArray:data.data[@"normalGift"]]; // NSArray *normalGift = [GiftInfoModel modelsWithArray:data.data[@"normalGift"]]; //
NSArray *weekStarGift = [GiftInfoModel modelsWithArray:data.data[@"weekStarGift"]]; // NSArray *weekStarGift = [GiftInfoModel modelsWithArray:data.data[@"weekStarGift"]]; //

View File

@@ -12,7 +12,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface XPGiftItemCollectionViewCell : UICollectionViewCell @interface XPGiftItemCollectionViewCell : UICollectionViewCell
/// ///
@property (nonatomic,strong) GiftInfoModel *giftInfo; @property (nonatomic,strong) GiftInfoModel *giftInfo;
///当前用户贵族等级 ///当前用户VIP等级
@property (nonatomic, assign) NSInteger curUserNobleLevel; @property (nonatomic, assign) NSInteger curUserNobleLevel;
///使用的地方 ///使用的地方
@property (nonatomic,assign) SendGiftType usingplaceType; @property (nonatomic,assign) SendGiftType usingplaceType;

View File

@@ -39,9 +39,9 @@
@property (nonatomic,strong) UIView * coverView; @property (nonatomic,strong) UIView * coverView;
/// ///
@property (nonatomic,strong) UILabel *giftNumLabel; @property (nonatomic,strong) UILabel *giftNumLabel;
///icon ///VIPicon
@property (nonatomic, strong) NetImageView *nobleIconImageView; @property (nonatomic, strong) NetImageView *nobleIconImageView;
/// ///VIP
@property (nonatomic, strong) UIImageView *lockImageView; @property (nonatomic, strong) UIImageView *lockImageView;
///icon ///icon
@property(nonatomic,strong) UIImageView *superGiftView; @property(nonatomic,strong) UIImageView *superGiftView;

View File

@@ -28,7 +28,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface PIGiftInfoSegmentedView : UIView @interface PIGiftInfoSegmentedView : UIView
@property(nonatomic,weak) id<PIGiftInfoSegmentedViewDelegate>delegate; @property(nonatomic,weak) id<PIGiftInfoSegmentedViewDelegate>delegate;
@property (nonatomic,assign) SendGiftType usingplaceType; @property (nonatomic,assign) SendGiftType usingplaceType;
///普通礼物/幸运礼物/贵族礼物 ///普通礼物/幸运礼物/VIP礼物
@property (nonatomic,strong) NSArray *normalOriginArray; @property (nonatomic,strong) NSArray *normalOriginArray;
///背包礼物 ///背包礼物
@property (nonatomic,strong) NSArray *packOriginArray; @property (nonatomic,strong) NSArray *packOriginArray;
@@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic,strong) XPFreeGiftModel *freeModel; @property (nonatomic,strong) XPFreeGiftModel *freeModel;
///免费礼物送完删除了,不能出现在背包,防止数据更新时重新加进来 ///免费礼物送完删除了,不能出现在背包,防止数据更新时重新加进来
@property (nonatomic,assign) BOOL isDelFreeGift; @property (nonatomic,assign) BOOL isDelFreeGift;
///当前用户贵族等级 ///当前用户VIP等级
@property (nonatomic, assign) NSInteger curUserNobleLevel; @property (nonatomic, assign) NSInteger curUserNobleLevel;
///最后一次选中的礼物 ///最后一次选中的礼物
@property (nonatomic,strong,readonly) GiftInfoModel *lastSelectGift; @property (nonatomic,strong,readonly) GiftInfoModel *lastSelectGift;

View File

@@ -39,7 +39,7 @@
@property (nonatomic,strong)XPGiftInfoView *luckyVC; @property (nonatomic,strong)XPGiftInfoView *luckyVC;
/// ///
@property (nonatomic,strong)XPGiftInfoView *weekStarVC; @property (nonatomic,strong)XPGiftInfoView *weekStarVC;
/// ///VIP
@property (nonatomic,strong)XPGiftInfoView *nobleVC; @property (nonatomic,strong)XPGiftInfoView *nobleVC;
/// ///
@property (nonatomic,strong)XPGiftInfoView *anchorVC; @property (nonatomic,strong)XPGiftInfoView *anchorVC;
@@ -81,7 +81,7 @@
[self.packGiftButton mas_makeConstraints:^(MASConstraintMaker *make) { [self.packGiftButton mas_makeConstraints:^(MASConstraintMaker *make) {
make.trailing.mas_equalTo(-15); make.trailing.mas_equalTo(-15);
make.centerY.height.mas_equalTo(self.titleView); make.centerY.height.mas_equalTo(self.titleView);
make.width.mas_equalTo(30); make.width.mas_equalTo(35);
}]; }];
[self.totalValueLabel mas_makeConstraints:^(MASConstraintMaker *make) { [self.totalValueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.mas_equalTo(self.packGiftButton.mas_left).mas_offset(-3); make.right.mas_equalTo(self.packGiftButton.mas_left).mas_offset(-3);
@@ -329,7 +329,7 @@
_titleView.defaultSelectedIndex = 0; _titleView.defaultSelectedIndex = 0;
_titleView.cellSpacing = 0; _titleView.cellSpacing = 0;
_titleView.cellWidthIncrement = 5; _titleView.cellWidthIncrement = 5;
_titleView.cellWidth = 30; // _titleView.cellWidth = 30;
_titleView.listContainer = self.pi_containerView; _titleView.listContainer = self.pi_containerView;
} }

View File

@@ -89,7 +89,7 @@
[self.giftCountView mas_makeConstraints:^(MASConstraintMaker *make) { [self.giftCountView mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.mas_equalTo(-15); make.right.mas_equalTo(-15);
make.bottom.mas_equalTo(self.superview.superview.mas_bottom).offset(-45 -kSafeAreaBottomHeight); make.bottom.mas_equalTo(self.superview.superview.mas_bottom).offset(-45 -kSafeAreaBottomHeight);
make.width.mas_equalTo(135); make.width.mas_equalTo(160);
}]; }];
} }
[self updateCountStatus]; [self updateCountStatus];
@@ -353,13 +353,13 @@
return; return;
} }
NSTextAttachment * addAtt = [[NSTextAttachment alloc] init]; NSTextAttachment * addAtt = [[NSTextAttachment alloc] init];
UIImage *addIconImage = [UIImage imageNamed:@"exchange_gold_icon"];; UIImage *addIconImage = [UIImage imageNamed:@"pi_gift_diamond_add"];;
addAtt.bounds = CGRectMake(0, roundf(self.balanceLabel.font.capHeight - 14)/2.f, 14, 14); addAtt.bounds = CGRectMake(0, roundf(self.balanceLabel.font.capHeight - 14)/2.f, 14, 14);
addAtt.image = addIconImage; addAtt.image = addIconImage;
NSAttributedString *addAttribute = [NSMutableAttributedString attributedStringWithAttachment:(NSTextAttachment *)addAtt]; NSAttributedString *addAttribute = [NSMutableAttributedString attributedStringWithAttachment:(NSTextAttachment *)addAtt];
NSTextAttachment * goldAtt = [[NSTextAttachment alloc] init]; NSTextAttachment * goldAtt = [[NSTextAttachment alloc] init];
UIImage *goldIconImage = [UIImage imageNamed:@"pi_gift_gold"];; UIImage *goldIconImage = [UIImage imageNamed:@"common_diamond"];;
goldAtt.bounds = CGRectMake(0, roundf(self.balanceLabel.font.capHeight - 14)/2.f, 14, 14); goldAtt.bounds = CGRectMake(0, roundf(self.balanceLabel.font.capHeight - 14)/2.f, 14, 14);
goldAtt.image = goldIconImage; goldAtt.image = goldIconImage;
NSAttributedString *goldAttribute = [NSMutableAttributedString attributedStringWithAttachment:(NSTextAttachment *)goldAtt]; NSAttributedString *goldAttribute = [NSMutableAttributedString attributedStringWithAttachment:(NSTextAttachment *)goldAtt];

Some files were not shown because too many files have changed in this diff Show More