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
c434d6ef
Commit
c434d6ef
authored
Mar 18, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的清单 UI布局
parent
3ce1f08e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
11 deletions
+53
-11
YHFileListViewController.swift
...ice(服务中心)/FileList(文件清单)/C/YHFileListViewController.swift
+52
-10
YHFileListBottomView.swift
...Service(服务中心)/FileList(文件清单)/V/YHFileListBottomView.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/FileList(文件清单)/C/YHFileListViewController.swift
View file @
c434d6ef
...
...
@@ -33,8 +33,15 @@ class YHFileListViewController: YHBaseViewController {
private
lazy
var
myScrollView
:
UIScrollView
=
{
let
view
=
UIScrollView
()
view
.
backgroundColor
=
.
red
return
view
}()
private
lazy
var
myContentView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
yellow
view
.
layer
.
cornerRadius
=
kCornerRadius6
view
.
clipsToBounds
=
true
return
view
}()
...
...
@@ -79,25 +86,60 @@ extension YHFileListViewController {
gk_navBarAlpha
=
1.0
gk_navBackgroundColor
=
.
white
view
.
addSubview
(
topBkg
)
topBkg
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_NavigationtBarAndStatuBar
)
make
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
312
)
}
view
.
addSubview
(
bottomView
)
bottomView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
height
.
equalTo
(
YHFileListBottomView
.
viewH
)
}
bottomView
.
block
=
{
flag
in
if
flag
==
1
{
printLog
(
"生成清单"
)
}
}
view
.
addSubview
(
myScrollView
)
myScrollView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_NavigationtBarAndStatuBar
)
make
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalTo
(
bottomView
.
snp
.
top
)
}
myScrollView
.
addSubview
(
topBkg
)
topBkg
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
make
.
left
.
equalToSuperview
()
make
.
width
.
equalTo
(
KScreenWidth
)
make
.
height
.
equalTo
(
312
)
}
myScrollView
.
addSubview
(
myContentView
)
myContentView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
217
)
make
.
left
.
equalTo
(
kMargin
)
make
.
width
.
equalTo
(
KScreenWidth
-
2*
kMargin
)
make
.
height
.
equalTo
(
1700
)
//for test hjl
// make.bottom.equalToSuperview().offset(-50)
}
let
footLable
=
UILabel
()
footLable
.
text
=
"*感谢您对银河移民的信赖,以上信息均用于香港优才签证申 请银河移民承诺对您所提供的信息将绝对保密"
footLable
.
textColor
=
.
white
footLable
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
footLable
.
numberOfLines
=
0
footLable
.
lineBreakMode
=
.
byWordWrapping
myScrollView
.
addSubview
(
footLable
)
footLable
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
myContentView
.
snp
.
bottom
)
.
offset
(
29
)
make
.
left
.
equalTo
(
28
)
make
.
width
.
equalTo
(
KScreenWidth
-
2*
28
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
41
)
}
myScrollView
.
layoutIfNeeded
()
printLog
(
myScrollView
.
contentSize
)
return
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/FileList(文件清单)/V/YHFileListBottomView.swift
View file @
c434d6ef
...
...
@@ -56,7 +56,7 @@ private extension YHFileListBottomView {
let
button
=
UIButton
(
type
:
.
custom
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"
生成清单
"
,
for
:
.
normal
)
button
.
setTitle
(
"
保存清单图
"
,
for
:
.
normal
)
button
.
setTitleColor
(
.
white
,
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
kCornerRadius6
button
.
clipsToBounds
=
true
...
...
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