添加埋点
This commit is contained in:
@@ -226,6 +226,11 @@
|
||||
KBLOG(@"KBEmailLoginVC onTapSubmit, email=%@, pwdLen=%zd",
|
||||
self.emailTextField.text,
|
||||
self.passwordTextField.text.length);
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_login_email_submit_btn"
|
||||
pageId:@"login_email"
|
||||
elementId:@"submit_btn"
|
||||
extra:nil
|
||||
completion:nil];
|
||||
NSString *email = self.emailTextField.text ? self.emailTextField.text : @"";
|
||||
NSString *password = self.passwordTextField.text ? self.passwordTextField.text : @"";
|
||||
KBWeakSelf;
|
||||
|
||||
@@ -265,6 +265,12 @@
|
||||
NSString *pwd = self.passwordTextField.text ?: @"";
|
||||
NSString *repeat = self.repeatPasswordTextField.text ?: @"";
|
||||
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_register_email_submit_btn"
|
||||
pageId:@"register_email"
|
||||
elementId:@"submit_btn"
|
||||
extra:nil
|
||||
completion:nil];
|
||||
|
||||
if (email.length == 0 || pwd.length == 0 || repeat.length == 0) {
|
||||
[KBHUD showInfo:KBLocalized(@"Please complete all fields")];
|
||||
return;
|
||||
|
||||
@@ -113,6 +113,12 @@
|
||||
- (void)onTapNext {
|
||||
NSString *pwd = self.passwordTextField.text ?: @"";
|
||||
NSString *repeat = self.repeatPasswordTextField.text ?: @"";
|
||||
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_forgot_newpwd_next_btn"
|
||||
pageId:@"forgot_password_newpwd"
|
||||
elementId:@"next_btn"
|
||||
extra:nil
|
||||
completion:nil];
|
||||
|
||||
if (pwd.length == 0 || repeat.length == 0) {
|
||||
[KBHUD showInfo:KBLocalized(@"Please complete all fields")];
|
||||
|
||||
@@ -66,6 +66,11 @@
|
||||
- (void)onTapNext {
|
||||
NSString *email = [self.emailTextField.text ?: @"" stringByTrimmingCharactersInSet:
|
||||
[NSCharacterSet whitespaceAndNewlineCharacterSet]];
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_forgot_email_next_btn"
|
||||
pageId:@"forgot_password_email"
|
||||
elementId:@"next_btn"
|
||||
extra:nil
|
||||
completion:nil];
|
||||
if (email.length == 0) {
|
||||
[KBHUD showInfo:KBLocalized(@"Enter Email Address")];
|
||||
return;
|
||||
|
||||
@@ -76,6 +76,11 @@
|
||||
|
||||
- (void)onTapNext {
|
||||
NSString *code = self.codeInputView.textValue ?: @"";
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_forgot_verify_next_btn"
|
||||
pageId:@"forgot_password_verify"
|
||||
elementId:@"next_btn"
|
||||
extra:nil
|
||||
completion:nil];
|
||||
if (code.length == 0) {
|
||||
[KBHUD showInfo:KBLocalized(@"Enter Email Verification Code")];
|
||||
return;
|
||||
|
||||
@@ -169,6 +169,11 @@
|
||||
|
||||
- (void)onTapAppleLogin {
|
||||
KBLOG(@"onTapAppleLogin");
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_login_apple_btn"
|
||||
pageId:@"login"
|
||||
elementId:@"apple_btn"
|
||||
extra:nil
|
||||
completion:nil];
|
||||
[[KBLoginVM shared] signInWithAppleFromViewController:KB_CURRENT_NAV completion:^(BOOL success, NSError * _Nullable error) {
|
||||
if (success) {
|
||||
[KBHUD showInfo:KBLocalized(@"Signed in successfully")];
|
||||
@@ -190,6 +195,11 @@
|
||||
- (void)onTapEmailLogin {
|
||||
// 后续接入邮箱登录逻辑
|
||||
KBLOG(@"onTapEmailLogin");
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_login_email_btn"
|
||||
pageId:@"login"
|
||||
elementId:@"email_btn"
|
||||
extra:nil
|
||||
completion:nil];
|
||||
KBEmailLoginVC *vc = [[KBEmailLoginVC alloc] init];
|
||||
UINavigationController *nav = KB_CURRENT_NAV;
|
||||
if ([nav isKindOfClass:[BaseNavigationController class]]) {
|
||||
@@ -207,6 +217,11 @@
|
||||
- (void)onTapSignUp {
|
||||
// 打开注册页
|
||||
KBLOG(@"onTapSignUp");
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_login_signup_btn"
|
||||
pageId:@"login"
|
||||
elementId:@"signup_btn"
|
||||
extra:nil
|
||||
completion:nil];
|
||||
KBEmailRegistVC *vc = [[KBEmailRegistVC alloc] init];
|
||||
UINavigationController *nav = KB_CURRENT_NAV;
|
||||
if ([nav isKindOfClass:[BaseNavigationController class]]) {
|
||||
@@ -219,6 +234,11 @@
|
||||
- (void)onTapForgotPassword {
|
||||
// 打开忘记密码页
|
||||
KBLOG(@"onTapForgotPassword");
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_login_forgot_btn"
|
||||
pageId:@"login"
|
||||
elementId:@"forgot_btn"
|
||||
extra:nil
|
||||
completion:nil];
|
||||
KBForgetPwdVC *vc = [[KBForgetPwdVC alloc] init];
|
||||
UINavigationController *nav = KB_CURRENT_NAV;
|
||||
if ([nav isKindOfClass:[BaseNavigationController class]]) {
|
||||
|
||||
@@ -89,6 +89,11 @@
|
||||
|
||||
- (void)onTapConfirm {
|
||||
NSString *code = self.codeInputView.textValue ?: @"";
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_register_verify_confirm_btn"
|
||||
pageId:@"register_verify_email"
|
||||
elementId:@"confirm_btn"
|
||||
extra:nil
|
||||
completion:nil];
|
||||
if (code.length == 0) {
|
||||
[KBHUD showInfo:KBLocalized(@"Enter Email Verification Code")];
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user