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
84c4d89b
Commit
84c4d89b
authored
Aug 08, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 原则批
parent
fe5a9a84
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
374 additions
and
15 deletions
+374
-15
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+8
-0
YHPrincipleApprovedMailViewController.swift
...eBatch(原则批)/C/YHPrincipleApprovedMailViewController.swift
+265
-0
YHPrincipleWaitResultViewController.swift
...pleBatch(原则批)/C/YHPrincipleWaitResultViewController.swift
+1
-1
YHPrincipleEnvelopeModel.swift
...客服段)/PrincipleBatch(原则批)/M/YHPrincipleEnvelopeModel.swift
+27
-0
YHPrincipleEnvelopeCell.swift
...(客服段)/PrincipleBatch(原则批)/V/YHPrincipleEnvelopeCell.swift
+8
-12
YHPrincleViewModel.swift
...vice(客服段)/PrincipleBatch(原则批)/VM/YHPrincleViewModel.swift
+41
-0
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+2
-2
Contents.json
...er/客服段/原则批/principle_approved_mail.imageset/Contents.json
+22
-0
Group 2033194701@2x.png
.../principle_approved_mail.imageset/Group 2033194701@2x.png
+0
-0
Group 2033194701@3x.png
.../principle_approved_mail.imageset/Group 2033194701@3x.png
+0
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
84c4d89b
...
@@ -359,6 +359,8 @@
...
@@ -359,6 +359,8 @@
04B360EF2C620975001EB053
/* YHPrincipleUploadStatusCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B360EE2C620975001EB053
/* YHPrincipleUploadStatusCell.swift */
;
};
04B360EF2C620975001EB053
/* YHPrincipleUploadStatusCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B360EE2C620975001EB053
/* YHPrincipleUploadStatusCell.swift */
;
};
04B360F12C635A33001EB053
/* YHPrincipleWaitResultModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B360F02C635A33001EB053
/* YHPrincipleWaitResultModel.swift */
;
};
04B360F12C635A33001EB053
/* YHPrincipleWaitResultModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B360F02C635A33001EB053
/* YHPrincipleWaitResultModel.swift */
;
};
04B360F32C636525001EB053
/* YHPrincipleWaitResultViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B360F22C636525001EB053
/* YHPrincipleWaitResultViewController.swift */
;
};
04B360F32C636525001EB053
/* YHPrincipleWaitResultViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B360F22C636525001EB053
/* YHPrincipleWaitResultViewController.swift */
;
};
04B360F52C646844001EB053
/* YHPrincipleApprovedMailViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B360F42C646844001EB053
/* YHPrincipleApprovedMailViewController.swift */
;
};
04B360F72C646B4F001EB053
/* YHPrincipleEnvelopeModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B360F62C646B4F001EB053
/* YHPrincipleEnvelopeModel.swift */
;
};
04B9EE5A2C06CC3100A4018D
/* YHCodeSueecssViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B9EE582C06CC3100A4018D
/* YHCodeSueecssViewController.swift */
;
};
04B9EE5A2C06CC3100A4018D
/* YHCodeSueecssViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B9EE582C06CC3100A4018D
/* YHCodeSueecssViewController.swift */
;
};
04B9EE5B2C06CC3100A4018D
/* YHOtherLoginViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B9EE592C06CC3100A4018D
/* YHOtherLoginViewController.swift */
;
};
04B9EE5B2C06CC3100A4018D
/* YHOtherLoginViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B9EE592C06CC3100A4018D
/* YHOtherLoginViewController.swift */
;
};
04C693622B723AB8004C1758
/* YHMySettingViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
;
};
04C693622B723AB8004C1758
/* YHMySettingViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
;
};
...
@@ -1002,6 +1004,8 @@
...
@@ -1002,6 +1004,8 @@
04B360EE2C620975001EB053
/* YHPrincipleUploadStatusCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleUploadStatusCell.swift
;
sourceTree
=
"<group>"
;
};
04B360EE2C620975001EB053
/* YHPrincipleUploadStatusCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleUploadStatusCell.swift
;
sourceTree
=
"<group>"
;
};
04B360F02C635A33001EB053
/* YHPrincipleWaitResultModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleWaitResultModel.swift
;
sourceTree
=
"<group>"
;
};
04B360F02C635A33001EB053
/* YHPrincipleWaitResultModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleWaitResultModel.swift
;
sourceTree
=
"<group>"
;
};
04B360F22C636525001EB053
/* YHPrincipleWaitResultViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleWaitResultViewController.swift
;
sourceTree
=
"<group>"
;
};
04B360F22C636525001EB053
/* YHPrincipleWaitResultViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleWaitResultViewController.swift
;
sourceTree
=
"<group>"
;
};
04B360F42C646844001EB053
/* YHPrincipleApprovedMailViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleApprovedMailViewController.swift
;
sourceTree
=
"<group>"
;
};
04B360F62C646B4F001EB053
/* YHPrincipleEnvelopeModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleEnvelopeModel.swift
;
sourceTree
=
"<group>"
;
};
04B9EE582C06CC3100A4018D
/* YHCodeSueecssViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCodeSueecssViewController.swift
;
sourceTree
=
"<group>"
;
};
04B9EE582C06CC3100A4018D
/* YHCodeSueecssViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCodeSueecssViewController.swift
;
sourceTree
=
"<group>"
;
};
04B9EE592C06CC3100A4018D
/* YHOtherLoginViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHOtherLoginViewController.swift
;
sourceTree
=
"<group>"
;
};
04B9EE592C06CC3100A4018D
/* YHOtherLoginViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHOtherLoginViewController.swift
;
sourceTree
=
"<group>"
;
};
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMySettingViewController.swift
;
sourceTree
=
"<group>"
;
};
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMySettingViewController.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -2194,6 +2198,7 @@
...
@@ -2194,6 +2198,7 @@
0472CB9B2C5A11640096F48F
/* YHPrincipleCongratulationVC.swift */
,
0472CB9B2C5A11640096F48F
/* YHPrincipleCongratulationVC.swift */
,
0472CB9C2C5A11640096F48F
/* YHPrincipleReviewListVC.swift */
,
0472CB9C2C5A11640096F48F
/* YHPrincipleReviewListVC.swift */
,
04B360F22C636525001EB053
/* YHPrincipleWaitResultViewController.swift */
,
04B360F22C636525001EB053
/* YHPrincipleWaitResultViewController.swift */
,
04B360F42C646844001EB053
/* YHPrincipleApprovedMailViewController.swift */
,
);
);
path
=
C
;
path
=
C
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -2203,6 +2208,7 @@
...
@@ -2203,6 +2208,7 @@
children
=
(
children
=
(
0472CB9E2C5A11640096F48F
/* YHPrincleGroupModel.swift */
,
0472CB9E2C5A11640096F48F
/* YHPrincleGroupModel.swift */
,
04B360F02C635A33001EB053
/* YHPrincipleWaitResultModel.swift */
,
04B360F02C635A33001EB053
/* YHPrincipleWaitResultModel.swift */
,
04B360F62C646B4F001EB053
/* YHPrincipleEnvelopeModel.swift */
,
);
);
path
=
M
;
path
=
M
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -3739,6 +3745,7 @@
...
@@ -3739,6 +3745,7 @@
045EEE8C2B9F171A0022A143
/* YHPreviewMainViewController.swift in Sources */
,
045EEE8C2B9F171A0022A143
/* YHPreviewMainViewController.swift in Sources */
,
049663BA2BF6105C003C8295
/* YHRefreshHeaderAnimator.swift in Sources */
,
049663BA2BF6105C003C8295
/* YHRefreshHeaderAnimator.swift in Sources */
,
A5C382D12B5FAAB300C5E65C
/* YHContactItemModel.swift in Sources */
,
A5C382D12B5FAAB300C5E65C
/* YHContactItemModel.swift in Sources */
,
04B360F52C646844001EB053
/* YHPrincipleApprovedMailViewController.swift in Sources */
,
04CE1ADE2C2AD91F001CB80A
/* YHActivityTravelCell.swift in Sources */
,
04CE1ADE2C2AD91F001CB80A
/* YHActivityTravelCell.swift in Sources */
,
A5ACE9522B4564F7002C94D2
/* YHServiceCenterMainViewController.swift in Sources */
,
A5ACE9522B4564F7002C94D2
/* YHServiceCenterMainViewController.swift in Sources */
,
045EEF072B9F171A0022A143
/* YHBasicInfoFillViewModel.swift in Sources */
,
045EEF072B9F171A0022A143
/* YHBasicInfoFillViewModel.swift in Sources */
,
...
@@ -3747,6 +3754,7 @@
...
@@ -3747,6 +3754,7 @@
04FB01D42C2404F50040115D
/* YHMyFriendsNoDataView.swift in Sources */
,
04FB01D42C2404F50040115D
/* YHMyFriendsNoDataView.swift in Sources */
,
04D144762C0452E200EE3758
/* YHOneKeyLoginManager.swift in Sources */
,
04D144762C0452E200EE3758
/* YHOneKeyLoginManager.swift in Sources */
,
A5551FFE2B4C26CE00510980
/* YHBaseViewModel.swift in Sources */
,
A5551FFE2B4C26CE00510980
/* YHBaseViewModel.swift in Sources */
,
04B360F72C646B4F001EB053
/* YHPrincipleEnvelopeModel.swift in Sources */
,
048B2A4A2BC7D9DC00A93BF0
/* YHMyLikeViewController.swift in Sources */
,
048B2A4A2BC7D9DC00A93BF0
/* YHMyLikeViewController.swift in Sources */
,
A567E5AE2BD7643D00D5D5A0
/* YHHomeKingKongBlockItem.swift in Sources */
,
A567E5AE2BD7643D00D5D5A0
/* YHHomeKingKongBlockItem.swift in Sources */
,
045EEED92B9F171A0022A143
/* YHEducationDetailVC.swift in Sources */
,
045EEED92B9F171A0022A143
/* YHEducationDetailVC.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/C/YHPrincipleApprovedMailViewController.swift
0 → 100644
View file @
84c4d89b
// YHPrincipleApprovedMailViewController.swift
// galaxy
//
// Created by edy on 2024/8/7.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
SmartCodable
import
AttributedString
// 【原则批已获批 - 所有材料已一键发邮件】
class
YHPrincipleApprovedMailViewController
:
YHBaseViewController
{
var
orderId
:
Int
=
0
var
status
:
Int
=
11
var
items
:
[
SmartCodable
]
=
[]
let
viewModel
=
YHPrincleViewModel
()
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
grouped
)
tableView
.
contentInsetAdjustmentBehavior
=
.
never
tableView
.
estimatedSectionHeaderHeight
=
24.0
tableView
.
estimatedSectionFooterHeight
=
1.0
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
separatorStyle
=
.
none
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
backgroundColor
=
.
clear
tableView
.
register
(
UITableViewCell
.
self
,
forCellReuseIdentifier
:
"UITableViewCell"
)
tableView
.
register
(
YHPrincipleUnapprovedCell
.
self
,
forCellReuseIdentifier
:
YHPrincipleUnapprovedCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHPrincipleEnvelopeCell
.
self
,
forCellReuseIdentifier
:
YHPrincipleEnvelopeCell
.
cellReuseIdentifier
)
return
tableView
}()
lazy
var
bgView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
.
init
(
hex
:
0xF8F8F8
)
let
imgView
=
UIImageView
(
image
:
UIImage
(
named
:
"principle_detail_head_bg"
))
view
.
addSubview
(
imgView
)
imgView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
top
.
equalToSuperview
()
make
.
height
.
equalTo
(
imgView
.
snp
.
width
)
}
return
view
}()
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
self
.
view
.
backgroundColor
=
.
white
self
.
gk_navTitle
=
"原则批"
gk_navigationBar
.
backgroundColor
=
.
clear
createUI
()
requestData
()
}
func
createUI
()
{
view
.
addSubview
(
bgView
)
view
.
addSubview
(
tableView
)
bgView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalToSuperview
()
}
tableView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_NavigationtBarAndStatuBar
)
make
.
left
.
right
.
bottom
.
equalToSuperview
()
}
}
}
extension
YHPrincipleApprovedMailViewController
{
func
requestData
()
{
let
group
=
DispatchGroup
()
group
.
enter
()
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
orderId
,
"search_type"
:
1
]
viewModel
.
getPrincipleWaitReviewResult
(
params
:
params
)
{
success
,
error
in
group
.
leave
()
}
group
.
enter
()
viewModel
.
getEnvelopeInfo
(
orderId
:
orderId
)
{
success
,
error
in
group
.
leave
()
}
group
.
notify
(
queue
:
.
main
)
{
self
.
updateData
()
}
}
func
updateData
()
{
self
.
items
.
removeAll
()
// 已获得港府甄选名额
self
.
items
.
append
(
self
.
viewModel
.
envelopModel
)
let
waitResultModel
=
self
.
viewModel
.
waitResultModel
// 入境处已认收受理
let
model2
=
waitResultModel
.
copy
()
model2
.
type
=
.
entry
model2
.
title
=
"入境处已认收受理"
model2
.
subTitle
=
"申请确认通知书:(来自香港入境处)"
model2
.
isUnfold
=
false
self
.
items
.
append
(
model2
)
// 申请资料已递交港府留档
let
model3
=
waitResultModel
.
copy
()
model3
.
type
=
.
profile
model3
.
title
=
"申请资料已递交港府留档"
model3
.
subTitle
=
"档案号:"
model3
.
isUnfold
=
false
self
.
items
.
append
(
model3
)
self
.
tableView
.
reloadData
()
}
}
extension
YHPrincipleApprovedMailViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
items
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
items
.
count
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHPrincipleUnapprovedCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHPrincipleUnapprovedCell
let
m
=
items
[
indexPath
.
row
]
if
m
is
YHPrincipleWaitResultModel
{
let
model
=
m
as!
YHPrincipleWaitResultModel
if
model
.
type
==
.
profile
||
model
.
type
==
.
entry
{
cell
.
updateModel
(
model
)
cell
.
expandClick
=
{
[
weak
self
]
isUnfold
in
guard
let
self
=
self
else
{
return
}
model
.
isUnfold
=
isUnfold
self
.
tableView
.
reloadData
()
}
}
return
cell
}
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHPrincipleEnvelopeCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHPrincipleEnvelopeCell
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
items
.
count
{
let
m
=
items
[
indexPath
.
row
]
if
m
is
YHPrincipleEnvelopeModel
{
let
model
=
m
as!
YHPrincipleEnvelopeModel
cell
.
updateModel
(
model
)
cell
.
expandClick
=
{
[
weak
self
]
isUnfold
in
guard
let
self
=
self
else
{
return
}
model
.
isUnfold
=
isUnfold
self
.
tableView
.
reloadData
()
}
}
}
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
UITableView
.
automaticDimension
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
items
.
count
{
}
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
CGFloat
{
return
UITableView
.
automaticDimension
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
CGFloat
{
return
0.01
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
return
self
.
getApproveHeaderView
()
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
return
UIView
()
}
}
extension
YHPrincipleApprovedMailViewController
{
func
getApproveHeaderView
()
->
UIView
{
let
view
=
UIView
()
let
titleLabel
=
UILabel
()
titleLabel
.
numberOfLines
=
0
let
title
:
ASAttributedString
=
.
init
(
"祝贺您,
\(
self
.
viewModel
.
waitResultModel
.
applicant
.
userName
)
先生!"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
24
)),
.
foreground
(
UIColor
.
mainTextColor
))
titleLabel
.
attributed
.
text
=
title
view
.
addSubview
(
titleLabel
)
let
detailLabel
=
UILabel
()
detailLabel
.
numberOfLines
=
0
let
str1
:
ASAttributedString
=
.
init
(
"您【与家人】申请的【优秀人才入境计划】,"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
(
alpha
:
0.7
)))
let
str2
:
ASAttributedString
=
.
init
(
"已获得港府的甄选名额~"
,
.
font
(
UIFont
.
PFSC_B
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
brandMainColor
))
detailLabel
.
attributed
.
text
=
str1
+
str2
view
.
addSubview
(
detailLabel
)
let
imgView
=
UIImageView
(
image
:
UIImage
(
named
:
"principle_approved_mail"
))
view
.
addSubview
(
imgView
)
let
tipsLabel
=
UILabel
()
tipsLabel
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
16
)
tipsLabel
.
textColor
=
.
mainTextColor
tipsLabel
.
text
=
"补充资料已邮件港府"
tipsLabel
.
textAlignment
=
.
center
view
.
addSubview
(
tipsLabel
)
let
tips2Label
=
UILabel
()
tips2Label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
tips2Label
.
textColor
=
.
mainTextColor
(
alpha
:
0.5
)
tips2Label
.
text
=
"请耐心等待港府审核噢~"
tips2Label
.
textAlignment
=
.
center
view
.
addSubview
(
tips2Label
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
12
)
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
height
.
equalTo
(
34
)
}
detailLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
12
)
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
}
imgView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
detailLabel
.
snp
.
bottom
)
.
offset
(
36
)
make
.
width
.
height
.
equalTo
(
128
)
make
.
centerX
.
equalToSuperview
()
}
tipsLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
imgView
.
snp
.
bottom
)
.
offset
(
6
)
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
height
.
equalTo
(
24
)
}
tips2Label
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
tipsLabel
.
snp
.
bottom
)
.
offset
(
9
)
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
height
.
equalTo
(
18
)
make
.
bottom
.
equalTo
(
-
60
)
}
return
view
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/C/YHPrincipleWaitResultViewController.swift
View file @
84c4d89b
...
@@ -91,7 +91,7 @@ extension YHPrincipleWaitResultViewController {
...
@@ -91,7 +91,7 @@ extension YHPrincipleWaitResultViewController {
model2
.
isUnfold
=
false
model2
.
isUnfold
=
false
self
.
items
.
append
(
model2
)
self
.
items
.
append
(
model2
)
//
入境处已认收受理
//
申请资料已递交港府留档
let
model3
=
waitResultModel
.
copy
()
let
model3
=
waitResultModel
.
copy
()
model3
.
type
=
.
profile
model3
.
type
=
.
profile
model3
.
title
=
"申请资料已递交港府留档"
model3
.
title
=
"申请资料已递交港府留档"
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/M/YHPrincipleEnvelopeModel.swift
0 → 100644
View file @
84c4d89b
//
// YHPrincipleEnvelopeModel.swift
// galaxy
//
// Created by edy on 2024/8/8.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
SmartCodable
class
YHPrincipleEnvelopeModel
:
SmartCodable
{
// 自定义属性
var
isUnfold
:
Bool
=
false
// 是否展开
var
name
:
String
=
""
var
url
:
String
=
""
var
date
:
String
=
""
var
sex
:
Int
=
0
required
init
()
{
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/V/YHPrincipleEnvelopeCell.swift
View file @
84c4d89b
...
@@ -11,15 +11,14 @@ import UIKit
...
@@ -11,15 +11,14 @@ import UIKit
class
YHPrincipleEnvelopeCell
:
UITableViewCell
{
class
YHPrincipleEnvelopeCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHPrincipleEnvelopeCell"
static
let
cellReuseIdentifier
=
"YHPrincipleEnvelopeCell"
var
itemModel
:
YHPrincleGroupModel
?
var
itemModel
:
YHPrincipleEnvelopeModel
?
var
items
:
[
String
]
=
[]
var
expandClick
:((
Bool
)
->
())?
var
expandClick
:((
Bool
)
->
())?
lazy
var
titleLabel
:
UILabel
=
{
lazy
var
titleLabel
:
UILabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
15
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
15
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textColor
=
UIColor
.
mainTextColor
label
.
text
=
"
申请资料已递交港府留档
"
label
.
text
=
"
已获得港府甄选名额
"
return
label
return
label
}()
}()
...
@@ -59,7 +58,6 @@ class YHPrincipleEnvelopeCell: UITableViewCell {
...
@@ -59,7 +58,6 @@ class YHPrincipleEnvelopeCell: UITableViewCell {
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
18
)
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
18
)
label
.
textColor
=
UIColor
(
hex
:
0xB75E24
)
label
.
textColor
=
UIColor
(
hex
:
0xB75E24
)
label
.
text
=
"XXXX"
return
label
return
label
}()
}()
...
@@ -74,20 +72,18 @@ class YHPrincipleEnvelopeCell: UITableViewCell {
...
@@ -74,20 +72,18 @@ class YHPrincipleEnvelopeCell: UITableViewCell {
@objc
func
didExpandBtnClicked
()
{
@objc
func
didExpandBtnClicked
()
{
guard
let
model
=
itemModel
else
{
return
}
guard
let
model
=
itemModel
else
{
return
}
expandClick
?(
!
model
.
is
Expan
d
)
expandClick
?(
!
model
.
is
Unfol
d
)
}
}
func
updateModel
(
_
model
:
YHPrinc
leGroup
Model
)
{
func
updateModel
(
_
model
:
YHPrinc
ipleEnvelope
Model
)
{
itemModel
=
model
itemModel
=
model
items
.
removeAll
()
whiteView
.
isHidden
=
!
model
.
isUnfold
items
.
append
(
contentsOf
:
model
.
fileList
)
let
imgName
=
model
.
isUnfold
?
"custom_service_expand_1"
:
"custom_service_expand_0"
whiteView
.
isHidden
=
!
model
.
isExpand
let
imgName
=
model
.
isExpand
?
"custom_service_expand_1"
:
"custom_service_expand_0"
expandBtn
.
setImage
(
UIImage
(
named
:
imgName
),
for
:
.
normal
)
expandBtn
.
setImage
(
UIImage
(
named
:
imgName
),
for
:
.
normal
)
expandBtn
.
isHidden
=
items
.
count
<=
0
nameLabel
.
text
=
model
.
name
if
!
model
.
is
Expand
||
items
.
count
<=
0
{
if
!
model
.
is
Unfold
{
whiteView
.
removeSubviews
()
whiteView
.
removeSubviews
()
whiteView
.
snp
.
remakeConstraints
{
make
in
whiteView
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
0.0
)
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
0.0
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/VM/YHPrincleViewModel.swift
View file @
84c4d89b
...
@@ -11,6 +11,7 @@ import UIKit
...
@@ -11,6 +11,7 @@ import UIKit
class
YHPrincleViewModel
:
NSObject
{
class
YHPrincleViewModel
:
NSObject
{
var
waitResultModel
=
YHPrincipleWaitResultModel
()
var
waitResultModel
=
YHPrincipleWaitResultModel
()
var
envelopModel
=
YHPrincipleEnvelopeModel
()
func
getPrincipleWaitReviewResult
(
params
:[
String
:
Any
],
callback
:((
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())?)
{
func
getPrincipleWaitReviewResult
(
params
:[
String
:
Any
],
callback
:((
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())?)
{
...
@@ -46,6 +47,46 @@ class YHPrincleViewModel: NSObject {
...
@@ -46,6 +47,46 @@ class YHPrincleViewModel: NSObject {
}
}
}
}
func
getEnvelopeInfo
(
orderId
:
Int
,
callback
:((
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())?)
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Principle
.
getReviewResult
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
orderId
]
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
printLog
(
"model 是 ==>
\(
json
)
"
)
if
json
.
code
==
200
{
let
dic
=
json
.
data
guard
let
resultModel
=
YHPrincipleEnvelopeModel
.
deserialize
(
dict
:
dic
as?
[
AnyHashable
:
Any
])
else
{
let
err
=
YHErrorModel
(
errorCode
:
YHErrorCode
.
dictParseError
.
rawValue
,
errorMsg
:
YHErrorCode
.
dictParseError
.
description
())
self
.
envelopModel
=
self
.
getEnvelopModel
()
callback
?(
false
,
err
)
return
}
self
.
envelopModel
=
resultModel
self
.
envelopModel
=
self
.
getEnvelopModel
()
callback
?(
true
,
nil
)
}
else
{
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
callback
?(
false
,
err
)
}
}
failBlock
:
{
err
in
callback
?(
false
,
err
)
}
}
func
getEnvelopModel
()
->
YHPrincipleEnvelopeModel
{
let
model
=
YHPrincipleEnvelopeModel
()
model
.
name
=
"黄金龙"
model
.
sex
=
1
model
.
date
=
"2024-12-12"
return
model
}
func
getTestModel
()
->
YHPrincipleWaitResultModel
{
func
getTestModel
()
->
YHPrincipleWaitResultModel
{
var
files
:
[
YHFileNumberList
]
=
[]
var
files
:
[
YHFileNumberList
]
=
[]
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
84c4d89b
...
@@ -343,8 +343,8 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
...
@@ -343,8 +343,8 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
if
true
{
if
true
{
// YHPrincipleCongratulationAlertView.alertView().show()
// YHPrincipleCongratulationAlertView.alertView().show()
// YHPrincipleWaitResultViewController
let
vc
=
YHPrinciple
WaitResult
ViewController
()
let
vc
=
YHPrinciple
ApprovedMail
ViewController
()
vc
.
orderId
=
123456
vc
.
orderId
=
123456
self
.
navigationController
?
.
pushViewController
(
vc
)
self
.
navigationController
?
.
pushViewController
(
vc
)
return
return
...
...
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/客服段/原则批/principle_approved_mail.imageset/Contents.json
0 → 100644
View file @
84c4d89b
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"Group 2033194701@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"Group 2033194701@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/客服段/原则批/principle_approved_mail.imageset/Group 2033194701@2x.png
0 → 100644
View file @
84c4d89b
12.1 KB
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/客服段/原则批/principle_approved_mail.imageset/Group 2033194701@3x.png
0 → 100644
View file @
84c4d89b
22.5 KB
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