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
91828b4d
Commit
91828b4d
authored
Nov 22, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主申请人信息I预览UI修改
parent
6b9cdd4c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
26 deletions
+49
-26
YHPersonInfoCellModel2.swift
...流程)/PersonInfoList(个人信息预览)/M/YHPersonInfoCellModel2.swift
+2
-0
YHPreviewInfoCertificatePictureItemView.swift
...t(个人信息预览)/V/YHPreviewInfoCertificatePictureItemView.swift
+18
-2
YHPreviewViewModel.swift
...的信息流程)/PersonInfoList(个人信息预览)/VM/YHPreviewViewModel.swift
+29
-24
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/PersonInfoList(个人信息预览)/M/YHPersonInfoCellModel2.swift
View file @
91828b4d
...
...
@@ -23,6 +23,8 @@ struct YHPersonInfoCellModel2: SmartCodable {
cellTitle
=
"中国身份证"
}
else
if
idType
==
2
{
cellTitle
=
"港澳通行证"
}
else
{
cellTitle
=
"护照"
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/PersonInfoList(个人信息预览)/V/YHPreviewInfoCertificatePictureItemView.swift
View file @
91828b4d
...
...
@@ -171,8 +171,19 @@ extension YHPreviewInfoCertificatePictureItemView {
func
updateUI
()
{
guard
let
dataModel
=
dataModel
else
{
return
}
cellTitleLable
.
text
=
dataModel
.
cellTitle
frontLable
.
text
=
dataModel
.
idType
==
1
?
"身份证头像面"
:
"港澳通行证正面"
backLable
.
text
=
dataModel
.
idType
==
1
?
"身份证国徽面"
:
"港澳通行证反面"
var
frontTitle
=
""
var
backTitle
=
""
if
dataModel
.
idType
==
1
{
frontTitle
=
"身份证头像面"
backTitle
=
"身份证国徽面"
}
else
if
dataModel
.
idType
==
2
{
frontTitle
=
"港澳通行证正面"
backTitle
=
"港澳通行证反面"
}
else
{
frontTitle
=
"护照"
}
frontLable
.
text
=
frontTitle
backLable
.
text
=
backTitle
//获取头像
handleCardImage
()
...
...
@@ -194,6 +205,11 @@ extension YHPreviewInfoCertificatePictureItemView {
// let url2 = "https://upload-cdn.galaxy-immi.com/crm/test/files/1709370416082.png?Expires=1709697934&OSSAccessKeyId=LTAI5tJPQC4La6LWbcNoz61u&Signature=eKv4J8STMXSHFyJvozmHPgJdmY4%3D&v=1709696134"
if
dataModel
.
idType
==
3
{
backImagV
.
isHidden
=
true
}
else
{
backImagV
.
isHidden
=
false
}
let
url2
=
dataModel
.
backUrl
if
url2
.
isEmpty
==
false
{
self
.
requestVM
.
getPublicImageUrl
(
url2
)
{[
weak
self
]
success
,
error
in
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/PersonInfoList(个人信息预览)/VM/YHPreviewViewModel.swift
View file @
91828b4d
...
...
@@ -462,13 +462,10 @@ private extension YHPreviewViewModel {
msg
=
model
.
married
//后台 王辉维护这个字段 前端直接展示
let
tmp6
=
YHPreviewQuestionAndAnswerModel
(
question
:
"婚姻状况:"
,
answer
:
msg
)
let
tmp7
=
YHPreviewQuestionAndAnswerModel
(
question
:
"手机号:"
,
answer
:
model
.
mobile
)
let
tmp8
=
YHPreviewQuestionAndAnswerModel
(
question
:
"邮箱:"
,
answer
:
model
.
email
)
let
tmp9
=
YHPreviewQuestionAndAnswerModel
(
question
:
"现居住地址:"
,
answer
:
model
.
live_address
)
var
arr
=
[
tmp0
,
tmp1
,
tmp2
,
tmp3
,
tmp4
,
tmp5
,
tmp6
,
tmp
7
,
tmp8
,
tmp
9
]
var
arr
=
[
tmp0
,
tmp1
,
tmp2
,
tmp3
,
tmp4
,
tmp5
,
tmp6
,
tmp9
]
if
model
.
live_address
.
contains
(
"中国"
)
==
false
{
let
tmp10
=
YHPreviewQuestionAndAnswerModel
(
question
:
"是否在海外居住满1年及以上:"
,
answer
:
model
.
is_live_oversea_year
==
1
?
"是"
:
"否"
)
arr
.
append
(
tmp10
)
...
...
@@ -515,10 +512,7 @@ private extension YHPreviewViewModel {
let
tmp3
=
YHPreviewQuestionAndAnswerModel
(
question
:
"届满日期:"
,
answer
:
str
.
defaultStringIfEmpty
())
let
model0
=
YHPersonInfoCellModel1
(
cellTitle
:
"中国身份证"
,
cellData
:
[
tmp0
,
tmp1
,
tmp2
,
tmp3
])
var
arr
=
[
model0
]
//港澳通行证
if
model
.
is_handled
==
1
{
str
=
model2
.
hkMacaoPass
.
number
let
tmp4
=
YHPreviewQuestionAndAnswerModel
(
question
:
"旅行社证件号码:"
,
answer
:
str
.
defaultStringIfEmpty
())
...
...
@@ -538,14 +532,6 @@ private extension YHPreviewViewModel {
}
let
tmp7
=
YHPreviewQuestionAndAnswerModel
(
question
:
"届满日期:"
,
answer
:
str
.
defaultStringIfEmpty
())
let
model1
=
YHPersonInfoCellModel1
(
cellTitle
:
"港澳通行证"
,
cellData
:
[
tmp4
,
tmp5
,
tmp6
,
tmp7
])
arr
.
append
(
model1
)
}
if
model
.
nationality
!=
"中国-China"
{
//护照及其他旅行证件
var
str
=
model2
.
passport
.
type
let
tmp8
=
YHPreviewQuestionAndAnswerModel
(
question
:
"证件类别:"
,
answer
:
str
)
str
=
model2
.
passport
.
number
let
tmp9
=
YHPreviewQuestionAndAnswerModel
(
question
:
"证件号码:"
,
answer
:
str
.
defaultStringIfEmpty
())
...
...
@@ -566,28 +552,47 @@ private extension YHPreviewViewModel {
}
let
tmp12
=
YHPreviewQuestionAndAnswerModel
(
question
:
"届满日期:"
,
answer
:
str
.
defaultStringIfEmpty
())
let
model2
=
YHPersonInfoCellModel1
(
cellTitle
:
"护照及其他旅行证件"
,
cellData
:
[
tmp8
,
tmp9
,
tmp10
,
tmp11
,
tmp12
])
arr
.
append
(
model2
)
let
model2
=
YHPersonInfoCellModel1
(
cellTitle
:
"护照"
,
cellData
:
[
tmp9
,
tmp10
,
tmp11
,
tmp12
])
var
arr
:[
YHPersonInfoCellModel1
]
=
[]
if
(
model
.
nationality
.
contains
(
"中国"
)
&&
model
.
live_address
.
contains
(
"中国"
))
||
((
model
.
nationality
.
contains
(
"中国"
)
&&
model
.
is_live_oversea_year
==
0
))
{
arr
=
[
model0
,
model1
]
}
else
if
(
model
.
nationality
.
contains
(
"中国"
)
&&
model
.
is_live_oversea_year
==
1
)
{
arr
=
[
model0
,
model2
]
}
else
{
arr
=
[
model2
]
}
let
model3
=
YHPreviewInfoSessionModel
(
cellType
:
.
idCardInfoType
,
cellTitle
:
"证件信息"
,
cellData1
:
arr
)
arrDataForMainApplicationInfo
.
append
(
model3
)
}
//2.跟随 证件照
do
{
var
arr
:
[
YHPersonInfoCellModel2
]
=
[]
//证件照片
let
front
=
model2
.
cnIdentityCard
.
imgFront
let
back
=
model2
.
cnIdentityCard
.
imgBack
let
model1
=
YHPersonInfoCellModel2
(
cellTitle
:
"中国身份证"
,
frontUrl
:
front
,
backUrl
:
back
,
idType
:
1
)
var
arr
=
[
model1
]
let
model11
=
YHPersonInfoCellModel2
(
cellTitle
:
"中国身份证"
,
frontUrl
:
front
,
backUrl
:
back
,
idType
:
1
)
let
front1
=
model2
.
hkMacaoPass
.
imgFront
let
back1
=
model2
.
hkMacaoPass
.
imgBack
let
model22
=
YHPersonInfoCellModel2
(
cellTitle
:
"港澳通行证"
,
frontUrl
:
front1
,
backUrl
:
back1
,
idType
:
2
)
let
front2
=
model2
.
passport
.
imgFront
let
model33
=
YHPersonInfoCellModel2
(
cellTitle
:
"护照"
,
frontUrl
:
front2
,
backUrl
:
""
,
idType
:
3
)
if
(
model
.
nationality
.
contains
(
"中国"
)
&&
model
.
live_address
.
contains
(
"中国"
))
||
(
model
.
nationality
.
contains
(
"中国"
)
&&
model
.
is_live_oversea_year
==
0
)
{
if
model
.
is_handled
==
1
{
let
front
=
model2
.
hkMacaoPass
.
imgFront
let
back
=
model2
.
hkMacaoPass
.
imgBack
let
model2
=
YHPersonInfoCellModel2
(
cellTitle
:
"港澳通行证"
,
frontUrl
:
front
,
backUrl
:
back
,
idType
:
2
)
arr
.
append
(
model2
)
arr
=
[
model11
,
model22
]
}
else
{
arr
=
[
model11
]
}
}
else
if
model
.
nationality
.
contains
(
"中国"
)
&&
model
.
is_live_oversea_year
==
1
{
arr
=
[
model11
,
model33
]
}
else
{
arr
=
[
model33
]
}
let
model4
=
YHPreviewInfoSessionModel
(
cellType
:
.
idPictureType
,
cellTitle
:
"证件照片"
,
cellData2
:
arr
)
arrDataForMainApplicationInfo
.
append
(
model4
)
}
...
...
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