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
77e84170
Commit
77e84170
authored
Jan 29, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 选择器
parent
91eb9405
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
7 deletions
+43
-7
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+6
-6
YHFormPickerView.swift
...s(流程)/FamilyMember/View/PickerView/YHFormPickerView.swift
+37
-1
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
77e84170
...
...
@@ -28,7 +28,7 @@
042FBBC72B64CFBF00F9DE23
/* YHChildInitialInfoVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
042FBBC62B64CFBF00F9DE23
/* YHChildInitialInfoVC.swift */
;
};
042FBBC92B64DC8900F9DE23
/* YHFormItemExpireDateCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
042FBBC82B64DC8900F9DE23
/* YHFormItemExpireDateCell.swift */
;
};
042FBBCB2B65058000F9DE23
/* YHChildBasicInfoVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
042FBBCA2B65058000F9DE23
/* YHChildBasicInfoVC.swift */
;
};
042FBBD
12B673CEF00F9DE23
/* YHFormPickerView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
042FBBD02B673CEF
00F9DE23
/* YHFormPickerView.swift */
;
};
042FBBD
42B67A2FE00F9DE23
/* YHFormPickerView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
042FBBD32B67A2F9
00F9DE23
/* YHFormPickerView.swift */
;
};
0468D4202B49320900CFB916
/* YHVerificationCodeLoginController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D41F2B49320900CFB916
/* YHVerificationCodeLoginController.swift */
;
};
0468D4222B493A5E00CFB916
/* YHPhoneMessageView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4212B493A5E00CFB916
/* YHPhoneMessageView.swift */
;
};
0468D4242B494BEA00CFB916
/* YHCodeResultViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4232B494BEA00CFB916
/* YHCodeResultViewController.swift */
;
};
...
...
@@ -210,7 +210,7 @@
042FBBC62B64CFBF00F9DE23
/* YHChildInitialInfoVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHChildInitialInfoVC.swift
;
sourceTree
=
"<group>"
;
};
042FBBC82B64DC8900F9DE23
/* YHFormItemExpireDateCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFormItemExpireDateCell.swift
;
sourceTree
=
"<group>"
;
};
042FBBCA2B65058000F9DE23
/* YHChildBasicInfoVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHChildBasicInfoVC.swift
;
sourceTree
=
"<group>"
;
};
042FBBD
02B673CEF00F9DE23
/* YHFormPickerView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFormPickerView.swift
;
sourceTree
=
"<group>"
;
};
042FBBD
32B67A2F900F9DE23
/* YHFormPickerView.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFormPickerView.swift
;
sourceTree
=
"<group>"
;
};
0468D41F2B49320900CFB916
/* YHVerificationCodeLoginController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHVerificationCodeLoginController.swift
;
sourceTree
=
"<group>"
;
};
0468D4212B493A5E00CFB916
/* YHPhoneMessageView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPhoneMessageView.swift
;
sourceTree
=
"<group>"
;
};
0468D4232B494BEA00CFB916
/* YHCodeResultViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCodeResultViewController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -396,7 +396,7 @@
041B52892B5E14EB007EBCEB
/* View */
=
{
isa
=
PBXGroup
;
children
=
(
042FBB
CF2B673CCF
00F9DE23
/* PickerView */
,
042FBB
D22B67A2F9
00F9DE23
/* PickerView */
,
041B52922B5E6CBA007EBCEB
/* YHFormItemTitleCell.swift */
,
041B52942B5E7037007EBCEB
/* YHFormItemAddCell.swift */
,
041B528A2B5E15F1007EBCEB
/* YHFormItemQuestionCell.swift */
,
...
...
@@ -435,10 +435,10 @@
path
=
M
;
sourceTree
=
"<group>"
;
};
042FBB
CF2B673CCF
00F9DE23
/* PickerView */
=
{
042FBB
D22B67A2F9
00F9DE23
/* PickerView */
=
{
isa
=
PBXGroup
;
children
=
(
042FBBD
02B673CEF
00F9DE23
/* YHFormPickerView.swift */
,
042FBBD
32B67A2F9
00F9DE23
/* YHFormPickerView.swift */
,
);
path
=
PickerView
;
sourceTree
=
"<group>"
;
...
...
@@ -1170,11 +1170,11 @@
0468D4202B49320900CFB916
/* YHVerificationCodeLoginController.swift in Sources */
,
A5ACE9362B4564F7002C94D2
/* YHNetworkStatusManager.swift in Sources */
,
A5ACE92C2B4564F7002C94D2
/* YHLoginStyleButton.swift in Sources */
,
042FBBD42B67A2FE00F9DE23
/* YHFormPickerView.swift in Sources */
,
A5ACE92F2B4564F7002C94D2
/* YHMyViewController.swift in Sources */
,
A5C5B2E62B4EC0BF00A7C5D1
/* YHDavidTestViewController.swift in Sources */
,
A5ACE9332B4564F7002C94D2
/* NetBaseModel.swift in Sources */
,
049A48AA2B49536000D0C641
/* YHAboutUsAdvantageCell.swift in Sources */
,
042FBBD12B673CEF00F9DE23
/* YHFormPickerView.swift in Sources */
,
A5C5B3002B55623800A7C5D1
/* YHMainContentBaseViewController.swift in Sources */
,
A5573ED22B317BFF00D98EC0
/* AppDelegate.swift in Sources */
,
A5ACE9542B4564F7002C94D2
/* YHNavigationController.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember/View/PickerView/YHFormPickerView.swift
View file @
77e84170
...
...
@@ -11,10 +11,15 @@ import UIKit
enum
YHFormPickerViewType
:
Int
{
// 按自然顺序递增
case
none
=
0
// 学位
case
degree
=
1
// 婚姻
case
marriage
=
2
// 授课形式
case
edution
=
3
// 职业
case
occupation
=
4
// 性别
case
gender
=
5
}
...
...
@@ -344,13 +349,26 @@ class YHFormPickerView: UIView {
whiteContentView
.
addSubview
(
topView
)
whiteContentView
.
addSubview
(
pickerView
)
let
corner
=
UIRectCorner
(
rawValue
:
UIRectCorner
.
topLeft
.
rawValue
|
UIRectCorner
.
topRight
.
rawValue
)
let
path
=
UIBezierPath
(
roundedRect
:
bounds
,
byRoundingCorners
:
corner
,
cornerRadii
:
CGSizeMake
(
16.0
,
16.0
));
let
layer
=
CAShapeLayer
();
layer
.
frame
=
whiteContentView
.
bounds
;
layer
.
path
=
path
.
cgPath
;
whiteContentView
.
layer
.
mask
=
layer
;
if
let
title
=
title
{
titleLabel
.
text
=
title
}
else
{
titleLabel
.
text
=
getTitle
(
type
:
type
)
}
blackMaskView
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
}
whiteContentView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
top
.
equalToSuperview
()
.
offset
(
KScreenHeight
/
3.0
)
make
.
top
.
equalToSuperview
()
.
offset
(
KScreenHeight
*
2
/
3.0
)
}
topView
.
snp
.
makeConstraints
{
make
in
...
...
@@ -409,6 +427,24 @@ class YHFormPickerView: UIView {
}
}
}
func
getTitle
(
type
:
YHFormPickerViewType
)
->
String
{
switch
type
{
case
.
none
:
return
""
case
.
degree
:
return
"选择学位"
case
.
marriage
:
return
"选择婚姻状况"
case
.
edution
:
return
"选择学位"
case
.
occupation
:
return
"选择职业"
case
.
gender
:
return
"选择性别"
}
}
}
extension
YHFormPickerView
:
UIPickerViewDelegate
,
UIPickerViewDataSource
{
...
...
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