覆盖羽声
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user