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
d95698ae
Commit
d95698ae
authored
Aug 22, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 赴港办证
parent
0b730193
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
192 additions
and
10 deletions
+192
-10
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHCertificateAppointViewController.swift
...cate(3 赴港办证预约)/C/YHCertificateAppointViewController.swift
+46
-8
YHAppointItem.swift
...e(办证段)/AppointCertificate(3 赴港办证预约)/M/YHAppointItem.swift
+2
-1
YHCertificateAppointOptionCell.swift
...tificate(3 赴港办证预约)/V/YHCertificateAppointOptionCell.swift
+4
-0
YHInfoItemOptionView.swift
...AppointCertificate(3 赴港办证预约)/V/YHInfoItemOptionView.swift
+8
-0
YHWaitAppointMembersCell.swift
...intCertificate(3 赴港办证预约)/V/YHWaitAppointMembersCell.swift
+127
-0
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+1
-1
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
d95698ae
...
...
@@ -78,6 +78,7 @@
04256E212C76CA7800A37BA4
/* YHActivateHKVisaCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04256E202C76CA7800A37BA4
/* YHActivateHKVisaCell.swift */
;
};
04256E232C76D22400A37BA4
/* YHAppointItem.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04256E222C76D22400A37BA4
/* YHAppointItem.swift */
;
};
04256E252C76E26100A37BA4
/* YHNoNeedAppointMembersCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04256E242C76E26100A37BA4
/* YHNoNeedAppointMembersCell.swift */
;
};
04256E272C77127600A37BA4
/* YHWaitAppointMembersCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04256E262C77127600A37BA4
/* YHWaitAppointMembersCell.swift */
;
};
0425E63D2BA9345200A5E763
/* YHSchemeTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0425E63C2BA9345200A5E763
/* YHSchemeTableViewCell.swift */
;
};
0425E6402BA9357D00A5E763
/* YHScemeItemModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0425E63F2BA9357D00A5E763
/* YHScemeItemModel.swift */
;
};
0425E6422BA95B1B00A5E763
/* YHSchemeTableFooterView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0425E6412BA95B1B00A5E763
/* YHSchemeTableFooterView.swift */
;
};
...
...
@@ -816,6 +817,7 @@
04256E202C76CA7800A37BA4
/* YHActivateHKVisaCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHActivateHKVisaCell.swift
;
sourceTree
=
"<group>"
;
};
04256E222C76D22400A37BA4
/* YHAppointItem.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAppointItem.swift
;
sourceTree
=
"<group>"
;
};
04256E242C76E26100A37BA4
/* YHNoNeedAppointMembersCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHNoNeedAppointMembersCell.swift
;
sourceTree
=
"<group>"
;
};
04256E262C77127600A37BA4
/* YHWaitAppointMembersCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHWaitAppointMembersCell.swift
;
sourceTree
=
"<group>"
;
};
0425E63C2BA9345200A5E763
/* YHSchemeTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSchemeTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
0425E63F2BA9357D00A5E763
/* YHScemeItemModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHScemeItemModel.swift
;
sourceTree
=
"<group>"
;
};
0425E6412BA95B1B00A5E763
/* YHSchemeTableFooterView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSchemeTableFooterView.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1642,6 +1644,7 @@
04256DED2C73338200A37BA4
/* YHGrabNumberListCell.swift */
,
04256E202C76CA7800A37BA4
/* YHActivateHKVisaCell.swift */
,
04256E242C76E26100A37BA4
/* YHNoNeedAppointMembersCell.swift */
,
04256E262C77127600A37BA4
/* YHWaitAppointMembersCell.swift */
,
04256DF12C734E7E00A37BA4
/* YHGrabFileCell.swift */
,
04256DF52C736A0800A37BA4
/* YHServiceItemCell.swift */
,
04256DE32C72E3FA00A37BA4
/* YHInfoItemOptionView.swift */
,
...
...
@@ -4489,6 +4492,7 @@
A5ACE9402B4564F7002C94D2
/* String+Extension.swift in Sources */
,
045EEEE42B9F171A0022A143
/* YHMySignatureDetailModel.swift in Sources */
,
A5EB6C722C69FB9A0081FB6C
/* YHOffivialApprovalGuildLineCheckView.swift in Sources */
,
04256E272C77127600A37BA4
/* YHWaitAppointMembersCell.swift in Sources */
,
047AA3D72C4A4399009C4554
/* YHInvitationWithGiftsShareView.swift in Sources */
,
A58A8C8F2BA6978100632765
/* YHMineCertificateEntryViewController.swift in Sources */
,
045EEF1B2B9F171A0022A143
/* YHAddressPickViewTableViewCell.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/C/YHCertificateAppointViewController.swift
View file @
d95698ae
...
...
@@ -16,7 +16,7 @@ class YHCertificateAppointViewController: YHBaseViewController {
// 无需预约办证人员
var
noNeedAppointMembers
:[
YHHKMemberModel
]
=
[]
// 需要办证人员
var
a
ppointMembers
:[
YHHKMemberModel
]
=
[]
var
waitA
ppointMembers
:[
YHHKMemberModel
]
=
[]
let
viewModel
=
YHCerAppointViewModel
()
// 是否赴港办证
...
...
@@ -44,9 +44,8 @@ class YHCertificateAppointViewController: YHBaseViewController {
tableView
.
register
(
YHGrabNumberListCell
.
self
,
forCellReuseIdentifier
:
YHGrabNumberListCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHActivateHKVisaCell
.
self
,
forCellReuseIdentifier
:
YHActivateHKVisaCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHNoNeedAppointMembersCell
.
self
,
forCellReuseIdentifier
:
YHNoNeedAppointMembersCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHWaitAppointMembersCell
.
self
,
forCellReuseIdentifier
:
YHWaitAppointMembersCell
.
cellReuseIdentifier
)
return
tableView
}()
...
...
@@ -96,9 +95,26 @@ class YHCertificateAppointViewController: YHBaseViewController {
items
.
append
(
item3
)
}
// 赴港激活签证
let
item4
=
YHAppointItem
(
type
:
.
activeVisa
)
items
.
append
(
item4
)
if
self
.
reservationToHK
==
0
{
// 没有预约过人员
// 赴港激活签证 申请人是否统一赴港激活签证
let
item4
=
YHAppointItem
(
type
:
.
activeVisa
)
items
.
append
(
item4
)
if
self
.
isAllMembersGo
{
// 申请人统一赴港激活签证
}
else
{
// 申请人不是统一赴港激活签证
}
}
else
{
// 有预约过的人员
if
waitAppointMembers
.
count
>
0
{
let
item5
=
YHAppointItem
(
type
:
.
needReAppointMembers
)
items
.
append
(
item5
)
}
}
self
.
tableView
.
reloadData
()
...
...
@@ -145,6 +161,10 @@ extension YHCertificateAppointViewController: UITableViewDelegate, UITableViewDa
self
.
updateData
()
}
}
if
self
.
reservationToHK
==
1
{
// 已经预约过
// 是否赴港办证不能点击否 index 0是是按钮 1是否按钮
cell
.
disableBtn
(
index
:
1
)
}
return
cell
}
...
...
@@ -167,6 +187,14 @@ extension YHCertificateAppointViewController: UITableViewDelegate, UITableViewDa
return
cell
}
if
item
.
type
==
.
needReAppointMembers
{
// 待预约赴港成员
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHWaitAppointMembersCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHWaitAppointMembersCell
cell
.
members
=
waitAppointMembers
return
cell
}
if
item
.
type
==
.
confirmGoHKInfo
{
// 请您确认第X批赴港信息
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHSelectApplicantGroupCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHSelectApplicantGroupCell
...
...
@@ -232,6 +260,7 @@ extension YHCertificateAppointViewController {
[
weak
self
]
needGoHK
,
reservationToHK
in
guard
let
self
=
self
else
{
return
}
self
.
isNeedGoHK
=
needGoHK
self
.
reservationToHK
=
reservationToHK
completion
?()
}
}
...
...
@@ -253,14 +282,23 @@ extension YHCertificateAppointViewController {
guard
let
self
=
self
else
{
return
}
let
users
=
self
.
viewModel
.
hkUsers
noNeedAppointMembers
.
removeAll
()
a
ppointMembers
.
removeAll
()
waitA
ppointMembers
.
removeAll
()
for
user
in
users
{
if
user
.
isAtLeast11Years
()
{
a
ppointMembers
.
append
(
user
)
waitA
ppointMembers
.
append
(
user
)
}
else
{
noNeedAppointMembers
.
append
(
user
)
}
}
let
item1
=
YHHKMemberModel
()
item1
.
name
=
"艾师傅"
let
item2
=
YHHKMemberModel
()
item2
.
name
=
"艾傅"
waitAppointMembers
.
append
(
contentsOf
:
[
item1
,
item2
])
completion
?()
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/M/YHAppointItem.swift
View file @
d95698ae
...
...
@@ -36,5 +36,6 @@ class YHAppointItem: NSObject {
init
(
type
:
YHAppointItemType
)
{
self
.
type
=
type
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHCertificateAppointOptionCell.swift
View file @
d95698ae
...
...
@@ -20,6 +20,10 @@ class YHCertificateAppointOptionCell: UITableViewCell {
}
}
func
disableBtn
(
index
:
Int
)
{
optionsView
.
setOptionBtnDisabled
(
index
)
}
var
selectBlock
:((
Int
)
->
())?
lazy
var
whiteContentView
:
UIView
=
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHInfoItemOptionView.swift
View file @
d95698ae
...
...
@@ -111,6 +111,14 @@ class YHInfoItemOptionView: UIView {
btn
.
setTitleColor
(
isSelect
?
UIColor
.
brandMainColor
:
UIColor
.
init
(
hex
:
0x222222
),
for
:
.
normal
)
}
func
setOptionBtnDisabled
(
_
index
:
Int
)
{
if
let
btn
=
self
.
viewWithTag
(
baseBtnTag
+
index
)
as?
UIButton
{
setOptionBtnSelected
(
btn
:
btn
,
isSelect
:
false
)
btn
.
isEnabled
=
false
btn
.
setTitleColor
(
.
mainTextColor
(
alpha
:
0.18
),
for
:
.
normal
)
}
}
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
createUI
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHWaitAppointMembersCell.swift
0 → 100644
View file @
d95698ae
//
// YHWaitAppointMembersCell.swift
// galaxy
//
// Created by edy on 2024/8/22.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHWaitAppointMembersCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHWaitAppointMembersCell"
var
members
:[
YHHKMemberModel
]
=
[]
{
didSet
{
var
text
=
""
for
(
index
,
user
)
in
members
.
enumerated
()
{
text
+=
"
\(
user
.
name
)
"
if
index
!=
members
.
count
-
1
{
text
+=
"、"
}
}
detailLabel
.
text
=
text
}
}
lazy
var
whiteContentView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
view
.
layer
.
cornerRadius
=
kCornerRadius6
return
view
}()
lazy
var
titleLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
numberOfLines
=
0
label
.
textColor
=
.
mainTextColor
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
label
.
text
=
"待预约赴港成员"
return
label
}()
lazy
var
lineView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
separatorColor
return
view
}()
lazy
var
detailLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
numberOfLines
=
0
label
.
textColor
=
.
mainTextColor
(
alpha
:
0.7
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
return
label
}()
lazy
var
bottomBtn
:
UIButton
=
{
let
btn
=
UIButton
()
btn
.
backgroundColor
=
.
brandMainColor
btn
.
setTitle
(
"去预约"
,
for
:
.
normal
)
btn
.
setTitleColor
(
.
white
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
.
PFSC_M
(
ofSize
:
14
)
btn
.
layer
.
cornerRadius
=
4.0
btn
.
addTarget
(
self
,
action
:
#selector(
didBottomBtnClicked
)
,
for
:
.
touchUpInside
)
return
btn
}()
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
}
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
setupUI
()
}
@objc
func
didBottomBtnClicked
()
{
}
func
setupUI
()
{
self
.
selectionStyle
=
.
none
self
.
backgroundColor
=
.
clear
self
.
contentView
.
backgroundColor
=
.
clear
contentView
.
addSubview
(
whiteContentView
)
whiteContentView
.
addSubview
(
titleLabel
)
whiteContentView
.
addSubview
(
detailLabel
)
whiteContentView
.
addSubview
(
bottomBtn
)
whiteContentView
.
addSubview
(
lineView
)
whiteContentView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
16
)
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
16
)
make
.
bottom
.
equalTo
(
0
)
}
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
16
)
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
)
}
lineView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
12
)
make
.
left
.
equalTo
(
0
)
make
.
right
.
equalTo
(
0
)
make
.
height
.
equalTo
(
0.5
)
}
detailLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
lineView
.
snp
.
bottom
)
.
offset
(
16
)
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
)
}
bottomBtn
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
detailLabel
.
snp
.
bottom
)
.
offset
(
16
)
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
height
.
equalTo
(
45
)
make
.
bottom
.
equalTo
(
-
16
)
}
}
}
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
d95698ae
...
...
@@ -352,7 +352,7 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
// }
let
vc
=
YHCertificateAppointViewController
()
vc
.
orderId
=
1510
85
vc
.
orderId
=
1510
90
self
.
navigationController
?
.
pushViewController
(
vc
)
return
}
...
...
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