1
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user