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
7bbe2bcb
Commit
7bbe2bcb
authored
Mar 11, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 缴费
parent
cfec4509
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
99 additions
and
2 deletions
+99
-2
YHResignAppointScheduleListViewController.swift
...在港递交预约)/C/YHResignAppointScheduleListViewController.swift
+13
-0
YHResignAppointGroup.swift
...(续签)/ResignHKAppoint(在港递交预约)/M/YHResignAppointGroup.swift
+7
-0
YHResignAppointedScheduleSingleItemView.swift
...t(在港递交预约)/V/YHResignAppointedScheduleSingleItemView.swift
+38
-1
YHResignScheduleMultipleInfoCell.swift
...KAppoint(在港递交预约)/V/YHResignScheduleMultipleInfoCell.swift
+35
-1
YHResignScheduleSingleInfoCell.swift
...nHKAppoint(在港递交预约)/V/YHResignScheduleSingleInfoCell.swift
+6
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/Resign(续签)/ResignHKAppoint(在港递交预约)/C/YHResignAppointScheduleListViewController.swift
View file @
7bbe2bcb
...
@@ -432,6 +432,12 @@ extension YHResignAppointScheduleListViewController: UITableViewDelegate, UITabl
...
@@ -432,6 +432,12 @@ extension YHResignAppointScheduleListViewController: UITableViewDelegate, UITabl
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
clickConfirmHKButton
(
status
:
status
,
model
)
self
.
clickConfirmHKButton
(
status
:
status
,
model
)
}
}
cell
.
applyPaymentBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
let
vc
=
YHHKVisaRenewalApplicationVC
(
id
:
model
.
id
,
isEdit
:
model
.
is_edit
)
self
.
navigationController
?
.
pushViewController
(
vc
)
}
cell
.
modifyBtn
.
isHidden
=
self
.
isHiddenModifyBtn
cell
.
modifyBtn
.
isHidden
=
self
.
isHiddenModifyBtn
// 点击修改按钮
// 点击修改按钮
cell
.
modifyBtnBlock
=
{
cell
.
modifyBtnBlock
=
{
...
@@ -451,6 +457,13 @@ extension YHResignAppointScheduleListViewController: UITableViewDelegate, UITabl
...
@@ -451,6 +457,13 @@ extension YHResignAppointScheduleListViewController: UITableViewDelegate, UITabl
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
clickConfirmHKButton
(
status
:
status
,
model
)
self
.
clickConfirmHKButton
(
status
:
status
,
model
)
}
}
cell2
.
applyPaymentBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
let
vc
=
YHHKVisaRenewalApplicationVC
(
id
:
model
.
id
,
isEdit
:
model
.
is_edit
)
self
.
navigationController
?
.
pushViewController
(
vc
)
}
let
isShowCorner
=
(
indexPath
.
row
==
scheduleArr
.
count
-
1
)
let
isShowCorner
=
(
indexPath
.
row
==
scheduleArr
.
count
-
1
)
cell2
.
showBottomCorner
(
isShowCorner
)
cell2
.
showBottomCorner
(
isShowCorner
)
return
cell2
return
cell2
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/Resign(续签)/ResignHKAppoint(在港递交预约)/M/YHResignAppointGroup.swift
View file @
7bbe2bcb
...
@@ -40,6 +40,11 @@ class YHResignAppointGroup: SmartCodable {
...
@@ -40,6 +40,11 @@ class YHResignAppointGroup: SmartCodable {
var
is_edit
:
Int
=
0
var
is_edit
:
Int
=
0
// 自定义 第几批
// 自定义 第几批
var
batchIndex
:
Int
=
0
var
batchIndex
:
Int
=
0
var
apply_payment
:
Int
=
0
// 0不需要缴费,1需要缴费
func
isNeedPayment
()
->
Bool
{
return
apply_payment
==
1
}
func
getSubmitHKTime
()
->
String
{
func
getSubmitHKTime
()
->
String
{
let
format
=
"yyyy-MM-dd HH:mm"
let
format
=
"yyyy-MM-dd HH:mm"
...
@@ -59,6 +64,8 @@ class YHResignAppointGroup: SmartCodable {
...
@@ -59,6 +64,8 @@ class YHResignAppointGroup: SmartCodable {
func
getConfirmInHKStatus
()
->
YHResignConfirmHKStatus
{
func
getConfirmInHKStatus
()
->
YHResignConfirmHKStatus
{
// test return .haveConfirmHK
let
dateFormatter
=
DateFormatter
()
let
dateFormatter
=
DateFormatter
()
dateFormatter
.
dateFormat
=
"yyyy-MM-dd HH:mm"
dateFormatter
.
dateFormat
=
"yyyy-MM-dd HH:mm"
let
nowDateString
=
dateFormatter
.
string
(
from
:
Date
())
let
nowDateString
=
dateFormatter
.
string
(
from
:
Date
())
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResignAppointedScheduleSingleItemView.swift
View file @
7bbe2bcb
...
@@ -11,7 +11,8 @@ import UIKit
...
@@ -11,7 +11,8 @@ import UIKit
class
YHResignAppointedScheduleSingleItemView
:
UIView
{
class
YHResignAppointedScheduleSingleItemView
:
UIView
{
var
clickConfirmBtnBlock
:
((
YHResignConfirmHKStatus
)
->
())?
var
clickConfirmBtnBlock
:
((
YHResignConfirmHKStatus
)
->
())?
var
applyPaymentBlock
:
(()
->
())?
var
confirmHKStatus
:
YHResignConfirmHKStatus
=
.
waitConfirmHK
var
confirmHKStatus
:
YHResignConfirmHKStatus
=
.
waitConfirmHK
lazy
var
lineView
:
UIView
=
{
lazy
var
lineView
:
UIView
=
{
...
@@ -50,6 +51,17 @@ class YHResignAppointedScheduleSingleItemView: UIView {
...
@@ -50,6 +51,17 @@ class YHResignAppointedScheduleSingleItemView: UIView {
return
btn
return
btn
}()
}()
lazy
var
applyFeeBtn
:
UIButton
=
{
let
btn
=
UIButton
()
btn
.
layer
.
cornerRadius
=
2.0
btn
.
backgroundColor
=
.
brandMainColor
btn
.
setTitleColor
(
.
white
,
for
:
.
normal
)
btn
.
setTitle
(
"申请缴费"
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
.
PFSC_M
(
ofSize
:
11
)
btn
.
addTarget
(
self
,
action
:
#selector(
didApplyFeeBtnClicked
)
,
for
:
.
touchUpInside
)
return
btn
}()
lazy
var
submitTimeLabel
:
UILabel
=
{
lazy
var
submitTimeLabel
:
UILabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
numberOfLines
=
0
label
.
numberOfLines
=
0
...
@@ -86,6 +98,10 @@ class YHResignAppointedScheduleSingleItemView: UIView {
...
@@ -86,6 +98,10 @@ class YHResignAppointedScheduleSingleItemView: UIView {
clickConfirmBtnBlock
?(
self
.
confirmHKStatus
)
clickConfirmBtnBlock
?(
self
.
confirmHKStatus
)
}
}
@objc
func
didApplyFeeBtnClicked
()
{
applyPaymentBlock
?()
}
func
updateModel
(
_
model
:
YHResignAppointGroup
)
{
func
updateModel
(
_
model
:
YHResignAppointGroup
)
{
var
names
=
"申请人:"
var
names
=
"申请人:"
for
(
index
,
user
)
in
model
.
user_list
.
enumerated
()
{
for
(
index
,
user
)
in
model
.
user_list
.
enumerated
()
{
...
@@ -110,6 +126,8 @@ class YHResignAppointedScheduleSingleItemView: UIView {
...
@@ -110,6 +126,8 @@ class YHResignAppointedScheduleSingleItemView: UIView {
statusWidth
=
68.0
statusWidth
=
68.0
}
else
if
self
.
confirmHKStatus
==
.
haveConfirmHK
{
}
else
if
self
.
confirmHKStatus
==
.
haveConfirmHK
{
statusWidth
=
65.0
statusWidth
=
65.0
let
applyWidth
=
model
.
isNeedPayment
()
?
68.0
:
0.0
statusWidth
+=
applyWidth
}
}
applicantNamesLabel
.
snp
.
updateConstraints
{
make
in
applicantNamesLabel
.
snp
.
updateConstraints
{
make
in
make
.
right
.
equalTo
(
-
18
-
statusWidth
-
18
)
make
.
right
.
equalTo
(
-
18
-
statusWidth
-
18
)
...
@@ -135,6 +153,17 @@ class YHResignAppointedScheduleSingleItemView: UIView {
...
@@ -135,6 +153,17 @@ class YHResignAppointedScheduleSingleItemView: UIView {
confirmHKTimeLabel
.
isHidden
=
true
confirmHKTimeLabel
.
isHidden
=
true
confirmHKTimeLabel
.
snp
.
removeConstraints
()
confirmHKTimeLabel
.
snp
.
removeConstraints
()
applyFeeBtn
.
isHidden
=
!
model
.
isNeedPayment
()
haveConfirmInHKLabel
.
snp
.
remakeConstraints
{
make
in
if
model
.
isNeedPayment
()
{
make
.
right
.
equalTo
(
applyFeeBtn
.
snp
.
left
)
.
offset
(
-
8
)
}
else
{
make
.
right
.
equalTo
(
-
18
)
}
make
.
top
.
equalTo
(
lineView
.
snp
.
bottom
)
.
offset
(
18
)
make
.
height
.
equalTo
(
18
)
}
if
self
.
confirmHKStatus
==
.
haveConfirmHK
{
// 已确认在港 需要显示确认在港时间
if
self
.
confirmHKStatus
==
.
haveConfirmHK
{
// 已确认在港 需要显示确认在港时间
confirmHKTimeLabel
.
isHidden
=
false
confirmHKTimeLabel
.
isHidden
=
false
...
@@ -172,6 +201,7 @@ class YHResignAppointedScheduleSingleItemView: UIView {
...
@@ -172,6 +201,7 @@ class YHResignAppointedScheduleSingleItemView: UIView {
self
.
addSubview
(
lineView
)
self
.
addSubview
(
lineView
)
self
.
addSubview
(
applicantNamesLabel
)
self
.
addSubview
(
applicantNamesLabel
)
self
.
addSubview
(
confirmInHKBtn
)
self
.
addSubview
(
confirmInHKBtn
)
self
.
addSubview
(
applyFeeBtn
)
self
.
addSubview
(
haveConfirmInHKLabel
)
self
.
addSubview
(
haveConfirmInHKLabel
)
self
.
addSubview
(
submitTimeLabel
)
self
.
addSubview
(
submitTimeLabel
)
self
.
addSubview
(
confirmHKTimeLabel
)
self
.
addSubview
(
confirmHKTimeLabel
)
...
@@ -195,6 +225,13 @@ class YHResignAppointedScheduleSingleItemView: UIView {
...
@@ -195,6 +225,13 @@ class YHResignAppointedScheduleSingleItemView: UIView {
make
.
top
.
equalTo
(
lineView
.
snp
.
bottom
)
.
offset
(
18
)
make
.
top
.
equalTo
(
lineView
.
snp
.
bottom
)
.
offset
(
18
)
}
}
applyFeeBtn
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
18
)
make
.
width
.
equalTo
(
68
)
make
.
height
.
equalTo
(
28
)
make
.
centerY
.
equalTo
(
haveConfirmInHKLabel
)
}
haveConfirmInHKLabel
.
snp
.
makeConstraints
{
make
in
haveConfirmInHKLabel
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
top
.
equalTo
(
lineView
.
snp
.
bottom
)
.
offset
(
18
)
make
.
top
.
equalTo
(
lineView
.
snp
.
bottom
)
.
offset
(
18
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResignScheduleMultipleInfoCell.swift
View file @
7bbe2bcb
...
@@ -14,6 +14,7 @@ class YHResignScheduleMultipleInfoCell: UITableViewCell {
...
@@ -14,6 +14,7 @@ class YHResignScheduleMultipleInfoCell: UITableViewCell {
var
confirmHKStatus
:
YHResignConfirmHKStatus
=
.
waitConfirmHK
var
confirmHKStatus
:
YHResignConfirmHKStatus
=
.
waitConfirmHK
var
clickConfirmBtnBlock
:
((
YHResignConfirmHKStatus
)
->
())?
var
clickConfirmBtnBlock
:
((
YHResignConfirmHKStatus
)
->
())?
var
applyPaymentBlock
:
(()
->
())?
lazy
var
whiteCornerView
:
UIView
=
{
lazy
var
whiteCornerView
:
UIView
=
{
let
view
=
UIView
()
let
view
=
UIView
()
...
@@ -62,6 +63,17 @@ class YHResignScheduleMultipleInfoCell: UITableViewCell {
...
@@ -62,6 +63,17 @@ class YHResignScheduleMultipleInfoCell: UITableViewCell {
return
btn
return
btn
}()
}()
lazy
var
applyFeeBtn
:
UIButton
=
{
let
btn
=
UIButton
()
btn
.
layer
.
cornerRadius
=
2.0
btn
.
backgroundColor
=
.
brandMainColor
btn
.
setTitleColor
(
.
white
,
for
:
.
normal
)
btn
.
setTitle
(
"申请缴费"
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
.
PFSC_M
(
ofSize
:
11
)
btn
.
addTarget
(
self
,
action
:
#selector(
didApplyFeeBtnClicked
)
,
for
:
.
touchUpInside
)
return
btn
}()
lazy
var
applicantNamesLabel
:
UILabel
=
{
lazy
var
applicantNamesLabel
:
UILabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
...
@@ -105,6 +117,10 @@ class YHResignScheduleMultipleInfoCell: UITableViewCell {
...
@@ -105,6 +117,10 @@ class YHResignScheduleMultipleInfoCell: UITableViewCell {
clickConfirmBtnBlock
?(
self
.
confirmHKStatus
)
clickConfirmBtnBlock
?(
self
.
confirmHKStatus
)
}
}
@objc
func
didApplyFeeBtnClicked
()
{
applyPaymentBlock
?()
}
func
updateModel
(
_
model
:
YHResignAppointGroup
)
{
func
updateModel
(
_
model
:
YHResignAppointGroup
)
{
var
lineMargin
=
0.0
var
lineMargin
=
0.0
...
@@ -153,6 +169,17 @@ class YHResignScheduleMultipleInfoCell: UITableViewCell {
...
@@ -153,6 +169,17 @@ class YHResignScheduleMultipleInfoCell: UITableViewCell {
confirmHKTimeLabel
.
snp
.
removeConstraints
()
confirmHKTimeLabel
.
snp
.
removeConstraints
()
confirmHKTimeLabel
.
isHidden
=
true
confirmHKTimeLabel
.
isHidden
=
true
applyFeeBtn
.
isHidden
=
!
model
.
isNeedPayment
()
haveConfirmInHKLabel
.
snp
.
remakeConstraints
{
make
in
if
model
.
isNeedPayment
()
{
make
.
right
.
equalTo
(
applyFeeBtn
.
snp
.
left
)
.
offset
(
-
8
)
}
else
{
make
.
right
.
equalTo
(
-
18
)
}
make
.
centerY
.
equalTo
(
titleLabel
)
make
.
height
.
equalTo
(
18
)
}
if
self
.
confirmHKStatus
==
.
haveConfirmHK
{
// 已确认在港 需要显示确认在港时间
if
self
.
confirmHKStatus
==
.
haveConfirmHK
{
// 已确认在港 需要显示确认在港时间
confirmHKTimeLabel
.
isHidden
=
false
confirmHKTimeLabel
.
isHidden
=
false
...
@@ -197,6 +224,7 @@ class YHResignScheduleMultipleInfoCell: UITableViewCell {
...
@@ -197,6 +224,7 @@ class YHResignScheduleMultipleInfoCell: UITableViewCell {
contentView
.
addSubview
(
markView
)
contentView
.
addSubview
(
markView
)
contentView
.
addSubview
(
titleLabel
)
contentView
.
addSubview
(
titleLabel
)
contentView
.
addSubview
(
confirmInHKBtn
)
contentView
.
addSubview
(
confirmInHKBtn
)
contentView
.
addSubview
(
applyFeeBtn
)
contentView
.
addSubview
(
haveConfirmInHKLabel
)
contentView
.
addSubview
(
haveConfirmInHKLabel
)
contentView
.
addSubview
(
confirmHKTimeLabel
)
contentView
.
addSubview
(
confirmHKTimeLabel
)
contentView
.
addSubview
(
applicantNamesLabel
)
contentView
.
addSubview
(
applicantNamesLabel
)
...
@@ -225,7 +253,6 @@ class YHResignScheduleMultipleInfoCell: UITableViewCell {
...
@@ -225,7 +253,6 @@ class YHResignScheduleMultipleInfoCell: UITableViewCell {
make
.
left
.
equalTo
(
markView
.
snp
.
right
)
.
offset
(
8
)
make
.
left
.
equalTo
(
markView
.
snp
.
right
)
.
offset
(
8
)
make
.
height
.
equalTo
(
22
)
make
.
height
.
equalTo
(
22
)
make
.
top
.
equalTo
(
18
)
make
.
top
.
equalTo
(
18
)
}
}
confirmInHKBtn
.
snp
.
makeConstraints
{
make
in
confirmInHKBtn
.
snp
.
makeConstraints
{
make
in
...
@@ -235,6 +262,13 @@ class YHResignScheduleMultipleInfoCell: UITableViewCell {
...
@@ -235,6 +262,13 @@ class YHResignScheduleMultipleInfoCell: UITableViewCell {
make
.
top
.
equalTo
(
18
)
make
.
top
.
equalTo
(
18
)
}
}
applyFeeBtn
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
18
)
make
.
width
.
equalTo
(
68
)
make
.
height
.
equalTo
(
28
)
make
.
centerY
.
equalTo
(
haveConfirmInHKLabel
)
}
haveConfirmInHKLabel
.
snp
.
makeConstraints
{
make
in
haveConfirmInHKLabel
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
centerY
.
equalTo
(
titleLabel
)
make
.
centerY
.
equalTo
(
titleLabel
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResignScheduleSingleInfoCell.swift
View file @
7bbe2bcb
...
@@ -19,6 +19,7 @@ class YHResignScheduleSingleInfoCell: UITableViewCell {
...
@@ -19,6 +19,7 @@ class YHResignScheduleSingleInfoCell: UITableViewCell {
static
let
cellReuseIdentifier
=
"YHResignScheduleSingleInfoCell"
static
let
cellReuseIdentifier
=
"YHResignScheduleSingleInfoCell"
var
clickConfirmBtnBlock
:
((
YHResignConfirmHKStatus
)
->
())?
var
clickConfirmBtnBlock
:
((
YHResignConfirmHKStatus
)
->
())?
var
applyPaymentBlock
:
(()
->
())?
var
modifyBtnBlock
:
(()
->
())?
var
modifyBtnBlock
:
(()
->
())?
lazy
var
whiteContentView
:
UIView
=
{
lazy
var
whiteContentView
:
UIView
=
{
...
@@ -53,6 +54,11 @@ class YHResignScheduleSingleInfoCell: UITableViewCell {
...
@@ -53,6 +54,11 @@ class YHResignScheduleSingleInfoCell: UITableViewCell {
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
clickConfirmBtnBlock
?(
status
)
self
.
clickConfirmBtnBlock
?(
status
)
}
}
view
.
applyPaymentBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
self
.
applyPaymentBlock
?()
}
return
view
return
view
}()
}()
...
...
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