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-30 13:23:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
05807bab37320ff9ff36020b65a338e227eaf78b
05807bab
1 parent
1789dc1b
修改华为定位资源文件路径
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
sight_harmony/AppScope/resources/base/element/string.json
sight_harmony/features/wdHwAbility/src/main/resources/base/element/string.json
sight_harmony/features/wdLogin/src/main/ets/pages/login/LoginPage.ets
sight_harmony/AppScope/resources/base/element/string.json
View file @
05807ba
...
...
@@ -23,6 +23,10 @@
{
"name"
:
"load_net_data_none"
,
"value"
:
"no data"
},
{
"name"
:
"location_reason"
,
"value"
:
" "
}
]
}
...
...
sight_harmony/features/wdHwAbility/src/main/resources/base/element/string.json
View file @
05807ba
...
...
@@ -3,10 +3,6 @@
{
"name"
:
"shared_desc"
,
"value"
:
"description"
},
{
"name"
:
"location_reason"
,
"value"
:
" "
}
]
}
\ No newline at end of file
...
...
sight_harmony/features/wdLogin/src/main/ets/pages/login/LoginPage.ets
View file @
05807ba
import { Logger, EmitterEventId, EmitterUtils } from 'wdKit'
import { Logger, EmitterEventId, EmitterUtils
, DateTimeUtils
} from 'wdKit'
import { CustomProtocolDialog } from './CustomProtocolDialog'
import router from '@ohos.router'
import { LoginViewModel } from './LoginViewModel'
...
...
@@ -45,6 +45,7 @@ struct LoginPage {
@State checkCodePage: boolean = true //判断是否是验证码页面 默认验证码登录
@State passwordSwitch: boolean = true //密码显示
// @State isPasswordSubmit: boolean = false //账户密码状态 是否出发登录
lastTime: number = 0
dialogController: CustomDialogController = new CustomDialogController({
builder: CustomProtocolDialog({
...
...
@@ -136,7 +137,12 @@ struct LoginPage {
if (!this.isSubmit) {
return
}
this.loginSubmit()
let currentTime = DateTimeUtils.getTimeStamp()
if (currentTime - this.lastTime > 500) {
this.lastTime = currentTime
this.loginSubmit()
}
})
}.padding({ left: 25, right: 25 }).width('100%')
...
...
Please
register
or
login
to post a comment