yangchenggong1_wd

desc:埋点[登录页 - 登录方式 选择点击]

@@ -6,7 +6,7 @@ import { WDRouterPage } from 'wdRouter/src/main/ets/router/WDRouterPage'; @@ -6,7 +6,7 @@ import { WDRouterPage } from 'wdRouter/src/main/ets/router/WDRouterPage';
6 import { WDRouterRule } from 'wdRouter/src/main/ets/router/WDRouterRule'; 6 import { WDRouterRule } from 'wdRouter/src/main/ets/router/WDRouterRule';
7 import { Params } from '../../../../../../../commons/wdRouter/oh_modules/wdBean/src/main/ets/bean/content/Params' 7 import { Params } from '../../../../../../../commons/wdRouter/oh_modules/wdBean/src/main/ets/bean/content/Params'
8 import {InterestsHobbiesModel} from '../../../../../../../products/phone/src/main/ets/pages/viewModel/InterestsHobbiesModel' 8 import {InterestsHobbiesModel} from '../../../../../../../products/phone/src/main/ets/pages/viewModel/InterestsHobbiesModel'
9 -import { TrackingPageBrowse, TrackConstants, TrackingButton } from 'wdTracking/Index' 9 +import { TrackingPageBrowse, TrackConstants, TrackingButton, ParamType, Tracking } from 'wdTracking/Index'
10 10
11 @Extend(Row) 11 @Extend(Row)
12 function otherStyle() { 12 function otherStyle() {
@@ -314,6 +314,13 @@ struct LoginPage { @@ -314,6 +314,13 @@ struct LoginPage {
314 } 314 }
315 .onClick(() => { 315 .onClick(() => {
316 this.onPageHide() 316 this.onPageHide()
  317 +
  318 + if(this.checkCodePage){
  319 + trackTypeClick(0,TrackConstants.PageName.Phone_Login_Page)
  320 + }else{
  321 + trackTypeClick(6,TrackConstants.PageName.Login_Page)
  322 + }
  323 +
317 this.updateAccount() 324 this.updateAccount()
318 this.checkCodePage = !this.checkCodePage 325 this.checkCodePage = !this.checkCodePage
319 this.passwordSwitch = true 326 this.passwordSwitch = true
@@ -585,3 +592,12 @@ struct ProtocolComponent { @@ -585,3 +592,12 @@ struct ProtocolComponent {
585 592
586 } 593 }
587 } 594 }
  595 +
  596 +function trackTypeClick(typeValue: number,pageId: string){
  597 + let params: ParamType = {}
  598 + params["loginType"] = typeValue
  599 + params["pageName"] = pageId
  600 + params["pageId"] = pageId
  601 +
  602 + Tracking.event("login_type_click", params)
  603 +}