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
c7c21a7e
Commit
c7c21a7e
authored
Feb 22, 2024
by
David黄金龙
1
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'davidhuang' into develop
* davidhuang: 一处代码优化
parents
17149119
e796b9dd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
54 deletions
+12
-54
YHFormPickerView.swift
...FamilyMember(家庭成员信息表)/V/PickerView/YHFormPickerView.swift
+0
-9
YHFormPickerViewType.swift
...lyMember(家庭成员信息表)/V/PickerView/YHFormPickerViewType.swift
+0
-4
YHOtherPickerView.swift
...cess(流程)/OtherInformation(其他信息)/V/YHOtherPickerView.swift
+12
-41
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/V/PickerView/YHFormPickerView.swift
View file @
c7c21a7e
...
...
@@ -397,10 +397,6 @@ class YHFormPickerView: UIView {
return
"职业"
case
.
professionCertificate
:
return
"选择证书名称"
case
.
language
:
return
"选择语言能力"
case
.
professionalSkill
:
return
"选择专业技能行业"
case
.
degreeCategory
:
return
"选择学位类型"
}
...
...
@@ -676,11 +672,6 @@ extension YHFormPickerView {
}
else
if
title
==
"其他"
{
return
.
degreeCategory
(
.
others
)
}
case
.
language
:
return
.
none
case
.
professionalSkill
:
return
.
none
}
return
.
none
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/V/PickerView/YHFormPickerViewType.swift
View file @
c7c21a7e
...
...
@@ -33,10 +33,6 @@ enum YHFormPickerViewType: Int {
case
degreeLocation
// 专业证书
case
professionCertificate
// 语言能力
case
language
// 专业技能行业
case
professionalSkill
// 学位类型
case
degreeCategory
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/OtherInformation(其他信息)/V/YHOtherPickerView.swift
View file @
c7c21a7e
...
...
@@ -9,43 +9,15 @@
import
UIKit
import
AttributedString
//
// YHFormPickerView.swift
// galaxy
//
// Created by edy on 2024/1/29.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
// 【 用法 Usage】
/*
// (1) 直接传type
YHFormPickerView.show(type: .certificate, selectType: .certificate(.otherStatelessTravelPassport)) { selectType in
// 选择类型的标题
print(selectType.title)
}
// (2) 直接传字符串值
YHFormPickerView.show(type: .certificate, selectTitle: "公务通行证") { selectType in
// 选择类型的标题
print(selectType.title)
}
*/
enum
YHOtherPickerViewType
:
Int
{
// 按自然顺序递增
case
none
=
0
// 语言能力
case
language
// 专业技能行业
case
professionalSkill
}
//class YHOtherPickerView {
//
// let type: YHFormPickerViewSubType
// lazy var title = {
// return type.title
// }()
//
// init(type: YHFormPickerViewSubType) {
// self.type = type
// }
//}
struct
YHOtherPickerViewItemData
{
let
title
:
String
...
...
@@ -54,7 +26,7 @@ struct YHOtherPickerViewItemData {
}
class
YHOtherPickerView
:
UIView
{
private
var
type
:
YH
Form
PickerViewType
=
.
none
private
var
type
:
YH
Other
PickerViewType
=
.
none
var
arrData
:
[
YHOtherPickerViewItemData
]
=
[]
private
var
selectType
:
YHFormPickerViewSubType
?
...
...
@@ -141,7 +113,7 @@ class YHOtherPickerView: UIView {
}()
init
(
type
:
YH
Form
PickerViewType
)
{
init
(
type
:
YH
Other
PickerViewType
)
{
super
.
init
(
frame
:
UIScreen
.
main
.
bounds
)
self
.
createUI
()
self
.
type
=
type
...
...
@@ -157,7 +129,7 @@ class YHOtherPickerView: UIView {
UIApplication
.
shared
.
yhKeyWindow
()?
.
addSubview
(
self
)
}
static
func
show
(
type
:
YH
Form
PickerViewType
,
selectType
:
YHFormPickerViewSubType
?
=
nil
,
callBack
:
@escaping
((
YHOtherPickerViewItemData
)
->
Void
))
{
static
func
show
(
type
:
YH
Other
PickerViewType
,
selectType
:
YHFormPickerViewSubType
?
=
nil
,
callBack
:
@escaping
((
YHOtherPickerViewItemData
)
->
Void
))
{
let
picker
=
YHOtherPickerView
(
type
:
type
)
// picker.selectType = selectType
...
...
@@ -246,8 +218,7 @@ class YHOtherPickerView: UIView {
// }
}
func
getTitle
(
type
:
YHFormPickerViewType
)
->
String
{
func
getTitle
(
type
:
YHOtherPickerViewType
)
->
String
{
switch
type
{
case
.
language
:
return
"选择语言能力"
...
...
pete谢兆麟
@pete
mentioned in commit
ec5ee6d3
·
Feb 22, 2024
mentioned in commit
ec5ee6d3
mentioned in commit ec5ee6d3a22411519e6b650c3ae21dc962ad64f0
Toggle commit list
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