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
6d256090
Commit
6d256090
authored
Mar 07, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
展示 字段
parent
e4446e21
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
97 additions
and
68 deletions
+97
-68
YHOtherInfoFillCell.swift
...ss(流程)/OtherInformation(其他信息)/V/YHOtherInfoFillCell.swift
+3
-1
YHOtherPickerView.swift
...cess(流程)/OtherInformation(其他信息)/V/YHOtherPickerView.swift
+0
-26
YHPreviewViewModel.swift
...ss(流程)/PersonInfoList(个人信息预览)/VM/YHPreviewViewModel.swift
+36
-20
YHConstantArrayData.swift
...xy/galaxy/Classes/Tools/NetWork/YHConstantArrayData.swift
+58
-21
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/OtherInformation(其他信息)/V/YHOtherInfoFillCell.swift
View file @
6d256090
...
@@ -109,7 +109,9 @@ extension YHOtherInfoFillCell {
...
@@ -109,7 +109,9 @@ extension YHOtherInfoFillCell {
lastTargetView
=
residenceView
lastTargetView
=
residenceView
}
else
{
}
else
{
let
sessionView
=
YHOtherInfoSessionView
(
frame
:
.
zero
)
let
sessionView
=
YHOtherInfoSessionView
(
frame
:
.
zero
)
let
title
=
"居住信息"
+
String
(
index
+
1
)
let
addationIndex
=
dataModel
.
residences
.
count
>
1
?
String
(
index
+
1
)
:
""
let
title
=
"居住信息"
+
addationIndex
sessionView
.
updateTitle
(
title
:
title
)
sessionView
.
updateTitle
(
title
:
title
)
sessionView
.
type
=
1
sessionView
.
type
=
1
sessionView
.
tag
=
index
sessionView
.
tag
=
index
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/OtherInformation(其他信息)/V/YHOtherPickerView.swift
View file @
6d256090
...
@@ -9,32 +9,6 @@
...
@@ -9,32 +9,6 @@
import
UIKit
import
UIKit
import
AttributedString
import
AttributedString
enum
YHOtherPickerViewType
:
Int
{
// 按自然顺序递增
case
none
=
0
// 语言能力
case
language
// 专业技能行业
case
professionalSkill
// 用人单位性质
case
nature
// 工作证明文件
case
certificate
// 行政架构层级
case
structure
// 职位水平类别
case
level
// 高管证明文件
case
prove
// 证件类别
case
idType
// 性别
case
sex
// 婚姻状况
case
marry
}
struct
YHOtherPickerViewItemData
{
struct
YHOtherPickerViewItemData
{
let
title
:
String
let
title
:
String
let
subTitle
:
String
let
subTitle
:
String
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/PersonInfoList(个人信息预览)/VM/YHPreviewViewModel.swift
View file @
6d256090
...
@@ -131,6 +131,8 @@ extension YHPreviewViewModel {
...
@@ -131,6 +131,8 @@ extension YHPreviewViewModel {
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
arrDataForMainApplicationInfo
.
removeAll
()
if
json
.
code
==
200
{
if
json
.
code
==
200
{
let
dic
=
json
.
data
as?
[
AnyHashable
:
Any
]
let
dic
=
json
.
data
as?
[
AnyHashable
:
Any
]
guard
let
result
=
YHMainInfoPreviewModel
.
deserialize
(
dict
:
dic
)
else
{
guard
let
result
=
YHMainInfoPreviewModel
.
deserialize
(
dict
:
dic
)
else
{
...
@@ -141,12 +143,10 @@ extension YHPreviewViewModel {
...
@@ -141,12 +143,10 @@ extension YHPreviewViewModel {
installDataForMainApplicationInfo
()
installDataForMainApplicationInfo
()
callBackBlock
(
true
,
nil
)
callBackBlock
(
true
,
nil
)
}
else
{
}
else
{
installDataForMainApplicationInfo
()
//for test hjl
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
)
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
)
callBackBlock
(
false
,
error
)
callBackBlock
(
false
,
error
)
}
}
}
failBlock
:
{
err
in
}
failBlock
:
{
err
in
self
.
installDataForMainApplicationInfo
()
//for test hjl
callBackBlock
(
false
,
err
)
callBackBlock
(
false
,
err
)
}
}
}
}
...
@@ -240,10 +240,14 @@ private extension YHPreviewViewModel {
...
@@ -240,10 +240,14 @@ private extension YHPreviewViewModel {
title
=
model
.
international_work_experience
==
0
?
"否"
:
"是"
title
=
model
.
international_work_experience
==
0
?
"否"
:
"是"
let
tmp11
=
YHPreviewQuestionAndAnswerModel
(
question
:
"相关工作是否属国际工作经验:"
,
answer
:
title
)
let
tmp11
=
YHPreviewQuestionAndAnswerModel
(
question
:
"相关工作是否属国际工作经验:"
,
answer
:
title
)
let
tmp12
=
YHPreviewQuestionAndAnswerModel
(
question
:
"企业人数规模:"
,
answer
:
String
(
model
.
company_member_total
))
let
tmp12
=
YHPreviewQuestionAndAnswerModel
(
question
:
"企业人数规模:"
,
answer
:
String
(
model
.
company_member_total
))
let
tmp13
=
YHPreviewQuestionAndAnswerModel
(
question
:
"行政架构层级:"
,
answer
:
String
(
model
.
administrative_level
))
let
tempppp
=
YHConstantArrayData
.
getShowNameBy
(
indexStr
:
String
(
model
.
administrative_level
),
type
:
.
structure
)
let
tmp13
=
YHPreviewQuestionAndAnswerModel
(
question
:
"行政架构层级:"
,
answer
:
tempppp
)
let
tmp14
=
YHPreviewQuestionAndAnswerModel
(
question
:
"下属管理人数:"
,
answer
:
String
(
model
.
company_manage_total
))
let
tmp14
=
YHPreviewQuestionAndAnswerModel
(
question
:
"下属管理人数:"
,
answer
:
String
(
model
.
company_manage_total
))
let
tmp15
=
YHPreviewQuestionAndAnswerModel
(
question
:
"公司营业额/港元(近一年):"
,
answer
:
String
(
model
.
turnover
))
let
tmp15
=
YHPreviewQuestionAndAnswerModel
(
question
:
"公司营业额/港元(近一年):"
,
answer
:
String
(
model
.
turnover
))
let
tmp16
=
YHPreviewQuestionAndAnswerModel
(
question
:
"职业水平类别:"
,
answer
:
String
(
model
.
professional_level
))
let
tempppp0
=
YHConstantArrayData
.
getShowNameBy
(
indexStr
:
String
(
model
.
administrative_level
),
type
:
.
level
)
let
tmp16
=
YHPreviewQuestionAndAnswerModel
(
question
:
"职业水平类别:"
,
answer
:
tempppp0
)
arr1
.
append
(
contentsOf
:
[
tmp1
,
tmp2
,
tmp3
,
tmp4
,
tmp5
,
tmp6
,
tmp7
,
tmp8
,
tmp9
,
tmp10
,
tmp11
,
tmp12
,
tmp13
,
tmp14
,
tmp15
,
tmp16
])
arr1
.
append
(
contentsOf
:
[
tmp1
,
tmp2
,
tmp3
,
tmp4
,
tmp5
,
tmp6
,
tmp7
,
tmp8
,
tmp9
,
tmp10
,
tmp11
,
tmp12
,
tmp13
,
tmp14
,
tmp15
,
tmp16
])
}
}
...
@@ -271,7 +275,9 @@ private extension YHPreviewViewModel {
...
@@ -271,7 +275,9 @@ private extension YHPreviewViewModel {
let
tmp3
=
YHPreviewQuestionAndAnswerModel
(
question
:
"项目业绩/亮点"
,
answer
:
item
.
project_highlights
)
let
tmp3
=
YHPreviewQuestionAndAnswerModel
(
question
:
"项目业绩/亮点"
,
answer
:
item
.
project_highlights
)
let
arrT
:
[
YHPreviewQuestionAndAnswerModel
]
=
[
tmp1
,
tmp2
,
tmp3
]
let
arrT
:
[
YHPreviewQuestionAndAnswerModel
]
=
[
tmp1
,
tmp2
,
tmp3
]
let
dataModelTemp
=
YHWorkExpDataModel
(
title
:
"项目介绍"
+
String
(
index
+
1
),
data
:
arrT
)
let
addationIndex
=
list
.
count
>
1
?
String
(
index
+
1
)
:
""
let
dataModelTemp
=
YHWorkExpDataModel
(
title
:
"项目介绍"
+
addationIndex
,
data
:
arrT
)
arr3
.
append
(
dataModelTemp
)
arr3
.
append
(
dataModelTemp
)
}
}
}
}
...
@@ -293,8 +299,8 @@ private extension YHPreviewViewModel {
...
@@ -293,8 +299,8 @@ private extension YHPreviewViewModel {
let
dataModel4
=
YHWorkExpDataModel
(
title
:
""
,
data
:
arr4
)
let
dataModel4
=
YHWorkExpDataModel
(
title
:
""
,
data
:
arr4
)
let
addationIndex
=
list
.
count
>
1
?
String
(
index
+
1
)
:
""
let
mmmm
=
YHPreviewInfoSessionModel
(
cellType
:
.
workExp
,
cellTitle
:
"主申请人工作经历"
+
String
(
index
+
1
)
,
cellData4
:
[
dataModel1
,
dataModel2
,
dataModel3
,
dataModel4
])
let
mmmm
=
YHPreviewInfoSessionModel
(
cellType
:
.
workExp
,
cellTitle
:
"主申请人工作经历"
+
addationIndex
,
cellData4
:
[
dataModel1
,
dataModel2
,
dataModel3
,
dataModel4
])
arrDataForWorkExpInfo
.
append
(
mmmm
)
arrDataForWorkExpInfo
.
append
(
mmmm
)
}
}
}
}
...
@@ -305,8 +311,8 @@ private extension YHPreviewViewModel {
...
@@ -305,8 +311,8 @@ private extension YHPreviewViewModel {
arrDataForAcademicInfo
.
removeAll
()
arrDataForAcademicInfo
.
removeAll
()
guard
let
model0
=
academicInfoPreviewModel
else
{
return
}
guard
let
model0
=
academicInfoPreviewModel
else
{
return
}
do
{
do
{
if
let
arr
=
model0
.
edu_list
{
if
let
arr
0
=
model0
.
edu_list
{
for
(
index
,
model
)
in
arr
.
enumerated
()
{
for
(
index
,
model
)
in
arr
0
.
enumerated
()
{
//主申请人学历
//主申请人学历
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
"学校全称:"
,
answer
:
model
.
college
)
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
"学校全称:"
,
answer
:
model
.
college
)
let
tmp1
=
YHPreviewQuestionAndAnswerModel
(
question
:
"授课形式:"
,
answer
:
model
.
type
)
let
tmp1
=
YHPreviewQuestionAndAnswerModel
(
question
:
"授课形式:"
,
answer
:
model
.
type
)
...
@@ -334,7 +340,7 @@ private extension YHPreviewViewModel {
...
@@ -334,7 +340,7 @@ private extension YHPreviewViewModel {
let
arr
=
[
tmp0
,
tmp1
,
tmp2
,
tmp3
,
tmp4
,
tmp5
,
tmp6
,
tmp7
]
let
arr
=
[
tmp0
,
tmp1
,
tmp2
,
tmp3
,
tmp4
,
tmp5
,
tmp6
,
tmp7
]
let
addationIndex
=
arr
.
count
>
1
?
String
(
index
+
1
)
:
""
let
addationIndex
=
arr
0
.
count
>
1
?
String
(
index
+
1
)
:
""
let
model2
=
YHPreviewInfoSessionModel
(
cellType
:
.
countryInfoType
,
cellTitle
:
"主申请人学历"
+
addationIndex
,
cellData0
:
arr
)
let
model2
=
YHPreviewInfoSessionModel
(
cellType
:
.
countryInfoType
,
cellTitle
:
"主申请人学历"
+
addationIndex
,
cellData0
:
arr
)
arrDataForAcademicInfo
.
append
(
model2
)
arrDataForAcademicInfo
.
append
(
model2
)
}
}
...
@@ -408,10 +414,10 @@ private extension YHPreviewViewModel {
...
@@ -408,10 +414,10 @@ private extension YHPreviewViewModel {
let
tmp3
=
YHPreviewQuestionAndAnswerModel
(
question
:
"出生日期:"
,
answer
:
model
.
birthday
)
let
tmp3
=
YHPreviewQuestionAndAnswerModel
(
question
:
"出生日期:"
,
answer
:
model
.
birthday
)
let
tmp4
=
YHPreviewQuestionAndAnswerModel
(
question
:
"出生城市:"
,
answer
:
model
.
birth_place
)
let
tmp4
=
YHPreviewQuestionAndAnswerModel
(
question
:
"出生城市:"
,
answer
:
model
.
birth_place
)
var
msg
=
YHConstantArrayData
.
getS
exNameBy
(
index
:
Int
(
model
.
sex
)
??
0
)
var
msg
=
YHConstantArrayData
.
getS
howNameBy
(
indexStr
:
model
.
sex
,
type
:
.
sex
)
let
tmp5
=
YHPreviewQuestionAndAnswerModel
(
question
:
"性别:"
,
answer
:
msg
)
let
tmp5
=
YHPreviewQuestionAndAnswerModel
(
question
:
"性别:"
,
answer
:
msg
)
msg
=
YHConstantArrayData
.
get
MarryNameBy
(
index
:
Int
(
model
.
married
)
??
0
)
msg
=
YHConstantArrayData
.
get
ShowNameBy
(
indexStr
:
model
.
married
,
type
:
.
marry
)
let
tmp6
=
YHPreviewQuestionAndAnswerModel
(
question
:
"婚姻状况:"
,
answer
:
msg
)
let
tmp6
=
YHPreviewQuestionAndAnswerModel
(
question
:
"婚姻状况:"
,
answer
:
msg
)
let
tmp7
=
YHPreviewQuestionAndAnswerModel
(
question
:
"手机号:"
,
answer
:
model
.
mobile
)
let
tmp7
=
YHPreviewQuestionAndAnswerModel
(
question
:
"手机号:"
,
answer
:
model
.
mobile
)
...
@@ -512,7 +518,7 @@ private extension YHPreviewViewModel {
...
@@ -512,7 +518,7 @@ private extension YHPreviewViewModel {
if
model
.
nationality
!=
"中国-China"
{
if
model
.
nationality
!=
"中国-China"
{
//护照及其他旅行证件
//护照及其他旅行证件
var
str
=
YHConstantArrayData
.
get
IdTypeBy
(
index
:
model2
.
passport
.
passport_t
ype
)
var
str
=
YHConstantArrayData
.
get
ShowNameBy
(
indexStr
:
String
(
model2
.
passport
.
passport_type
),
type
:
.
idT
ype
)
let
tmp8
=
YHPreviewQuestionAndAnswerModel
(
question
:
"证件类别:"
,
answer
:
str
)
let
tmp8
=
YHPreviewQuestionAndAnswerModel
(
question
:
"证件类别:"
,
answer
:
str
)
str
=
model2
.
passport
.
number
str
=
model2
.
passport
.
number
...
@@ -677,7 +683,10 @@ private extension YHPreviewViewModel {
...
@@ -677,7 +683,10 @@ private extension YHPreviewViewModel {
//居住信息
//居住信息
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
"开始时间:"
,
answer
:
item
.
start_time
)
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
"开始时间:"
,
answer
:
item
.
start_time
)
let
tmp1
=
YHPreviewQuestionAndAnswerModel
(
question
:
"结束时间:"
,
answer
:
item
.
end_time
)
let
tmp1
=
YHPreviewQuestionAndAnswerModel
(
question
:
"结束时间:"
,
answer
:
item
.
end_time
)
let
title
=
"国家"
+
String
(
index
+
1
)
+
":"
+
item
.
country
let
addationIndex
=
arr1
.
count
>
1
?
String
(
index
+
1
)
:
""
let
title
=
"国家"
+
addationIndex
+
":"
+
item
.
country
let
model0
=
YHPersonInfoCellModel1
(
cellTitle
:
title
,
cellData
:
[
tmp0
,
tmp1
])
let
model0
=
YHPersonInfoCellModel1
(
cellTitle
:
title
,
cellData
:
[
tmp0
,
tmp1
])
arr
.
append
(
model0
)
arr
.
append
(
model0
)
...
@@ -1011,7 +1020,9 @@ private extension YHPreviewViewModel {
...
@@ -1011,7 +1020,9 @@ private extension YHPreviewViewModel {
var
arr
=
[
tmp0
,
tmp1
,
tmp2
,
tmp3
,
tmp4
,
tmp5
,
tmp6
,
tmp7
]
var
arr
=
[
tmp0
,
tmp1
,
tmp2
,
tmp3
,
tmp4
,
tmp5
,
tmp6
,
tmp7
]
if
model
.
hasDegree
==
"1"
{
if
model
.
hasDegree
==
"1"
{
for
(
index
,
item
)
in
model
.
hasDegreeJson
.
enumerated
()
{
for
(
index
,
item
)
in
model
.
hasDegreeJson
.
enumerated
()
{
let
title
=
"学位证"
+
String
(
index
+
1
)
+
":"
let
addationIndex
=
model
.
hasDegreeJson
.
count
>
1
?
String
(
index
+
1
)
:
""
let
title
=
"学位证"
+
addationIndex
+
":"
let
tmp8
=
YHPreviewQuestionAndAnswerModel
(
question
:
title
,
answer
:
item
.
degree
)
let
tmp8
=
YHPreviewQuestionAndAnswerModel
(
question
:
title
,
answer
:
item
.
degree
)
arr
.
append
(
tmp8
)
arr
.
append
(
tmp8
)
let
tmp9
=
YHPreviewQuestionAndAnswerModel
(
question
:
"学位证颁发地区:"
,
answer
:
item
.
address
)
let
tmp9
=
YHPreviewQuestionAndAnswerModel
(
question
:
"学位证颁发地区:"
,
answer
:
item
.
address
)
...
@@ -1151,7 +1162,7 @@ private extension YHPreviewViewModel {
...
@@ -1151,7 +1162,7 @@ private extension YHPreviewViewModel {
if
model
.
nationality
!=
"中国-China"
{
if
model
.
nationality
!=
"中国-China"
{
//护照及其他旅行证件
//护照及其他旅行证件
var
str
=
String
(
model
.
certificates
.
passport
.
passPortType
)
//for test hjl todo
var
str
=
YHConstantArrayData
.
getShowNameBy
(
indexStr
:
String
(
model
.
certificates
.
passport
.
passPortType
),
type
:
.
idType
)
let
tmp8
=
YHPreviewQuestionAndAnswerModel
(
question
:
"证件类别:"
,
answer
:
str
)
let
tmp8
=
YHPreviewQuestionAndAnswerModel
(
question
:
"证件类别:"
,
answer
:
str
)
str
=
model
.
certificates
.
passport
.
number
str
=
model
.
certificates
.
passport
.
number
...
@@ -1239,7 +1250,8 @@ private extension YHPreviewViewModel {
...
@@ -1239,7 +1250,8 @@ private extension YHPreviewViewModel {
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
"配偶姓名:"
,
answer
:
model
.
subsetName
)
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
"配偶姓名:"
,
answer
:
model
.
subsetName
)
let
tmp1
=
YHPreviewQuestionAndAnswerModel
(
question
:
"曾用名:"
,
answer
:
model
.
usedName
.
isEmpty
?
"--"
:
model
.
usedName
)
let
tmp1
=
YHPreviewQuestionAndAnswerModel
(
question
:
"曾用名:"
,
answer
:
model
.
usedName
.
isEmpty
?
"--"
:
model
.
usedName
)
let
tmp2
=
YHPreviewQuestionAndAnswerModel
(
question
:
"婚前姓氏:"
,
answer
:
model
.
surname
.
isEmpty
?
"--"
:
model
.
surname
)
let
tmp2
=
YHPreviewQuestionAndAnswerModel
(
question
:
"婚前姓氏:"
,
answer
:
model
.
surname
.
isEmpty
?
"--"
:
model
.
surname
)
let
tmp22
=
YHPreviewQuestionAndAnswerModel
(
question
:
"性别:"
,
answer
:
String
(
model
.
sex
))
//for test hjl todo
let
sexStr
=
YHConstantArrayData
.
getShowNameBy
(
indexStr
:
String
(
model
.
sex
),
type
:
.
sex
)
let
tmp22
=
YHPreviewQuestionAndAnswerModel
(
question
:
"性别:"
,
answer
:
sexStr
)
let
tmp3
=
YHPreviewQuestionAndAnswerModel
(
question
:
"出生日期:"
,
answer
:
model
.
birthday
)
let
tmp3
=
YHPreviewQuestionAndAnswerModel
(
question
:
"出生日期:"
,
answer
:
model
.
birthday
)
var
city
=
""
var
city
=
""
if
model
.
birthPlaceAboard
==
0
{
if
model
.
birthPlaceAboard
==
0
{
...
@@ -1291,11 +1303,13 @@ private extension YHPreviewViewModel {
...
@@ -1291,11 +1303,13 @@ private extension YHPreviewViewModel {
do
{
do
{
//
配偶
信息
//
子女
信息
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
"子女姓名:"
,
answer
:
model
.
subsetName
)
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
"子女姓名:"
,
answer
:
model
.
subsetName
)
let
tmp1
=
YHPreviewQuestionAndAnswerModel
(
question
:
"曾用名:"
,
answer
:
model
.
usedName
)
let
tmp1
=
YHPreviewQuestionAndAnswerModel
(
question
:
"曾用名:"
,
answer
:
model
.
usedName
)
let
tmp2
=
YHPreviewQuestionAndAnswerModel
(
question
:
"婚前姓氏:"
,
answer
:
model
.
surname
)
let
tmp2
=
YHPreviewQuestionAndAnswerModel
(
question
:
"婚前姓氏:"
,
answer
:
model
.
surname
)
let
tmp22
=
YHPreviewQuestionAndAnswerModel
(
question
:
"性别:"
,
answer
:
String
(
model
.
sex
))
//for test hjl todo
let
sexStr
=
YHConstantArrayData
.
getShowNameBy
(
indexStr
:
String
(
model
.
sex
),
type
:
.
sex
)
let
tmp22
=
YHPreviewQuestionAndAnswerModel
(
question
:
"性别:"
,
answer
:
sexStr
)
let
tmp3
=
YHPreviewQuestionAndAnswerModel
(
question
:
"出生日期:"
,
answer
:
model
.
birthday
)
let
tmp3
=
YHPreviewQuestionAndAnswerModel
(
question
:
"出生日期:"
,
answer
:
model
.
birthday
)
var
city
=
""
var
city
=
""
if
model
.
birthPlaceAboard
==
0
{
if
model
.
birthPlaceAboard
==
0
{
...
@@ -1326,7 +1340,9 @@ private extension YHPreviewViewModel {
...
@@ -1326,7 +1340,9 @@ private extension YHPreviewViewModel {
if
model
.
hasDegree
==
"1"
{
if
model
.
hasDegree
==
"1"
{
for
(
index
,
item
)
in
model
.
hasDegreeJson
.
enumerated
()
{
for
(
index
,
item
)
in
model
.
hasDegreeJson
.
enumerated
()
{
let
title
=
"学位证"
+
String
(
index
+
1
)
+
":"
let
addationIndex
=
model
.
hasDegreeJson
.
count
>
1
?
String
(
index
+
1
)
:
""
let
title
=
"学位证"
+
addationIndex
+
":"
let
tmp8
=
YHPreviewQuestionAndAnswerModel
(
question
:
title
,
answer
:
item
.
degree
)
let
tmp8
=
YHPreviewQuestionAndAnswerModel
(
question
:
title
,
answer
:
item
.
degree
)
arr
.
append
(
tmp8
)
arr
.
append
(
tmp8
)
let
tmp9
=
YHPreviewQuestionAndAnswerModel
(
question
:
"学位证颁发地区:"
,
answer
:
item
.
address
)
let
tmp9
=
YHPreviewQuestionAndAnswerModel
(
question
:
"学位证颁发地区:"
,
answer
:
item
.
address
)
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHConstantArrayData.swift
View file @
6d256090
...
@@ -8,6 +8,32 @@
...
@@ -8,6 +8,32 @@
import
UIKit
import
UIKit
enum
YHOtherPickerViewType
:
Int
{
// 按自然顺序递增
case
none
=
0
// 语言能力
case
language
// 专业技能行业
case
professionalSkill
// 用人单位性质
case
nature
// 工作证明文件
case
certificate
// 行政架构层级
case
structure
// 职位水平类别
case
level
// 高管证明文件
case
prove
// 证件类别
case
idType
// 性别
case
sex
// 婚姻状况
case
marry
}
class
YHConstantArrayData
{
class
YHConstantArrayData
{
static
let
arrLanguage
:
[[
String
:
String
]]
=
[
static
let
arrLanguage
:
[[
String
:
String
]]
=
[
[
[
...
@@ -287,16 +313,14 @@ class YHConstantArrayData {
...
@@ -287,16 +313,14 @@ class YHConstantArrayData {
"id"
:
"10"
"id"
:
"10"
]
]
]
]
static
func
getIdTypeBy
(
index
:
Int
)
->
String
{
// static func getIdTypeBy(index : Int) -> String {
for
item
in
YHConstantArrayData
.
arrIdType
{
// for item in YHConstantArrayData.arrIdType {
if
let
target
=
item
[
"id"
],
index
==
Int
(
target
)
{
// if let target = item["id"],index == Int(target) {
return
item
[
"title"
]
??
"未知"
// return item["title"] ?? "未知"
}
// }
}
// }
return
"未知"
// return "未知"
}
// }
static
let
arrSex
:
[[
String
:
String
]]
=
[
static
let
arrSex
:
[[
String
:
String
]]
=
[
[
"title"
:
"男"
,
[
"title"
:
"男"
,
"id"
:
"1"
"id"
:
"1"
...
@@ -305,14 +329,7 @@ class YHConstantArrayData {
...
@@ -305,14 +329,7 @@ class YHConstantArrayData {
"id"
:
"2"
"id"
:
"2"
]
]
]
]
static
func
getSexNameBy
(
index
:
Int
)
->
String
{
for
item
in
YHConstantArrayData
.
arrSex
{
if
let
target
=
item
[
"id"
],
index
==
Int
(
target
)
{
return
item
[
"title"
]
??
"未知"
}
}
return
"未知"
}
static
let
arrMarry
:
[[
String
:
String
]]
=
[
static
let
arrMarry
:
[[
String
:
String
]]
=
[
[
"title"
:
"已婚"
,
[
"title"
:
"已婚"
,
...
@@ -332,9 +349,29 @@ class YHConstantArrayData {
...
@@ -332,9 +349,29 @@ class YHConstantArrayData {
]
]
]
]
static
func
getMarryNameBy
(
index
:
Int
)
->
String
{
//通过 id 获取 title
for
item
in
YHConstantArrayData
.
arrMarry
{
static
func
getShowNameBy
(
indexStr
:
String
,
type
:
YHOtherPickerViewType
)
->
String
{
if
let
target
=
item
[
"id"
],
index
==
Int
(
target
)
{
if
indexStr
.
isEmpty
{
return
"未知"
}
var
arrData
:
[[
String
:
String
]]
=
[[:]]
switch
type
{
case
.
marry
:
arrData
=
YHConstantArrayData
.
arrMarry
case
.
sex
:
arrData
=
YHConstantArrayData
.
arrSex
case
.
idType
:
arrData
=
YHConstantArrayData
.
arrIdType
case
.
structure
:
arrData
=
YHConstantArrayData
.
arrStructure
case
.
level
:
arrData
=
YHConstantArrayData
.
arrLevel
default
:
arrData
=
[[:]]
}
for
item
in
arrData
{
if
let
target
=
item
[
"id"
],
indexStr
==
target
{
return
item
[
"title"
]
??
"未知"
return
item
[
"title"
]
??
"未知"
}
}
}
}
...
...
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