Commit 0b92273b by ludi

完成我的,我是主播页面的vip点击

parent 330c3447
...@@ -23,6 +23,8 @@ typedef enum :NSInteger{ ...@@ -23,6 +23,8 @@ typedef enum :NSInteger{
FUSMyHeaderButtonTypeDiamond, FUSMyHeaderButtonTypeDiamond,
/// 露水 /// 露水
FUSMyHeaderButtonTypeDew, FUSMyHeaderButtonTypeDew,
/// vip
FUSMyHeaderButtonTypeVIP,
}FUSMyHeaderButtonType; }FUSMyHeaderButtonType;
@interface FUSMyHeaderView : UIView @interface FUSMyHeaderView : UIView
......
...@@ -111,6 +111,13 @@ ...@@ -111,6 +111,13 @@
make.height.offset(14); make.height.offset(14);
}]; }];
UIButton *vipTouchBtn = [UIButton buttonWithType:UIButtonTypeCustom];
[nickNameBgView addSubview:vipTouchBtn];
[vipTouchBtn mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.top.bottom.offset(0);
make.left.equalTo(self.vipMarkImgView.mas_left).offset(-10);
}];
UIButton *copyBgBtn = [UIButton buttonWithType:UIButtonTypeCustom]; UIButton *copyBgBtn = [UIButton buttonWithType:UIButtonTypeCustom];
[topBgView addSubview:copyBgBtn]; [topBgView addSubview:copyBgBtn];
[copyBgBtn mas_makeConstraints:^(MASConstraintMaker *make) { [copyBgBtn mas_makeConstraints:^(MASConstraintMaker *make) {
...@@ -257,9 +264,16 @@ ...@@ -257,9 +264,16 @@
[self.avatorBtn addTarget:self action:@selector(fus_commondBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside]; [self.avatorBtn addTarget:self action:@selector(fus_commondBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
[copyBgBtn addTarget:self action:@selector(fus_copyBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside]; [copyBgBtn addTarget:self action:@selector(fus_copyBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
[vipTouchBtn addTarget:self action:@selector(fus_vipBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
} }
#pragma mark --- button did clicked #pragma mark --- button did clicked
-(void)fus_vipBtnDidClicked:(UIButton *)btn{
if (self.buttonDidClickedHander) {
self.buttonDidClickedHander(FUSMyHeaderButtonTypeVIP);
}
}
-(void)fus_copyBtnDidClicked:(UIButton *)btn{ -(void)fus_copyBtnDidClicked:(UIButton *)btn{
[UIPasteboard generalPasteboard].string = _zoneModel.uid; [UIPasteboard generalPasteboard].string = _zoneModel.uid;
[FUSDialogView fus_showDialog:FUSLocalizationHelper.localString(@"复制成功")]; [FUSDialogView fus_showDialog:FUSLocalizationHelper.localString(@"复制成功")];
......
...@@ -501,7 +501,13 @@ typedef NS_ENUM(NSInteger, FUSMySettingItemType){ ...@@ -501,7 +501,13 @@ typedef NS_ENUM(NSInteger, FUSMySettingItemType){
[self.parentController.navigationController pushViewController:dewVC animated:YES]; [self.parentController.navigationController pushViewController:dewVC animated:YES];
} }
break; break;
case FUSMyHeaderButtonTypeVIP:{
FUSWKWebViewController *wkwVC = [[FUSWKWebViewController alloc] init];
wkwVC.shouldShowShareBtn = NO;
wkwVC.webUrlString = [FUSCacheDataShare shareStore].settingInitDataModel.fusiConfig.vipOpenAddress;
[self.parentController.navigationController pushViewController:wkwVC animated:YES];
}
break;
default: default:
break; break;
} }
......
...@@ -112,6 +112,13 @@ typedef NS_ENUM(NSInteger, FUSImAnchorItemType){ ...@@ -112,6 +112,13 @@ typedef NS_ENUM(NSInteger, FUSImAnchorItemType){
[weakself.navigationController pushViewController:vc animated:YES]; [weakself.navigationController pushViewController:vc animated:YES];
} }
break; break;
case FUSImAnchorHeaderButtonTypeVIP:{
FUSWKWebViewController *wkwVC = [[FUSWKWebViewController alloc] init];
wkwVC.shouldShowShareBtn = NO;
wkwVC.webUrlString = [FUSCacheDataShare shareStore].settingInitDataModel.fusiConfig.vipOpenAddress;
[weakself.navigationController pushViewController:wkwVC animated:YES];
}
break;
default: default:
break; break;
} }
......
...@@ -15,6 +15,8 @@ typedef enum :NSInteger{ ...@@ -15,6 +15,8 @@ typedef enum :NSInteger{
FUSImAnchorHeaderButtonTypeMyZone = 0, FUSImAnchorHeaderButtonTypeMyZone = 0,
/// 可提现 /// 可提现
FUSImAnchorHeaderButtonTypeWithDraw, FUSImAnchorHeaderButtonTypeWithDraw,
/// vip
FUSImAnchorHeaderButtonTypeVIP,
}FUSImAnchorHeaderButtonType; }FUSImAnchorHeaderButtonType;
@interface FUSImAnchorHeaderView : UIView @interface FUSImAnchorHeaderView : UIView
......
...@@ -112,6 +112,13 @@ ...@@ -112,6 +112,13 @@
make.height.offset(14); make.height.offset(14);
}]; }];
UIButton *vipTouchBtn = [UIButton buttonWithType:UIButtonTypeCustom];
[nickNameBgView addSubview:vipTouchBtn];
[vipTouchBtn mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.top.bottom.offset(0);
make.left.equalTo(self.vipMarkImgView.mas_left).offset(-10);
}];
UIButton *copyBgBtn = [UIButton buttonWithType:UIButtonTypeCustom]; UIButton *copyBgBtn = [UIButton buttonWithType:UIButtonTypeCustom];
[topBgView addSubview:copyBgBtn]; [topBgView addSubview:copyBgBtn];
[copyBgBtn mas_makeConstraints:^(MASConstraintMaker *make) { [copyBgBtn mas_makeConstraints:^(MASConstraintMaker *make) {
...@@ -208,9 +215,15 @@ ...@@ -208,9 +215,15 @@
[self.avatorBtn addTarget:self action:@selector(fus_commondBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside]; [self.avatorBtn addTarget:self action:@selector(fus_commondBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
[copyBgBtn addTarget:self action:@selector(fus_copyBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside]; [copyBgBtn addTarget:self action:@selector(fus_copyBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
[vipTouchBtn addTarget:self action:@selector(fus_vipBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
} }
#pragma mark --- button did clicked #pragma mark --- button did clicked
-(void)fus_vipBtnDidClicked:(UIButton *)btn{
if (self.buttonDidClickedHander) {
self.buttonDidClickedHander(FUSImAnchorHeaderButtonTypeVIP);
}
}
-(void)fus_commondBtnDidClicked:(UIButton *)btn{ -(void)fus_commondBtnDidClicked:(UIButton *)btn{
if (self.buttonDidClickedHander) { if (self.buttonDidClickedHander) {
self.buttonDidClickedHander(btn.tag); self.buttonDidClickedHander(btn.tag);
......
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