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
51c6d726
Commit
51c6d726
authored
Jul 05, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 文件清单
parent
83d7bad5
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
114 additions
and
0 deletions
+114
-0
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHMyFileListViewController.swift
...e(服务中心)/FileList(文件清单)/C/YHMyFileListViewController.swift
+0
-0
YHSegmentView.swift
...lligentService(服务中心)/FileList(文件清单)/V/YHSegmentView.swift
+110
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
51c6d726
...
@@ -71,6 +71,7 @@
...
@@ -71,6 +71,7 @@
044D0C1C2C22C30B00C5CF5E
/* YHEditSchoolViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044D0C1B2C22C30B00C5CF5E
/* YHEditSchoolViewController.swift */
;
};
044D0C1C2C22C30B00C5CF5E
/* YHEditSchoolViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044D0C1B2C22C30B00C5CF5E
/* YHEditSchoolViewController.swift */
;
};
044D0C1E2C22CFBF00C5CF5E
/* YHEditWorkViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044D0C1D2C22CFBF00C5CF5E
/* YHEditWorkViewController.swift */
;
};
044D0C1E2C22CFBF00C5CF5E
/* YHEditWorkViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044D0C1D2C22CFBF00C5CF5E
/* YHEditWorkViewController.swift */
;
};
044D0C202C22D37500C5CF5E
/* YHEditHonorViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044D0C1F2C22D37500C5CF5E
/* YHEditHonorViewController.swift */
;
};
044D0C202C22D37500C5CF5E
/* YHEditHonorViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044D0C1F2C22D37500C5CF5E
/* YHEditHonorViewController.swift */
;
};
045A08C02C37ABF500BCBABA
/* YHSegmentView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045A08BF2C37ABF500BCBABA
/* YHSegmentView.swift */
;
};
045A7E672C2ACB1A008F995B
/* YHLoginOneLeadView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045A7E662C2ACB1A008F995B
/* YHLoginOneLeadView.swift */
;
};
045A7E672C2ACB1A008F995B
/* YHLoginOneLeadView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045A7E662C2ACB1A008F995B
/* YHLoginOneLeadView.swift */
;
};
045EEE792B9F171A0022A143
/* YHPreviewViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045EED9A2B9F171A0022A143
/* YHPreviewViewModel.swift */
;
};
045EEE792B9F171A0022A143
/* YHPreviewViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045EED9A2B9F171A0022A143
/* YHPreviewViewModel.swift */
;
};
045EEE7A2B9F171A0022A143
/* YHPreviewForOtherInfoModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045EED9C2B9F171A0022A143
/* YHPreviewForOtherInfoModel.swift */
;
};
045EEE7A2B9F171A0022A143
/* YHPreviewForOtherInfoModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045EED9C2B9F171A0022A143
/* YHPreviewForOtherInfoModel.swift */
;
};
...
@@ -649,6 +650,7 @@
...
@@ -649,6 +650,7 @@
044D0C1B2C22C30B00C5CF5E
/* YHEditSchoolViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHEditSchoolViewController.swift
;
sourceTree
=
"<group>"
;
};
044D0C1B2C22C30B00C5CF5E
/* YHEditSchoolViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHEditSchoolViewController.swift
;
sourceTree
=
"<group>"
;
};
044D0C1D2C22CFBF00C5CF5E
/* YHEditWorkViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHEditWorkViewController.swift
;
sourceTree
=
"<group>"
;
};
044D0C1D2C22CFBF00C5CF5E
/* YHEditWorkViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHEditWorkViewController.swift
;
sourceTree
=
"<group>"
;
};
044D0C1F2C22D37500C5CF5E
/* YHEditHonorViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHEditHonorViewController.swift
;
sourceTree
=
"<group>"
;
};
044D0C1F2C22D37500C5CF5E
/* YHEditHonorViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHEditHonorViewController.swift
;
sourceTree
=
"<group>"
;
};
045A08BF2C37ABF500BCBABA
/* YHSegmentView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSegmentView.swift
;
sourceTree
=
"<group>"
;
};
045A7E662C2ACB1A008F995B
/* YHLoginOneLeadView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLoginOneLeadView.swift
;
sourceTree
=
"<group>"
;
};
045A7E662C2ACB1A008F995B
/* YHLoginOneLeadView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLoginOneLeadView.swift
;
sourceTree
=
"<group>"
;
};
045EED9A2B9F171A0022A143
/* YHPreviewViewModel.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPreviewViewModel.swift
;
sourceTree
=
"<group>"
;
};
045EED9A2B9F171A0022A143
/* YHPreviewViewModel.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPreviewViewModel.swift
;
sourceTree
=
"<group>"
;
};
045EED9C2B9F171A0022A143
/* YHPreviewForOtherInfoModel.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPreviewForOtherInfoModel.swift
;
sourceTree
=
"<group>"
;
};
045EED9C2B9F171A0022A143
/* YHPreviewForOtherInfoModel.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPreviewForOtherInfoModel.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -2924,6 +2926,7 @@
...
@@ -2924,6 +2926,7 @@
04C85DE42C369AB5008B20D6
/* YHMyFileListCell.swift */
,
04C85DE42C369AB5008B20D6
/* YHMyFileListCell.swift */
,
04C85DE62C36ADAE008B20D6
/* YHMyFileListHeaderView.swift */
,
04C85DE62C36ADAE008B20D6
/* YHMyFileListHeaderView.swift */
,
04C85DE82C36BF49008B20D6
/* YHMyFileListFooterView.swift */
,
04C85DE82C36BF49008B20D6
/* YHMyFileListFooterView.swift */
,
045A08BF2C37ABF500BCBABA
/* YHSegmentView.swift */
,
);
);
path
=
V
;
path
=
V
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -3411,6 +3414,7 @@
...
@@ -3411,6 +3414,7 @@
0488518F2BF5FD1500C4E32D
/* YHOSSManager.swift in Sources */
,
0488518F2BF5FD1500C4E32D
/* YHOSSManager.swift in Sources */
,
A592FE952BA6D23C0062FACA
/* YHCertificateEntryCell.swift in Sources */
,
A592FE952BA6D23C0062FACA
/* YHCertificateEntryCell.swift in Sources */
,
A5ACE9472B4564F7002C94D2
/* YHHUD.swift in Sources */
,
A5ACE9472B4564F7002C94D2
/* YHHUD.swift in Sources */
,
045A08C02C37ABF500BCBABA
/* YHSegmentView.swift in Sources */
,
A5ACE9412B4564F7002C94D2
/* Dictionary+Extension.swift in Sources */
,
A5ACE9412B4564F7002C94D2
/* Dictionary+Extension.swift in Sources */
,
045EEE8F2B9F171A0022A143
/* YHPreviewInfoProjectItemView.swift in Sources */
,
045EEE8F2B9F171A0022A143
/* YHPreviewInfoProjectItemView.swift in Sources */
,
045EEF152B9F171A0022A143
/* YHHKIDCardModel.swift in Sources */
,
045EEF152B9F171A0022A143
/* YHHKIDCardModel.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/FileList(文件清单)/C/YHMyFileListViewController.swift
View file @
51c6d726
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/FileList(文件清单)/V/YHSegmentView.swift
0 → 100644
View file @
51c6d726
//
// YHSegmentView.swift
// galaxy
//
// Created by edy on 2024/7/5.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHSegmentItemView
:
UIView
{
var
isSelect
:
Bool
=
false
{
didSet
{
self
.
titleLabel
.
textColor
=
self
.
isSelect
?
UIColor
.
mainTextColor
:
UIColor
.
init
(
hex
:
0x94A3B8
)
self
.
indicatorView
.
isHidden
=
self
.
isSelect
?
false
:
true
}
}
var
text
:
String
=
""
{
didSet
{
self
.
titleLabel
.
text
=
text
}
}
lazy
var
titleLabel
:
UILabel
=
{
let
label1
=
UILabel
()
label1
.
textColor
=
UIColor
.
mainTextColor
label1
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
label1
.
textAlignment
=
.
center
return
label1
}()
lazy
var
indicatorView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
brandMainColor
return
view
}()
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
setupUI
()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
func
setupUI
()
{
self
.
addSubview
(
self
.
titleLabel
)
self
.
addSubview
(
self
.
indicatorView
)
self
.
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
}
self
.
indicatorView
.
snp
.
makeConstraints
{
make
in
make
.
width
.
equalTo
(
16
)
make
.
height
.
equalTo
(
2
)
make
.
bottom
.
equalToSuperview
()
make
.
centerX
.
equalToSuperview
()
}
}
}
class
YHSegmentView
:
UIView
{
let
itemBaseTag
=
9527
var
selectBlock
:((
Int
)
->
())?
var
items
:
[
String
]
=
[]
{
didSet
{
updateUI
()
}
}
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
func
updateUI
()
{
self
.
removeSubviews
()
if
items
.
count
<=
0
{
return
}
let
itemWidth
=
self
.
width
/
CGFloat
(
items
.
count
)
for
(
index
,
text
)
in
items
.
enumerated
()
{
let
view
=
YHSegmentItemView
(
frame
:
CGRect
(
x
:
CGFloat
(
index
)
*
itemWidth
,
y
:
0
,
width
:
itemWidth
,
height
:
self
.
height
))
view
.
tag
=
itemBaseTag
+
index
view
.
text
=
text
view
.
isSelect
=
index
==
0
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
didClickItem(_:)
)
)
view
.
addGestureRecognizer
(
tap
)
self
.
addSubview
(
view
)
}
}
@objc
func
didClickItem
(
_
gesture
:
UIGestureRecognizer
)
{
if
let
view
=
gesture
.
view
as?
YHSegmentItemView
{
let
selectTag
=
view
.
tag
self
.
selectBlock
?(
selectTag
-
self
.
itemBaseTag
)
for
subView
in
self
.
subviews
{
if
subView
is
YHSegmentItemView
{
let
subItemView
=
subView
as!
YHSegmentItemView
subItemView
.
isSelect
=
subItemView
.
tag
==
selectTag
}
}
}
}
}
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