Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
shishuangxi
2024-04-29 16:46:49 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
395355123397de30234a41837d9d497a3e9d947c
39535512
1 parent
e8eceb42
更换换绑事件id
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
sight_harmony/commons/wdKit/src/main/ets/utils/EmitterEventId.ts
sight_harmony/features/wdComponent/src/main/ets/components/setting/AccountAndSecurityLayout.ets
sight_harmony/features/wdLogin/src/main/ets/pages/login/ForgetPasswordPage.ets
sight_harmony/commons/wdKit/src/main/ets/utils/EmitterEventId.ts
View file @
3953551
...
...
@@ -23,6 +23,9 @@ export enum EmitterEventId {
// 登录成功
LOGIN_SUCCESS
=
8
,
// 换绑成功
PHONE_CHANGE_SUCCESS
=
9
,
// App回到前台
APP_ENTER_FOREGROUD
=
100
,
// App进入后台
...
...
sight_harmony/features/wdComponent/src/main/ets/components/setting/AccountAndSecurityLayout.ets
View file @
3953551
...
...
@@ -76,7 +76,7 @@ export struct AccountAndSecurityLayout {
addEmitEvent(){
// 定义一个eventId为1的事件
let event: emitter.InnerEvent = {
eventId:
10010
eventId:
EmitterEventId.PHONE_CHANGE_SUCCESS
};
// 收到eventId为1的事件后执行该回调
...
...
sight_harmony/features/wdLogin/src/main/ets/pages/login/ForgetPasswordPage.ets
View file @
3953551
...
...
@@ -7,7 +7,7 @@ import { Params } from '../../../../../../../commons/wdRouter/oh_modules/wdBean/
import { WDRouterRule, WDRouterPage } from 'wdRouter';
import { SettingPasswordParams } from './SettingPasswordLayout'
import { Router } from '@ohos.arkui.UIContext'
import { SPHelper, ToastUtils } from 'wdKit/Index'
import {
EmitterEventId, EmitterUtils,
SPHelper, ToastUtils } from 'wdKit/Index'
import { SpConstants } from 'wdConstant/Index'
import { emitter } from '@kit.BasicServicesKit'
...
...
@@ -189,7 +189,7 @@ struct ForgetPasswordPage {
sendEmitEvent(){
// 定义一个eventId为1的事件,事件优先级为Low
let event: emitter.InnerEvent = {
eventId:
10010
,
eventId:
EmitterEventId.PHONE_CHANGE_SUCCESS
,
priority: emitter.EventPriority.LOW
};
...
...
Please
register
or
login
to post a comment