Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
514fd745
Commit
514fd745
authored
Jun 26, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理 按钮点击的问题
parent
39406479
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
YHApplyActivityAlert.swift
...s/Community(社区)/Activity(活动)/V/YHApplyActivityAlert.swift
+21
-1
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/V/YHApplyActivityAlert.swift
View file @
514fd745
...
...
@@ -240,6 +240,8 @@ extension YHApplyActivityAlert {
setNeedsLayout
()
layoutIfNeeded
()
updateButtonUI
()
}
...
...
@@ -290,7 +292,7 @@ extension YHApplyActivityAlert {
@objc
func
clickSubmitBtn
()
{
subButton
.
isEnabled
=
false
needCheckFlag
=
true
//
needCheckFlag = true
DispatchQueue
.
main
.
async
{
self
.
subButton
.
isEnabled
=
true
if
self
.
allDataIsOK
()
{
...
...
@@ -554,6 +556,24 @@ extension YHApplyActivityAlert {
let
tap1
:
UITapGestureRecognizer
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
tapButton(gestureRecognizer:)
)
)
centerView
.
addGestureRecognizer
(
tap1
)
updateButtonUI
()
}
func
updateButtonUI
()
{
guard
let
name
=
nameTextField
.
text
,
name
.
isEmpty
==
false
,
let
number
=
applyNumberTextField
.
text
,
number
.
isEmpty
==
false
,
let
phone
=
phoneTextField
.
text
,
phone
.
isEmpty
==
false
else
{
self
.
submitButton
.
isEnabled
=
false
self
.
submitButton
.
backgroundColor
=
UIColor
.
mainTextColor18
return
}
self
.
submitButton
.
isEnabled
=
true
self
.
submitButton
.
backgroundColor
=
UIColor
.
brandMainColor
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment