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
b2dc3556
Commit
b2dc3556
authored
Aug 23, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 赴港
parent
a93935af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
19 deletions
+22
-19
YHCertificateAppointViewController.swift
...cate(3 赴港办证预约)/C/YHCertificateAppointViewController.swift
+18
-17
YHCancelAppointAlertView.swift
...intCertificate(3 赴港办证预约)/V/YHCancelAppointAlertView.swift
+4
-2
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/C/YHCertificateAppointViewController.swift
View file @
b2dc3556
...
...
@@ -329,26 +329,27 @@ extension YHCertificateAppointViewController: UITableViewDelegate, UITableViewDa
guard
let
self
=
self
else
{
return
}
// 抢号中点击取消预约
let
alert
=
YHCancelAppointAlertView
.
alertView
()
alert
.
memberNamesText
=
groupModel
.
getMemberNames
()
alert
.
selectBlock
=
{
[
weak
self
]
sure
in
guard
let
self
=
self
else
{
return
}
if
!
sure
{
return
}
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
cancelAppoint
(
orderId
:
orderId
,
reservationId
:
groupModel
.
id
)
{
success
in
YHHUD
.
hide
()
if
!
success
{
YHHUD
.
flash
(
message
:
"取消失败"
)
let
alert
=
YHCancelAppointAlertView
.
alertView
()
alert
.
memberNamesText
=
groupModel
.
getMemberNames
()
alert
.
selectBlock
=
{
[
weak
self
]
sure
in
guard
let
self
=
self
else
{
return
}
if
!
sure
{
return
}
self
.
requestData
()
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
cancelAppoint
(
orderId
:
orderId
,
reservationId
:
groupModel
.
id
)
{
success
in
YHHUD
.
hide
()
if
!
success
{
YHHUD
.
flash
(
message
:
"取消失败"
)
return
}
self
.
requestData
()
}
}
}
alert
.
show
()
}
return
cell
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHCancelAppointAlertView.swift
View file @
b2dc3556
...
...
@@ -18,8 +18,8 @@ class YHCancelAppointAlertView: UIView {
var
memberNamesText
:
String
=
""
{
didSet
{
let
b
:
ASAttributedString
=
.
init
(
"取消预约后,不可恢复,您可重新预约!成员:"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
(
alpha
:
0.7
)))
let
a
:
ASAttributedString
=
.
init
(
"
\(
memberNamesText
)
"
,
.
font
(
UIFont
.
PFSC_B
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
brandMainColor
))
let
a
:
ASAttributedString
=
.
init
(
"取消预约后,不可恢复,您可重新预约!成员:"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
(
alpha
:
0.7
)))
let
b
:
ASAttributedString
=
.
init
(
"
\(
memberNamesText
)
"
,
.
font
(
UIFont
.
PFSC_B
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
brandMainColor
))
detailLabel
.
attributed
.
text
=
a
+
b
}
}
...
...
@@ -85,6 +85,7 @@ class YHCancelAppointAlertView: UIView {
@objc
func
didConfirmBtnClicked
(
_
sender
:
UIButton
)
{
let
tag
=
sender
.
tag
-
self
.
baseTag
dismiss
()
selectBlock
?(
tag
==
1
)
}
...
...
@@ -159,6 +160,7 @@ class YHCancelAppointAlertView: UIView {
make
.
right
.
equalTo
(
cancelBtn
.
snp
.
left
)
.
offset
(
-
8
)
make
.
bottom
.
equalTo
(
-
21
)
make
.
height
.
equalTo
(
45
)
make
.
width
.
equalTo
(
cancelBtn
)
}
cancelBtn
.
snp
.
makeConstraints
{
make
in
...
...
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