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-03-21 10:19:59 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c1cb8fef832b6becf227602fbf52ba817ddbcb29
c1cb8fef
1 parent
ed072378
隐私弹框优化
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
sight_harmony/features/wdLogin/src/main/ets/pages/login/CustomProtocolDialog.ets
sight_harmony/features/wdLogin/src/main/ets/pages/login/LoginInputComponent.ets
sight_harmony/features/wdLogin/src/main/ets/pages/login/CustomProtocolDialog.ets
View file @
c1cb8fe
...
...
@@ -26,11 +26,13 @@ export struct CustomProtocolDialog {
Span("《用户协议》").fontSize(14).fontColor("#ED2800").onClick(()=>{
let bean={contentId:"1",pageID:""} as Params
WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage,bean)
this.controller.close()
})
Span("及").fontSize(14).fontColor("#666666")
Span("《隐私政策》").fontSize(14).fontColor("#ED2800").onClick(()=>{
let bean={contentId:"2",pageID:""} as Params
WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage,bean)
this.controller.close()
})
Span("后进行登录").fontSize(14).fontColor("#666666")
}.margin({ top: 12, left: 16, right: 16 })
...
...
sight_harmony/features/wdLogin/src/main/ets/pages/login/LoginInputComponent.ets
View file @
c1cb8fe
...
...
@@ -8,6 +8,7 @@ export struct LoginInputComponent {
@State codeBtnState: boolean = false //发送验证码控件是否可以 默认不可用
@Link isCodeSend: boolean //验证码控件是否点击 默认没有 发送接口
@Link isSubmit: boolean //是否可以提交
isFirst:boolean=true//是否第一次获取验证码
build() {
Column() {
...
...
@@ -50,7 +51,7 @@ export struct LoginInputComponent {
this.isSubmit = (this.phoneContent.length >= 11 && this.codeContent.length >= 6)
})
Text(this.isCodeSend ? this.timeCount + "s" :
"发送验证码"
)
Text(this.isCodeSend ? this.timeCount + "s" :
this.isFirst?"发送验证码":'重新发送'
)
.backgroundImage($r('app.media.login_code_bg'), ImageRepeat.NoRepeat)
.backgroundImageSize(ImageSize.Cover)
.fontColor('#ED2800')
...
...
@@ -65,6 +66,7 @@ export struct LoginInputComponent {
return
}
this.isCodeSend = true
this.isFirst=false
let time = setInterval(() => {
Logger.debug("倒计时:" + this.timeCount)
this.timeCount--
...
...
Please
register
or
login
to post a comment