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
dd2416f9
Commit
dd2416f9
authored
Jun 26, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* 优化
parent
e5c35982
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
28 deletions
+20
-28
YHApplyActivityAlert.swift
...s/Community(社区)/Activity(活动)/V/YHApplyActivityAlert.swift
+18
-26
Contents.json
...xcassets/Activity/activityRedStar.imageset/Contents.json
+2
-2
必填符合@2x.png
...s.xcassets/Activity/activityRedStar.imageset/必填符合@2x.png
+0
-0
必填符合@3x.png
...s.xcassets/Activity/activityRedStar.imageset/必填符合@3x.png
+0
-0
activity_red_star@2x.png
...vity/activity_red_star.imageset/activity_red_star@2x.png
+0
-0
activity_red_star@3x.png
...vity/activity_red_star.imageset/activity_red_star@3x.png
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/V/YHApplyActivityAlert.swift
View file @
dd2416f9
...
...
@@ -8,6 +8,7 @@
import
UIKit
import
IQKeyboardManagerSwift
import
AttributedString
class
YHApplyActivityAlert
:
UIView
{
...
...
@@ -408,6 +409,9 @@ extension YHApplyActivityAlert {
make
.
height
.
equalTo
(
20
)
make
.
top
.
equalTo
(
line1
.
snp
.
bottom
)
.
offset
(
36
)
}
let
a
:
ASAttributedString
=
.
init
(
"*"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
failColor
))
let
b
:
ASAttributedString
=
.
init
(
" 您的姓名"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
))
nameLable
.
attributed
.
text
=
a
+
b
centerView
.
addSubview
(
nameTextField
)
nameTextField
.
text
=
""
...
...
@@ -429,17 +433,6 @@ extension YHApplyActivityAlert {
}
//2、报名人数
let
redStarImagV
=
UIImageView
()
redStarImagV
.
backgroundColor
=
.
red
redStarImagV
.
image
=
UIImage
(
named
:
"activity_red_star"
)
redStarImagV
.
contentMode
=
.
scaleAspectFill
centerView
.
addSubview
(
redStarImagV
)
redStarImagV
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
20
)
make
.
height
.
width
.
equalTo
(
6
)
make
.
top
.
equalTo
(
line2
.
snp
.
bottom
)
.
offset
(
27
)
}
let
numberLable
=
UILabel
()
numberLable
.
textColor
=
UIColor
.
mainTextColor
numberLable
.
textAlignment
=
.
left
...
...
@@ -447,11 +440,17 @@ extension YHApplyActivityAlert {
numberLable
.
text
=
"报名人数"
centerView
.
addSubview
(
numberLable
)
numberLable
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
redStarImagV
.
snp
.
right
)
.
offset
(
2
)
make
.
left
.
equalTo
(
nameLable
.
snp
.
left
)
make
.
height
.
equalTo
(
20
)
make
.
centerY
.
equalTo
(
redStarImagV
.
snp
.
centerY
)
make
.
top
.
equalTo
(
line2
.
snp
.
bottom
)
.
offset
(
20
)
}
let
aa
:
ASAttributedString
=
.
init
(
"*"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
failColor
))
let
bb
:
ASAttributedString
=
.
init
(
" 报名人数"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
))
numberLable
.
attributed
.
text
=
aa
+
bb
centerView
.
addSubview
(
subButton
)
subButton
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
numberLable
.
snp
.
right
)
.
offset
(
48
)
...
...
@@ -492,17 +491,6 @@ extension YHApplyActivityAlert {
//3、手机号码
let
redStarImagV2
=
UIImageView
()
redStarImagV2
.
backgroundColor
=
.
red
redStarImagV2
.
image
=
UIImage
(
named
:
"activity_red_star"
)
redStarImagV2
.
contentMode
=
.
scaleAspectFill
centerView
.
addSubview
(
redStarImagV2
)
redStarImagV2
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
20
)
make
.
height
.
width
.
equalTo
(
6
)
make
.
top
.
equalTo
(
line3
.
snp
.
bottom
)
.
offset
(
27
)
}
let
phoneLable
=
UILabel
()
phoneLable
.
textColor
=
UIColor
.
mainTextColor
phoneLable
.
textAlignment
=
.
left
...
...
@@ -510,11 +498,15 @@ extension YHApplyActivityAlert {
phoneLable
.
text
=
"手机号码"
centerView
.
addSubview
(
phoneLable
)
phoneLable
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
redStarImagV2
.
snp
.
right
)
.
offset
(
2
)
make
.
left
.
equalTo
(
nameLable
.
snp
.
left
)
make
.
height
.
equalTo
(
20
)
make
.
centerY
.
equalTo
(
redStarImagV2
.
snp
.
centerY
)
make
.
top
.
equalTo
(
line3
.
snp
.
bottom
)
.
offset
(
20
)
}
let
aaa
:
ASAttributedString
=
.
init
(
"*"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
failColor
))
let
bbb
:
ASAttributedString
=
.
init
(
" 手机号码"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
))
phoneLable
.
attributed
.
text
=
aaa
+
bbb
centerView
.
addSubview
(
phoneTextField
)
phoneTextField
.
snp
.
makeConstraints
{
make
in
...
...
galaxy/galaxy/Res/Assets.xcassets/Activity/activity
_red_s
tar.imageset/Contents.json
→
galaxy/galaxy/Res/Assets.xcassets/Activity/activity
RedS
tar.imageset/Contents.json
View file @
dd2416f9
...
...
@@ -5,12 +5,12 @@
"scale"
:
"1x"
},
{
"filename"
:
"
activity_red_star
@2x.png"
,
"filename"
:
"
必填符合
@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"
activity_red_star
@3x.png"
,
"filename"
:
"
必填符合
@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
...
...
galaxy/galaxy/Res/Assets.xcassets/Activity/activityRedStar.imageset/必填符合@2x.png
0 → 100644
View file @
dd2416f9
418 Bytes
galaxy/galaxy/Res/Assets.xcassets/Activity/activityRedStar.imageset/必填符合@3x.png
0 → 100644
View file @
dd2416f9
559 Bytes
galaxy/galaxy/Res/Assets.xcassets/Activity/activity_red_star.imageset/activity_red_star@2x.png
deleted
100644 → 0
View file @
e5c35982
400 Bytes
galaxy/galaxy/Res/Assets.xcassets/Activity/activity_red_star.imageset/activity_red_star@3x.png
deleted
100644 → 0
View file @
e5c35982
897 Bytes
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