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
b125f518
Commit
b125f518
authored
Mar 04, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主申请人信息 预览逻辑
parent
1403d482
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
243 additions
and
65 deletions
+243
-65
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHFamilyInitialInfo.swift
...ess(流程)/FamilyMember(家庭成员信息表)/M/YHFamilyInitialInfo.swift
+2
-0
YHScoreDetailViewController.swift
...ess(流程)/MyScore(我的评分)/C/YHScoreDetailViewController.swift
+0
-4
YHMainInfoPreviewModel.swift
...流程)/PersonInfoList(个人信息预览)/M/YHMainInfoPreviewModel.swift
+85
-0
YHPreviewViewModel.swift
...ss(流程)/PersonInfoList(个人信息预览)/VM/YHPreviewViewModel.swift
+151
-60
YHNetRequest.swift
galaxy/galaxy/Classes/Tools/NetWork/YHNetRequest.swift
+1
-1
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
b125f518
...
@@ -156,6 +156,7 @@
...
@@ -156,6 +156,7 @@
A5234E372B70802400A33433
/* YHBasicInfoCellModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5234E362B70802300A33433
/* YHBasicInfoCellModel.swift */
;
};
A5234E372B70802400A33433
/* YHBasicInfoCellModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5234E362B70802300A33433
/* YHBasicInfoCellModel.swift */
;
};
A5234E3E2B7235F000A33433
/* YHOtherInfoFillViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5234E3D2B7235F000A33433
/* YHOtherInfoFillViewController.swift */
;
};
A5234E3E2B7235F000A33433
/* YHOtherInfoFillViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5234E3D2B7235F000A33433
/* YHOtherInfoFillViewController.swift */
;
};
A53026902B4E6F2700F35102
/* YHHomeCustomCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A530268F2B4E6F2700F35102
/* YHHomeCustomCell.swift */
;
};
A53026902B4E6F2700F35102
/* YHHomeCustomCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A530268F2B4E6F2700F35102
/* YHHomeCustomCell.swift */
;
};
A554A5002B95FB9100EA5973
/* YHMainInfoPreviewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A554A4FF2B95FB9100EA5973
/* YHMainInfoPreviewModel.swift */
;
};
A5551FFE2B4C26CE00510980
/* YHBaseViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5551FFD2B4C26CE00510980
/* YHBaseViewModel.swift */
;
};
A5551FFE2B4C26CE00510980
/* YHBaseViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5551FFD2B4C26CE00510980
/* YHBaseViewModel.swift */
;
};
A5573ED22B317BFF00D98EC0
/* AppDelegate.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5573ED12B317BFF00D98EC0
/* AppDelegate.swift */
;
};
A5573ED22B317BFF00D98EC0
/* AppDelegate.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5573ED12B317BFF00D98EC0
/* AppDelegate.swift */
;
};
A5573EDB2B317C0000D98EC0
/* Assets.xcassets in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5573EDA2B317C0000D98EC0
/* Assets.xcassets */
;
};
A5573EDB2B317C0000D98EC0
/* Assets.xcassets in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5573EDA2B317C0000D98EC0
/* Assets.xcassets */
;
};
...
@@ -460,6 +461,7 @@
...
@@ -460,6 +461,7 @@
A5234E362B70802300A33433
/* YHBasicInfoCellModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHBasicInfoCellModel.swift
;
sourceTree
=
"<group>"
;
};
A5234E362B70802300A33433
/* YHBasicInfoCellModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHBasicInfoCellModel.swift
;
sourceTree
=
"<group>"
;
};
A5234E3D2B7235F000A33433
/* YHOtherInfoFillViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHOtherInfoFillViewController.swift
;
sourceTree
=
"<group>"
;
};
A5234E3D2B7235F000A33433
/* YHOtherInfoFillViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHOtherInfoFillViewController.swift
;
sourceTree
=
"<group>"
;
};
A530268F2B4E6F2700F35102
/* YHHomeCustomCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHomeCustomCell.swift
;
sourceTree
=
"<group>"
;
};
A530268F2B4E6F2700F35102
/* YHHomeCustomCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHomeCustomCell.swift
;
sourceTree
=
"<group>"
;
};
A554A4FF2B95FB9100EA5973
/* YHMainInfoPreviewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMainInfoPreviewModel.swift
;
sourceTree
=
"<group>"
;
};
A5551FFD2B4C26CE00510980
/* YHBaseViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHBaseViewModel.swift
;
sourceTree
=
"<group>"
;
};
A5551FFD2B4C26CE00510980
/* YHBaseViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHBaseViewModel.swift
;
sourceTree
=
"<group>"
;
};
A5573ECE2B317BFF00D98EC0
/* galaxy.app */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
wrapper.application
;
includeInIndex
=
0
;
path
=
galaxy.app
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
A5573ECE2B317BFF00D98EC0
/* galaxy.app */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
wrapper.application
;
includeInIndex
=
0
;
path
=
galaxy.app
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
A5573ED12B317BFF00D98EC0
/* AppDelegate.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
AppDelegate.swift
;
sourceTree
=
"<group>"
;
};
A5573ED12B317BFF00D98EC0
/* AppDelegate.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
AppDelegate.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -1047,6 +1049,7 @@
...
@@ -1047,6 +1049,7 @@
A5FD63F92B68D95700D1D9DA
/* YHPersonInfoIdentityCardModel.swift */
,
A5FD63F92B68D95700D1D9DA
/* YHPersonInfoIdentityCardModel.swift */
,
A5191F612B89E748001069F7
/* YHPreviewQuestionAndAnswerModel.swift */
,
A5191F612B89E748001069F7
/* YHPreviewQuestionAndAnswerModel.swift */
,
A5B4A5842B9455F7003EFF8F
/* YHPreviewForOtherInfoModel.swift */
,
A5B4A5842B9455F7003EFF8F
/* YHPreviewForOtherInfoModel.swift */
,
A554A4FF2B95FB9100EA5973
/* YHMainInfoPreviewModel.swift */
,
);
);
path
=
M
;
path
=
M
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -1812,6 +1815,7 @@
...
@@ -1812,6 +1815,7 @@
0413A6D82B8C76290006D154
/* YHCertificateUploadVC.swift in Sources */
,
0413A6D82B8C76290006D154
/* YHCertificateUploadVC.swift in Sources */
,
A5ACE93A2B4564F7002C94D2
/* NSAttributedString+Extension.swift in Sources */
,
A5ACE93A2B4564F7002C94D2
/* NSAttributedString+Extension.swift in Sources */
,
04E86E662B86EB6F00A35F4B
/* YHLoginManager.swift in Sources */
,
04E86E662B86EB6F00A35F4B
/* YHLoginManager.swift in Sources */
,
A554A5002B95FB9100EA5973
/* YHMainInfoPreviewModel.swift in Sources */
,
042F888B2B8477C6008B60BD
/* YHEducationInfo.swift in Sources */
,
042F888B2B8477C6008B60BD
/* YHEducationInfo.swift in Sources */
,
04AF58C42B4FC51C0066011A
/* YHLocalizable.swift in Sources */
,
04AF58C42B4FC51C0066011A
/* YHLocalizable.swift in Sources */
,
042FBBBF2B639F0300F9DE23
/* YHSpouseBasicInfoVC.swift in Sources */
,
042FBBBF2B639F0300F9DE23
/* YHSpouseBasicInfoVC.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/M/YHFamilyInitialInfo.swift
View file @
b125f518
...
@@ -1218,10 +1218,12 @@ class YHAddress: SmartCodable {
...
@@ -1218,10 +1218,12 @@ class YHAddress: SmartCodable {
class
YHChildStepchildClass
:
SmartCodable
{
class
YHChildStepchildClass
:
SmartCodable
{
var
has
:
String
=
""
var
has
:
String
=
""
var
info
:
String
=
""
var
info
:
String
=
""
var
number
:
String
=
""
enum
CodingKeys
:
String
,
CodingKey
{
enum
CodingKeys
:
String
,
CodingKey
{
case
has
=
"has"
case
has
=
"has"
case
info
=
"info"
case
info
=
"info"
case
number
=
"number"
}
}
required
init
()
{
required
init
()
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MyScore(我的评分)/C/YHScoreDetailViewController.swift
View file @
b125f518
...
@@ -50,10 +50,6 @@ class YHScoreDetailViewController: YHBaseViewController {
...
@@ -50,10 +50,6 @@ class YHScoreDetailViewController: YHBaseViewController {
//2.0
//2.0
loadData
()
loadData
()
//3.保存orderId 提供给后续UI使用
UserDefaults
.
standard
.
set
(
orderId
,
forKey
:
"orderIdForPreview"
)
UserDefaults
.
standard
.
synchronize
()
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/PersonInfoList(个人信息预览)/M/YHMainInfoPreviewModel.swift
0 → 100644
View file @
b125f518
//
// YHMainInfoPreviewModel.swift
// galaxy
//
// Created by davidhuangA on 2024/3/4.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
SmartCodable
class
YHMainInfoPreviewModel
:
SmartCodable
{
var
username
:
String
=
""
var
used_name
:
String
=
""
var
username_pinyin
:
String
=
""
var
sex
:
String
=
""
var
birthday
:
String
=
""
var
birth_place
:
String
=
""
var
mobile
:
String
=
""
var
email
:
String
=
""
var
married
:
String
=
""
var
nationality
:
String
=
""
var
live_address
:
String
=
""
var
surname
:
String
=
""
var
birth_place_details
:
String
=
""
var
live_address_detail
:
String
=
""
var
is_handled
:
Int
=
0
var
is_live_oversea_year
:
Int
=
0
var
hk_id
:
YHChildStepchildClass
?
var
certificates
:
YHCertificatesPreviewModel
?
required
init
()
{
}
}
class
YHCertificatesPreviewModel
:
SmartCodable
{
var
cnIdentityCard
:
YHCNIdentityCardPreviewModel
=
YHCNIdentityCardPreviewModel
()
var
passport
:
YHCNIdentityCardPreviewModel
=
YHCNIdentityCardPreviewModel
()
var
hkMacaoPass
:
YHCNIdentityCardPreviewModel
=
YHCNIdentityCardPreviewModel
()
enum
CodingKeys
:
String
,
CodingKey
{
case
cnIdentityCard
=
"cn_identity_card"
case
passport
=
"passport"
case
hkMacaoPass
=
"hk_macao_pass"
}
required
init
()
{
}
}
class
YHCNIdentityCardPreviewModel
:
SmartCodable
{
static
let
longTime
=
"8888-01-01"
var
id
:
Int
=
0
var
number
:
String
=
""
var
issueAt
:
String
=
""
var
issueDateStartAt
:
String
=
""
var
issueDateEndAt
:
String
=
""
var
imgFront
:
String
=
""
var
imgBack
:
String
=
""
var
passport_type
:
Int
=
-
1
var
type
:
String
=
""
enum
CodingKeys
:
String
,
CodingKey
{
case
id
=
"id"
case
number
=
"number"
case
issueAt
=
"issue_at"
case
issueDateStartAt
=
"issue_date_start_at"
case
issueDateEndAt
=
"issue_date_end_at"
case
imgFront
=
"img_front"
case
imgBack
=
"img_back"
case
passport_type
=
"passport_type"
case
type
=
"type"
}
required
init
()
{
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/PersonInfoList(个人信息预览)/VM/YHPreviewViewModel.swift
View file @
b125f518
...
@@ -19,7 +19,7 @@ class YHPreviewViewModel: YHBaseViewModel {
...
@@ -19,7 +19,7 @@ class YHPreviewViewModel: YHBaseViewModel {
//主申请人信息 预览 - 未完成
//主申请人信息 预览 - 未完成
var
mainApplicationInfoPreviewModel
:
YHMainInfo
rmation
Model
?
var
mainApplicationInfoPreviewModel
:
YHMainInfo
Preview
Model
?
var
arrDataForMainApplicationInfo
:
[
YHPreviewInfoSessionModel
]
=
[]
var
arrDataForMainApplicationInfo
:
[
YHPreviewInfoSessionModel
]
=
[]
//其他信息 预览
//其他信息 预览
...
@@ -68,8 +68,8 @@ extension YHPreviewViewModel {
...
@@ -68,8 +68,8 @@ extension YHPreviewViewModel {
//1. json字符串 转 对象
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
json
.
code
==
200
{
if
json
.
code
==
200
{
let
dic
=
json
.
data
let
dic
=
json
.
data
as?
[
AnyHashable
:
Any
]
guard
let
result
=
YHMainInfo
rmationModel
.
deserialize
(
from
:
dic
as?
Dictionary
)
else
{
guard
let
result
=
YHMainInfo
PreviewModel
.
deserialize
(
dict
:
dic
)
else
{
callBackBlock
(
false
,
nil
)
callBackBlock
(
false
,
nil
)
return
return
}
}
...
@@ -169,64 +169,165 @@ private extension YHPreviewViewModel {
...
@@ -169,64 +169,165 @@ private extension YHPreviewViewModel {
do
{
do
{
//基本信息
//基本信息
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
"主申请人:"
,
answer
:
model
.
username
)
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
"主申请人:"
,
answer
:
model
.
username
)
let
tmp1
=
YHPreviewQuestionAndAnswerModel
(
question
:
"曾用名:"
,
answer
:
model
.
used_name
)
let
tmp1
=
YHPreviewQuestionAndAnswerModel
(
question
:
"曾用名:"
,
answer
:
model
.
used_name
.
isEmpty
?
"--"
:
model
.
used_name
)
let
tmp2
=
YHPreviewQuestionAndAnswerModel
(
question
:
"婚前姓氏:"
,
answer
:
model
.
surname
)
let
tmp2
=
YHPreviewQuestionAndAnswerModel
(
question
:
"婚前姓氏:"
,
answer
:
model
.
surname
.
isEmpty
?
"--"
:
model
.
surname
)
let
tmp3
=
YHPreviewQuestionAndAnswerModel
(
question
:
"出生日期:"
,
answer
:
model
.
birthday
)
let
tmp3
=
YHPreviewQuestionAndAnswerModel
(
question
:
"出生日期:"
,
answer
:
model
.
birthday
)
let
tmp4
=
YHPreviewQuestionAndAnswerModel
(
question
:
"出生城市:"
,
answer
:
model
.
birth_place
.
area
.
description
)
//mainData.birth_place for test hjl todo
let
tmp4
=
YHPreviewQuestionAndAnswerModel
(
question
:
"出生城市:"
,
answer
:
model
.
birth_place
)
let
tmp5
=
YHPreviewQuestionAndAnswerModel
(
question
:
"性别:"
,
answer
:
model
.
sex
.
description
)
//mainData.birth_place
for test hjl todo
let
tmp5
=
YHPreviewQuestionAndAnswerModel
(
question
:
"性别:"
,
answer
:
model
.
sex
)
//
for test hjl todo
let
tmp6
=
YHPreviewQuestionAndAnswerModel
(
question
:
"婚姻状况:"
,
answer
:
model
.
married
.
description
)
//for test hjl todo
let
tmp6
=
YHPreviewQuestionAndAnswerModel
(
question
:
"婚姻状况:"
,
answer
:
model
.
married
)
//for test hjl todo
let
tmp7
=
YHPreviewQuestionAndAnswerModel
(
question
:
"手机号:"
,
answer
:
model
.
mobile
)
let
tmp7
=
YHPreviewQuestionAndAnswerModel
(
question
:
"手机号:"
,
answer
:
model
.
mobile
)
let
tmp8
=
YHPreviewQuestionAndAnswerModel
(
question
:
"邮箱:"
,
answer
:
model
.
email
)
let
tmp8
=
YHPreviewQuestionAndAnswerModel
(
question
:
"邮箱:"
,
answer
:
model
.
email
)
let
tmp9
=
YHPreviewQuestionAndAnswerModel
(
question
:
"现居住地址:"
,
answer
:
model
.
live_address
)
let
tmp9
=
YHPreviewQuestionAndAnswerModel
(
question
:
"现居住地址:"
,
answer
:
model
.
live_address
)
let
tmp10
=
YHPreviewQuestionAndAnswerModel
(
question
:
"详细地址:"
,
answer
:
model
.
live_address_detail
)
let
tmp11
=
YHPreviewQuestionAndAnswerModel
(
question
:
"是否办理过香港身份证:"
,
answer
:
"是"
)
//model.hk_id.has //for test hjl todo
let
tmp12
=
YHPreviewQuestionAndAnswerModel
(
question
:
"香港身份证:"
,
answer
:
"-"
)
//model.hk_id.number //for test hjl todo
let
arr
=
[
tmp0
,
tmp1
,
tmp2
,
tmp3
,
tmp4
,
tmp5
,
tmp6
,
tmp7
,
tmp8
,
tmp9
,
tmp10
,
tmp11
,
tmp12
]
let
model2
=
YHPreviewInfoSessionModel
(
cellType
:
.
countryInfoType
,
cellTitle
:
"基本信息"
,
cellData0
:
arr
)
arrDataForMainApplicationInfo
.
append
(
model2
)
}
do
{
//证件信息
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
"中国身份证号码:"
,
answer
:
"2203381990287633390"
)
let
tmp1
=
YHPreviewQuestionAndAnswerModel
(
question
:
"签发地:"
,
answer
:
"北京市分局"
)
let
tmp2
=
YHPreviewQuestionAndAnswerModel
(
question
:
"签发日期:"
,
answer
:
"2018-07-17"
)
let
tmp3
=
YHPreviewQuestionAndAnswerModel
(
question
:
"届满日期:"
,
answer
:
"2028-07-31"
)
let
model0
=
YHPersonInfoCellModel1
(
cellTitle
:
"中国身份证"
,
cellData
:
[
tmp0
,
tmp1
,
tmp2
,
tmp3
])
let
tmp4
=
YHPreviewQuestionAndAnswerModel
(
question
:
"旅行社证件号码:"
,
answer
:
"c2345639"
)
let
tmp5
=
YHPreviewQuestionAndAnswerModel
(
question
:
"签发地:"
,
answer
:
"北京市分局"
)
let
tmp6
=
YHPreviewQuestionAndAnswerModel
(
question
:
"签发日期:"
,
answer
:
"2018-07-17"
)
let
tmp7
=
YHPreviewQuestionAndAnswerModel
(
question
:
"届满日期:"
,
answer
:
"2028-07-31"
)
let
model1
=
YHPersonInfoCellModel1
(
cellTitle
:
"港澳通行证"
,
cellData
:
[
tmp4
,
tmp5
,
tmp6
,
tmp7
])
var
arr
=
[
tmp0
,
tmp1
,
tmp2
,
tmp3
,
tmp4
,
tmp5
,
tmp6
,
tmp7
,
tmp8
,
tmp9
]
if
model
.
live_address
.
contains
(
"中国"
)
==
false
{
let
tmp10
=
YHPreviewQuestionAndAnswerModel
(
question
:
"是否在海外居住满1年及以上:"
,
answer
:
model
.
is_live_oversea_year
==
1
?
"是"
:
"否"
)
arr
.
append
(
tmp10
)
}
else
{
let
tmp10
=
YHPreviewQuestionAndAnswerModel
(
question
:
"详细地址:"
,
answer
:
model
.
live_address_detail
)
arr
.
append
(
tmp10
)
}
let
tmp8
=
YHPreviewQuestionAndAnswerModel
(
question
:
"证件类别:"
,
answer
:
"护照"
)
let
tmp9
=
YHPreviewQuestionAndAnswerModel
(
question
:
"证件号码:"
,
answer
:
"p2345639"
)
let
tmp10
=
YHPreviewQuestionAndAnswerModel
(
question
:
"签发地:"
,
answer
:
"北京市分局"
)
let
tmp11
=
YHPreviewQuestionAndAnswerModel
(
question
:
"签发日期:"
,
answer
:
"2028-07-31"
)
let
tmp12
=
YHPreviewQuestionAndAnswerModel
(
question
:
"届满日期:"
,
answer
:
"2028-07-31"
)
let
model2
=
YHPersonInfoCellModel1
(
cellTitle
:
"护照及其他旅行证件"
,
cellData
:
[
tmp8
,
tmp9
,
tmp10
,
tmp11
,
tmp12
])
let
arr
=
[
model0
,
model1
,
model2
]
if
let
card
=
model
.
hk_id
,
card
.
has
.
isEmpty
==
false
{
let
model3
=
YHPreviewInfoSessionModel
(
cellType
:
.
idCardInfoType
,
cellTitle
:
"证件信息"
,
cellData1
:
arr
)
let
tmp5
=
YHPreviewQuestionAndAnswerModel
(
question
:
"是否办理过香港身份证:"
,
answer
:
"是"
)
arrDataForMainApplicationInfo
.
append
(
model3
)
let
tmp6
=
YHPreviewQuestionAndAnswerModel
(
question
:
"香港身份证号码:"
,
answer
:
card
.
number
.
isEmpty
?
"--"
:
card
.
number
)
arr
.
append
(
tmp5
)
arr
.
append
(
tmp6
)
}
else
{
let
tmp5
=
YHPreviewQuestionAndAnswerModel
(
question
:
"是否办理过香港身份证:"
,
answer
:
"否"
)
arr
.
append
(
tmp5
)
}
let
model2
=
YHPreviewInfoSessionModel
(
cellType
:
.
countryInfoType
,
cellTitle
:
"基本信息"
,
cellData0
:
arr
)
arrDataForMainApplicationInfo
.
append
(
model2
)
}
}
if
let
model2
=
model
.
certificates
{
do
{
//1.跟随 证件信息
//证件照片
do
{
let
model1
=
YHPersonInfoCellModel2
(
cellTitle
:
"中国身份证"
,
frontUrl
:
""
,
backUrl
:
""
,
idType
:
1
)
//中国身份证
let
model2
=
YHPersonInfoCellModel2
(
cellTitle
:
"港澳通行证"
,
frontUrl
:
""
,
backUrl
:
""
,
idType
:
2
)
var
str
=
model2
.
cnIdentityCard
.
number
if
str
.
isEmpty
{
str
=
"无"
}
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
"中国身份证号码:"
,
answer
:
str
)
str
=
model2
.
cnIdentityCard
.
issueAt
if
str
.
isEmpty
{
str
=
"无"
}
let
tmp1
=
YHPreviewQuestionAndAnswerModel
(
question
:
"签发地:"
,
answer
:
str
)
str
=
model2
.
cnIdentityCard
.
issueAt
if
str
.
isEmpty
{
str
=
"无"
}
let
tmp2
=
YHPreviewQuestionAndAnswerModel
(
question
:
"签发日期:"
,
answer
:
str
)
str
=
model2
.
cnIdentityCard
.
issueDateEndAt
if
str
.
isEmpty
{
str
=
"无"
}
else
{
if
str
==
"8888-01-01"
{
str
=
"至今"
}
}
let
tmp3
=
YHPreviewQuestionAndAnswerModel
(
question
:
"届满日期:"
,
answer
:
str
)
let
model0
=
YHPersonInfoCellModel1
(
cellTitle
:
"中国身份证"
,
cellData
:
[
tmp0
,
tmp1
,
tmp2
,
tmp3
])
var
arr
=
[
model0
]
//港澳通行证
if
model
.
is_handled
==
1
{
str
=
model2
.
hkMacaoPass
.
number
if
str
.
isEmpty
{
str
=
"无"
}
let
tmp4
=
YHPreviewQuestionAndAnswerModel
(
question
:
"旅行社证件号码:"
,
answer
:
str
)
str
=
model2
.
hkMacaoPass
.
issueAt
if
str
.
isEmpty
{
str
=
"无"
}
let
tmp5
=
YHPreviewQuestionAndAnswerModel
(
question
:
"签发地:"
,
answer
:
str
)
str
=
model2
.
hkMacaoPass
.
issueDateEndAt
if
str
.
isEmpty
{
str
=
"无"
}
let
tmp6
=
YHPreviewQuestionAndAnswerModel
(
question
:
"签发日期:"
,
answer
:
str
)
str
=
model2
.
hkMacaoPass
.
issueDateStartAt
if
str
.
isEmpty
{
str
=
"无"
}
else
{
if
str
==
"8888-01-01"
{
str
=
"至今"
}
}
let
tmp7
=
YHPreviewQuestionAndAnswerModel
(
question
:
"届满日期:"
,
answer
:
str
)
let
model1
=
YHPersonInfoCellModel1
(
cellTitle
:
"港澳通行证"
,
cellData
:
[
tmp4
,
tmp5
,
tmp6
,
tmp7
])
arr
.
append
(
model1
)
}
if
model
.
nationality
!=
"中国-China"
{
//护照及其他旅行证件
var
str
=
String
(
model2
.
passport
.
passport_type
)
//for test hjl todo
let
tmp8
=
YHPreviewQuestionAndAnswerModel
(
question
:
"证件类别:"
,
answer
:
str
)
str
=
model2
.
passport
.
number
if
str
.
isEmpty
{
str
=
"--"
}
let
tmp9
=
YHPreviewQuestionAndAnswerModel
(
question
:
"证件号码:"
,
answer
:
str
)
str
=
model2
.
passport
.
issueAt
if
str
.
isEmpty
{
str
=
"无"
}
let
tmp10
=
YHPreviewQuestionAndAnswerModel
(
question
:
"签发地:"
,
answer
:
"北京市分局"
)
str
=
model2
.
passport
.
issueDateStartAt
if
str
.
isEmpty
{
str
=
"无"
}
let
tmp11
=
YHPreviewQuestionAndAnswerModel
(
question
:
"签发日期:"
,
answer
:
str
)
str
=
model2
.
passport
.
issueDateEndAt
if
str
.
isEmpty
{
str
=
"无"
}
else
{
if
str
==
"8888-01-01"
{
str
=
"至今"
}
}
let
tmp12
=
YHPreviewQuestionAndAnswerModel
(
question
:
"届满日期:"
,
answer
:
str
)
let
model2
=
YHPersonInfoCellModel1
(
cellTitle
:
"护照及其他旅行证件"
,
cellData
:
[
tmp8
,
tmp9
,
tmp10
,
tmp11
,
tmp12
])
arr
.
append
(
model2
)
}
let
model3
=
YHPreviewInfoSessionModel
(
cellType
:
.
idCardInfoType
,
cellTitle
:
"证件信息"
,
cellData1
:
arr
)
arrDataForMainApplicationInfo
.
append
(
model3
)
}
let
arr
=
[
model1
,
model2
]
//2.跟随 证件照
let
model4
=
YHPreviewInfoSessionModel
(
cellType
:
.
idPictureType
,
cellTitle
:
"证件照片"
,
cellData2
:
arr
)
do
{
arrDataForMainApplicationInfo
.
append
(
model4
)
//证件照片
let
front
=
model2
.
cnIdentityCard
.
imgFront
let
back
=
model2
.
cnIdentityCard
.
imgBack
let
model1
=
YHPersonInfoCellModel2
(
cellTitle
:
"中国身份证"
,
frontUrl
:
front
,
backUrl
:
back
,
idType
:
1
)
var
arr
=
[
model1
]
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
)
}
let
model4
=
YHPreviewInfoSessionModel
(
cellType
:
.
idPictureType
,
cellTitle
:
"证件照片"
,
cellData2
:
arr
)
arrDataForMainApplicationInfo
.
append
(
model4
)
}
}
}
}
}
...
@@ -426,9 +527,6 @@ private extension YHPreviewViewModel {
...
@@ -426,9 +527,6 @@ private extension YHPreviewViewModel {
private
extension
YHPreviewViewModel
{
private
extension
YHPreviewViewModel
{
func
installDataForFamilyInfo
()
{
func
installDataForFamilyInfo
()
{
//父母
//父母
installDataForParents
()
installDataForParents
()
...
@@ -443,8 +541,6 @@ private extension YHPreviewViewModel {
...
@@ -443,8 +541,6 @@ private extension YHPreviewViewModel {
installDataForBrother
()
installDataForBrother
()
}
}
//父母 数据
//父母 数据
func
installDataForParents
()
{
func
installDataForParents
()
{
do
{
do
{
...
@@ -586,7 +682,6 @@ private extension YHPreviewViewModel {
...
@@ -586,7 +682,6 @@ private extension YHPreviewViewModel {
arrDataForFamilyInfo
=
arrDataForParents
arrDataForFamilyInfo
=
arrDataForParents
}
}
private
func
installDataForSpouseOp
(
model
:
YHFamilyMember
)
{
private
func
installDataForSpouseOp
(
model
:
YHFamilyMember
)
{
var
arrTemp
:
[
YHPreviewInfoSessionModel
]
=
[]
var
arrTemp
:
[
YHPreviewInfoSessionModel
]
=
[]
...
@@ -887,9 +982,7 @@ private extension YHPreviewViewModel {
...
@@ -887,9 +982,7 @@ private extension YHPreviewViewModel {
installDataForSpouseOp
(
model
:
model
)
installDataForSpouseOp
(
model
:
model
)
}
}
private
func
installDataForChildOp
(
model
:
YHFamilyMember
,
childIndex
:
Int
)
{
private
func
installDataForChildOp
(
model
:
YHFamilyMember
,
childIndex
:
Int
)
{
var
arrTemp
:
[
YHPreviewInfoSessionModel
]
=
[]
var
arrTemp
:
[
YHPreviewInfoSessionModel
]
=
[]
do
{
do
{
if
model
.
follow
!=
1
{
if
model
.
follow
!=
1
{
...
@@ -1208,8 +1301,6 @@ private extension YHPreviewViewModel {
...
@@ -1208,8 +1301,6 @@ private extension YHPreviewViewModel {
}
}
}
}
//兄弟姐妹 数据
//兄弟姐妹 数据
func
installDataForBrother
()
{
func
installDataForBrother
()
{
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHNetRequest.swift
View file @
b125f518
...
@@ -95,7 +95,7 @@ class YHNetRequest: NSObject {
...
@@ -95,7 +95,7 @@ class YHNetRequest: NSObject {
requestHeader
.
add
(
name
:
"sign"
,
value
:
sign
)
requestHeader
.
add
(
name
:
"sign"
,
value
:
sign
)
requestHeader
.
add
(
name
:
"token"
,
value
:
YHLoginManager
.
shared
.
userModel
?
.
token
??
"-"
)
requestHeader
.
add
(
name
:
"token"
,
value
:
YHLoginManager
.
shared
.
userModel
?
.
token
??
"-"
)
//
testToken(&requestHeader) //for test hjl 使用测试token
testToken
(
&
requestHeader
)
//for test hjl 使用测试token
headers
=
requestHeader
headers
=
requestHeader
}
}
...
...
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