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
f04b6b1f
Commit
f04b6b1f
authored
Mar 07, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS
into develop
parents
522a8d29
c583d974
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
YHPreviewViewModel.swift
...ss(流程)/PersonInfoList(个人信息预览)/VM/YHPreviewViewModel.swift
+1
-1
String+Extension.swift
galaxy/galaxy/Classes/Tools/Extention/String+Extension.swift
+8
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/PersonInfoList(个人信息预览)/VM/YHPreviewViewModel.swift
View file @
f04b6b1f
...
@@ -417,7 +417,7 @@ private extension YHPreviewViewModel {
...
@@ -417,7 +417,7 @@ private extension YHPreviewViewModel {
var
msg
=
YHConstantArrayData
.
getShowNameBy
(
indexStr
:
model
.
sex
,
type
:
.
sex
)
var
msg
=
YHConstantArrayData
.
getShowNameBy
(
indexStr
:
model
.
sex
,
type
:
.
sex
)
let
tmp5
=
YHPreviewQuestionAndAnswerModel
(
question
:
"性别:"
,
answer
:
msg
)
let
tmp5
=
YHPreviewQuestionAndAnswerModel
(
question
:
"性别:"
,
answer
:
msg
)
msg
=
YHConstantArrayData
.
getShowNameBy
(
indexStr
:
model
.
married
,
type
:
.
marry
)
msg
=
model
.
married
//后台 王辉维护这个字段 前端直接展示
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
)
...
...
galaxy/galaxy/Classes/Tools/Extention/String+Extension.swift
View file @
f04b6b1f
...
@@ -40,6 +40,14 @@ extension String {
...
@@ -40,6 +40,14 @@ extension String {
}
}
return
nil
return
nil
}
}
//判断字符串并返回默认值
func
defaultStringIfEmpty
(
detaultValue
:
String
=
"-"
)
->
String
{
if
self
.
isEmpty
{
return
detaultValue
}
return
self
}
}
}
extension
String
{
extension
String
{
...
...
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