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
ad60d466
Commit
ad60d466
authored
Nov 15, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 证件
parent
10cbac0d
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
14 deletions
+34
-14
YHCertificateInfoController.swift
...Certificates(证书上传和证书信息)/YHCertificateInfoController.swift
+2
-2
YHCertificateUploadVC.swift
...息表)/C/Certificates(证书上传和证书信息)/YHCertificateUploadVC.swift
+17
-8
YHFamilyInitialInfo.swift
...我的信息流程)/FamilyMember(家庭成员信息表)/M/YHFamilyInitialInfo.swift
+1
-1
YHFamilyMemberViewModel.swift
...流程)/FamilyMember(家庭成员信息表)/M/YHFamilyMemberViewModel.swift
+14
-3
YHIdentityCardCell.swift
...(我的信息流程)/FamilyMember(家庭成员信息表)/V/YHIdentityCardCell.swift
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/C/Certificates(证书上传和证书信息)/YHCertificateInfoController.swift
View file @
ad60d466
...
...
@@ -100,7 +100,7 @@ class YHCertificateInfoController: YHBaseViewController, YHFamilyMemberProtol {
if
familyMember
.
nationality
.
contains
(
"中国"
)
{
// 中国国籍
let
isLiveInChina
=
familyMember
.
address
.
country
.
contains
(
"中国"
.
local
)
if
isLiveInChina
{
// 居住国内
if
!
familyMember
.
certificates
.
hkMacaoPass
.
number
.
isEmpty
{
// 没办理过港澳通行证
if
familyMember
.
isHandled
==
0
{
// 没办理过港澳通行证
// 证件信息:港澳通行证非必填(无身份证、护照)
showHK
=
true
isHKMust
=
false
...
...
@@ -113,7 +113,7 @@ class YHCertificateInfoController: YHBaseViewController, YHFamilyMemberProtol {
}
else
{
// 居住国外
if
!
familyMember
.
isOverSeasOver1Year
()
{
// 居住国外不满一年
if
!
familyMember
.
certificates
.
hkMacaoPass
.
number
.
isEmpty
{
// 没办理过港澳通行证
if
familyMember
.
isHandled
==
0
{
// 没办理过港澳通行证
// 证件信息:港澳通行证非必填(无身份证、护照)
showHK
=
true
isHKMust
=
false
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/C/Certificates(证书上传和证书信息)/YHCertificateUploadVC.swift
View file @
ad60d466
...
...
@@ -78,20 +78,29 @@ extension YHCertificateUploadVC: UITableViewDelegate, UITableViewDataSource {
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHIdentityCardCell
.
self
)
cell
.
type
=
YHCardType
(
rawValue
:
indexPath
.
row
)
??
.
identity
cell
.
viewModel
=
viewModel
cell
.
backSurfaceDeleteButton
.
isHidden
=
true
cell
.
frontDeleteButton
.
isHidden
=
true
cell
.
informationBlock
=
{[
weak
self
]
type
,
image
,
isLeft
in
guard
let
self
=
self
else
{
return
}
let
dataSource
=
viewModel
.
getIDCardDataSource
(
false
)
if
indexPath
.
row
<
dataSource
.
count
{
if
dataSource
[
indexPath
.
row
]
.
models
?
.
first
?
.
id
==
.
id5
{
cell
.
type
=
.
identity
}
if
dataSource
[
indexPath
.
row
]
.
models
?
.
first
?
.
id
==
.
id6
{
cell
.
type
=
.
passport
}
if
dataSource
[
indexPath
.
row
]
.
models
?
.
first
?
.
id
==
.
id7
{
cell
.
type
=
.
other
}
cell
.
viewModel
=
viewModel
cell
.
backSurfaceDeleteButton
.
isHidden
=
true
cell
.
frontDeleteButton
.
isHidden
=
true
}
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
UITableView
.
automaticDimension
return
217
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/M/YHFamilyInitialInfo.swift
View file @
ad60d466
...
...
@@ -637,7 +637,7 @@ class YHFamilyMember: SmartCodable, YHFormItemProtocol {
var
birthPlaceAboard
:
Int
=
0
// 是否与主申请人同住 1:是 0:否
var
nows
:
Int
=
0
// 是否
要办理
港澳通行证 1:是 0:否
// 是否
办理过
港澳通行证 1:是 0:否
var
isHandled
:
Int
=
0
// notFillNumber = -1 表示还没开始填写任意数据项
var
notFillNumber
:
Int
=
-
1
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/M/YHFamilyMemberViewModel.swift
View file @
ad60d466
...
...
@@ -20,10 +20,21 @@ class YHFamilyMemberViewModel : YHBaseViewModel{
let
section
=
YHSectionItemModel
(
title
:
"中国身份证(选填)"
,
models
:
[
item
])
let
item1
=
YHItemModel
(
id
:
.
id6
,
isNeed
:
true
,
title
:
"港澳通行证(选填)"
,
isUserKeyBoard
:
false
,
prompts
:
"请输入"
,
message
:
nil
,
isShowPrompts
:
isShowPrompt
)
let
section1
=
YHSectionItemModel
(
title
:
"中国身份证(选填)"
,
models
:
[
item1
])
if
mainModel
.
isNeedHandleHKPassPort
()
{
return
[
section
,
section1
]
let
item2
=
YHItemModel
(
id
:
.
id7
,
isNeed
:
true
,
title
:
"护照(选填)"
,
isUserKeyBoard
:
false
,
prompts
:
"请输入"
,
message
:
nil
,
isShowPrompts
:
isShowPrompt
)
let
section2
=
YHSectionItemModel
(
title
:
"护照(选填)"
,
models
:
[
item2
])
let
addressCountry
=
mainModel
.
address
.
country
let
nationality
=
mainModel
.
nationality
let
is_live_oversea_year
=
mainModel
.
isOverSeasOver1Year
()
if
(
nationality
.
contains
(
"中国"
)
&&
addressCountry
.
contains
(
"中国"
))
||
(
nationality
.
contains
(
"中国"
)
&&
!
is_live_oversea_year
)
{
if
mainModel
.
isHandled
==
1
{
return
[
section
,
section1
]
}
else
{
return
[
section
]
}
}
else
if
nationality
.
contains
(
"中国"
)
&&
is_live_oversea_year
{
return
[
section
,
section2
]
}
else
{
return
[
section
]
return
[
section
2
]
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/V/YHIdentityCardCell.swift
View file @
ad60d466
This diff is collapsed.
Click to expand it.
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