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
d327dcb2
Commit
d327dcb2
authored
Nov 23, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'qmas-1130' of
http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS
into qmas-1130
parents
08dc0d65
f7a58277
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
33 deletions
+42
-33
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+1
-1
YHChildPrimaryInfoVC.swift
...ilyMember(家庭成员信息表)/C/Child(子女)/YHChildPrimaryInfoVC.swift
+18
-15
YHSpousePrimaryInfoVC.swift
...yMember(家庭成员信息表)/C/Spouse(配偶)/YHSpousePrimaryInfoVC.swift
+19
-16
YHFamilyMemberViewModel.swift
...流程)/FamilyMember(家庭成员信息表)/M/YHFamilyMemberViewModel.swift
+4
-1
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
d327dcb2
...
...
@@ -3294,9 +3294,9 @@
045EEE392B9F171A0022A143
/* Spouse(配偶) */
=
{
isa
=
PBXGroup
;
children
=
(
045EEE3C2B9F171A0022A143
/* YHSpousePrimaryInfoVC.swift */
,
045EEE3A2B9F171A0022A143
/* YHSpouseBasicInfoVC.swift */
,
045EEE3B2B9F171A0022A143
/* YHSpouseInfoContainerVC.swift */
,
045EEE3C2B9F171A0022A143
/* YHSpousePrimaryInfoVC.swift */
,
);
path
=
"Spouse(配偶)"
;
sourceTree
=
"<group>"
;
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/C/Child(子女)/YHChildPrimaryInfoVC.swift
View file @
d327dcb2
...
...
@@ -114,22 +114,25 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
// 港澳通信证
var
isHiddenHK
=
true
// 国籍
let
nationality
=
child
.
nationality
// 居住国家
var
liveCountry
=
child
.
address
.
country
// 居住海外是否满一年
var
isLiveOverseaYear
=
child
.
isOverSeasOver1Year
()
if
child
.
isLiveTother
(),
let
mainApplicantInfo
=
mainApplicantInfo
{
// 与主申请人同住需要用主申请人居住信息判断
liveCountry
=
mainApplicantInfo
.
applicant_address
.
country
isLiveOverseaYear
=
mainApplicantInfo
.
isOverSeasOver1Year
()
}
if
child
.
nationality
.
contains
(
"中国"
)
{
// 中国国籍
if
child
.
isLiveTother
()
{
// 与主申请人同住
if
let
mainApplicantInfo
=
mainApplicantInfo
{
let
isLiveInChina
=
mainApplicantInfo
.
applicant_address
.
country
.
contains
(
"中国"
.
local
)
if
isLiveInChina
||
(
!
isLiveInChina
&&
!
mainApplicantInfo
.
isOverSeasOver1Year
())
{
// 中国国籍&居住国内、中国国籍&居住国外不满一年 需展示“港澳通行证”询问框
isHiddenHK
=
false
}
}
}
else
{
// 不与主申请人同住
let
isLiveInChina
=
child
.
address
.
country
.
contains
(
"中国"
.
local
)
if
isLiveInChina
||
(
!
isLiveInChina
&&
!
child
.
isOverSeasOver1Year
())
{
// 中国国籍&居住国内、中国国籍&居住国外不满一年 需展示“港澳通行证”询问框
isHiddenHK
=
false
}
let
isLiveInChina
=
liveCountry
.
contains
(
"中国"
.
local
)
if
isLiveInChina
||
(
!
isLiveInChina
&&
!
isLiveOverseaYear
)
{
// 中国国籍&居住国内、中国国籍&居住国外不满一年 需展示“港澳通行证”询问框
isHiddenHK
=
false
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpousePrimaryInfoVC.swift
View file @
d327dcb2
...
...
@@ -118,22 +118,25 @@ class YHSpousePrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
// 港澳通信证
var
isHiddenHK
=
true
if
spouse
.
nationality
.
contains
(
"中国"
)
{
// 中国国籍
if
spouse
.
isLiveTother
()
{
// 与主申请人同住
if
let
mainApplicantInfo
=
mainApplicantInfo
{
let
isLiveInChina
=
mainApplicantInfo
.
applicant_address
.
country
.
contains
(
"中国"
.
local
)
if
isLiveInChina
||
(
!
isLiveInChina
&&
!
mainApplicantInfo
.
isOverSeasOver1Year
())
{
// 中国国籍&居住国内、中国国籍&居住国外不满一年 需展示“港澳通行证”询问框
isHiddenHK
=
false
}
}
}
else
{
// 不与主申请人同住
let
isLiveInChina
=
spouse
.
address
.
country
.
contains
(
"中国"
.
local
)
if
isLiveInChina
||
(
!
isLiveInChina
&&
!
spouse
.
isOverSeasOver1Year
())
{
// 中国国籍&居住国内、中国国籍&居住国外不满一年 需展示“港澳通行证”询问框
isHiddenHK
=
false
}
// 国籍
let
nationality
=
spouse
.
nationality
// 居住国家
var
liveCountry
=
spouse
.
address
.
country
// 居住海外是否满一年
var
isLiveOverseaYear
=
spouse
.
isOverSeasOver1Year
()
if
spouse
.
isLiveTother
(),
let
mainApplicantInfo
=
mainApplicantInfo
{
// 与主申请人同住需要用主申请人居住信息判断
liveCountry
=
mainApplicantInfo
.
applicant_address
.
country
isLiveOverseaYear
=
mainApplicantInfo
.
isOverSeasOver1Year
()
}
if
nationality
.
contains
(
"中国"
)
{
// 中国国籍
let
isLiveInChina
=
liveCountry
.
contains
(
"中国"
.
local
)
if
isLiveInChina
||
(
!
isLiveInChina
&&
!
isLiveOverseaYear
)
{
// 中国国籍&居住国内、中国国籍&居住国外不满一年 需展示“港澳通行证”询问框
isHiddenHK
=
false
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/M/YHFamilyMemberViewModel.swift
View file @
d327dcb2
...
...
@@ -24,8 +24,11 @@ class YHFamilyMemberViewModel : YHBaseViewModel{
let
item2
=
YHItemModel
(
id
:
.
id7
,
isNeed
:
true
,
title
:
"护照(选填)"
,
isUserKeyBoard
:
false
,
prompts
:
"请输入"
,
message
:
nil
,
isShowPrompts
:
isShowPrompt
)
let
section2
=
YHSectionItemModel
(
title
:
"护照(选填)"
,
models
:
[
item2
])
// 国籍
let
nationality
=
familyMemberModel
.
nationality
// 居住国家
var
addressCountry
=
familyMemberModel
.
address
.
country
var
nationality
=
familyMemberModel
.
nationality
// 居住海外是否满一年
var
is_live_oversea_year
=
familyMemberModel
.
isOverSeasOver1Year
()
if
familyMemberModel
.
isLiveTother
(),
let
mainApplicant
=
mainApplicantInfo
{
// 与主申请人同住用主申请人的居住信息判断
addressCountry
=
mainApplicant
.
applicant_address
.
country
...
...
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