This commit is contained in:
启星
2025-09-29 17:21:49 +08:00
parent 9307d88177
commit 2a44a06630
138 changed files with 2802 additions and 439 deletions

View File

@@ -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];

View File

@@ -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];

View File

@@ -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;
}