Showing
1 changed file
with
12 additions
and
11 deletions
| 1 | - | ||
| 2 | -import { BottomNavi, CommonConstants, SpConstants } from 'wdConstant'; | ||
| 3 | -import { Logger, SPHelper, ToastUtils, UserDataLocal, EmitterEventId, EmitterUtils } from 'wdKit'; | ||
| 4 | -import PageViewModel from '../../viewmodel/PageViewModel'; | 1 | +import { SpConstants } from 'wdConstant'; |
| 2 | +import { Logger, SPHelper, ToastUtils, EmitterEventId, EmitterUtils } from 'wdKit'; | ||
| 5 | import {MineMainSettingFunctionItem} from '../../viewmodel/MineMainSettingFunctionItem'; | 3 | import {MineMainSettingFunctionItem} from '../../viewmodel/MineMainSettingFunctionItem'; |
| 6 | import MineSettingDatasModel from '../../model/MineSettingDatasModel'; | 4 | import MineSettingDatasModel from '../../model/MineSettingDatasModel'; |
| 7 | -import storageStatistics from "@ohos.file.storageStatistics"; | ||
| 8 | -import { BusinessError } from '@ohos.base'; | ||
| 9 | -import ArrayList from '@ohos.util.ArrayList'; | ||
| 10 | import router from '@ohos.router'; | 5 | import router from '@ohos.router'; |
| 11 | import { WDRouterPage, WDRouterRule } from 'wdRouter'; | 6 | import { WDRouterPage, WDRouterRule } from 'wdRouter'; |
| 12 | import { Params } from 'wdBean'; | 7 | import { Params } from 'wdBean'; |
| 13 | -import { SettingPasswordParams } from 'wdLogin'; | ||
| 14 | import { LoginViewModel } from 'wdLogin/src/main/ets/pages/login/LoginViewModel'; | 8 | import { LoginViewModel } from 'wdLogin/src/main/ets/pages/login/LoginViewModel'; |
| 15 | -import { Router } from '@ohos.arkui.UIContext'; | ||
| 16 | import promptAction from '@ohos.promptAction'; | 9 | import promptAction from '@ohos.promptAction'; |
| 17 | import { LogoutViewModel } from '../../viewmodel/LogoutViewModel'; | 10 | import { LogoutViewModel } from '../../viewmodel/LogoutViewModel'; |
| 18 | import { CustomLogoutDialog } from './CustomLogoutDialog'; | 11 | import { CustomLogoutDialog } from './CustomLogoutDialog'; |
| 19 | import { emitter } from '@kit.BasicServicesKit'; | 12 | import { emitter } from '@kit.BasicServicesKit'; |
| 20 | import { ConfirmLogoutDialog } from './ConfirmLogoutDialog'; | 13 | import { ConfirmLogoutDialog } from './ConfirmLogoutDialog'; |
| 21 | - | 14 | +import { TrackingButton, TrackConstants } from 'wdTracking/Index'; |
| 22 | export { SettingPasswordParams } from "wdLogin" | 15 | export { SettingPasswordParams } from "wdLogin" |
| 23 | 16 | ||
| 24 | @Component | 17 | @Component |
| @@ -182,9 +175,11 @@ export struct AccountAndSecurityLayout { | @@ -182,9 +175,11 @@ export struct AccountAndSecurityLayout { | ||
| 182 | .onClick(() => { | 175 | .onClick(() => { |
| 183 | console.log(index + "") | 176 | console.log(index + "") |
| 184 | if (index == 0){ | 177 | if (index == 0){ |
| 178 | + trackButtonClick("accountManagementPageChangePhoneNumber") | ||
| 185 | let pageType = {'pageType': 2} as Record<string, number>; | 179 | let pageType = {'pageType': 2} as Record<string, number>; |
| 186 | WDRouterRule.jumpWithPage(WDRouterPage.forgetPasswordPage, pageType) | 180 | WDRouterRule.jumpWithPage(WDRouterPage.forgetPasswordPage, pageType) |
| 187 | }else if (index == 1) { | 181 | }else if (index == 1) { |
| 182 | + trackButtonClick("accountManagementPageAccountManagementPassword") | ||
| 188 | if (this.ifSetPassword) { | 183 | if (this.ifSetPassword) { |
| 189 | //修改密码 | 184 | //修改密码 |
| 190 | WDRouterRule.jumpWithPage(WDRouterPage.modifyPasswordPage) | 185 | WDRouterRule.jumpWithPage(WDRouterPage.modifyPasswordPage) |
| @@ -194,6 +189,7 @@ export struct AccountAndSecurityLayout { | @@ -194,6 +189,7 @@ export struct AccountAndSecurityLayout { | ||
| 194 | WDRouterRule.jumpWithPage(WDRouterPage.forgetPasswordPage, pageType) | 189 | WDRouterRule.jumpWithPage(WDRouterPage.forgetPasswordPage, pageType) |
| 195 | } | 190 | } |
| 196 | }else if (index == 3) { | 191 | }else if (index == 3) { |
| 192 | + trackButtonClick("accountManagementPageAccountCancellation") | ||
| 197 | this.isAccountPage=false | 193 | this.isAccountPage=false |
| 198 | // WDRouterRule.jumpWithPage(WDRouterPage.forgetPasswordPage, pageType) | 194 | // WDRouterRule.jumpWithPage(WDRouterPage.forgetPasswordPage, pageType) |
| 199 | } | 195 | } |
| @@ -214,7 +210,8 @@ export struct AccountAndSecurityLayout { | @@ -214,7 +210,8 @@ export struct AccountAndSecurityLayout { | ||
| 214 | 210 | ||
| 215 | Column() { | 211 | Column() { |
| 216 | Button('退出登录',{ stateEffect: true ,type: ButtonType.Normal}).width('90%').height('80lpx').backgroundColor('#da3e22').fontColor('#fff').margin('20lpx').borderRadius('8lpx').onClick(()=>{ | 212 | Button('退出登录',{ stateEffect: true ,type: ButtonType.Normal}).width('90%').height('80lpx').backgroundColor('#da3e22').fontColor('#fff').margin('20lpx').borderRadius('8lpx').onClick(()=>{ |
| 217 | - this.confirmDialogController.open() | 213 | + trackButtonClick("accountManagementPageLogout") |
| 214 | + this.confirmDialogController.open() | ||
| 218 | }) | 215 | }) |
| 219 | } | 216 | } |
| 220 | } | 217 | } |
| @@ -514,4 +511,8 @@ export struct AccountArrowCell{ | @@ -514,4 +511,8 @@ export struct AccountArrowCell{ | ||
| 514 | } | 511 | } |
| 515 | .height('54lpx') | 512 | .height('54lpx') |
| 516 | } | 513 | } |
| 514 | +} | ||
| 515 | + | ||
| 516 | +function trackButtonClick(buttonName: string){ | ||
| 517 | + TrackingButton.click(buttonName, TrackConstants.PageName.Account_Management, TrackConstants.PageName.Account_Management) | ||
| 517 | } | 518 | } |
-
Please register or login to post a comment