企业包半屏充值

This commit is contained in:
fengshuo
2022-06-08 20:20:25 +08:00
committed by liyuhua
parent 77e59bdd00
commit 39412ed46b
11 changed files with 935 additions and 7 deletions

View File

@@ -42,7 +42,7 @@
///P
#import "XPGiftProtocol.h"
///VC
#import "XPMineNewRechargeViewController.h"
#import "XPMineHalfRechargeViewController.h"
#import "XPWebViewController.h"
#import "XPFirstRechargeViewController.h"
#import "XPNobleCenterViewController.h"
@@ -429,17 +429,19 @@
///
- (void)xPGiftBarViewDidClickRecharge:(XPGiftBarView *)view {
[self dismissViewControllerAnimated:NO completion:^{
XPMineNewRechargeViewController * rechargeVC = [[XPMineNewRechargeViewController alloc] init];
XPMineHalfRechargeViewController * rechargeVC = [[XPMineHalfRechargeViewController alloc] init];
rechargeVC.modalPresentationStyle = UIModalPresentationOverFullScreen;
if (self.delegate.getRoomInfo) {
rechargeVC.roomUid = [NSString stringWithFormat:@"%ld", self.delegate.getRoomInfo.uid];
}
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:rechargeVC animated:YES];
rechargeVC.currentNav = self.delegate.getCurrentNav ? self.delegate.getCurrentNav : [XCCurrentVCStackManager shareManager].getCurrentVC.navigationController;
[[XCCurrentVCStackManager shareManager].getCurrentVC presentViewController:rechargeVC animated:YES completion:nil];
}];
}
- (void)xPGiftBarViewDidClickFirstRecharge:(XPGiftBarView *)view {
[self dismissViewControllerAnimated:NO completion:^{
XPFirstRechargeViewController * firstRechargeVC = [[XPFirstRechargeViewController alloc] initWithNavigation:self.delegate.getCurrentNav];
XPFirstRechargeViewController * firstRechargeVC = [[XPFirstRechargeViewController alloc] initWithNavigation:[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController];
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController presentViewController:firstRechargeVC animated:YES completion:nil];
}];
}