This commit is contained in:
2026-03-08 21:29:10 +08:00
parent 9fb2e2e694
commit c1ace5f53e
34 changed files with 870 additions and 1930 deletions

View File

@@ -12,6 +12,7 @@
#import "KBEmailRegistVC.h"
#import "KBEmailLoginVC.h"
#import "KBForgetPwdVC.h"
#import "KBWebViewViewController.h"
@interface KBLoginVC () <UITextViewDelegate>
@@ -210,8 +211,11 @@
}
- (void)onTapPolicy {
// /
KBLOG(@"onTapPolicy");
[self kb_openLegalDocumentType:KBLegalDocumentTypeTermsOfService];
}
- (void)kb_openLegalDocumentType:(KBLegalDocumentType)type {
[KBWebViewViewController presentLegalDocumentType:type fromViewController:self];
}
- (void)onTapSignUp {
@@ -495,8 +499,10 @@
BOOL hitTerms = (termsRange.location != NSNotFound && NSLocationInRange(charIndex, termsRange));
BOOL hitPrivacy = (privacyRange.location != NSNotFound && NSLocationInRange(charIndex, privacyRange));
if (hitTerms || hitPrivacy) {
[self onTapPolicy];
if (hitTerms) {
[self kb_openLegalDocumentType:KBLegalDocumentTypeTermsOfService];
} else if (hitPrivacy) {
[self kb_openLegalDocumentType:KBLegalDocumentTypePrivacyPolicy];
}
}