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
1a16fcf8
Commit
1a16fcf8
authored
Jun 26, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
几处细节修改
parent
327469b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
YHActivityDetailViewController.swift
...y(社区)/Activity(活动)/C/YHActivityDetailViewController.swift
+1
-1
YHActivityDetailModel.swift
.../Community(社区)/Activity(活动)/M/YHActivityDetailModel.swift
+1
-1
YHApplyActivityAlert.swift
...s/Community(社区)/Activity(活动)/V/YHApplyActivityAlert.swift
+11
-6
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/C/YHActivityDetailViewController.swift
View file @
1a16fcf8
...
...
@@ -89,7 +89,7 @@ extension YHActivityDetailViewController {
}
func
showApplyUI
()
{
YHApplyActivityAlert
.
showApplyActivityAlertView
{
(
tag
,
name
,
number
,
phone
)
in
YHApplyActivityAlert
.
showApplyActivityAlertView
(
name
:
self
.
viewModel
.
activityDetailModel
?
.
businessCardName
??
""
)
{
(
tag
,
name
,
number
,
phone
)
in
if
tag
{
printLog
(
tag
)
printLog
(
name
)
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/M/YHActivityDetailModel.swift
View file @
1a16fcf8
...
...
@@ -23,5 +23,5 @@ class YHActivityDetailModel: YHActivityModel {
var
introduce
:
String
=
""
//活动介绍
var
posters
:
[
String
]
=
[]
//活动海报
var
businessCardName
:
String
=
""
//报名人姓名
}
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/V/YHApplyActivityAlert.swift
View file @
1a16fcf8
...
...
@@ -20,9 +20,6 @@ class YHApplyActivityAlert: UIView {
var
messageLabel
:
UILabel
!
var
agreeButton
:
UIButton
!
private
let
contentViewH
:
CGFloat
=
386.0
private
var
applyName
:
String
=
""
private
var
applyNumber
:
Int
=
1
...
...
@@ -30,6 +27,7 @@ class YHApplyActivityAlert: UIView {
private
var
needCheckFlag
:
Bool
=
false
lazy
var
nameTextField
:
UITextField
=
{
let
textField
=
UITextField
()
textField
.
backgroundColor
=
.
clear
...
...
@@ -140,8 +138,10 @@ class YHApplyActivityAlert: UIView {
}()
//类方法 - 展示
static
func
showApplyActivityAlertView
(
callBack
:
@escaping
Block
)
{
static
func
showApplyActivityAlertView
(
name
:
String
=
""
,
callBack
:
@escaping
Block
)
{
let
view
=
YHApplyActivityAlert
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
))
view
.
applyName
=
name
view
.
nameTextField
.
text
=
name
view
.
block
=
callBack
let
window
=
UIApplication
.
shared
.
yhKeyWindow
()
window
?
.
addSubview
(
view
)
...
...
@@ -292,7 +292,6 @@ extension YHApplyActivityAlert {
@objc
func
clickSubmitBtn
()
{
subButton
.
isEnabled
=
false
// needCheckFlag = true
DispatchQueue
.
main
.
async
{
self
.
subButton
.
isEnabled
=
true
if
self
.
allDataIsOK
()
{
...
...
@@ -510,6 +509,7 @@ extension YHApplyActivityAlert {
phoneLable
.
attributed
.
text
=
aaa
+
bbb
centerView
.
addSubview
(
phoneTextField
)
phoneTextField
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
subButton
.
snp
.
left
)
...
...
@@ -517,6 +517,7 @@ extension YHApplyActivityAlert {
make
.
centerY
.
equalTo
(
phoneLable
)
make
.
right
.
equalTo
(
-
20
)
}
phoneTextField
.
keyboardType
=
.
phonePad
centerView
.
addSubview
(
line4
)
line4
.
snp
.
makeConstraints
{
make
in
...
...
@@ -565,7 +566,7 @@ extension YHApplyActivityAlert {
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
self
.
submitButton
.
backgroundColor
=
UIColor
.
brandMainColor30
return
}
...
...
@@ -599,6 +600,10 @@ extension YHApplyActivityAlert: UITextFieldDelegate {
textField
.
text
=
"10"
YHHUD
.
flash
(
message
:
"最多添加10人"
)
return
false
}
else
if
let
item
=
Int
(
newText
),
item
<
1
{
textField
.
text
=
"1"
YHHUD
.
flash
(
message
:
"至少添加1人"
)
return
false
}
}
else
if
textField
==
phoneTextField
{
...
...
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