Commit a0fa1f53 by ludi

添加我的页面一些跳转

parent bdbef5f6
Showing with 279 additions and 44 deletions
......@@ -36,6 +36,7 @@
00A36A522C1D8A69004D28FA /* FUSHomeNovaListModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 00A36A512C1D8A69004D28FA /* FUSHomeNovaListModel.m */; };
00A36A552C1D8A7C004D28FA /* FUSHomeNovaListBroadcastHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 00A36A542C1D8A7C004D28FA /* FUSHomeNovaListBroadcastHelper.m */; };
00A36A592C1D9FD6004D28FA /* FUSLeftPopScrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = 00A36A582C1D9FD6004D28FA /* FUSLeftPopScrollView.m */; };
00B48E072C213CCD001E4872 /* FUSSettingInitDataModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 00B48E062C213CCD001E4872 /* FUSSettingInitDataModel.m */; };
BE0395D12C132E0F003EB21B /* BEComposerNodeModel.m in Sources */ = {isa = PBXBuildFile; fileRef = BE0395BA2C132E0F003EB21B /* BEComposerNodeModel.m */; };
BE0395D22C132E0F003EB21B /* BEEffectDataManager.m in Sources */ = {isa = PBXBuildFile; fileRef = BE0395BC2C132E0F003EB21B /* BEEffectDataManager.m */; };
BE0395D32C132E0F003EB21B /* BEEffectManager.mm in Sources */ = {isa = PBXBuildFile; fileRef = BE0395BE2C132E0F003EB21B /* BEEffectManager.mm */; };
......@@ -1455,6 +1456,8 @@
00A36A542C1D8A7C004D28FA /* FUSHomeNovaListBroadcastHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FUSHomeNovaListBroadcastHelper.m; sourceTree = "<group>"; };
00A36A572C1D9FD6004D28FA /* FUSLeftPopScrollView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FUSLeftPopScrollView.h; sourceTree = "<group>"; };
00A36A582C1D9FD6004D28FA /* FUSLeftPopScrollView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FUSLeftPopScrollView.m; sourceTree = "<group>"; };
00B48E052C213CCD001E4872 /* FUSSettingInitDataModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FUSSettingInitDataModel.h; sourceTree = "<group>"; };
00B48E062C213CCD001E4872 /* FUSSettingInitDataModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FUSSettingInitDataModel.m; sourceTree = "<group>"; };
6DFACA8A2DF329F3E7F7B2FF /* Pods-FuSiLive.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FuSiLive.debug.xcconfig"; path = "Target Support Files/Pods-FuSiLive/Pods-FuSiLive.debug.xcconfig"; sourceTree = "<group>"; };
AD8AA4E093E761AA637769AD /* Pods-FuSiLive.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FuSiLive.release.xcconfig"; path = "Target Support Files/Pods-FuSiLive/Pods-FuSiLive.release.xcconfig"; sourceTree = "<group>"; };
BE03959E2C132E0F003EB21B /* bef_effect_ai_api.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = bef_effect_ai_api.h; sourceTree = "<group>"; };
......@@ -5804,6 +5807,8 @@
BED0F3232C0C49C80017B285 /* FUSContryModel.m */,
BED0F3242C0C49C80017B285 /* FUSUpdateModel.h */,
BED0F3252C0C49C80017B285 /* FUSUpdateModel.m */,
00B48E052C213CCD001E4872 /* FUSSettingInitDataModel.h */,
00B48E062C213CCD001E4872 /* FUSSettingInitDataModel.m */,
);
path = Model;
sourceTree = "<group>";
......@@ -9298,6 +9303,7 @@
BED0F9D42C0C49C90017B285 /* FUSContryModel.m in Sources */,
BED0F8C02C0C49C80017B285 /* FUSBaofangPageTitleCell.m in Sources */,
BE5F4D432C1D941E004B54AA /* FUSAudienceListView.m in Sources */,
00B48E072C213CCD001E4872 /* FUSSettingInitDataModel.m in Sources */,
BED0FC0A2C0C49CA0017B285 /* FUSIMZhaiXinViewController.m in Sources */,
BED0FA772C0C49C90017B285 /* FUSAgoraHelper.m in Sources */,
BED0FB922C0C49CA0017B285 /* FUSSearchTableViewCell.swift in Sources */,
......
......@@ -18,6 +18,7 @@
#import "FUSShareTipsModel.h"
#import "FUSBannerDataModel.h"
#import "FUSLangAreaCountryModel.h"
#import "FUSSettingInitDataModel.h"
@interface FUSCacheDataShare : NSObject
......@@ -44,6 +45,9 @@
// 直播黑名单
@property (nonatomic, strong) NSMutableDictionary *blockedListDict;
/// 启动缓存的一些信息
@property (nonatomic, strong) FUSSettingInitDataModel *settingInitDataModel;
#pragma mark -- 热更新数据
// 热数据MD5信息
......
......@@ -10,9 +10,25 @@
#import "FUSZoneCacheOperate.h"
NS_ASSUME_NONNULL_BEGIN
typedef enum :NSInteger{
/// 个人空间
FUSMyHeaderButtonTypeMyZone = 0,
/// 亲密
FUSMyHeaderButtonTypeIntimacy,
/// 追踪
FUSMyHeaderButtonTypeFollow,
/// 粉丝
FUSMyHeaderButtonTypeFans,
/// 钻石
FUSMyHeaderButtonTypeDiamond,
/// 露水
FUSMyHeaderButtonTypeDew,
}FUSMyHeaderButtonType;
@interface FUSMyHeaderView : UIView
@property (nonatomic, copy) void(^buttonDidClickedHander)(FUSMyHeaderButtonType type);
- (void)fus_setupHeaderViewWithModel:(FUSZoneInfosModel *)model;
/// 返回控件高度
......
......@@ -12,11 +12,10 @@
@interface FUSMyHeaderView ()
//@property (nonatomic, strong) UIButton *publishBtn;
//@property (nonatomic, strong) UIButton *myBtn;
@property (nonatomic, strong) UIButton *avatorBtn;
@property (nonatomic, strong) UILabel *nickNameLabel;
@property (nonatomic, strong) UILabel *vipMarkLabel;
//@property (nonatomic, strong) UILabel *vipMarkLabel;
@property (nonatomic, strong) UIImageView *vipMarkImgView;
@property (nonatomic, strong) UILabel *levelLabel;
@property (nonatomic, strong) UIButton *ageBtn;
@property (nonatomic, strong) UILabel *idLabel;
......@@ -87,23 +86,34 @@
make.left.top.bottom.equalTo(nickNameBgView);
}];
self.vipMarkLabel = [[UILabel alloc] init];
self.vipMarkLabel.font = [UIFont fus_themeBoldFont:9];
self.vipMarkLabel.textColor = [UIColor fus_textColorRich];
self.vipMarkLabel.text = @"V";
self.vipMarkLabel.textAlignment = NSTextAlignmentCenter;
self.vipMarkLabel.layer.cornerRadius = 14 / 2.0f;
self.vipMarkLabel.layer.masksToBounds = YES;
self.vipMarkLabel.backgroundColor = [UIColor fus_diamondBlue];
[nickNameBgView addSubview:self.vipMarkLabel];
[self.vipMarkLabel mas_makeConstraints:^(MASConstraintMaker *make) {
// self.vipMarkLabel = [[UILabel alloc] init];
// self.vipMarkLabel.font = [UIFont fus_themeBoldFont:9];
// self.vipMarkLabel.textColor = [UIColor fus_textColorRich];
// self.vipMarkLabel.text = @"V";
// self.vipMarkLabel.textAlignment = NSTextAlignmentCenter;
// self.vipMarkLabel.layer.cornerRadius = 14 / 2.0f;
// self.vipMarkLabel.layer.masksToBounds = YES;
// self.vipMarkLabel.backgroundColor = [UIColor fus_diamondBlue];
// [nickNameBgView addSubview:self.vipMarkLabel];
// [self.vipMarkLabel mas_makeConstraints:^(MASConstraintMaker *make) {
// make.right.equalTo(nickNameBgView);
// make.centerY.equalTo(nickNameBgView.mas_centerY);
// make.left.equalTo(self.nickNameLabel.mas_right).offset(6);
// make.size.mas_equalTo(CGSizeMake(14, 14));
// }];
self.vipMarkImgView = [[UIImageView alloc] init];
self.vipMarkImgView.contentMode = UIViewContentModeScaleAspectFit;
[nickNameBgView addSubview:self.vipMarkImgView];
[self.vipMarkImgView mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.equalTo(nickNameBgView);
make.centerY.equalTo(nickNameBgView.mas_centerY);
make.left.equalTo(self.nickNameLabel.mas_right).offset(6);
make.size.mas_equalTo(CGSizeMake(14, 14));
// make.size.mas_equalTo(CGSizeMake(14, 14));
make.height.offset(16);
}];
UIView *sexBlankBgView = [[UIView alloc] init];
UIButton *sexBlankBgView = [UIButton buttonWithType:UIButtonTypeCustom];
[topBgView addSubview:sexBlankBgView];
[sexBlankBgView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(nickNameBgView.mas_bottom).offset(4);
......@@ -172,10 +182,14 @@
NSArray *labelsArray = @[self.intimacyNumLabel, self.followNumLabel, self.fansNumLabel];
NSArray *titleArray = @[FUSLocalizationHelper.versionLocalString(@"親密"), FUSLocalizationHelper.versionLocalString(@"追蹤"), FUSLocalizationHelper.versionLocalString(@"粉絲")];
NSArray *intimacyTagList = @[@(FUSMyHeaderButtonTypeIntimacy), @(FUSMyHeaderButtonTypeFollow), @(FUSMyHeaderButtonTypeFans)];
NSMutableArray *intimacyBlankViewsArray = [[NSMutableArray alloc] init];
for (int i = 0; i < titleArray.count; i++) {
UIView *tempBgView = [[UIView alloc] init];
UIButton *tempBgView = [UIButton buttonWithType:UIButtonTypeCustom];
[topBottomBgImageView addSubview:tempBgView];
NSNumber *tagNum = intimacyTagList[i];
tempBgView.tag = [tagNum intValue];
[tempBgView addTarget:self action:@selector(fus_commondBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
UILabel *tempNumLabel = labelsArray[i];
tempNumLabel.font = [UIFont fus_themeBoldFont:25];
......@@ -221,10 +235,15 @@
NSArray *jewBlankImgNameList = @[@"fus_my_setting_header_jew_icon", @"fus_my_setting_header_dew_icon"];
NSArray *jewLabelsList = @[self.jewNumLabel, self.dewNumLabel];
NSArray *jewBtnTagList = @[@(FUSMyHeaderButtonTypeDiamond), @(FUSMyHeaderButtonTypeDew)];
NSMutableArray *jewBlankViewsList = [[NSMutableArray alloc] init];
for (int i = 0; i < jewBlankImgNameList.count; i++) {
UIImageView *tempBgImgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"fus_my_setting_header_jewBlank_bg"]];
UIButton *tempBgImgView = [UIButton buttonWithType:UIButtonTypeCustom];
[tempBgImgView setBackgroundImage:[UIImage imageNamed:@"fus_my_setting_header_jewBlank_bg"] forState:UIControlStateNormal];
[self addSubview:tempBgImgView];
NSNumber *tagNum = jewBtnTagList[i];
tempBgImgView.tag = [tagNum intValue];
[tempBgImgView addTarget:self action:@selector(fus_commondBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
UIImageView *devImgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:jewBlankImgNameList[i]]];
devImgView.contentMode = UIViewContentModeScaleAspectFit;
......@@ -251,17 +270,24 @@
make.height.offset(94);
}];
// [self.avatorBtn setBackgroundColor:[UIColor yellowColor]];
// self.idLabel.text = @"ID: 21412421";
// self.levelLabel.text = @" 30 ";
// [self.ageBtn setTitle:@"30" forState:UIControlStateNormal];
// self.dewNumLabel.text = @"3000";
// self.jewNumLabel.text = @"5000";
// self.fansNumLabel.text = @"32346";
// self.nickNameLabel.text = @"34h43rh34";
// self.followNumLabel.text = @"30";
// self.intimacyNumLabel.text = @"80";
// self.fansNumAddedLabel.text = @" +20 ";
self.avatorBtn.tag = FUSMyHeaderButtonTypeMyZone;
[self.avatorBtn addTarget:self action:@selector(fus_commondBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
sexBlankBgView.tag = FUSMyHeaderButtonTypeMyZone;
[sexBlankBgView addTarget:self action:@selector(fus_commondBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
[copyBgBtn addTarget:self action:@selector(fus_copyBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
}
#pragma mark --- button did clicked
-(void)fus_copyBtnDidClicked:(UIButton *)btn{
[UIPasteboard generalPasteboard].string = _zoneModel.uid;
[FUSDialogView fus_showDialog:FUSLocalizationHelper.localString(@"复制成功")];
}
-(void)fus_commondBtnDidClicked:(UIButton *)btn{
if (self.buttonDidClickedHander) {
self.buttonDidClickedHander(btn.tag);
}
}
#pragma mark --- method
......@@ -318,6 +344,8 @@
[self.ageBtn mas_updateConstraints:^(MASConstraintMaker *make) {
make.width.offset(ageStringSzie.width + 9 + 10);
}];
self.vipMarkImgView.image = [UIImage fus_imageWithLevel:[model.level integerValue]];
}
......
......@@ -126,6 +126,12 @@
} failure:^(NSString *msg, int code) {
[FUSDialogView fus_showDialog:msg];
if (autoCall) {
// 为了让下拉刷新可以回调
if (self.delegate && [self.delegate respondsToSelector:@selector(fus_homeViewViewModelAnchorListDidUpdate:)]) {
[self.delegate fus_homeViewViewModelAnchorListDidUpdate:FUSHomeViewAnchorListTypeNormal];
}
}
}];
}
......
......@@ -9,6 +9,7 @@
#import "FUSImAnchorViewController.h"
#import "FUSImAnchorHeaderView.h"
#import "FUSSettingTableView.h"
#import "FUSCacheDataShare.h"
typedef NS_ENUM(NSInteger, FUSImAnchorItemType){
FUSImAnchorItemTypeLiveTask = 1,
......@@ -85,8 +86,14 @@ typedef NS_ENUM(NSInteger, FUSImAnchorItemType){
}];
FUSWeakSelf(weakself);
[self.publishBtn addTarget:self action:@selector(fus_publishBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
[self.returnBtn addTarget:self action:@selector(fus_popViewController) forControlEvents:UIControlEventTouchUpInside];
self.headerView.withdrawBtnClickedHandler = ^{
FUSWKWebViewController *vc = [[FUSWKWebViewController alloc] init];
vc.webUrlString = [FUSCacheDataShare shareStore].settingInitDataModel.withdrawAddress;
[weakself.navigationController pushViewController:vc animated:YES];
};
}
-(void)fus_createItems{
......@@ -211,7 +218,35 @@ typedef NS_ENUM(NSInteger, FUSImAnchorItemType){
#pragma mark --- button did clicked
-(void)fus_itemDidClicked:(FUSImAnchorItemType)type{
switch (type) {
case FUSImAnchorItemTypeLiveTask:{
FUSWKWebViewController *vc = [[FUSWKWebViewController alloc] init];
vc.webUrlString = [FUSCacheDataShare shareStore].settingInitDataModel.liveTaskAddress;
[self.navigationController pushViewController:vc animated:YES];
}
break;
case FUSImAnchorItemTypePopular:{
FUSWKWebViewController *vc = [[FUSWKWebViewController alloc] init];
vc.webUrlString = [FUSCacheDataShare shareStore].settingInitDataModel.popularAddress;
[self.navigationController pushViewController:vc animated:YES];
}
break;
case FUSImAnchorItemTypeBroadcastBuild:{
FUSWKWebViewController *vc = [[FUSWKWebViewController alloc] init];
vc.webUrlString = [FUSCacheDataShare shareStore].settingInitDataModel.anchorNovaAddress;
[self.navigationController pushViewController:vc animated:YES];
}
break;
case FUSImAnchorItemTypeActivity:{
FUSWKWebViewController *vc = [[FUSWKWebViewController alloc] init];
vc.webUrlString = [FUSCacheDataShare shareStore].settingInitDataModel.activitiesAddress;
[self.navigationController pushViewController:vc animated:YES];
}
break;
default:
break;
}
}
-(void)fus_publishBtnDidClicked:(UIButton *)btn{
......
......@@ -13,6 +13,8 @@ NS_ASSUME_NONNULL_BEGIN
@interface FUSImAnchorHeaderView : UIView
@property (nonatomic, copy) void(^withdrawBtnClickedHandler)(void);
- (void)fus_setupHeaderViewWithModel:(FUSZoneInfosModel *)model;
/// 返回控件高度
......
......@@ -13,11 +13,13 @@
@property (nonatomic, strong) UIButton *avatorBtn;
@property (nonatomic, strong) UILabel *nickNameLabel;
@property (nonatomic, strong) UILabel *vipMarkLabel;
//@property (nonatomic, strong) UILabel *vipMarkLabel;
@property (nonatomic, strong) UIImageView *vipMarkImgView;
@property (nonatomic, strong) UILabel *levelLabel;
@property (nonatomic, strong) UIButton *ageBtn;
@property (nonatomic, strong) UILabel *idLabel;
@property (nonatomic, strong) UILabel *fireNumLabel;
@property (nonatomic, strong) UIButton *withdrawBtn;
/// 数据
@property (nonatomic, strong) FUSZoneInfosModel *zoneModel;
......@@ -86,20 +88,31 @@
make.left.top.bottom.equalTo(nickNameBgView);
}];
self.vipMarkLabel = [[UILabel alloc] init];
self.vipMarkLabel.font = [UIFont fus_themeBoldFont:9];
self.vipMarkLabel.textColor = [UIColor fus_textColorRich];
self.vipMarkLabel.text = @"V";
self.vipMarkLabel.textAlignment = NSTextAlignmentCenter;
self.vipMarkLabel.layer.cornerRadius = 14 / 2.0f;
self.vipMarkLabel.layer.masksToBounds = YES;
self.vipMarkLabel.backgroundColor = [UIColor fus_diamondBlue];
[nickNameBgView addSubview:self.vipMarkLabel];
[self.vipMarkLabel mas_makeConstraints:^(MASConstraintMaker *make) {
// self.vipMarkLabel = [[UILabel alloc] init];
// self.vipMarkLabel.font = [UIFont fus_themeBoldFont:9];
// self.vipMarkLabel.textColor = [UIColor fus_textColorRich];
// self.vipMarkLabel.text = @"V";
// self.vipMarkLabel.textAlignment = NSTextAlignmentCenter;
// self.vipMarkLabel.layer.cornerRadius = 14 / 2.0f;
// self.vipMarkLabel.layer.masksToBounds = YES;
// self.vipMarkLabel.backgroundColor = [UIColor fus_diamondBlue];
// [nickNameBgView addSubview:self.vipMarkLabel];
// [self.vipMarkLabel mas_makeConstraints:^(MASConstraintMaker *make) {
// make.right.equalTo(nickNameBgView);
// make.centerY.equalTo(nickNameBgView.mas_centerY);
// make.left.equalTo(self.nickNameLabel.mas_right).offset(6);
// make.size.mas_equalTo(CGSizeMake(14, 14));
// }];
self.vipMarkImgView = [[UIImageView alloc] init];
self.vipMarkImgView.contentMode = UIViewContentModeScaleAspectFit;
[nickNameBgView addSubview:self.vipMarkImgView];
[self.vipMarkImgView mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.equalTo(nickNameBgView);
make.centerY.equalTo(nickNameBgView.mas_centerY);
make.left.equalTo(self.nickNameLabel.mas_right).offset(6);
make.size.mas_equalTo(CGSizeMake(14, 14));
// make.size.mas_equalTo(CGSizeMake(14, 14));
make.height.offset(16);
}];
UIView *sexBlankBgView = [[UIView alloc] init];
......@@ -164,6 +177,7 @@
UIImageView *bottomBgImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"fus_my_imAnchor_header_fireBlank_bg"]];
bottomBgImageView.userInteractionEnabled = YES;
[self addSubview:bottomBgImageView];
[bottomBgImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.offset(0);
......@@ -205,6 +219,21 @@
make.right.offset(-25);
make.top.offset(20);
}];
// 单独独立一个透明button出来好操控空间,不然等下gcp又说要特定区域能点
self.withdrawBtn = [UIButton buttonWithType:UIButtonTypeCustom];
[bottomBgImageView addSubview:self.withdrawBtn];
[self.withdrawBtn mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(bottomBgImageView);
}];
[self.withdrawBtn addTarget:self action:@selector(fus_withdrawBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
}
#pragma mark --- button did clicked
-(void)fus_withdrawBtnDidClicked:(UIButton *)btn{
if (self.withdrawBtnClickedHandler) {
self.withdrawBtnClickedHandler();
}
}
#pragma mark --- method
......@@ -237,6 +266,7 @@
}];
self.fireNumLabel.text = model.bonds;
self.vipMarkImgView.image = [UIImage fus_imageWithLevel:[model.level integerValue]];
}
+ (CGFloat)fus_viewHeight{
......
//
// FUSSettingInitDataModel.h
// FuSiLive
//
// Created by aaa on 2024/6/18.
//
#import <FUSFoundation/FUSFoundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface FUSSettingInitDataModel : FUSBaseModel
/// 用户直播间入场消息折叠开关(0:关、1:开)默认是开
@property (nonatomic, assign) NSInteger enterRoomMsgFoldSwitch;
/// 座驾入场座驾音效控制按钮开关(0:关、1:开)
@property (nonatomic, assign) NSInteger enterRoomCarAudioShowSwitch;
/// 座驾入场座驾音效默认选项(0:关、1:开)
@property (nonatomic, assign) NSInteger enterRoomCarDefaultOption;
/// 平台商城应用开关(0:关、1:开)
@property (nonatomic, assign) NSInteger platformStoreShowSwitch;
/// 平台商城应用购买地址
@property (nonatomic, copy) NSString *platformStoreBuyUrl;
/// App更新下载地址
@property (nonatomic, copy) NSString *appUpdateDownloadUrl;
/// 拥有新人签到资格 (0:无、1:有)
@property (nonatomic, assign) NSNumber *haveNoviceCheckIn;
/// App是否有存在更新的版本号(-1:无版本更新)
@property (nonatomic, assign) NSNumber *versionUpdate;
/// 最小化小窗功能启用开关(0:关、1:开)
@property (nonatomic, assign) NSNumber *smallWindowSwitch;
/// 房间活动运营框架配置
@property (nonatomic, strong) NSDictionary *roomWebFramework;
/// 横向h5地址
@property (nonatomic, copy) NSString *horizontalUrl;
/// 纵向h5地址
@property (nonatomic, copy) NSString *verticalUrl;
/// 邀请有奖访问地址
@property (nonatomic, copy) NSString *invitationAddress;
/// 应用内评分配置
@property (nonatomic, strong) NSDictionary *appRatingConfig;
/// 客服配置
@property (nonatomic, strong) NSDictionary *kfConfig;
/// 模式(1:APP原生客服、2:H5网页客服)
@property (nonatomic, assign) NSInteger model;
/// H5客服访问地址
@property (nonatomic, copy) NSString *url;
/// 直播预告配置
@property (nonatomic, strong) NSDictionary *previewLiveConfig;
/// 时间范围(单位:天)
@property (nonatomic, copy) NSString *modelTimeScope;
/// 直播任务访问地址
@property (nonatomic, copy) NSString *liveTaskAddress;
/// 人气加成访问地址
@property (nonatomic, copy) NSString *popularAddress;
/// 主播养成访问地址
@property (nonatomic, copy) NSString *anchorNovaAddress;
/// 平台活动访问地址
@property (nonatomic, copy) NSString *activitiesAddress;
/// 提现H5访问地址
@property (nonatomic, copy) NSString *withdrawAddress;
@end
NS_ASSUME_NONNULL_END
//
// FUSSettingInitDataModel.m
// FuSiLive
//
// Created by aaa on 2024/6/18.
//
#import "FUSSettingInitDataModel.h"
@implementation FUSSettingInitDataModel
@end
......@@ -1100,7 +1100,14 @@
/// 打开app只调用一次,进入后台再进入前台不需要调用
+ (void)fus_requestSettingInitData {
[FUSHttpHelper postRequestBinaryWithUrl:URL_SETTING_INIT_DATA params:nil success:nil failure:nil];
[FUSHttpHelper postRequestBinaryWithUrl:URL_SETTING_INIT_DATA params:nil success:^(NSDictionary * _Nullable dataDict, int code) {
FUSSettingInitDataModel *initData = [FUSSettingInitDataModel fus_modelWithDict:dataDict];
[FUSCacheDataShare shareStore].settingInitDataModel = initData;
} failure:^(NSDictionary * _Nullable dataDict, int code) {
}];
}
@end
......@@ -2,7 +2,8 @@
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22684"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
......@@ -37,7 +38,7 @@
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="9dH-kC-IW1">
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="9dH-kC-IW1">
<rect key="frame" x="106" y="22.5" width="28" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="16" id="SEY-Vh-cAs"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment