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
b2f6acac
Commit
b2f6acac
authored
Aug 07, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 原则批
parent
dc44ac71
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
117 additions
and
40 deletions
+117
-40
YHPrincipleCongratulationVC.swift
...)/PrincipleBatch(原则批)/C/YHPrincipleCongratulationVC.swift
+4
-4
YHPrincipleWaitResultViewController.swift
...pleBatch(原则批)/C/YHPrincipleWaitResultViewController.swift
+109
-35
YHPrincipleEnvelopeCell.swift
...(客服段)/PrincipleBatch(原则批)/V/YHPrincipleEnvelopeCell.swift
+1
-0
YHPrinciplePhotoListCell.swift
...客服段)/PrincipleBatch(原则批)/V/YHPrinciplePhotoListCell.swift
+1
-0
YHPrincipleUnapprovedCell.swift
...服段)/PrincipleBatch(原则批)/V/YHPrincipleUnapprovedCell.swift
+1
-0
YHPrincleViewModel.swift
...vice(客服段)/PrincipleBatch(原则批)/VM/YHPrincleViewModel.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/C/YHPrincipleCongratulationVC.swift
View file @
b2f6acac
...
@@ -11,7 +11,7 @@ import AttributedString
...
@@ -11,7 +11,7 @@ import AttributedString
class
YHPrincipleCongratulationVC
:
YHBaseViewController
{
class
YHPrincipleCongratulationVC
:
YHBaseViewController
{
lazy
var
congratulation
Label
:
UILabel
=
{
lazy
var
title
Label
:
UILabel
=
{
var
label
=
UILabel
()
var
label
=
UILabel
()
label
.
numberOfLines
=
0
label
.
numberOfLines
=
0
let
a
:
ASAttributedString
=
.
init
(
"祝贺您"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
24
)),
.
foreground
(
UIColor
.
init
(
hex
:
0xF07300
)))
let
a
:
ASAttributedString
=
.
init
(
"祝贺您"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
24
)),
.
foreground
(
UIColor
.
init
(
hex
:
0xF07300
)))
...
@@ -33,9 +33,9 @@ class YHPrincipleCongratulationVC: YHBaseViewController {
...
@@ -33,9 +33,9 @@ class YHPrincipleCongratulationVC: YHBaseViewController {
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
gk_navTitle
=
"原则批"
gk_navTitle
=
"原则批"
view
.
addSubview
(
congratulation
Label
)
view
.
addSubview
(
title
Label
)
view
.
addSubview
(
detailLabel
)
view
.
addSubview
(
detailLabel
)
congratulation
Label
.
snp
.
makeConstraints
{
make
in
title
Label
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
k_Height_NavigationtBarAndStatuBar
+
24
)
make
.
top
.
equalTo
(
k_Height_NavigationtBarAndStatuBar
+
24
)
make
.
left
.
equalTo
(
24
)
make
.
left
.
equalTo
(
24
)
make
.
right
.
equalTo
(
-
24
)
make
.
right
.
equalTo
(
-
24
)
...
@@ -43,7 +43,7 @@ class YHPrincipleCongratulationVC: YHBaseViewController {
...
@@ -43,7 +43,7 @@ class YHPrincipleCongratulationVC: YHBaseViewController {
}
}
detailLabel
.
snp
.
makeConstraints
{
make
in
detailLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
congratulation
Label
.
snp
.
bottom
)
.
offset
(
12
)
make
.
top
.
equalTo
(
title
Label
.
snp
.
bottom
)
.
offset
(
12
)
make
.
left
.
equalTo
(
24
)
make
.
left
.
equalTo
(
24
)
make
.
right
.
equalTo
(
-
24
)
make
.
right
.
equalTo
(
-
24
)
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/C/YHPrincipleWaitResultViewController.swift
View file @
b2f6acac
...
@@ -7,11 +7,12 @@
...
@@ -7,11 +7,12 @@
//
//
import
UIKit
import
UIKit
import
AttributedString
class
YHPrincipleWaitResultViewController
:
YHBaseViewController
{
class
YHPrincipleWaitResultViewController
:
YHBaseViewController
{
var
orderId
:
Int
=
0
var
orderId
:
Int
=
0
var
status
:
Int
=
0
var
status
:
Int
=
11
var
items
:
[
YHPrincipleWaitResultModel
]
=
[]
var
items
:
[
YHPrincipleWaitResultModel
]
=
[]
let
viewModel
=
YHPrincleViewModel
()
let
viewModel
=
YHPrincleViewModel
()
lazy
var
tableView
:
UITableView
=
{
lazy
var
tableView
:
UITableView
=
{
...
@@ -71,37 +72,34 @@ extension YHPrincipleWaitResultViewController {
...
@@ -71,37 +72,34 @@ extension YHPrincipleWaitResultViewController {
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
orderId
,
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
orderId
,
"search_type"
:
1
]
"search_type"
:
1
]
viewModel
.
getPrincipleWaitReviewResult
(
params
:
params
)
{
success
,
error
in
viewModel
.
getPrincipleWaitReviewResult
(
params
:
params
)
{
success
,
error
in
if
let
waitResultModel
=
self
.
viewModel
.
waitResultModel
{
self
.
items
.
removeAll
()
let
waitResultModel
=
self
.
viewModel
.
waitResultModel
self
.
items
.
removeAll
()
if
waitResultModel
.
resultImageList
.
count
>
0
{
// 实时入境处身份申请进度
if
waitResultModel
.
resultImageList
.
count
>
0
{
let
model1
=
waitResultModel
.
copy
()
// 实时入境处身份申请进度
model1
.
type
=
.
photo
let
model1
=
waitResultModel
.
copy
()
model1
.
title
=
"实时入境处身份申请进度"
model1
.
type
=
.
photo
model1
.
isUnfold
=
true
model1
.
title
=
"实时入境处身份申请进度"
self
.
items
.
append
(
model1
)
model1
.
isUnfold
=
true
self
.
items
.
append
(
model1
)
}
// 入境处已认收受理
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
()
}
}
// 入境处已认收受理
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
()
}
}
}
}
}
}
...
@@ -165,11 +163,60 @@ extension YHPrincipleWaitResultViewController: UITableViewDelegate, UITableViewD
...
@@ -165,11 +163,60 @@ extension YHPrincipleWaitResultViewController: UITableViewDelegate, UITableViewD
}
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
CGFloat
{
private
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
CGFloat
{
return
24.0
return
UITableView
.
automaticDimension
}
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
CGFloat
{
private
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
CGFloat
{
return
1.0
return
0.01
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
()
var
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
tipsLabel
=
UILabel
()
tipsLabel
.
numberOfLines
=
0
tipsLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
tipsLabel
.
textColor
=
.
mainTextColor
(
alpha
:
0.7
)
tipsLabel
.
text
=
"您的【优秀人才入境计划】赴港居留申请资料已经递交港府。"
view
.
addSubview
(
tipsLabel
)
let
detailLabel
=
UILabel
()
detailLabel
.
numberOfLines
=
0
detailLabel
.
attributed
.
text
=
self
.
getDescOfStatus
(
self
.
status
)
view
.
addSubview
(
detailLabel
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
12
)
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
height
.
equalTo
(
34
)
}
tipsLabel
.
snp
.
makeConstraints
{
make
in
// 待补件
let
isWaitSupply
=
self
.
status
==
12
let
topMargin
=
isWaitSupply
?
12.0
:
0.0
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
topMargin
)
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
if
!
isWaitSupply
{
make
.
height
.
equalTo
(
0
)
}
}
detailLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
tipsLabel
.
snp
.
bottom
)
.
offset
(
12
)
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
bottom
.
equalTo
(
-
36
)
}
return
view
}
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
...
@@ -177,9 +224,36 @@ extension YHPrincipleWaitResultViewController: UITableViewDelegate, UITableViewD
...
@@ -177,9 +224,36 @@ extension YHPrincipleWaitResultViewController: UITableViewDelegate, UITableViewD
return
UIView
()
return
UIView
()
}
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
func
getDescOfStatus
(
_
status
:
Int
)
->
ASAttributedString
{
return
UIView
()
// 11 等待原则批结果
// 12 正在进行原则批补件
// 13 原则批已获批
// 14 未获批准~
if
status
==
11
{
// 等待原则批结果
let
str1
:
ASAttributedString
=
.
init
(
"您的【优秀人才入境计划】赴港居留申请资料已经递交港府,且入境事务处已经认收受理!港府审核周期预计在12个月内,"
,
.
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
))
var
str3
:
ASAttributedString
=
.
init
(
",请您耐心等待!"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
(
alpha
:
0.7
)))
if
self
.
viewModel
.
waitResultModel
.
resultImageList
.
count
>
0
{
str3
=
.
init
(
",详见下方截图:"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
(
alpha
:
0.7
)))
}
return
str1
+
str2
+
str3
}
else
if
status
==
12
{
// 待补件
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
))
return
str1
+
str2
}
else
if
status
==
14
{
// 未获批准~
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
))
var
str3
:
ASAttributedString
=
.
init
(
"。具体详情以及后续处理方式,请您联系专属服务您的生活管家进行详细沟通"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
(
alpha
:
0.7
)))
return
str1
+
str2
+
str3
}
let
defaultStr
:
ASAttributedString
=
.
init
(
""
)
return
defaultStr
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/V/YHPrincipleEnvelopeCell.swift
View file @
b2f6acac
...
@@ -40,6 +40,7 @@ class YHPrincipleEnvelopeCell: UITableViewCell {
...
@@ -40,6 +40,7 @@ class YHPrincipleEnvelopeCell: UITableViewCell {
let
btn
=
UIButton
()
let
btn
=
UIButton
()
btn
.
setImage
(
UIImage
(
named
:
"custom_service_expand_0"
),
for
:
.
normal
)
btn
.
setImage
(
UIImage
(
named
:
"custom_service_expand_0"
),
for
:
.
normal
)
btn
.
addTarget
(
self
,
action
:
#selector(
didExpandBtnClicked
)
,
for
:
.
touchUpInside
)
btn
.
addTarget
(
self
,
action
:
#selector(
didExpandBtnClicked
)
,
for
:
.
touchUpInside
)
btn
.
YH_clickEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
40
,
bottom
:
20
,
right
:
40
)
return
btn
return
btn
}()
}()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/V/YHPrinciplePhotoListCell.swift
View file @
b2f6acac
...
@@ -40,6 +40,7 @@ class YHPrinciplePhotoListCell: UITableViewCell {
...
@@ -40,6 +40,7 @@ class YHPrinciplePhotoListCell: UITableViewCell {
let
btn
=
UIButton
()
let
btn
=
UIButton
()
btn
.
setImage
(
UIImage
(
named
:
"custom_service_expand_0"
),
for
:
.
normal
)
btn
.
setImage
(
UIImage
(
named
:
"custom_service_expand_0"
),
for
:
.
normal
)
btn
.
addTarget
(
self
,
action
:
#selector(
didExpandBtnClicked
)
,
for
:
.
touchUpInside
)
btn
.
addTarget
(
self
,
action
:
#selector(
didExpandBtnClicked
)
,
for
:
.
touchUpInside
)
btn
.
YH_clickEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
40
,
bottom
:
20
,
right
:
40
)
return
btn
return
btn
}()
}()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/V/YHPrincipleUnapprovedCell.swift
View file @
b2f6acac
...
@@ -126,6 +126,7 @@ class YHPrincipleUnapprovedCell: UITableViewCell {
...
@@ -126,6 +126,7 @@ class YHPrincipleUnapprovedCell: UITableViewCell {
let
btn
=
UIButton
()
let
btn
=
UIButton
()
btn
.
setImage
(
UIImage
(
named
:
"custom_service_expand_0"
),
for
:
.
normal
)
btn
.
setImage
(
UIImage
(
named
:
"custom_service_expand_0"
),
for
:
.
normal
)
btn
.
addTarget
(
self
,
action
:
#selector(
didExpandBtnClicked
)
,
for
:
.
touchUpInside
)
btn
.
addTarget
(
self
,
action
:
#selector(
didExpandBtnClicked
)
,
for
:
.
touchUpInside
)
btn
.
YH_clickEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
40
,
bottom
:
20
,
right
:
40
)
return
btn
return
btn
}()
}()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/VM/YHPrincleViewModel.swift
View file @
b2f6acac
...
@@ -10,7 +10,7 @@ import UIKit
...
@@ -10,7 +10,7 @@ import UIKit
class
YHPrincleViewModel
:
NSObject
{
class
YHPrincleViewModel
:
NSObject
{
var
waitResultModel
:
YHPrincipleWaitResultModel
?
var
waitResultModel
=
YHPrincipleWaitResultModel
()
func
getPrincipleWaitReviewResult
(
params
:[
String
:
Any
],
callback
:((
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())?)
{
func
getPrincipleWaitReviewResult
(
params
:[
String
:
Any
],
callback
:((
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())?)
{
...
...
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