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
42ddd5a9
Commit
42ddd5a9
authored
Aug 24, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 赴港
parent
fb0d8ea2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
7 deletions
+29
-7
YHMakeCertificatePlaceModel.swift
...Certificate(3 赴港办证预约)/M/YHMakeCertificatePlaceModel.swift
+5
-1
YHSelectApplicantGroupCell.swift
...tCertificate(3 赴港办证预约)/V/YHSelectApplicantGroupCell.swift
+1
-0
YHSelectHKPlaceListView.swift
...ointCertificate(3 赴港办证预约)/V/YHSelectHKPlaceListView.swift
+23
-6
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/M/YHMakeCertificatePlaceModel.swift
View file @
42ddd5a9
...
...
@@ -11,7 +11,7 @@ import SmartCodable
class
YHMakeCertificatePlaceModel
:
SmartCodable
{
var
id
:
Int
=
0
var
id
:
Int
=
-
1
var
name
:
String
=
""
// 自定义
...
...
@@ -20,5 +20,9 @@ class YHMakeCertificatePlaceModel: SmartCodable {
required
init
()
{
}
func
isEmpty
()
->
Bool
{
return
id
==
-
1
&&
name
.
isEmpty
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHSelectApplicantGroupCell.swift
View file @
42ddd5a9
...
...
@@ -211,6 +211,7 @@ class YHSelectApplicantGroupCell: UITableViewCell {
if
let
arr
=
dataModel
?
.
placeList
,
arr
.
count
>
0
{
let
listView
=
YHSelectHKPlaceListView
.
listView
()
listView
.
listArr
=
arr
listView
.
selectModel
=
dataModel
?
.
model
?
.
hkPlace
listView
.
selectBlock
=
{
[
weak
self
]
selectPlace
in
guard
let
self
=
self
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHSelectHKPlaceListView.swift
View file @
42ddd5a9
...
...
@@ -15,11 +15,29 @@ class YHSelectHKPlaceListView: UIView {
return
view
}
var
selectModel
:
YHMakeCertificatePlaceModel
?
=
nil
var
selectModel
:
YHMakeCertificatePlaceModel
?
=
nil
{
didSet
{
if
let
selectItem
=
selectModel
{
for
item
in
listArr
{
item
.
isSelect
=
(
selectItem
.
id
==
item
.
id
&&
selectItem
.
name
==
item
.
name
)
}
}
else
{
for
item
in
listArr
{
item
.
isSelect
=
false
}
}
self
.
tableView
.
reloadData
()
}
}
var
selectBlock
:
((
YHMakeCertificatePlaceModel
)
->
())?
var
listArr
:[
YHMakeCertificatePlaceModel
]
=
[]
{
didSet
{
for
item
in
listArr
{
item
.
isSelect
=
false
}
self
.
tableView
.
reloadData
()
}
}
...
...
@@ -98,10 +116,12 @@ class YHSelectHKPlaceListView: UIView {
}
@objc
func
sure
()
{
if
let
model
=
self
.
selectModel
{
if
let
model
=
self
.
selectModel
,
!
model
.
isEmpty
()
{
selectBlock
?(
model
)
self
.
dismiss
()
return
}
self
.
dismiss
(
)
YHHUD
.
flash
(
message
:
"请选择港府办证地点"
)
}
override
init
(
frame
:
CGRect
)
{
...
...
@@ -197,9 +217,6 @@ extension YHSelectHKPlaceListView: UITableViewDelegate, UITableViewDataSource {
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
listArr
.
count
{
let
model
=
listArr
[
indexPath
.
row
]
selectModel
=
model
for
item
in
listArr
{
item
.
isSelect
=
(
model
.
id
==
item
.
id
)
}
self
.
tableView
.
reloadData
()
}
}
...
...
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