覆盖羽声
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#import "QXMineNetwork.h"
|
||||
#import "QXHelpViewController.h"
|
||||
#import "QXInviteViewController.h"
|
||||
#import "QXChatViewController.h"
|
||||
|
||||
@interface QXMineViewController ()<UITableViewDelegate,UITableViewDataSource,QXMineServiceCellDelegate,QXMainHeaderViewDelegate>
|
||||
@property (nonatomic,strong)QXMainHeaderView *tableHeaderView;
|
||||
@@ -207,6 +208,14 @@
|
||||
-(void)gotoService{
|
||||
QXHelpViewController *webvc = [[QXHelpViewController alloc] init];
|
||||
[self.navigationController pushViewController:webvc animated:YES];
|
||||
|
||||
// QXChatViewController *vc = [[QXChatViewController alloc] init];
|
||||
// TUIChatConversationModel *data = [[TUIChatConversationModel alloc] init];
|
||||
// data.userID = @"@RBT#u88";
|
||||
// data.title = @"小秘机器人";
|
||||
// data.faceUrl = @"http://md.qxmier.com/data/avatar/head_pic.png";
|
||||
// vc.data = data;
|
||||
// [self.navigationController pushViewController:vc animated:YES];
|
||||
}
|
||||
|
||||
|
||||
@@ -229,6 +238,7 @@
|
||||
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
|
||||
showToast(msg);
|
||||
}];
|
||||
|
||||
}
|
||||
|
||||
-(QXMainHeaderView *)tableHeaderView{
|
||||
|
||||
@@ -9,18 +9,23 @@
|
||||
#import "QXDressCell.h"
|
||||
#import "QXMineNetwork.h"
|
||||
#import "QXSeatHeaderView.h"
|
||||
#import "QXGiftPlayerManager.h"
|
||||
|
||||
@interface QXDressSubViewController ()<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout>
|
||||
@property (nonatomic,strong)QXSeatHeaderView *headerImageView;
|
||||
@property (nonatomic,strong)UICollectionView *collectionView;
|
||||
@property (nonatomic,strong)UIButton *commitBtn;
|
||||
@property (nonatomic,assign)NSInteger selectedIndex;
|
||||
@property (nonatomic,strong)QXEffectContentView *fullEffectView;
|
||||
@end
|
||||
|
||||
@implementation QXDressSubViewController
|
||||
-(UIView *)listView{
|
||||
return self.view;
|
||||
}
|
||||
-(void)listWillAppear{
|
||||
[self getData];
|
||||
}
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view.
|
||||
@@ -37,12 +42,13 @@
|
||||
}
|
||||
[self.view addSubview:self.collectionView];
|
||||
[self.view addSubview:self.commitBtn];
|
||||
[self.view addSubview:self.fullEffectView];
|
||||
}
|
||||
|
||||
-(void)getData{
|
||||
MJWeakSelf
|
||||
[QXMineNetwork userDressListWithType:self.model.id successBlock:^(NSArray<QXUserDressModel *> * _Nonnull list) {
|
||||
|
||||
[weakSelf.dataArray removeAllObjects];
|
||||
[weakSelf.dataArray addObjectsFromArray:list];
|
||||
if (list.count > 0 ) {
|
||||
QXUserDressModel *model = [[QXUserDressModel alloc] init];
|
||||
@@ -70,7 +76,7 @@
|
||||
return cell;
|
||||
}
|
||||
-(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath{
|
||||
CGFloat width = (SCREEN_WIDTH-15*2-22*2)/3;
|
||||
int width = (SCREEN_WIDTH-15*2-22*2-1)/3;
|
||||
return CGSizeMake(width, width/100*120);
|
||||
}
|
||||
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{
|
||||
@@ -81,7 +87,10 @@
|
||||
self.selectedIndex = indexPath.row;
|
||||
[collectionView reloadData];
|
||||
// MJWeakSelf
|
||||
|
||||
if ([self.model.id isEqualToString:@"2"]) {
|
||||
self.fullEffectView.hidden = NO;
|
||||
[self.fullEffectView previewEffectWith:model.play_image];
|
||||
}
|
||||
[self.headerImageView setHeadIcon:[QXGlobal shareGlobal].loginModel.avatar dress:model.play_image];
|
||||
|
||||
}
|
||||
@@ -141,4 +150,12 @@
|
||||
}
|
||||
return _headerImageView;
|
||||
}
|
||||
- (QXEffectContentView *)fullEffectView {
|
||||
if (!_fullEffectView) {
|
||||
_fullEffectView = [[QXEffectContentView alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
||||
_fullEffectView.queue = dispatch_queue_create("qx_room_full_preview_message.com", NULL);
|
||||
_fullEffectView.hidden = YES;
|
||||
}
|
||||
return _fullEffectView;
|
||||
}
|
||||
@end
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#import "JXCategoryView.h"
|
||||
#import "QXDressSubViewController.h"
|
||||
#import "QXMineNetwork.h"
|
||||
#import "QXPropShopViewController.h"
|
||||
|
||||
@interface QXDressViewController ()<JXCategoryViewDelegate,JXCategoryListContainerViewDelegate>
|
||||
@property (nonatomic,strong)JXCategoryTitleView *categoryView;
|
||||
@@ -30,6 +31,17 @@
|
||||
-(void)setNavgationItems{
|
||||
[super setNavgationItems];
|
||||
self.navigationItem.title = QXText(@"个性装扮");
|
||||
UIButton*recordBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 44, 44)];
|
||||
[recordBtn setTitle:QXText(@"道具商城") forState:(UIControlStateNormal)];
|
||||
[recordBtn setTitleColor:RGB16(0xFF8ACC) forState:(UIControlStateNormal)];
|
||||
recordBtn.titleLabel.font = [UIFont systemFontOfSize:16];
|
||||
[recordBtn addTarget:self action:@selector(recordAction) forControlEvents:(UIControlEventTouchUpInside)];
|
||||
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:recordBtn];
|
||||
}
|
||||
|
||||
-(void)recordAction{
|
||||
QXPropShopViewController *vc = [[QXPropShopViewController alloc] init];
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
}
|
||||
|
||||
- (void)initSubViews{
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#import "QXGuildViewController.h"
|
||||
#import <WebKit/WebKit.h>
|
||||
#import "QXUserHomePageViewController.h"
|
||||
#import "QXRealNameViewController.h"
|
||||
|
||||
|
||||
static void *WKWebBrowserContext = &WKWebBrowserContext;
|
||||
@@ -119,6 +120,9 @@ static void *WKWebBrowserContext = &WKWebBrowserContext;
|
||||
return;
|
||||
}
|
||||
[[QXGlobal shareGlobal] joinRoomWithRoomId:room_id isRejoin:NO navagationController:self.navigationController];
|
||||
}else if ([dict[@"action"] isEqualToString:@"enterAuthent"]) {
|
||||
QXRealNameViewController *vc = [[QXRealNameViewController alloc] init];
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -330,7 +330,7 @@
|
||||
if (!_roomNameLabel) {
|
||||
_roomNameLabel = [[UILabel alloc] init];
|
||||
_roomNameLabel.font = [UIFont boldSystemFontOfSize:16];
|
||||
_roomNameLabel.textColor = QXConfig.textColor;
|
||||
_roomNameLabel.textColor = RGB16A(0x000000, 0.45);
|
||||
_roomNameLabel.text = QXText(@"房间标题");
|
||||
}
|
||||
return _roomNameLabel;
|
||||
@@ -340,7 +340,7 @@
|
||||
_textFieldbgView = [[UIView alloc] init];
|
||||
_textFieldbgView.layer.masksToBounds = YES;
|
||||
_textFieldbgView.layer.cornerRadius = 11;
|
||||
_textFieldbgView.backgroundColor = [UIColor colorWithHexString:@"#EFF2F8"];
|
||||
_textFieldbgView.backgroundColor = [UIColor colorWithHexString:@"#F0EEF7"];
|
||||
}
|
||||
return _textFieldbgView;
|
||||
}
|
||||
@@ -372,7 +372,7 @@
|
||||
if (!_roomNoticeLabel) {
|
||||
_roomNoticeLabel = [[UILabel alloc] init];
|
||||
_roomNoticeLabel.font = [UIFont boldSystemFontOfSize:15];
|
||||
_roomNoticeLabel.textColor = QXConfig.textColor;
|
||||
_roomNoticeLabel.textColor = RGB16A(0x000000, 0.45);
|
||||
_roomNoticeLabel.text = QXText(@"房间公告");
|
||||
}
|
||||
return _roomNoticeLabel;
|
||||
@@ -399,7 +399,7 @@
|
||||
-(UIView *)noticeBgView{
|
||||
if (!_noticeBgView) {
|
||||
_noticeBgView = [[UIView alloc] init];
|
||||
_noticeBgView.backgroundColor = RGB16(0xEFF2F8);
|
||||
_noticeBgView.backgroundColor = RGB16(0xF0EEF7);
|
||||
[_noticeBgView addRoundedCornersWithRadius:11];
|
||||
}
|
||||
return _noticeBgView;
|
||||
@@ -427,7 +427,7 @@
|
||||
_randomBtn = [[UIButton alloc] init];
|
||||
[_randomBtn setTitle:QXText(@"随机名称") forState:(UIControlStateNormal)];
|
||||
_randomBtn.titleLabel.font = [UIFont systemFontOfSize:14];
|
||||
[_randomBtn setTitleColor:RGB16(0xFF8ACC) forState:(UIControlStateNormal)];
|
||||
[_randomBtn setTitleColor:QXConfig.themeColor forState:(UIControlStateNormal)];
|
||||
[_randomBtn addTarget:self action:@selector(getRandomName) forControlEvents:UIControlEventTouchUpInside];
|
||||
}
|
||||
return _randomBtn;
|
||||
@@ -437,7 +437,7 @@
|
||||
_submitBtn = [[UIButton alloc] init];
|
||||
[_submitBtn setTitle:QXText(@"提交审核") forState:UIControlStateNormal];
|
||||
_submitBtn.titleLabel.font = [UIFont systemFontOfSize:15];
|
||||
[_submitBtn setTitleColor:QXConfig.textColor forState:UIControlStateNormal];
|
||||
[_submitBtn setTitleColor:QXConfig.btnTextColor forState:UIControlStateNormal];
|
||||
_submitBtn.backgroundColor = QXConfig.themeColor;
|
||||
_submitBtn.layer.masksToBounds = YES;
|
||||
_submitBtn.layer.cornerRadius = 21;
|
||||
@@ -449,9 +449,9 @@
|
||||
-(UILabel *)warningLabel{
|
||||
if (!_warningLabel) {
|
||||
_warningLabel = [[UILabel alloc] init];
|
||||
_warningLabel.backgroundColor = RGB16(0x333333);
|
||||
[_warningLabel addRoundedCornersWithRadius:3];
|
||||
_warningLabel.textColor = UIColor.whiteColor;
|
||||
// _warningLabel.backgroundColor = RGB16(0x333333);
|
||||
// [_warningLabel addRoundedCornersWithRadius:3];
|
||||
_warningLabel.textColor = RGB16(0xEEA24C);
|
||||
_warningLabel.font = [UIFont systemFontOfSize:11];
|
||||
_warningLabel.textAlignment = NSTextAlignmentCenter;
|
||||
_warningLabel.text = QXText(@"创建房间需要审核,通过后可开启直播");
|
||||
|
||||
@@ -159,6 +159,18 @@
|
||||
return cell;
|
||||
}
|
||||
}
|
||||
-(void)collectionView:(UICollectionView *)collectionView willDisplayCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath{
|
||||
if ([cell isKindOfClass:[QXHomeRoomCell class]]) {
|
||||
QXHomeRoomCell *rCell = (QXHomeRoomCell *)cell;
|
||||
[rCell startAnimating];
|
||||
}
|
||||
}
|
||||
-(void)collectionView:(UICollectionView *)collectionView didEndDisplayingCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath{
|
||||
if ([cell isKindOfClass:[QXHomeRoomCell class]]) {
|
||||
QXHomeRoomCell *rCell = (QXHomeRoomCell *)cell;
|
||||
[rCell endAnimating];
|
||||
}
|
||||
}
|
||||
|
||||
-(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath{
|
||||
if (self.type == 0) {
|
||||
|
||||
@@ -97,8 +97,8 @@
|
||||
-(__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
|
||||
if (self.type == 0) {
|
||||
QXGiftCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"QXGiftCell" forIndexPath:indexPath];
|
||||
cell.cellType = QXGiftCellTypeBackpack;
|
||||
cell.roomGiftModel = self.dataArray[indexPath.row];
|
||||
cell.cellType = QXGiftCellTypeBackpack;
|
||||
return cell;
|
||||
}else{
|
||||
QXBackpackRecordCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"QXBackpackRecordCell" forIndexPath:indexPath];
|
||||
|
||||
@@ -34,14 +34,14 @@
|
||||
self.navigationItem.title = QXText(@"每日任务");
|
||||
UIButton*recordBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 44, 44)];
|
||||
[recordBtn setTitle:QXText(@"礼盒记录") forState:(UIControlStateNormal)];
|
||||
[recordBtn setTitleColor:RGB16(0xFF8ACC) forState:(UIControlStateNormal)];
|
||||
[recordBtn setTitleColor:QXConfig.themeColor forState:(UIControlStateNormal)];
|
||||
recordBtn.titleLabel.font = [UIFont systemFontOfSize:16];
|
||||
[recordBtn addTarget:self action:@selector(recordAction) forControlEvents:(UIControlEventTouchUpInside)];
|
||||
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:recordBtn];
|
||||
}
|
||||
- (void)initSubViews{
|
||||
self.bgImageHidden = YES;
|
||||
self.view.backgroundColor = RGB16(0xF8E3C8);
|
||||
self.view.backgroundColor = RGB16(0xD7CDFF);
|
||||
self.tableView.tableHeaderView = self.topView;
|
||||
[self.view addSubview:self.tableView];
|
||||
}
|
||||
|
||||
@@ -41,7 +41,8 @@ static void *WKWebBrowserContext = &WKWebBrowserContext;
|
||||
}
|
||||
- (void)loadData {
|
||||
// H5ServerUrl
|
||||
NSString *urlStr = [NSString stringWithFormat:@"%@web/index.html#/pages/other/aboutUs",H5ServerUrl];
|
||||
NSInteger safeTop = kSafeAreaTop;
|
||||
NSString *urlStr = [NSString stringWithFormat:@"%@web/index.html#/pages/other/aboutUs?h=%ld",H5ServerUrl,safeTop];
|
||||
NSURL* url=[NSURL URLWithString:urlStr];
|
||||
NSURLRequest *request =[NSURLRequest requestWithURL:url];
|
||||
[self.contentWebView loadRequest:request];
|
||||
|
||||
@@ -10,7 +10,12 @@
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface QXChirldModeViewController : QXBaseViewController
|
||||
/// 0 = 设置1 , 1 = 设置2 ,2 = 退出
|
||||
@property (nonatomic,assign)NSInteger type;
|
||||
/// 密码
|
||||
@property (nonatomic,strong)NSString *password;
|
||||
|
||||
@property (nonatomic,assign)BOOL isRoot;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
|
||||
#import "QXChirldModeViewController.h"
|
||||
#import "QXPasswordView.h"
|
||||
#import "QXChirldViewController.h"
|
||||
#import "AppDelegate.h"
|
||||
@interface QXChirldModeViewController ()<QXPasswordViewDelegate>
|
||||
@property (nonatomic,strong)QXPasswordView * passwordView;
|
||||
@end
|
||||
@@ -27,7 +29,12 @@
|
||||
}
|
||||
-(void)initSubViews{
|
||||
self.passwordView = [[QXPasswordView alloc] init];
|
||||
self.passwordView.type = QXPasswordViewTypeChirldMode;
|
||||
if (self.type == 1) {
|
||||
self.passwordView.type = QXPasswordViewTypeChirldModeTwice;
|
||||
}else{
|
||||
self.passwordView.type = QXPasswordViewTypeChirldMode;
|
||||
}
|
||||
|
||||
self.passwordView.delegate = self;
|
||||
[self.view addSubview:self.passwordView];
|
||||
[self.passwordView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
@@ -38,7 +45,35 @@
|
||||
}
|
||||
|
||||
-(void)inputFinished:(NSString *)password{
|
||||
|
||||
if (self.type == 0) {
|
||||
QXChirldModeViewController *vc = [[QXChirldModeViewController alloc] init];
|
||||
vc.type = 1;
|
||||
vc.password = password;
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
}else if (self.type == 1) {
|
||||
if ([self.password isEqualToString:password]) {
|
||||
QXChirldViewController *vc = [[QXChirldViewController alloc] init];
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
[[NSUserDefaults standardUserDefaults] setObject:password forKey:kChirldLocalPassword];
|
||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||
}else{
|
||||
showToast(@"两次密码输入不一致");
|
||||
}
|
||||
}else if (self.type == 2) {
|
||||
NSString *localPassword = [[NSUserDefaults standardUserDefaults] objectForKey:kChirldLocalPassword];
|
||||
if (![localPassword isEqualToString:password]) {
|
||||
showToast(@"密码错误");
|
||||
}else{
|
||||
[[NSUserDefaults standardUserDefaults] removeObjectForKey:kChirldLocalPassword];
|
||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||
if (self.isRoot) {
|
||||
AppDelegate *appdelegate = (AppDelegate*)[UIApplication sharedApplication].delegate;
|
||||
[appdelegate changeRootViewControllerIsTabbar];
|
||||
}else{
|
||||
[self.navigationController popToRootViewControllerAnimated:YES];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
|
||||
[self.view endEditing:YES];
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#import <TencentCloudHuiyanSDKFace/WBFaceVerifyCustomerService.h>
|
||||
#import "QXMineNetwork.h"
|
||||
#import "QXRealNameFinishedViewController.h"
|
||||
#import "QXAlertView.h"
|
||||
|
||||
@interface QXRealNameViewController ()<WBFaceVerifyCustomerServiceDelegate>
|
||||
@property (nonatomic,strong)UILabel *titleLabel;
|
||||
@@ -111,6 +112,7 @@
|
||||
self.realTextField = [[QXLoginTextField alloc] init];
|
||||
self.realTextField.type = LoginTextTypeRealName;
|
||||
self.realTextField.backgroundColor = RGB16(0xEFF2F8);
|
||||
[self.realTextField addRoundedCornersWithRadius:11];
|
||||
[self.view addSubview:self.realTextField];
|
||||
[self.realTextField mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.mas_equalTo(16);
|
||||
@@ -122,6 +124,7 @@
|
||||
self.idNumberTextField = [[QXLoginTextField alloc] init];
|
||||
self.idNumberTextField.type = LoginTextTypeIdNumber;
|
||||
self.idNumberTextField.backgroundColor = RGB16(0xEFF2F8);
|
||||
[self.idNumberTextField addRoundedCornersWithRadius:11];
|
||||
[self.view addSubview:self.idNumberTextField];
|
||||
[self.idNumberTextField mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.mas_equalTo(16);
|
||||
@@ -257,7 +260,8 @@
|
||||
weakSelf.realNamedict = dict;
|
||||
[weakSelf startFace];
|
||||
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
|
||||
|
||||
hideLoadingInView(self.view);
|
||||
showToast(msg);
|
||||
}];
|
||||
|
||||
// [QXGlobal shareGlobal].isRealName = YES;
|
||||
@@ -303,13 +307,26 @@
|
||||
-(void)wbfaceVerifyCustomerServiceDidFinishedWithFaceVerifyResult:(WBFaceVerifyResult *)faceVerifyResult{
|
||||
if (faceVerifyResult.isSuccess) {
|
||||
QXLOG(@"人脸核验通过");
|
||||
[self authSuccess];
|
||||
MJWeakSelf
|
||||
// QXAlertView *al = [[QXAlertView alloc] initWithFrame:CGRectMake(0, 0, ScaleWidth(300), ScaleWidth(175))];
|
||||
// al.type = QXAlertViewTypeNoCancel;
|
||||
// al.title = @"温馨提示";
|
||||
// al.message = @"恭喜您获得内测资格,将获得10万金币";
|
||||
// al.commitBlock = ^{
|
||||
[weakSelf authSuccess];
|
||||
// };
|
||||
// [[QXGlobal shareGlobal] showView:al popType:(PopViewTypeTopToCenter) tapDismiss:NO finishBlock:^{
|
||||
//
|
||||
// }];
|
||||
|
||||
/// 通知服务端实名验证结果
|
||||
[QXMineNetwork postRealNameResultWithOrderNo:faceVerifyResult.orderNo successBlock:^(NSDictionary * _Nonnull dict) {
|
||||
|
||||
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
|
||||
|
||||
}];
|
||||
}else{
|
||||
showToast(@"实名认证失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ static NSInteger maxClickCount = 6;
|
||||
-(void)initSubViews{
|
||||
NSArray *section1 = @[
|
||||
// QXText(@"消息通知"),
|
||||
QXText(@"未成年人模式"),
|
||||
// QXText(@"未成年人模式"),
|
||||
QXText(@"黑名单"),
|
||||
QXText(@"设置密码"),
|
||||
QXText(@"手机绑定"),
|
||||
@@ -54,7 +54,7 @@ static NSInteger maxClickCount = 6;
|
||||
];
|
||||
self.cellTypeDict = @{
|
||||
// QXText(@"消息通知"):[NSNumber numberWithInteger:QXSettingCellTypeOnlyArrow],
|
||||
QXText(@"未成年人模式"):[NSNumber numberWithInteger:QXSettingCellTypeOnlyArrow],
|
||||
// QXText(@"未成年人模式"):[NSNumber numberWithInteger:QXSettingCellTypeOnlyArrow],
|
||||
QXText(@"黑名单"):[NSNumber numberWithInteger:QXSettingCellTypeOnlyArrow],
|
||||
QXText(@"设置密码"):[NSNumber numberWithInteger:QXSettingCellTypeOnlyArrow],
|
||||
QXText(@"手机绑定"):[NSNumber numberWithInteger:QXSettingCellTypeOnlyArrow],
|
||||
@@ -67,7 +67,7 @@ static NSInteger maxClickCount = 6;
|
||||
|
||||
self.controllerDict = @{
|
||||
QXText(@"消息通知"):@"QXNoticeSwitchViewController",
|
||||
QXText(@"未成年人模式"):@"QXChirldModeViewController",
|
||||
// QXText(@"未成年人模式"):@"QXChirldModeViewController",
|
||||
QXText(@"黑名单"):@"QXBlackListlViewController",
|
||||
QXText(@"设置密码"):@"QXSetPwdViewController",
|
||||
QXText(@"手机绑定"):@"QXBindMobileViewController",
|
||||
|
||||
@@ -174,7 +174,7 @@ static void *WKWebBrowserContext = &WKWebBrowserContext;
|
||||
//自定义配置,一般用于 js调用oc方法(OC拦截URL中的数据做自定义操作)
|
||||
WKUserContentController * UserContentController = [[WKUserContentController alloc]init];
|
||||
// 是否支持记忆读取
|
||||
configuration.suppressesIncrementalRendering = YES;
|
||||
configuration.suppressesIncrementalRendering = NO;
|
||||
// 允许用户更改网页的设置
|
||||
[UserContentController addScriptMessageHandler:self name:@"login"];
|
||||
[UserContentController addScriptMessageHandler:self name:@"nativeHandler"];
|
||||
|
||||
@@ -49,10 +49,10 @@
|
||||
[self.bankNameTextField addRoundedCornersWithRadius:11];
|
||||
[self.view addSubview:self.bankNameTextField];
|
||||
|
||||
self.bankNumberTextField = [[QXLoginTextField alloc] initWithFrame:CGRectMake(16, self.bankNameTextField.bottom+12, SCREEN_WIDTH-32, 44) type:(LoginTextTypeBankAddress)];
|
||||
self.bankNumberTextField.backgroundColor = RGB16(0xEFF2F8);
|
||||
[self.bankNumberTextField addRoundedCornersWithRadius:11];
|
||||
[self.view addSubview:self.bankNumberTextField];
|
||||
self.bankAddressTextField = [[QXLoginTextField alloc] initWithFrame:CGRectMake(16, self.bankNameTextField.bottom+12, SCREEN_WIDTH-32, 44) type:(LoginTextTypeBankAddress)];
|
||||
self.bankAddressTextField.backgroundColor = RGB16(0xEFF2F8);
|
||||
[self.bankAddressTextField addRoundedCornersWithRadius:11];
|
||||
[self.view addSubview:self.bankAddressTextField];
|
||||
|
||||
self.commitBtn = [[UIButton alloc] initWithFrame:CGRectMake(38, self.bankNumberTextField.bottom+16, SCREEN_WIDTH-38*2, 42)];
|
||||
}
|
||||
@@ -67,6 +67,37 @@
|
||||
self.commitBtn.titleLabel.font = [UIFont systemFontOfSize:14];
|
||||
self.commitBtn.backgroundColor = QXConfig.themeColor;
|
||||
[self.view addSubview:self.commitBtn];
|
||||
[self getAliBind];
|
||||
}
|
||||
|
||||
-(void)getAliBind{
|
||||
//2 支付宝 3 银行卡
|
||||
NSString *type = self.isAli?@"2":@"3";
|
||||
MJWeakSelf
|
||||
[QXMineNetwork walletBindDetailWithUserId:QXGlobal.shareGlobal.loginModel.user_id type:type successBlock:^(NSDictionary * _Nonnull dict) {
|
||||
if (weakSelf.isAli) {
|
||||
NSString* result = [NSString stringWithFormat:@"%@",dict[@"alipay_account"]];
|
||||
if ([result isExist]) {
|
||||
weakSelf.aliTextField.textField.text = result;
|
||||
}
|
||||
}else{
|
||||
NSString* bank_card_number = [NSString stringWithFormat:@"%@",dict[@"bank_card_number"]];
|
||||
NSString* bank_card = [NSString stringWithFormat:@"%@",dict[@"bank_card"]];
|
||||
NSString* open_bank = [NSString stringWithFormat:@"%@",dict[@"open_bank"]];
|
||||
if ([bank_card_number isExist]) {
|
||||
weakSelf.bankNumberTextField.textField.text = bank_card_number;
|
||||
}
|
||||
if ([bank_card isExist]) {
|
||||
weakSelf.bankNumberTextField.textField.text = bank_card_number;
|
||||
}
|
||||
if ([open_bank isExist]) {
|
||||
weakSelf.bankAddressTextField.textField.text = open_bank;
|
||||
}
|
||||
}
|
||||
|
||||
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
|
||||
|
||||
}];
|
||||
}
|
||||
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
|
||||
[self.view endEditing:YES];
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
}
|
||||
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
|
||||
QXCornRecordCell *cell = [QXCornRecordCell cellWithTableView:tableView];
|
||||
cell.isCoin = self.waterType==0;
|
||||
cell.model = self.dataArray[indexPath.row];
|
||||
return cell;
|
||||
}
|
||||
|
||||
@@ -144,11 +144,11 @@
|
||||
weakSelf.isBind = YES;
|
||||
return;
|
||||
}
|
||||
if (model.ali.is_pay_open.intValue == 1 && model.ali.is_bind.intValue == 1) {
|
||||
if (model.ali.is_with_draw_open.intValue == 1 && model.ali.is_bind.intValue == 1) {
|
||||
weakSelf.isBind = YES;
|
||||
return;
|
||||
}
|
||||
if (model.bank.is_pay_open.intValue == 1 && model.bank.is_bind.intValue == 1) {
|
||||
if (model.bank.is_with_draw_open.intValue == 1 && model.bank.is_bind.intValue == 1) {
|
||||
weakSelf.isBind = YES;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
_tableView.backgroundColor = [UIColor clearColor];
|
||||
_tableView.tableFooterView = [UIView new];
|
||||
_tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
|
||||
_tableView.rowHeight = 66;
|
||||
_tableView.rowHeight = 180;
|
||||
MJWeakSelf
|
||||
_tableView.mj_header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
|
||||
weakSelf.page = 1;
|
||||
|
||||
@@ -155,13 +155,14 @@
|
||||
|
||||
[QXMineNetwork walletPayTypeWithUserId:QXGlobal.shareGlobal.loginModel.user_id successBlock:^(QXPayTypeStatusModel * _Nonnull model) {
|
||||
[weakSelf.dataArray removeAllObjects];
|
||||
weakSelf.selectedPayTypeModel = nil;
|
||||
if (model.wx.is_with_draw_open.intValue == 1 && model.wx.is_bind.intValue == 1) {
|
||||
[weakSelf.dataArray addObject:model.wx];
|
||||
}
|
||||
if (model.ali.is_pay_open.intValue == 1 && model.ali.is_bind.intValue == 1) {
|
||||
if (model.ali.is_with_draw_open.intValue == 1 && model.ali.is_bind.intValue == 1) {
|
||||
[weakSelf.dataArray addObject:model.ali];
|
||||
}
|
||||
if (model.bank.is_pay_open.intValue == 1 && model.bank.is_bind.intValue == 1) {
|
||||
if (model.bank.is_with_draw_open.intValue == 1 && model.bank.is_bind.intValue == 1) {
|
||||
[weakSelf.dataArray addObject:model.bank];
|
||||
}
|
||||
[weakSelf.tableView reloadData];
|
||||
@@ -181,6 +182,10 @@
|
||||
showToast(@"请输入提现金额");
|
||||
return;
|
||||
}
|
||||
if (self.selectedPayTypeModel == nil) {
|
||||
showToast(@"请选择提现方式");
|
||||
return;
|
||||
}
|
||||
MJWeakSelf
|
||||
QXReVerificationPopView *popView = [[QXReVerificationPopView alloc] initWithFrame:CGRectMake(0, 0, ScaleWidth(300), ScaleWidth(200))];
|
||||
popView.commitBlock = ^(NSString * _Nonnull code) {
|
||||
|
||||
@@ -30,12 +30,20 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (nonatomic,strong)NSString *name;
|
||||
/// 变动类型
|
||||
@property (nonatomic,strong)NSString *money;
|
||||
/// 1待处理2已通过3已拒绝 4打款中[云账户]5打款失败[云账户]6已打款[云账户]
|
||||
/// 状态:1待处理2已通过3已拒绝 4打款中[云账户]5打款失败[云账户]6已打款[云账户]
|
||||
@property (nonatomic,strong)NSString *status;
|
||||
/// 变动金额
|
||||
/// 状态说明
|
||||
@property (nonatomic,strong)NSString *status_str;
|
||||
/// 时间
|
||||
/// 提现时间
|
||||
@property (nonatomic,strong)NSString *createtime;
|
||||
/// 手续费/服务费
|
||||
@property (nonatomic,strong)NSString *withdraw_fee;
|
||||
/// 税率
|
||||
@property (nonatomic,strong)NSString *personal_tax_rate;
|
||||
/// 税款(个人所得税)
|
||||
@property (nonatomic,strong)NSString *received_tax_amount;
|
||||
/// 实际到账金额
|
||||
@property (nonatomic,strong)NSString *surplus_money;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
@@ -26,6 +26,10 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (nonatomic,strong)NSString *rule;
|
||||
@property (nonatomic,strong)NSString *gift_bag_name;
|
||||
@property (nonatomic,strong)NSString *rule_url;
|
||||
/// 活动id 5 跳转对应活动
|
||||
@property (nonatomic,strong)NSString *activities_id;
|
||||
/// 活动类型 10 天空之境 11 岁月之城 12时空之巅
|
||||
@property (nonatomic,strong)NSString *gift_bag;
|
||||
|
||||
@property (nonatomic,assign)BOOL isSelected;
|
||||
@end
|
||||
@@ -50,18 +54,4 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (nonatomic,strong)NSString *time;
|
||||
@end
|
||||
|
||||
@interface QXFirstRechargeModel : NSObject
|
||||
/// 9|30元
|
||||
@property (nonatomic,strong)NSString *name;
|
||||
/// 9元限时抢
|
||||
@property (nonatomic,strong)NSString *title1;
|
||||
/// 88元礼包
|
||||
@property (nonatomic,strong)NSString *title2;
|
||||
/// 充值金额
|
||||
@property (nonatomic,strong)NSString *money;
|
||||
/// 时间
|
||||
@property (nonatomic,strong)NSString *time;
|
||||
/// 礼物列表
|
||||
@property (nonatomic,strong)NSArray <QXGiftModel*>*gift_list;
|
||||
@end
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
@@ -23,13 +23,3 @@
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@implementation QXFirstRechargeModel
|
||||
+(NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
|
||||
return @{
|
||||
@"gift_list" : @"QXGiftModel"
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#import "QXSongListModel.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@class QXRoomInfoModel,QXRoomPitModel,QXRoomOwnerModel,QXHeadLineModel,QXRoomAuction,QXRoomAuctionUser,QXRoomCpUser,QXRoomPkInfo;
|
||||
@class QXRoomInfoModel,QXRoomPitModel,QXRoomOwnerModel,QXHeadLineModel,QXRoomAuction,QXRoomAuctionUser,QXRoomCpUser,QXRoomPkInfo,QXRoomFriendInfo,QXRoomFriendHeartListModel,QXRoomActivitySubModel,QXRoomActivityModel;
|
||||
@interface QXRoomModel : NSObject
|
||||
/// 房间信息
|
||||
@property (nonatomic,strong)QXRoomInfoModel *room_info;
|
||||
@@ -28,8 +28,14 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (nonatomic,strong)QXRoomCpUser *cp_user;
|
||||
/// pk信息
|
||||
@property (nonatomic,strong)QXRoomPkInfo *pk_info;
|
||||
/// 交友房信息
|
||||
@property (nonatomic,strong)QXRoomFriendInfo *friend_info;
|
||||
/// k歌麦位
|
||||
@property (nonatomic,strong)NSArray< QXRoomPitModel*> *song_pit_list;
|
||||
/// 活动
|
||||
@property (nonatomic,strong)QXRoomActivityModel *gift_cycle;
|
||||
|
||||
@property (nonatomic,assign)NSInteger hour_ranking_open;
|
||||
@end
|
||||
|
||||
|
||||
@@ -49,7 +55,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (nonatomic,strong)NSString *room_cover;
|
||||
/// 房间公告
|
||||
@property (nonatomic,strong)NSString *room_intro;
|
||||
/// 房间类型 type_id 1 点唱 2 拍卖 3男神 4女神 6小黑屋
|
||||
/// 房间类型 type_id 1 点唱 2 拍卖 3男神 4女神 6小黑屋 7 交友房
|
||||
@property (nonatomic,strong)NSString *type_id;
|
||||
/// 房间子类型 label_id 1聊天 2 k歌 拍卖时 1真爱 2亲密
|
||||
@property (nonatomic,strong)NSString *label_id;
|
||||
@@ -321,4 +327,34 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (nonatomic,strong)NSString *is_pk;
|
||||
@end
|
||||
|
||||
|
||||
@interface QXRoomFriendInfo : NSObject
|
||||
/// 当前在哪个阶段 1 等待邂逅 2心动连线 3 牵手良缘
|
||||
@property (nonatomic,strong)NSString *step;
|
||||
/// 心动值
|
||||
@property (nonatomic,strong)NSArray <QXRoomFriendHeartListModel*>*heart_list;
|
||||
/// 场次id
|
||||
@property (nonatomic,strong)NSString *friend_id;
|
||||
/// 心动连线剩余时间
|
||||
@property (nonatomic,assign)long end_time;
|
||||
/// 在线cp数
|
||||
@property (nonatomic,strong)NSString *room_on_line_cp;
|
||||
@end
|
||||
|
||||
@interface QXRoomFriendHeartListModel : NSObject
|
||||
/// 心动值
|
||||
@property (nonatomic,strong)NSString *heartNum;
|
||||
@property (nonatomic,strong)NSString *heartId;
|
||||
@end
|
||||
|
||||
@interface QXRoomActivityModel : NSObject
|
||||
@property (nonatomic,strong)QXRoomActivitySubModel *xlh_info;
|
||||
@end
|
||||
|
||||
@interface QXRoomActivitySubModel : NSObject
|
||||
@property (nonatomic,strong)NSString *activities_name;
|
||||
@property (nonatomic,strong)NSString *icon;
|
||||
@property (nonatomic,strong)NSString *xlh_status;
|
||||
@property (nonatomic,assign)long end_time;
|
||||
@end
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
@@ -18,7 +18,9 @@
|
||||
@"room_auction":@"QXRoomAuction",
|
||||
@"cp_user": @"QXRoomCpUser",
|
||||
@"pk_info" : @"QXRoomPkInfo",
|
||||
@"song_pit_list":@"QXRoomPitModel"
|
||||
@"song_pit_list":@"QXRoomPitModel",
|
||||
@"friend_info":@"QXRoomFriendInfo",
|
||||
@"gift_cycle":@"QXRoomActivityModel",
|
||||
};
|
||||
}
|
||||
|
||||
@@ -114,3 +116,31 @@
|
||||
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
||||
@implementation QXRoomFriendInfo
|
||||
+(NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
|
||||
return @{
|
||||
@"heart_list" : @"QXRoomFriendHeartListModel"
|
||||
};
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation QXRoomFriendHeartListModel
|
||||
|
||||
@end
|
||||
|
||||
@implementation QXRoomActivityModel
|
||||
+(NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
|
||||
return @{
|
||||
@"xlh_info" : @"QXRoomActivitySubModel"
|
||||
};
|
||||
}
|
||||
@end
|
||||
|
||||
@implementation QXRoomActivitySubModel
|
||||
|
||||
|
||||
@end
|
||||
|
||||
@@ -39,6 +39,10 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (nonatomic,strong)NSString *is_use_code;
|
||||
/// 在线状态
|
||||
@property (nonatomic,assign)BOOL is_online;
|
||||
/// 1 能聊天 0不能聊天
|
||||
@property (nonatomic,assign)NSInteger is_can_chat;
|
||||
/// 需要充值金额
|
||||
@property (nonatomic,strong)NSString* can_chat_money;
|
||||
@end
|
||||
|
||||
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
#import "QXRechargeListModel.h"
|
||||
#import "QXPayTypeModel.h"
|
||||
#import "QXDayTaskModel.h"
|
||||
#import "QXRoomUserCharmModel.h"
|
||||
#import "QXRoomHourRankModel.h"
|
||||
#import "QXRedPacketModel.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@@ -314,6 +317,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
礼物列表
|
||||
*/
|
||||
+(void)giftListWithLabel:(NSString*)label
|
||||
roomId:(NSString*)roomId
|
||||
successBlock:(void (^)(NSArray<QXGiftModel*>* list))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
@@ -327,6 +331,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
gift_id:(NSString*)gift_id
|
||||
gift_num:(NSString*)gift_num
|
||||
to_uid:(NSString*)to_uid
|
||||
heart_id:(NSString*)heart_id
|
||||
type:(NSString*)type
|
||||
pit_number:(NSString*)pit_number
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
@@ -440,6 +445,13 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
search:(NSString*)search
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
/**
|
||||
搜索接口 (房间,用户)
|
||||
|
||||
*/
|
||||
+(void)searchListApiWithKetwords:(NSString*)keywords
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
/**
|
||||
设置主持收益比例
|
||||
@@ -832,6 +844,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
coin:(NSString*)coin
|
||||
type:(NSString*)type
|
||||
userId:(NSString*)userId
|
||||
typeId:(NSString*)typeId
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
@@ -969,6 +982,159 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
#pragma mark - 交友房
|
||||
/**
|
||||
交友房开始
|
||||
*/
|
||||
+(void)friendRoomStartWithRoomId:(NSString*)room_id
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
|
||||
/**
|
||||
交友房结束
|
||||
*/
|
||||
+(void)friendRoomEndWithRoomId:(NSString*)room_id
|
||||
friendId:(NSString*)friend_id
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
|
||||
/**
|
||||
交友房延时
|
||||
*/
|
||||
+(void)friendRoomDelayWithRoomId:(NSString*)room_id
|
||||
friendId:(NSString*)friend_id
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
/**
|
||||
交友房创建关系
|
||||
*/
|
||||
+(void)friendRoomCreateRelationWithRoomId:(NSString*)room_id
|
||||
friendId:(NSString*)friend_id
|
||||
user1Id:(NSString*)user1_id
|
||||
user2Id:(NSString*)user2_id
|
||||
relationId:(NSString*)relation_id
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
/**
|
||||
退出私密小屋
|
||||
*/
|
||||
+(void)friendRoomQuitWithRoomid:(NSString*)room_id
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
|
||||
/**
|
||||
获取房间用户魅力列表
|
||||
*/
|
||||
+(void)getRoomUserCharmListWithRoomId:(NSString*)roomId
|
||||
userId:(NSString*)userId
|
||||
successBlock:(void (^)(NSArray * list))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
/**
|
||||
背包一键全清
|
||||
*/
|
||||
+(void)roomBagGiftClearWithRoomId:(NSString*)roomId
|
||||
userId:(NSString*)userId
|
||||
heartId:(NSString*)heartId
|
||||
auction_id:(NSString*)auction_id
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
/**
|
||||
背包礼物价值
|
||||
*/
|
||||
+(void)roomGiftBagPricesuccessBlock:(void (^)(NSString* price))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
/**
|
||||
用户重连
|
||||
*/
|
||||
+(void)roomUserReconnectWithRoomId:(NSString*)roomId
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
/**
|
||||
绑定详情
|
||||
"id": "string",
|
||||
"alipay_name": "string",
|
||||
"alipay_account": "string",
|
||||
"bank_card_number": "string",
|
||||
"bank_user_name": "string",
|
||||
"bank_card": "string",
|
||||
"open_bank": "string"
|
||||
*/
|
||||
+(void)walletBindDetailWithUserId:(NSString*)user_id
|
||||
type:(NSString*)type
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
|
||||
|
||||
+(void)roomHourRankWithPage:(NSInteger)page
|
||||
successBlock:(void (^)(QXRoomHourRankModel* model))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
|
||||
/**
|
||||
发红包
|
||||
type 红包类型:1-普通红包,2-口令红包
|
||||
password 口令
|
||||
coin_type 币种:1- 金币,2- 钻石
|
||||
total_amount 总金额
|
||||
total_count 红包个数
|
||||
conditions 条件值(逗号分隔)
|
||||
countdown 倒计时(单位S)
|
||||
room_id 房间ID
|
||||
*/
|
||||
+(void)createRedpacketWithType:(NSString*)type
|
||||
password:(NSString*)password
|
||||
coin_type:(NSString*)coin_type
|
||||
total_amount:(NSString*)total_amount
|
||||
total_count:(NSString*)total_count
|
||||
conditions:(NSString*)conditions
|
||||
countdown:(NSString*)countdown
|
||||
room_id:(NSString*)room_id
|
||||
remark:(NSString *)remark
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
/**
|
||||
获取房间红包列表
|
||||
*/
|
||||
+(void)getRedpacketListWithRoomId:(NSString*)roomId
|
||||
successBlock:(void (^)(NSArray<QXRedPacketModel*>* list))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
|
||||
/**
|
||||
抢红包
|
||||
返回code 1 正常抢 2已经抢过了 3 手慢了
|
||||
*/
|
||||
+(void)drawRedpacketWithRedpacketId:(NSString*)redpacketId
|
||||
successBlock:(void (^)(NSString* code))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
|
||||
/**
|
||||
获取红包记录列表
|
||||
*/
|
||||
+(void)getRedpacketRecordWithRedpacketId:(NSString*)redpacketId
|
||||
successBlock:(void (^)(QXDrawRedPacketModel* list))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
|
||||
|
||||
/**
|
||||
收藏房间
|
||||
1 收藏 0 取消收藏
|
||||
*/
|
||||
+(void)roomCollectWithType:(NSString*)type
|
||||
room_id:(NSString*)room_id
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock;
|
||||
@end
|
||||
|
||||
|
||||
|
||||
@@ -18,6 +18,9 @@
|
||||
[QXGlobal shareGlobal].loginModel.dress = userModel.dress;
|
||||
[QXGlobal shareGlobal].loginModel.auth = userModel.auth.intValue;
|
||||
[[QXGlobal shareGlobal] updateUserInfoWithMolde:[QXGlobal shareGlobal].loginModel];
|
||||
[[NSUserDefaults standardUserDefaults] setInteger:userModel.is_can_chat forKey:kIsCanChat];
|
||||
[[NSUserDefaults standardUserDefaults] setObject:userModel.can_chat_money forKey:kIsCanChatMoney];
|
||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||
if (successBlock) {
|
||||
successBlock(userModel);
|
||||
}
|
||||
@@ -639,10 +642,12 @@
|
||||
礼物列表
|
||||
*/
|
||||
+(void)giftListWithLabel:(NSString*)label
|
||||
roomId:(NSString*)roomId
|
||||
successBlock:(void (^)(NSArray<QXGiftModel*>* list))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"label":label
|
||||
@"label":label,
|
||||
@"room_id":roomId?roomId:@""
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXGiftList parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
@@ -661,17 +666,19 @@
|
||||
gift_id:(NSString*)gift_id
|
||||
gift_num:(NSString*)gift_num
|
||||
to_uid:(NSString*)to_uid
|
||||
heart_id:(NSString*)heart_id
|
||||
type:(NSString*)type
|
||||
pit_number:(NSString*)pit_number
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"room_id":room_id,
|
||||
@"gift_id":gift_id,
|
||||
@"gift_num":gift_num,
|
||||
@"to_uid":to_uid,
|
||||
@"type":type,
|
||||
@"pit_number":pit_number,
|
||||
@"room_id":room_id?room_id:@"",
|
||||
@"gift_id":gift_id?gift_id:@"",
|
||||
@"gift_num":gift_num?gift_num:@"",
|
||||
@"to_uid":to_uid?to_uid:@"",
|
||||
@"type":type?type:@"",
|
||||
@"pit_number":pit_number?pit_number:@"",
|
||||
@"heart_id":heart_id?heart_id:@""
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXSendGift parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
@@ -897,6 +904,22 @@
|
||||
}];
|
||||
}
|
||||
|
||||
+(void)searchListApiWithKetwords:(NSString*)keywords
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"search":keywords?keywords:@"",
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXSearchListApi parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
successBlock(responseObject[@"data"]);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
设置主持收益比例
|
||||
*/
|
||||
@@ -1604,12 +1627,13 @@
|
||||
}];
|
||||
}
|
||||
|
||||
+(void)rechargePayWithMoney:(NSString *)money coin:(NSString *)coin type:(NSString *)type userId:(NSString*)userId successBlock:(void (^)(NSDictionary * _Nonnull))successBlock failBlock:(void (^)(NSError * _Nonnull, NSString * _Nonnull))failBlock{
|
||||
+(void)rechargePayWithMoney:(NSString *)money coin:(NSString *)coin type:(NSString *)type userId:(NSString*)userId typeId:(NSString*)typeId successBlock:(void (^)(NSDictionary * _Nonnull))successBlock failBlock:(void (^)(NSError * _Nonnull, NSString * _Nonnull))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"coin":coin?coin:@"",
|
||||
@"money":money?money:@"",
|
||||
@"type":type?type:@"",
|
||||
@"user_id":userId?userId:@""
|
||||
@"user_id":userId?userId:@"",
|
||||
@"type_id":typeId?typeId:@""
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXRechargePay parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
@@ -1889,4 +1913,300 @@
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
|
||||
|
||||
#pragma mark - 交友房
|
||||
/**
|
||||
交友房开始
|
||||
*/
|
||||
+(void)friendRoomStartWithRoomId:(NSString*)room_id
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"room_id":room_id?room_id:@"",
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXRoomFriendStart parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
successBlock(responseObject[@"data"]);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
交友房结束
|
||||
*/
|
||||
+(void)friendRoomEndWithRoomId:(NSString*)room_id
|
||||
friendId:(NSString*)friend_id
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"room_id":room_id?room_id:@"",
|
||||
@"friend_id":friend_id?friend_id:@""
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXRoomFriendEnd parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
successBlock(responseObject[@"data"]);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
交友房延时
|
||||
*/
|
||||
+(void)friendRoomDelayWithRoomId:(NSString*)room_id
|
||||
friendId:(NSString*)friend_id
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"room_id":room_id?room_id:@"",
|
||||
@"friend_id":friend_id?friend_id:@""
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXRoomFriendDelay parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
successBlock(responseObject[@"data"]);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
|
||||
/**
|
||||
交友房创建关系
|
||||
*/
|
||||
+(void)friendRoomCreateRelationWithRoomId:(NSString*)room_id
|
||||
friendId:(NSString*)friend_id
|
||||
user1Id:(NSString*)user1_id
|
||||
user2Id:(NSString*)user2_id
|
||||
relationId:(NSString*)relation_id
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"room_id":room_id?room_id:@"",
|
||||
@"friend_id":friend_id?friend_id:@"",
|
||||
@"user1_id":user1_id?user1_id:@"",
|
||||
@"user2_id":user2_id?user2_id:@"",
|
||||
@"relation_id":relation_id?relation_id:@"",
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXRoomFriendCreateRelation parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
successBlock(responseObject[@"data"]);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
|
||||
/**
|
||||
退出私密小屋
|
||||
*/
|
||||
+(void)friendRoomQuitWithRoomid:(NSString*)room_id
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"room_id":room_id?room_id:@"",
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXRoomFriendRoomQuit parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
successBlock(responseObject[@"data"]);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
|
||||
+(void)getRoomUserCharmListWithRoomId:(NSString*)roomId
|
||||
userId:(NSString*)userId
|
||||
successBlock:(void (^)(NSArray * list))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock
|
||||
{
|
||||
NSDictionary *parameters =@{
|
||||
@"room_id":roomId?roomId:@"",
|
||||
@"user_id":userId?userId:@""
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXRoomUserCharmList parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
NSArray*list = [NSArray yy_modelArrayWithClass:[QXRoomUserCharmModel class] json:responseObject[@"data"]];
|
||||
successBlock(list);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
|
||||
+(void)roomBagGiftClearWithRoomId:(NSString *)roomId userId:(NSString *)userId heartId:(NSString*)heartId auction_id:(NSString*)auction_id successBlock:(void (^)(NSDictionary * _Nonnull))successBlock failBlock:(void (^)(NSError * _Nonnull, NSString * _Nonnull))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"room_id":roomId?roomId:@"",
|
||||
@"to_uid":userId?userId:@"",
|
||||
@"heart_id":heartId?heartId:@"",
|
||||
@"auction_id":auction_id?auction_id:@""
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXRoomGiftBagClear parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
successBlock(responseObject[@"data"]);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
|
||||
+(void)roomGiftBagPricesuccessBlock:(void (^)(NSString * _Nonnull))successBlock failBlock:(void (^)(NSError * _Nonnull, NSString * _Nonnull))failBlock{
|
||||
[[QXRequset shareInstance] getWithUrl:QXRoomGiftBagPrice parameters:@{} needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
NSString *count = [NSString stringWithFormat:@"%@",responseObject[@"data"][@"count"]];
|
||||
successBlock(count);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
|
||||
+(void)roomUserReconnectWithRoomId:(NSString*)roomId
|
||||
successBlock:(void (^)(NSDictionary* dict))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"room_id":roomId?roomId:@"",
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXRoomUserReconnect parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
successBlock(responseObject[@"data"]);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
|
||||
+(void)walletBindDetailWithUserId:(NSString *)user_id type:(NSString *)type successBlock:(void (^)(NSDictionary * _Nonnull))successBlock failBlock:(void (^)(NSError * _Nonnull, NSString * _Nonnull))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"user_id":user_id?user_id:@"",
|
||||
@"type":type?type:@""
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXWalletBindDetail parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
successBlock(responseObject[@"data"]);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
|
||||
+(void)roomHourRankWithPage:(NSInteger)page successBlock:(void (^)(QXRoomHourRankModel * _Nonnull))successBlock failBlock:(void (^)(NSError * _Nonnull, NSString * _Nonnull))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"page":[NSNumber numberWithInteger:page]
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXRoomHourRank parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
QXRoomHourRankModel *model = [QXRoomHourRankModel yy_modelWithJSON:responseObject[@"data"]];
|
||||
successBlock(model);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
|
||||
+(void)createRedpacketWithType:(NSString *)type
|
||||
password:(NSString *)password
|
||||
coin_type:(NSString *)coin_type
|
||||
total_amount:(NSString *)total_amount
|
||||
total_count:(NSString *)total_count
|
||||
conditions:(NSString *)conditions
|
||||
countdown:(NSString *)countdown
|
||||
room_id:(NSString *)room_id
|
||||
remark:(NSString *)remark
|
||||
successBlock:(void (^)(NSDictionary * _Nonnull))successBlock
|
||||
failBlock:(void (^)(NSError * _Nonnull, NSString * _Nonnull))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"type":type?type:@"",
|
||||
@"password":password?password:@"",
|
||||
@"coin_type":coin_type?coin_type:@"",
|
||||
@"total_amount":total_amount?total_amount:@"",
|
||||
@"total_count":total_count?total_count:@"",
|
||||
@"conditions":conditions?conditions:@"",
|
||||
@"countdown":countdown?countdown:@"",
|
||||
@"room_id":room_id?room_id:@"",
|
||||
@"remark":remark?remark:@""
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXRoomCreateRedpacket parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
successBlock(responseObject[@"data"]);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
|
||||
+(void)getRedpacketListWithRoomId:(NSString *)roomId
|
||||
successBlock:(void (^)(NSArray<QXRedPacketModel *> * _Nonnull))successBlock failBlock:(void (^)(NSError * _Nonnull, NSString * _Nonnull))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"room_id":roomId?roomId:@"",
|
||||
};
|
||||
[[QXRequset shareInstance] getWithUrl:QXRoomRedpacketList parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
NSArray*list = [NSArray yy_modelArrayWithClass:[QXRedPacketModel class] json:responseObject[@"data"]];
|
||||
successBlock(list);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
抢红包
|
||||
*/
|
||||
+(void)drawRedpacketWithRedpacketId:(NSString*)redpacketId
|
||||
successBlock:(void (^)(NSString* code))successBlock
|
||||
failBlock:(void (^)(NSError * error, NSString * msg))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"redpacket_id":redpacketId?redpacketId:@"",
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXRoomDrawRedpacket parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
NSString *code = [NSString stringWithFormat:@"%@",responseObject[@"data"][@"code"]];
|
||||
successBlock(code);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
获取红包记录列表
|
||||
*/
|
||||
+(void)getRedpacketRecordWithRedpacketId:(NSString*)redpacketId
|
||||
successBlock:(nonnull void (^)(QXDrawRedPacketModel * _Nonnull))successBlock
|
||||
failBlock:(nonnull void (^)(NSError * _Nonnull, NSString * _Nonnull))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"redpacket_id":redpacketId?redpacketId:@"",
|
||||
};
|
||||
[[QXRequset shareInstance] postWithUrl:QXRoomRedpacketDetail parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
QXDrawRedPacketModel*model = [QXDrawRedPacketModel yy_modelWithJSON:responseObject[@"data"]];
|
||||
successBlock(model);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
|
||||
+(void)roomCollectWithType:(NSString *)type room_id:(NSString *)room_id successBlock:(void (^)(NSDictionary * _Nonnull))successBlock failBlock:(void (^)(NSError * _Nonnull, NSString * _Nonnull))failBlock{
|
||||
NSDictionary *parameters =@{
|
||||
@"room_id":room_id?room_id:@"",
|
||||
@"type":type?type:@""
|
||||
};
|
||||
[[QXRequset shareInstance] getWithUrl:QXUserFollowRoom parameters:parameters needCache:NO success:^(id responseObject) {
|
||||
if (successBlock) {
|
||||
successBlock(responseObject[@"data"]);
|
||||
}
|
||||
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
|
||||
failBlock(error,msg);
|
||||
}];
|
||||
}
|
||||
@end
|
||||
|
||||
@@ -210,7 +210,7 @@
|
||||
}
|
||||
for (int i = 0;i<userModel.icon.count;i++) {
|
||||
NSString*icon = userModel.icon[i];
|
||||
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(self.nameLabel.left+i*ScaleWidth(42), self.idLabel.bottom+5, ScaleWidth(42), ScaleWidth(16))];
|
||||
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(self.nameLabel.left+i*UserIconWidth, self.idLabel.bottom+5, UserIconWidth, UserIconHeight)];
|
||||
[imageView sd_setImageWithURL:[NSURL URLWithString:icon]];
|
||||
[self addSubview:imageView];
|
||||
[self.iconArray addObject:imageView];
|
||||
|
||||
@@ -104,12 +104,13 @@
|
||||
}];
|
||||
|
||||
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
|
||||
layout.itemSize = CGSizeMake(42, 16);
|
||||
layout.itemSize = CGSizeMake(UserIconWidth, UserIconHeight);
|
||||
layout.minimumLineSpacing = 7;
|
||||
layout.scrollDirection = UICollectionViewScrollDirectionHorizontal;
|
||||
self.collectionView = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:layout];
|
||||
self.collectionView.delegate = self;
|
||||
self.collectionView.dataSource = self;
|
||||
self.collectionView.backgroundColor = UIColor.clearColor;
|
||||
[self.collectionView registerClass:[QXTagImageCell class] forCellWithReuseIdentifier:@"QXTagImageCell"];
|
||||
[self addSubview:self.collectionView];
|
||||
[self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
@@ -152,6 +153,7 @@
|
||||
self.inCollectionView.delegate = self;
|
||||
self.inCollectionView.dataSource = self;
|
||||
self.inCollectionView.showsHorizontalScrollIndicator = NO;
|
||||
self.inCollectionView.backgroundColor = UIColor.clearColor;
|
||||
[self.inCollectionView registerClass:[QXSearchCell class] forCellWithReuseIdentifier:@"QXSearchCell"];
|
||||
[self addSubview:self.inCollectionView];
|
||||
[self.inCollectionView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
@@ -184,9 +186,9 @@
|
||||
}];
|
||||
|
||||
self.playBtn = [[UIButton alloc] initWithFrame:CGRectMake(self.playBtn.left-6-91, self.whiteBgView.top+10, 91, 35)];
|
||||
[self.playBtn setTitle:QXText(@"私信") forState:(UIControlStateNormal)];
|
||||
[self.playBtn setTitleColor:UIColor.whiteColor forState:(UIControlStateNormal)];
|
||||
self.playBtn.backgroundColor = RGB16(0x333333);
|
||||
// [self.playBtn setTitle:QXText(@"私信") forState:(UIControlStateNormal)];
|
||||
// [self.playBtn setTitleColor:UIColor.whiteColor forState:(UIControlStateNormal)];
|
||||
// self.playBtn.backgroundColor = RGB16(0x333333);
|
||||
self.playBtn.hidden = YES;
|
||||
self.playBtn.titleLabel.font = [UIFont systemFontOfSize:14];
|
||||
[self.playBtn addRoundedCornersWithRadius:17.5];
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
[self.selecteBtn setBackgroundImage:[UIImage imageWithColor:RGB16(0xEFF2F8)] forState:(UIControlStateNormal)];
|
||||
[self.selecteBtn setBackgroundImage:[UIImage imageNamed:@"mine_dress_bg"] forState:(UIControlStateSelected)];
|
||||
[self.selecteBtn setBackgroundImage:[UIImage imageNamed:@"room_sound_sel"] forState:(UIControlStateSelected)];
|
||||
}
|
||||
-(void)setModel:(QXUserDressModel *)model{
|
||||
_model = model;
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="30天" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fQr-Il-R17">
|
||||
<rect key="frame" x="0.0" y="0.0" width="40.333333333333336" height="15"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="11"/>
|
||||
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@@ -107,6 +107,6 @@
|
||||
</collectionViewCell>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="gift_number_bg" width="22.666666030883789" height="8.6666669845581055"/>
|
||||
<image name="gift_number_bg" width="35" height="13"/>
|
||||
</resources>
|
||||
</document>
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
self.bgView.layer.borderColor = RGB16(0x333333).CGColor;
|
||||
self.bgView.layer.borderColor = QXConfig.themeColor.CGColor;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -13,6 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (nonatomic,assign)BOOL isPop;
|
||||
@property (nonatomic,assign)BOOL isOnlyDisplayPayType;
|
||||
@property (nonatomic,strong)QXRechargeListModel *selectedModel;
|
||||
@property (nonatomic,strong)NSString *gift_bag_id;
|
||||
-(void)showInView:(UIView *)view;
|
||||
@end
|
||||
|
||||
|
||||
@@ -88,10 +88,10 @@
|
||||
[QXMineNetwork getRechargeListSuccessBlock:^(NSArray<QXRechargeListModel *> * _Nonnull list) {
|
||||
[weakSelf.rechargeDataArray removeAllObjects];
|
||||
[weakSelf.rechargeDataArray addObjectsFromArray:list];
|
||||
QXRechargeListModel *model = [[QXRechargeListModel alloc] init];
|
||||
model.money = @"0";
|
||||
model.coins = @"0";
|
||||
[weakSelf.rechargeDataArray addObject:model];
|
||||
// QXRechargeListModel *model = [[QXRechargeListModel alloc] init];
|
||||
// model.money = @"0";
|
||||
// model.coins = @"0";
|
||||
// [weakSelf.rechargeDataArray addObject:model];
|
||||
[weakSelf.collectionView reloadSections:[NSIndexSet indexSetWithIndex:0]];
|
||||
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
|
||||
|
||||
@@ -191,7 +191,7 @@
|
||||
}
|
||||
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath{
|
||||
if (indexPath.section == 0 && !self.isOnlyDisplayPayType) {
|
||||
return CGSizeMake((SCREEN_WIDTH-16*2-12*2)/3, 76);
|
||||
return CGSizeMake((SCREEN_WIDTH-16*2-12*2-1)/3, 76);
|
||||
}
|
||||
return CGSizeMake(SCREEN_WIDTH, 40);
|
||||
}
|
||||
@@ -264,19 +264,18 @@
|
||||
showToast(@"请选择充值金额");
|
||||
return;
|
||||
}
|
||||
if (self.isPop) {
|
||||
[self hide];
|
||||
}
|
||||
MJWeakSelf
|
||||
[QXMineNetwork rechargePayWithMoney:self.selectedModel.money coin:self.selectedModel.coins type:self.selectedPayTypeModel.type userId:QXGlobal.shareGlobal.loginModel.user_id successBlock:^(NSDictionary * _Nonnull dict) {
|
||||
if (weakSelf.selectedPayTypeModel.type.intValue == 2) {
|
||||
|
||||
@weakify(self)
|
||||
[QXMineNetwork rechargePayWithMoney:self.selectedModel.money coin:self.selectedModel.coins type:self.selectedPayTypeModel.type userId:QXGlobal.shareGlobal.loginModel.user_id typeId:self.gift_bag_id successBlock:^(NSDictionary * _Nonnull dict) {
|
||||
@strongify(self)
|
||||
if (self.selectedPayTypeModel.type.intValue == 2) {
|
||||
NSDictionary *resultDict = dict[@"data"];
|
||||
NSString *order = [NSString stringWithFormat:@"%@",resultDict[@"ali"]];
|
||||
[[AlipaySDK defaultService] payOrder:order fromScheme:@"qxlive" callback:^(NSDictionary *resultDic) {
|
||||
[[AlipaySDK defaultService] payOrder:order fromScheme:@"midilive" callback:^(NSDictionary *resultDic) {
|
||||
NSLog(@"支付宝H5支付回调 - %@", resultDic);
|
||||
|
||||
}];
|
||||
}else if (weakSelf.selectedPayTypeModel.type.intValue == 1) {
|
||||
}else if (self.selectedPayTypeModel.type.intValue == 1) {
|
||||
NSDictionary *resultDict = dict[@"data"][@"wx"];
|
||||
NSString *appid = resultDict[@"appid"];
|
||||
NSString *partnerId = resultDict[@"partnerid"];
|
||||
@@ -297,7 +296,7 @@
|
||||
|
||||
}];
|
||||
}
|
||||
else if (weakSelf.selectedPayTypeModel.type.intValue == 4) {
|
||||
else if (self.selectedPayTypeModel.type.intValue == 4) {
|
||||
NSMutableDictionary*dic = [NSMutableDictionary dictionaryWithDictionary:dict[@"data"][@"tl"]];
|
||||
[dic removeObjectForKey:@"json_data"];
|
||||
NSString *json = [dic jsonStringEncoded];
|
||||
@@ -312,7 +311,7 @@
|
||||
NSString *doubleEncodedQuery = [queryString stringByAddingPercentEncodingWithAllowedCharacters:customSet3];
|
||||
NSString *jumpStr = [NSString stringWithFormat:@"alipays://platformapi/startapp?appId=2021001104615521&page=pages/orderDetail/orderDetail&%@&query=%@",encodedString,doubleEncodedQuery];
|
||||
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:jumpStr] options:@{} completionHandler:nil];
|
||||
}else if (weakSelf.selectedPayTypeModel.type.intValue == 5) {
|
||||
}else if (self.selectedPayTypeModel.type.intValue == 5) {
|
||||
WXLaunchMiniProgramReq *launchMiniProgramReq = [WXLaunchMiniProgramReq object];
|
||||
launchMiniProgramReq.userName = @"gh_e64a1a89a0ad";
|
||||
NSDictionary *dic = dict[@"data"][@"tl"];
|
||||
@@ -328,7 +327,9 @@
|
||||
launchMiniProgramReq.miniProgramType = WXMiniProgramTypeRelease;
|
||||
[WXApi sendReq:launchMiniProgramReq completion:nil];
|
||||
}
|
||||
|
||||
if (self.isPop) {
|
||||
[self hide];
|
||||
}
|
||||
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
|
||||
showToast(msg)
|
||||
}];
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
// Initialization code
|
||||
self.roomDetailBtn.backgroundColor = QXConfig.themeColor;
|
||||
[self.roomDetailBtn setTitleColor:QXConfig.btnTextColor forState:(UIControlStateNormal)];
|
||||
self.moneyLabel.textColor = QXConfig.themeColor;
|
||||
}
|
||||
-(void)setType:(NSInteger)type{
|
||||
_type = type;
|
||||
|
||||
@@ -248,7 +248,7 @@
|
||||
</collectionViewCell>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="my_cproom_head_bg" width="65" height="65"/>
|
||||
<image name="my_cproom_head_bg" width="68" height="68"/>
|
||||
<image name="my_cproom_rank" width="14" height="14"/>
|
||||
<image name="my_cproom_value" width="14" height="14"/>
|
||||
<image name="my_room_cp" width="46" height="20"/>
|
||||
|
||||
@@ -20,8 +20,9 @@
|
||||
self.roomDetailBtn.backgroundColor = QXConfig.themeColor;
|
||||
[self.roomDetailBtn setTitleColor:QXConfig.btnTextColor forState:(UIControlStateNormal)];
|
||||
|
||||
[self.roomSubsidyBtn setTitleColor:UIColor.whiteColor forState:(UIControlStateNormal)];
|
||||
self.roomSubsidyBtn.backgroundColor = RGB16(0x333333);
|
||||
[self.roomSubsidyBtn setTitleColor:RGB16(0xC58600) forState:(UIControlStateNormal)];
|
||||
self.roomSubsidyBtn.backgroundColor = RGB16A(0xDEB52E, 0.25);
|
||||
self.moneyLabel.textColor = QXConfig.themeColor;
|
||||
}
|
||||
-(void)setBgImageCount:(NSInteger)bgImageCount{
|
||||
_bgImageCount = bgImageCount;
|
||||
@@ -30,10 +31,10 @@
|
||||
-(void)setType:(NSInteger)type{
|
||||
_type = type;
|
||||
if (type == 0) {
|
||||
self.roomSubsidyBtn.hidden = NO;
|
||||
// self.roomSubsidyBtn.hidden = NO;
|
||||
self.roomDetailBtn.hidden = NO;
|
||||
}else{
|
||||
self.roomSubsidyBtn.hidden = YES;
|
||||
// self.roomSubsidyBtn.hidden = YES;
|
||||
self.roomDetailBtn.hidden = NO;
|
||||
}
|
||||
|
||||
@@ -71,6 +72,7 @@
|
||||
//// }
|
||||
//}
|
||||
-(void)setModel:(QXRoomListModel *)model{
|
||||
|
||||
_model = model;
|
||||
[self.headerImageView sd_setImageWithURL:[NSURL URLWithString:model.room_cover] placeholderImage:[UIImage imageNamed:@"user_header_placehoulder"]];
|
||||
self.nickNameLabel.text = model.room_name;
|
||||
@@ -83,11 +85,11 @@
|
||||
NSString *come = [NSString qx_showHotCountNum:model.visit_num.longLongValue];
|
||||
self.comeCountLabel.text = [NSString stringWithFormat:@"访问:%@",come];
|
||||
if (self.type == 0) {
|
||||
self.todayLabel.text = @"今日收益";
|
||||
self.todayLabel.text = @"今日流水";
|
||||
}else{
|
||||
self.todayLabel.text = [NSString stringWithFormat:@"收益分成比例:%@%%",model.ratio];
|
||||
}
|
||||
NSString *money = [NSString qx_showHotCountNum:model.today_profit.longLongValue];
|
||||
NSString *money = [NSString stringWithFormat:@"%.4f",model.today_profit.doubleValue];
|
||||
self.moneyLabel.text = [NSString stringWithFormat:@"%@",money];
|
||||
[self.typeImageView sd_setImageWithURL:[NSURL URLWithString:model.label_icon] placeholderImage:nil];
|
||||
if (model.apply_status.intValue == 1) {
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
<constraint firstAttribute="height" constant="0.5" id="Dhz-Jd-Tft"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ay1-ie-dOO">
|
||||
<button hidden="YES" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ay1-ie-dOO">
|
||||
<rect key="frame" x="106" y="109.66666666666667" width="82" height="30.000000000000014"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="30" id="DWX-hC-OPc"/>
|
||||
@@ -221,7 +221,7 @@
|
||||
</collectionViewCell>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="my_room_wait" width="64" height="64"/>
|
||||
<image name="user_header_placehoulder" width="40" height="40"/>
|
||||
<image name="my_room_wait" width="88" height="88"/>
|
||||
<image name="user_header_placehoulder" width="60" height="60"/>
|
||||
</resources>
|
||||
</document>
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
self.titleLabel.text = model.remarks;
|
||||
self.timeLabel.text = model.time;
|
||||
[self.giftImageView sd_setImageWithURL:[NSURL URLWithString:model.gift_image]];
|
||||
self.recordLabel.text = [NSString stringWithFormat:@"X%@%@",model.gift_num,model.gift_name];
|
||||
// self.recordLabel.text = [NSString stringWithFormat:@"X%@%@",model.gift_num,model.gift_name];
|
||||
self.recordLabel.text = [NSString stringWithFormat:@"%@",model.gift_name];
|
||||
}
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
@@ -23,18 +23,21 @@
|
||||
self.titleLabel.text = model.task_name;
|
||||
NSString*subTitle = [NSString stringWithFormat:@"金币+%@",model.gold_reward];
|
||||
NSMutableAttributedString *attr = [[NSMutableAttributedString alloc] initWithString:subTitle];
|
||||
[attr yy_setColor:RGB16(0xE24171) range:[subTitle rangeOfString:[NSString stringWithFormat:@"+%@",model.gold_reward]]];
|
||||
[attr yy_setColor:RGB16(0xFF8827) range:[subTitle rangeOfString:[NSString stringWithFormat:@"+%@",model.gold_reward]]];
|
||||
self.subTitleLabel.attributedText = attr;
|
||||
[self.iconImageView sd_setImageWithURL:[NSURL URLWithString:model.icon]];
|
||||
if (model.task_status.intValue == 1) {
|
||||
self.finishBtn.enabled = YES;
|
||||
self.finishBtn.selected = NO;
|
||||
self.finishBtn.layer.borderWidth = 1;
|
||||
}else if (model.task_status.intValue == 2) {
|
||||
self.finishBtn.enabled = YES;
|
||||
self.finishBtn.selected = YES;
|
||||
self.finishBtn.layer.borderWidth = 1;
|
||||
}else{
|
||||
self.finishBtn.selected = NO;
|
||||
self.finishBtn.enabled = NO;
|
||||
self.finishBtn.layer.borderWidth = 0;
|
||||
}
|
||||
}
|
||||
- (IBAction)finishAction:(id)sender {
|
||||
@@ -60,7 +63,13 @@
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
[self.finishBtn addRoundedCornersWithRadius:15];
|
||||
self.finishBtn.layer.borderColor = RGB16(0xE24171).CGColor;
|
||||
[self.finishBtn setTitleColor:RGB16(0xC134EE) forState:(UIControlStateNormal)];
|
||||
[self.finishBtn setTitleColor:UIColor.whiteColor forState:(UIControlStateSelected)];
|
||||
[self.finishBtn setTitleColor:RGB16(0x666666) forState:(UIControlStateDisabled)];
|
||||
[self.finishBtn setBackgroundImage:[UIImage imageWithColor:RGB16(0xC134EE)] forState:(UIControlStateSelected)];
|
||||
[self.finishBtn setBackgroundImage:[UIImage imageWithColor:UIColor.clearColor] forState:(UIControlStateNormal)];
|
||||
[self.finishBtn setBackgroundImage:[UIImage imageWithColor:RGB16(0xF1F2F3)] forState:(UIControlStateDisabled)];
|
||||
self.finishBtn.layer.borderColor = RGB16(0xC134EE).CGColor;
|
||||
self.finishBtn.layer.borderWidth = 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<color key="titleColor" red="0.88627450980392153" green="0.25490196078431371" blue="0.44313725490196076" alpha="1" colorSpace="custom" customColorSpace="calibratedRGB"/>
|
||||
</state>
|
||||
<state key="disabled" title="已领取"/>
|
||||
<state key="selected" title="领取"/>
|
||||
<state key="selected" title="待领取"/>
|
||||
<connections>
|
||||
<action selector="finishAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="O2a-NK-IEM"/>
|
||||
</connections>
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
}
|
||||
-(void)initSubviews{
|
||||
self.cycleScrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 0, self.width, 169+kSafeAreaTop+16) delegate:self placeholderImage:nil];
|
||||
self.cycleScrollView.backgroundColor = QXConfig.themeColor;
|
||||
self.cycleScrollView.backgroundColor = [UIColor clearColor];
|
||||
self.cycleScrollView.imageURLStringsGroup = @[[QXGlobal shareGlobal].loginModel.avatar?[QXGlobal shareGlobal].loginModel.avatar:@""];
|
||||
self.cycleScrollView.bannerImageViewContentMode = UIViewContentModeScaleAspectFill;
|
||||
[self addSubview:self.cycleScrollView];
|
||||
@@ -52,6 +52,7 @@
|
||||
self.titleLabel.numberOfLines = 2;
|
||||
self.titleLabel.textColor = RGB16(0x999999);
|
||||
self.titleLabel.text = QXText(@"尊敬的用户,每月可修改2次,剩余2次 使用头像卡不限更换次数,还剩0张");
|
||||
self.titleLabel.hidden = YES;
|
||||
[self.bgView addSubview:self.titleLabel];
|
||||
|
||||
self.headerView = [[QXSeatHeaderView alloc] initWithFrame:CGRectMake((self.width-104)/2, self.bgView.top-52, 104, 104)];
|
||||
|
||||
@@ -38,7 +38,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
-(void)didClickLoginWithModel:(QXLoginModel*)model;
|
||||
|
||||
-(void)didHugSeatWithModel:(QXRoomUserInfoModel*)model;
|
||||
-(void)didHugSeatWithModel:(QXRoomUserInfoModel*)model isUpSeat:(BOOL)isUpSeat;
|
||||
|
||||
@end
|
||||
@interface QXBlackListCell : UITableViewCell
|
||||
@@ -55,6 +55,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *roleLabel;
|
||||
|
||||
@property (nonatomic,assign)BOOL isUpSeat;
|
||||
|
||||
@property (nonatomic,strong)QXRoomUserInfoModel *onlineUser;
|
||||
|
||||
@property (nonatomic,strong)QXRoomOnlineList *rankModel;
|
||||
|
||||
@@ -41,8 +41,8 @@
|
||||
}
|
||||
break;
|
||||
case QXBlackListCellTypeHugSeat:{
|
||||
if (self.delegate && [self.delegate respondsToSelector:@selector(didHugSeatWithModel:)]) {
|
||||
[self.delegate didHugSeatWithModel:self.onlineUser];
|
||||
if (self.delegate && [self.delegate respondsToSelector:@selector(didHugSeatWithModel:isUpSeat:)]) {
|
||||
[self.delegate didHugSeatWithModel:self.onlineUser isUpSeat:self.isUpSeat];
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -52,6 +52,9 @@
|
||||
}
|
||||
|
||||
}
|
||||
-(void)setIsUpSeat:(BOOL)isUpSeat{
|
||||
_isUpSeat = isUpSeat;
|
||||
}
|
||||
|
||||
-(void)setLoginModel:(QXLoginModel *)loginModel{
|
||||
_loginModel = loginModel;
|
||||
@@ -271,8 +274,8 @@
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
CGFloat iconWidth = 38;
|
||||
CGFloat iconHeight = 16;
|
||||
CGFloat iconWidth = UserIconWidth;
|
||||
CGFloat iconHeight = UserIconHeight;
|
||||
CGFloat margin = 6;
|
||||
for (int i = 0; i < 3; i++) {
|
||||
UIImageView *iconImageView = [[UIImageView alloc] init];
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
typedef NS_ENUM(NSInteger) {
|
||||
QXPasswordViewTypeChirldMode = 0,
|
||||
QXPasswordViewTypeChirldModeTwice,
|
||||
QXPasswordViewTypeRoom
|
||||
}QXPasswordViewType;
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@@ -102,17 +102,17 @@ CGFloat labelHeight = 63;
|
||||
make.centerX.centerY.equalTo(self.label1);
|
||||
make.width.height.mas_equalTo(1);
|
||||
}];
|
||||
self.forgotBtn = [[UIButton alloc] init];
|
||||
[self.forgotBtn setTitleColor:QXConfig.themeColor forState:(UIControlStateNormal)];
|
||||
self.forgotBtn.titleLabel.font = [UIFont systemFontOfSize:12];
|
||||
[self.forgotBtn setTitle:[NSString stringWithFormat:@"%@?%@",QXText(@"忘记密码"),QXText(@"请联系客服")] forState:(UIControlStateNormal)];
|
||||
[self.forgotBtn addTarget:self action:@selector(forgotAction) forControlEvents:(UIControlEventTouchUpInside)];
|
||||
[self addSubview:self.forgotBtn];
|
||||
[self.forgotBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.equalTo(self.label1.mas_bottom).offset(10);
|
||||
make.height.mas_equalTo(38);
|
||||
make.centerX.equalTo(self);
|
||||
}];
|
||||
// self.forgotBtn = [[UIButton alloc] init];
|
||||
// [self.forgotBtn setTitleColor:QXConfig.themeColor forState:(UIControlStateNormal)];
|
||||
// self.forgotBtn.titleLabel.font = [UIFont systemFontOfSize:12];
|
||||
// [self.forgotBtn setTitle:[NSString stringWithFormat:@"%@?%@",QXText(@"忘记密码"),QXText(@"请联系客服")] forState:(UIControlStateNormal)];
|
||||
// [self.forgotBtn addTarget:self action:@selector(forgotAction) forControlEvents:(UIControlEventTouchUpInside)];
|
||||
// [self addSubview:self.forgotBtn];
|
||||
// [self.forgotBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
// make.top.equalTo(self.label1.mas_bottom).offset(10);
|
||||
// make.height.mas_equalTo(38);
|
||||
// make.centerX.equalTo(self);
|
||||
// }];
|
||||
}
|
||||
-(void)forgotAction{
|
||||
|
||||
@@ -201,6 +201,10 @@ CGFloat labelHeight = 63;
|
||||
self.titleLabel.text = QXText(@"请输入监护密码");
|
||||
}
|
||||
break;
|
||||
case QXPasswordViewTypeChirldModeTwice:{
|
||||
self.titleLabel.text = QXText(@"请确认监护密码");
|
||||
}
|
||||
break;
|
||||
case QXPasswordViewTypeRoom:{
|
||||
self.titleLabel.text = QXText(@"请输入房间密码");
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (weak, nonatomic) IBOutlet UILabel *reasonLabel;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
|
||||
@property (nonatomic,assign)BOOL isCoin;
|
||||
@property (nonatomic,strong) QXCoinDetailModel *model;
|
||||
+(instancetype)cellWithTableView:(UITableView *)tableView;
|
||||
@end
|
||||
|
||||
@@ -18,6 +18,9 @@
|
||||
}
|
||||
return cell;
|
||||
}
|
||||
-(void)setIsCoin:(BOOL)isCoin{
|
||||
_isCoin = isCoin;
|
||||
}
|
||||
-(void)setModel:(QXCoinDetailModel *)model{
|
||||
_model = model;
|
||||
self.reasonLabel.text = model.remarks;
|
||||
@@ -26,7 +29,12 @@
|
||||
formatter.dateFormat = @"yyyy-MM-dd HH:mm:ss";
|
||||
NSString*time = [formatter stringFromDate:date];
|
||||
self.timeLabel.text = time;
|
||||
self.priceLabel.text = [NSString stringWithFormat:@"%.2f",model.change_value.doubleValue];
|
||||
if (self.isCoin) {
|
||||
self.priceLabel.text = [NSString stringWithFormat:@"%.2f",model.change_value.doubleValue];
|
||||
}else{
|
||||
self.priceLabel.text = [NSString stringWithFormat:@"%.4f",model.change_value.doubleValue];
|
||||
}
|
||||
|
||||
}
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
self.titleLabel = [[UILabel alloc] init];
|
||||
self.titleLabel.text = QXText(@"金币余额");
|
||||
self.titleLabel.font = [UIFont boldSystemFontOfSize:16];
|
||||
self.titleLabel.textColor = QXConfig.textColor;
|
||||
self.titleLabel.textColor = RGB16(0xffffff);
|
||||
[self addSubview:self.titleLabel];
|
||||
[self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.equalTo(self).offset(16);
|
||||
@@ -65,15 +65,18 @@
|
||||
switch (type) {
|
||||
case QXWalletTopViewTypeRecharge:{
|
||||
self.cornImageView.image = [UIImage imageNamed:@"wallet_corn"];
|
||||
self.topBgImageView.image = [UIImage imageNamed:@"wallet_top_bg"];
|
||||
self.titleLabel.text = QXText(@"金币余额");
|
||||
}
|
||||
break;
|
||||
case QXWalletTopViewTypeWithDraw:{
|
||||
self.topBgImageView.image = [UIImage imageNamed:@"wallet_top_bg1"];
|
||||
self.cornImageView.image = [UIImage imageNamed:@"wallet_diamond"];
|
||||
self.titleLabel.text = QXText(@"我的钻石");
|
||||
}
|
||||
break;
|
||||
case QXWalletTopViewTypeDiamond:{
|
||||
self.topBgImageView.image = [UIImage imageNamed:@"wallet_top_bg1"];
|
||||
self.cornImageView.image = [UIImage imageNamed:@"wallet_diamond"];
|
||||
self.titleLabel.text = QXText(@"钻石余额");
|
||||
}
|
||||
|
||||
@@ -10,10 +10,14 @@
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface QXWithDrawRecordCell : UITableViewCell
|
||||
@property (weak, nonatomic) IBOutlet UILabel *reasonLabel;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *realTitleLabel;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *withDrawPriceLabel;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *realPriceLabel;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *feeLabel;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *statusLabel;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *personalFeeLabel;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *leftImageView;
|
||||
|
||||
@property (nonatomic,strong)QXWithDrawRecordModel *model;
|
||||
+(instancetype)cellWithTableView:(UITableView *)tableView;
|
||||
|
||||
@@ -14,15 +14,69 @@
|
||||
if (!cell) {
|
||||
cell = [[NSBundle mainBundle] loadNibNamed:cellId owner:nil options:nil].lastObject;
|
||||
cell.backgroundColor = [UIColor clearColor];
|
||||
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
||||
}
|
||||
return cell;
|
||||
}
|
||||
-(void)setModel:(QXWithDrawRecordModel *)model{
|
||||
_model = model;
|
||||
self.reasonLabel.text = model.name;
|
||||
self.withDrawPriceLabel.text = [NSString stringWithFormat:@"%.2f",model.money.doubleValue];
|
||||
self.feeLabel.text = [NSString stringWithFormat:@"%.2f",model.withdraw_fee.doubleValue];
|
||||
self.personalFeeLabel.text = [NSString stringWithFormat:@"%.2f",model.received_tax_amount.doubleValue];
|
||||
self.realPriceLabel.text = [NSString stringWithFormat:@"%.2f",model.surplus_money.doubleValue];;
|
||||
self.timeLabel.text = model.createtime;
|
||||
self.priceLabel.text = [NSString stringWithFormat:@"%.2f",model.money.doubleValue];
|
||||
self.statusLabel.text = model.status_str;
|
||||
if (model.status.intValue == 1) {
|
||||
// self.statusLabel.text = @"待处理";
|
||||
self.realTitleLabel.text = @"提现金额(个税扣除前)";
|
||||
self.statusLabel.textColor = RGB16(0x0DFFB9);
|
||||
self.realPriceLabel.textColor = RGB16(0x333333);
|
||||
self.leftImageView.image =[UIImage imageNamed:@"wallet_record_green"];
|
||||
return;
|
||||
}
|
||||
if (model.status.intValue == 2) {
|
||||
// self.statusLabel.text = @"已通过";
|
||||
self.realTitleLabel.text = @"提现金额(个税扣除前)";
|
||||
self.statusLabel.textColor = RGB16(0x999999);
|
||||
self.realPriceLabel.textColor = RGB16(0x333333);
|
||||
self.leftImageView.image =[UIImage imageNamed:@"wallet_record_gray"];
|
||||
return;
|
||||
}
|
||||
if (model.status.intValue == 3) {
|
||||
self.realTitleLabel.text = @"退款金额";
|
||||
// self.statusLabel.text = @"已拒绝";
|
||||
self.statusLabel.textColor = RGB16(0xFF8ACC);
|
||||
self.realPriceLabel.textColor = RGB16(0x333333);
|
||||
self.leftImageView.image =[UIImage imageNamed:@"wallet_record_pink"];
|
||||
return;
|
||||
}
|
||||
if (model.status.intValue == 4) {
|
||||
// self.statusLabel.text = @"打款中";
|
||||
self.realTitleLabel.text = @"提现金额(个税扣除前)";
|
||||
self.realPriceLabel.textColor = RGB16(0x333333);
|
||||
self.statusLabel.textColor = RGB16(0x68A5FF);
|
||||
self.leftImageView.image =[UIImage imageNamed:@"wallet_record_blue"];
|
||||
return;
|
||||
}
|
||||
if (model.status.intValue == 5) {
|
||||
// self.statusLabel.text = @"打款失败";
|
||||
self.realTitleLabel.text = @"退款金额";
|
||||
self.realPriceLabel.textColor = RGB16(0x333333);
|
||||
self.statusLabel.textColor = RGB16(0xFF8ACC);
|
||||
self.leftImageView.image =[UIImage imageNamed:@"wallet_record_pink"];
|
||||
return;
|
||||
}
|
||||
if (model.status.intValue == 6) {
|
||||
// self.statusLabel.text = @"已到账";
|
||||
self.realTitleLabel.text = @"实际到账";
|
||||
self.realPriceLabel.textColor = RGB16(0x2ADB88);
|
||||
self.statusLabel.textColor = RGB16(0x999999);
|
||||
self.leftImageView.image =[UIImage imageNamed:@"wallet_record_gray"];
|
||||
return;
|
||||
}
|
||||
// self.reasonLabel.text = model.name;
|
||||
// self.priceLabel.text = [NSString stringWithFormat:@"%.2f",model.money.doubleValue];
|
||||
// self.statusLabel.text = model.status_str;
|
||||
|
||||
}
|
||||
- (void)awakeFromNib {
|
||||
|
||||
@@ -10,67 +10,158 @@
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" rowHeight="85" id="kPI-qL-1ri" customClass="QXWithDrawRecordCell">
|
||||
<rect key="frame" x="0.0" y="0.0" width="393" height="85"/>
|
||||
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" rowHeight="225" id="VCl-a3-yig" customClass="QXWithDrawRecordCell">
|
||||
<rect key="frame" x="0.0" y="0.0" width="470" height="180"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="kPI-qL-1ri" id="s9T-6G-yHf">
|
||||
<rect key="frame" x="0.0" y="0.0" width="393" height="85"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="VCl-a3-yig" id="L8k-Ed-Tx5">
|
||||
<rect key="frame" x="0.0" y="0.0" width="470" height="180"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="每日签到" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Qq3-Ya-VEA">
|
||||
<rect key="frame" x="16" y="12" width="261" height="21"/>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ZIP-q5-CqF">
|
||||
<rect key="frame" x="15" y="6" width="440" height="168"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="9ER-fD-hch">
|
||||
<rect key="frame" x="0.0" y="0.0" width="7" height="168"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="7" id="COj-v7-Xdv"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="提现金额" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2Tp-TZ-2Gx">
|
||||
<rect key="frame" x="19.999999999999996" y="13" width="55.666666666666657" height="21"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="21" id="EWH-1D-OSy"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="手续费" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ejl-Rb-2j2">
|
||||
<rect key="frame" x="20" y="47" width="42" height="21"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="21" id="qAI-Mp-oAi"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="个人所得税" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="OAN-0p-E7C">
|
||||
<rect key="frame" x="20" y="80" width="69.666666666666671" height="17"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="142.12" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GgA-Bs-Y0v">
|
||||
<rect key="frame" x="380.33333333333331" y="13.999999999999998" width="46.666666666666686" height="19.333333333333329"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="16"/>
|
||||
<color key="textColor" red="1" green="0.1529411765" blue="0.1529411765" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="3.21" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LRA-hz-cUz">
|
||||
<rect key="frame" x="395.66666666666669" y="47" width="31.333333333333314" height="21"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="计算中..." textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3RE-93-cJm">
|
||||
<rect key="frame" x="373" y="80" width="54" height="17"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="预计到账" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Qro-0b-Zcx">
|
||||
<rect key="frame" x="20" y="116" width="56" height="21"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="21" id="Ima-8w-tWJ"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2024.12.14 11:21:45" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Shi-5c-nIQ">
|
||||
<rect key="frame" x="19.999999999999993" y="143" width="111.33333333333331" height="18"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="18" id="IAn-Ty-XfO"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="12"/>
|
||||
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="待处理" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GfI-4K-hZ6">
|
||||
<rect key="frame" x="391" y="145" width="36" height="14.333333333333343"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="12"/>
|
||||
<color key="textColor" red="0.050980392159999999" green="1" blue="0.72549019609999998" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="s1F-9I-VCr">
|
||||
<rect key="frame" x="20" y="103" width="407" height="1"/>
|
||||
<color key="backgroundColor" red="0.94509803920000002" green="0.94901960780000005" blue="0.95294117649999999" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="1" id="Zmw-SI-mpm"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="138.81" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FgD-eh-sgY">
|
||||
<rect key="frame" x="375" y="117" width="52" height="19.333333333333343"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
|
||||
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="21" id="d9x-Tj-Ikf"/>
|
||||
<constraint firstItem="ejl-Rb-2j2" firstAttribute="top" secondItem="2Tp-TZ-2Gx" secondAttribute="bottom" constant="13" id="1Ol-zz-YXW"/>
|
||||
<constraint firstItem="s1F-9I-VCr" firstAttribute="leading" secondItem="9ER-fD-hch" secondAttribute="trailing" constant="13" id="3JZ-KX-JdQ"/>
|
||||
<constraint firstItem="LRA-hz-cUz" firstAttribute="centerY" secondItem="ejl-Rb-2j2" secondAttribute="centerY" id="3ax-vR-aLv"/>
|
||||
<constraint firstItem="3RE-93-cJm" firstAttribute="centerY" secondItem="OAN-0p-E7C" secondAttribute="centerY" id="5fi-Jh-w8f"/>
|
||||
<constraint firstItem="OAN-0p-E7C" firstAttribute="leading" secondItem="2Tp-TZ-2Gx" secondAttribute="leading" id="5yt-MS-7s5"/>
|
||||
<constraint firstItem="Shi-5c-nIQ" firstAttribute="leading" secondItem="2Tp-TZ-2Gx" secondAttribute="leading" id="6PA-xd-Ydq"/>
|
||||
<constraint firstItem="GfI-4K-hZ6" firstAttribute="centerY" secondItem="Shi-5c-nIQ" secondAttribute="centerY" id="92P-CK-CtR"/>
|
||||
<constraint firstItem="FgD-eh-sgY" firstAttribute="centerY" secondItem="Qro-0b-Zcx" secondAttribute="centerY" id="BHb-da-z3j"/>
|
||||
<constraint firstItem="2Tp-TZ-2Gx" firstAttribute="leading" secondItem="9ER-fD-hch" secondAttribute="trailing" constant="13" id="Cbc-Mk-rpH"/>
|
||||
<constraint firstItem="ejl-Rb-2j2" firstAttribute="leading" secondItem="2Tp-TZ-2Gx" secondAttribute="leading" id="Ces-M1-qW7"/>
|
||||
<constraint firstItem="LRA-hz-cUz" firstAttribute="trailing" secondItem="GgA-Bs-Y0v" secondAttribute="trailing" id="Df8-si-u5n"/>
|
||||
<constraint firstItem="9ER-fD-hch" firstAttribute="top" secondItem="ZIP-q5-CqF" secondAttribute="top" id="E3v-e8-qCy"/>
|
||||
<constraint firstItem="3RE-93-cJm" firstAttribute="trailing" secondItem="LRA-hz-cUz" secondAttribute="trailing" id="Emo-R6-1QY"/>
|
||||
<constraint firstItem="Qro-0b-Zcx" firstAttribute="leading" secondItem="2Tp-TZ-2Gx" secondAttribute="leading" id="LFD-rq-hny"/>
|
||||
<constraint firstItem="2Tp-TZ-2Gx" firstAttribute="top" secondItem="ZIP-q5-CqF" secondAttribute="top" constant="13" id="Nuf-D2-IwX"/>
|
||||
<constraint firstItem="9ER-fD-hch" firstAttribute="leading" secondItem="ZIP-q5-CqF" secondAttribute="leading" id="OtZ-Q9-KCk"/>
|
||||
<constraint firstItem="OAN-0p-E7C" firstAttribute="top" secondItem="ejl-Rb-2j2" secondAttribute="bottom" constant="12" id="Wyc-7P-N7e"/>
|
||||
<constraint firstAttribute="trailing" secondItem="s1F-9I-VCr" secondAttribute="trailing" constant="13" id="byI-mO-UA1"/>
|
||||
<constraint firstItem="GgA-Bs-Y0v" firstAttribute="centerY" secondItem="2Tp-TZ-2Gx" secondAttribute="centerY" id="duZ-Ur-oZT"/>
|
||||
<constraint firstAttribute="trailing" secondItem="GgA-Bs-Y0v" secondAttribute="trailing" constant="13" id="gqb-CB-JDY"/>
|
||||
<constraint firstAttribute="bottom" secondItem="9ER-fD-hch" secondAttribute="bottom" id="tJH-dN-spu"/>
|
||||
<constraint firstItem="Shi-5c-nIQ" firstAttribute="top" secondItem="Qro-0b-Zcx" secondAttribute="bottom" constant="6" id="vQx-6W-GGQ"/>
|
||||
<constraint firstItem="Qro-0b-Zcx" firstAttribute="top" secondItem="s1F-9I-VCr" secondAttribute="bottom" constant="12" id="xq9-io-dtT"/>
|
||||
<constraint firstItem="GfI-4K-hZ6" firstAttribute="trailing" secondItem="GgA-Bs-Y0v" secondAttribute="trailing" id="xwj-Nk-qmB"/>
|
||||
<constraint firstItem="s1F-9I-VCr" firstAttribute="top" secondItem="OAN-0p-E7C" secondAttribute="bottom" constant="6" id="yM5-N7-vjj"/>
|
||||
<constraint firstItem="FgD-eh-sgY" firstAttribute="trailing" secondItem="GgA-Bs-Y0v" secondAttribute="trailing" id="zdQ-3O-cgq"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.84705882349999995" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2024.12.14 11:22:55" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FLY-c0-OJ2">
|
||||
<rect key="frame" x="16" y="56" width="121" height="15"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="13"/>
|
||||
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="+99999" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Sxs-13-Gyh">
|
||||
<rect key="frame" x="297" y="12.666666666666664" width="80" height="20"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="80" id="N1f-68-eYJ"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="16"/>
|
||||
<color key="textColor" red="1" green="0.15294116739999999" blue="0.15294116739999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="已通过" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Lsg-kQ-zEd">
|
||||
<rect key="frame" x="338" y="53" width="39" height="21"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="21" id="aMc-86-ajV"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="13"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.84705882349999995" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="boolean" keyPath="layer.masksToBounds" value="YES"/>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
|
||||
<integer key="value" value="6"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="Sxs-13-Gyh" firstAttribute="leading" secondItem="Qq3-Ya-VEA" secondAttribute="trailing" constant="20" id="2dI-1d-yuF"/>
|
||||
<constraint firstItem="Lsg-kQ-zEd" firstAttribute="centerY" secondItem="FLY-c0-OJ2" secondAttribute="centerY" id="McZ-JB-PsG"/>
|
||||
<constraint firstItem="Qq3-Ya-VEA" firstAttribute="leading" secondItem="s9T-6G-yHf" secondAttribute="leading" constant="16" id="ZFS-5U-e4a"/>
|
||||
<constraint firstItem="FLY-c0-OJ2" firstAttribute="leading" secondItem="Qq3-Ya-VEA" secondAttribute="leading" id="ZOu-oY-tHe"/>
|
||||
<constraint firstItem="Sxs-13-Gyh" firstAttribute="centerY" secondItem="Qq3-Ya-VEA" secondAttribute="centerY" id="caK-uz-2hM"/>
|
||||
<constraint firstItem="Qq3-Ya-VEA" firstAttribute="top" secondItem="s9T-6G-yHf" secondAttribute="top" constant="12" id="hqc-IX-QbO"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Lsg-kQ-zEd" secondAttribute="trailing" constant="16" id="kIM-LF-NOI"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Sxs-13-Gyh" secondAttribute="trailing" constant="16" id="oXX-2c-aJq"/>
|
||||
<constraint firstAttribute="bottom" secondItem="FLY-c0-OJ2" secondAttribute="bottom" constant="14" id="rDE-Cu-M0l"/>
|
||||
<constraint firstItem="ZIP-q5-CqF" firstAttribute="leading" secondItem="L8k-Ed-Tx5" secondAttribute="leading" constant="15" id="IjW-s3-jqk"/>
|
||||
<constraint firstAttribute="bottom" secondItem="ZIP-q5-CqF" secondAttribute="bottom" constant="6" id="Tea-Q6-ko2"/>
|
||||
<constraint firstItem="ZIP-q5-CqF" firstAttribute="top" secondItem="L8k-Ed-Tx5" secondAttribute="top" constant="6" id="YUY-pY-uoO"/>
|
||||
<constraint firstAttribute="trailing" secondItem="ZIP-q5-CqF" secondAttribute="trailing" constant="15" id="w85-jo-ahZ"/>
|
||||
</constraints>
|
||||
</tableViewCellContentView>
|
||||
<viewLayoutGuide key="safeArea" id="Izm-u8-2uc"/>
|
||||
<viewLayoutGuide key="safeArea" id="4Co-ig-yar"/>
|
||||
<connections>
|
||||
<outlet property="priceLabel" destination="Sxs-13-Gyh" id="NdW-oN-sqm"/>
|
||||
<outlet property="reasonLabel" destination="Qq3-Ya-VEA" id="yaG-aO-KcX"/>
|
||||
<outlet property="statusLabel" destination="Lsg-kQ-zEd" id="buo-xV-o0N"/>
|
||||
<outlet property="timeLabel" destination="FLY-c0-OJ2" id="RFZ-hc-laN"/>
|
||||
<outlet property="feeLabel" destination="LRA-hz-cUz" id="WUU-4U-QxC"/>
|
||||
<outlet property="leftImageView" destination="9ER-fD-hch" id="VyA-xD-use"/>
|
||||
<outlet property="personalFeeLabel" destination="3RE-93-cJm" id="uvx-WQ-7Vl"/>
|
||||
<outlet property="realPriceLabel" destination="FgD-eh-sgY" id="Dvs-if-T2Z"/>
|
||||
<outlet property="realTitleLabel" destination="Qro-0b-Zcx" id="SeG-dj-krj"/>
|
||||
<outlet property="statusLabel" destination="GfI-4K-hZ6" id="gsv-N3-st3"/>
|
||||
<outlet property="timeLabel" destination="Shi-5c-nIQ" id="AI5-ne-1aG"/>
|
||||
<outlet property="withDrawPriceLabel" destination="GgA-Bs-Y0v" id="R0e-XF-6H8"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="194.6564885496183" y="13.028169014084508"/>
|
||||
<point key="canvasLocation" x="253.43511450381678" y="62.323943661971832"/>
|
||||
</tableViewCell>
|
||||
</objects>
|
||||
</document>
|
||||
|
||||
Reference in New Issue
Block a user