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
521aee86
Commit
521aee86
authored
Mar 18, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理 一处 数据转换的问题
parent
258fa7c7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
3 deletions
+33
-3
YHPreviewViewModel.swift
...的信息流程)/PersonInfoList(个人信息预览)/VM/YHPreviewViewModel.swift
+2
-2
YHConstantArrayData.swift
galaxy/galaxy/Classes/Tools/Helper/YHConstantArrayData.swift
+31
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/PersonInfoList(个人信息预览)/VM/YHPreviewViewModel.swift
View file @
521aee86
...
@@ -1006,9 +1006,9 @@ private extension YHPreviewViewModel {
...
@@ -1006,9 +1006,9 @@ private extension YHPreviewViewModel {
let
addationIndex
=
model
.
hasDegreeJson
.
count
>
1
?
String
(
index
+
1
)
:
""
let
addationIndex
=
model
.
hasDegreeJson
.
count
>
1
?
String
(
index
+
1
)
:
""
let
title
=
"学位证"
+
addationIndex
+
":"
let
title
=
"学位证"
+
addationIndex
+
":"
let
tmp8
=
YHPreviewQuestionAndAnswerModel
(
question
:
title
,
answer
:
item
.
degree
)
let
tmp8
=
YHPreviewQuestionAndAnswerModel
(
question
:
title
,
answer
:
YHConstantArrayData
.
getShowNameBy
(
indexStr
:
item
.
degree
,
type
:
.
degree
)
)
arr
.
append
(
tmp8
)
arr
.
append
(
tmp8
)
let
tmp9
=
YHPreviewQuestionAndAnswerModel
(
question
:
"学位证颁发地区:"
,
answer
:
item
.
address
)
let
tmp9
=
YHPreviewQuestionAndAnswerModel
(
question
:
"学位证颁发地区:"
,
answer
:
YHConstantArrayData
.
getShowNameBy
(
indexStr
:
item
.
address
,
type
:
.
degreeAddress
)
)
arr
.
append
(
tmp9
)
arr
.
append
(
tmp9
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Tools/Helper/YHConstantArrayData.swift
View file @
521aee86
...
@@ -31,6 +31,10 @@ enum YHOtherPickerViewType: Int {
...
@@ -31,6 +31,10 @@ enum YHOtherPickerViewType: Int {
case
sex
case
sex
// 婚姻状况
// 婚姻状况
case
marry
case
marry
//学位
case
degree
//学位地址
case
degreeAddress
}
}
...
@@ -323,7 +327,7 @@ class YHConstantArrayData {
...
@@ -323,7 +327,7 @@ class YHConstantArrayData {
]
]
]
]
//婚姻状态
static
let
arrMarry
:
[[
String
:
String
]]
=
[
static
let
arrMarry
:
[[
String
:
String
]]
=
[
[
"title"
:
"已婚"
,
[
"title"
:
"已婚"
,
"id"
:
"1"
"id"
:
"1"
...
@@ -342,6 +346,28 @@ class YHConstantArrayData {
...
@@ -342,6 +346,28 @@ class YHConstantArrayData {
]
]
]
]
//学位
static
let
arrDegree
=
[
[
"id"
:
"1"
,
"title"
:
"学士学位"
,
],
[
"id"
:
"2"
,
"title"
:
"硕士学位"
,
],
[
"id"
:
"3"
,
"title"
:
"博士学位"
,
],
]
//学位颁发地
static
let
arrDegreeAddress
=
[
[
"id"
:
"0"
,
"title"
:
"国内(颁发)"
],
[
"id"
:
"1"
,
"title"
:
"国外(颁发)"
],
]
//通过 id 获取 title
//通过 id 获取 title
static
func
getShowNameBy
(
indexStr
:
String
,
type
:
YHOtherPickerViewType
)
->
String
{
static
func
getShowNameBy
(
indexStr
:
String
,
type
:
YHOtherPickerViewType
)
->
String
{
if
indexStr
.
isEmpty
{
if
indexStr
.
isEmpty
{
...
@@ -359,6 +385,10 @@ class YHConstantArrayData {
...
@@ -359,6 +385,10 @@ class YHConstantArrayData {
arrData
=
YHConstantArrayData
.
arrStructure
arrData
=
YHConstantArrayData
.
arrStructure
case
.
level
:
case
.
level
:
arrData
=
YHConstantArrayData
.
arrLevel
arrData
=
YHConstantArrayData
.
arrLevel
case
.
degree
:
arrData
=
YHConstantArrayData
.
arrDegree
case
.
degreeAddress
:
arrData
=
YHConstantArrayData
.
arrDegreeAddress
default
:
default
:
arrData
=
[[:]]
arrData
=
[[:]]
}
}
...
...
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