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
wangliang_wd
2024-08-29 15:20:49 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
218864fd0db5ca0fe9976da1b8ea44190c6006de
218864fd
1 parent
8707f10f
feat:优化我的界面防重复点击登录
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
sight_harmony/features/wdComponent/src/main/ets/components/mine/MinePageUserSimpleInfoUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/MinePageUserSimpleInfoUI.ets
View file @
218864f
...
...
@@ -20,6 +20,8 @@ export default struct MinePageUserSimpleInfoUI {
@Link percent:number
navItem: BottomNavDTO = {} as BottomNavDTO
@State isCanClickLogin:boolean = true
loginStateChange(){
if(this.isLogin){
///已登录状态,先获取本地数据
...
...
@@ -217,12 +219,19 @@ export default struct MinePageUserSimpleInfoUI {
}
jumpLogin(){
if (this.isCanClickLogin === true){
this.isCanClickLogin = false
if(!this.isLogin){
WDRouterRule.jumpWithPage(WDRouterPage.loginPage)
}else {
WDRouterRule.jumpWithPage(WDRouterPage.mineHomePage)
}
}
let timer = setInterval(() => {
this.isCanClickLogin = true
clearInterval(timer);
}, 1000);
}
calcHeight(value:number): number{
return value * this.percent
...
...
Please
register
or
login
to post a comment