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
14dd9631
Commit
14dd9631
authored
Aug 22, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 预约
parent
6659c2ae
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
2 deletions
+61
-2
YHCertificateAppointViewController.swift
...cate(3 赴港办证预约)/C/YHCertificateAppointViewController.swift
+18
-1
YHGrabingNumberListCell.swift
...ointCertificate(3 赴港办证预约)/V/YHGrabingNumberListCell.swift
+8
-0
YHGrabingNumberListView.swift
...ointCertificate(3 赴港办证预约)/V/YHGrabingNumberListView.swift
+7
-0
YHCerAppointViewModel.swift
...pointCertificate(3 赴港办证预约)/VM/YHCerAppointViewModel.swift
+25
-0
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+1
-1
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+2
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/C/YHCertificateAppointViewController.swift
View file @
14dd9631
...
...
@@ -73,7 +73,10 @@ class YHCertificateAppointViewController: YHBaseViewController {
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
top
.
equalTo
(
k_Height_NavigationtBarAndStatuBar
)
}
requestData
()
}
func
requestData
()
{
self
.
requetIsGoToHK
{
// 请求是否赴港办证选项和是否已预约过
self
.
requetAppointMembers
{
// 请求赴港办证人员名单
if
self
.
reservationToHK
==
1
{
// 有历史预约人员
...
...
@@ -262,6 +265,20 @@ extension YHCertificateAppointViewController: UITableViewDelegate, UITableViewDa
// 赴港办理抢号中批次
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHGrabingNumberListCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHGrabingNumberListCell
cell
.
listArr
=
self
.
waitList
cell
.
cancelAppointBlock
=
{
[
weak
self
]
groupModel
in
guard
let
self
=
self
else
{
return
}
// 抢号中点击取消预约
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
cancelAppoint
(
orderId
:
orderId
,
reservationId
:
groupModel
.
id
)
{
success
in
YHHUD
.
hide
()
if
!
success
{
YHHUD
.
flash
(
message
:
"取消失败"
)
return
}
self
.
requestData
()
}
}
return
cell
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHGrabingNumberListCell.swift
View file @
14dd9631
...
...
@@ -11,16 +11,24 @@ import UIKit
class
YHGrabingNumberListCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHGrabingNumberListCell"
var
cancelAppointBlock
:
((
YHAppointMemberGroupModel
)
->
())?
let
baseListTag
=
9527
var
listArr
:
[
YHAppointMemberGroupModel
]
=
[]
{
didSet
{
listContainView
.
removeSubviews
()
var
lastView
:
YHGrabingNumberListView
?
=
nil
for
(
index
,
group
)
in
listArr
.
enumerated
()
{
let
listView
=
YHGrabingNumberListView
(
frame
:
.
zero
)
listView
.
tag
=
baseListTag
+
index
let
chineseNum
=
convertNumberToChineseText
(
index
+
1
)
listView
.
titleLabel
.
text
=
"第
\(
chineseNum
)
批"
listView
.
membersLabel
.
text
=
"成员:
\(
group
.
getMemberNames
()
)
"
listView
.
cancelBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
self
.
cancelAppointBlock
?(
group
)
}
// 抢号信息
let
items1
=
[
YHGrabItem
(
type
:
.
grab
,
title
:
"赴港时间:"
,
detail
:
"抢号中"
),
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHGrabingNumberListView.swift
View file @
14dd9631
...
...
@@ -10,6 +10,8 @@ import UIKit
class
YHGrabingNumberListView
:
UIView
{
var
cancelBlock
:
(()
->
())?
lazy
var
lineView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
separatorColor
...
...
@@ -38,6 +40,7 @@ class YHGrabingNumberListView: UIView {
btn
.
layer
.
cornerRadius
=
kCornerRadius3
btn
.
layer
.
borderWidth
=
1.0
btn
.
layer
.
borderColor
=
UIColor
.
brandMainColor
.
cgColor
btn
.
addTarget
(
self
,
action
:
#selector(
didCancelBtnClicked
)
,
for
:
.
touchUpInside
)
return
btn
}()
...
...
@@ -75,6 +78,10 @@ class YHGrabingNumberListView: UIView {
createUI
()
}
@objc
func
didCancelBtnClicked
()
{
cancelBlock
?()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/VM/YHCerAppointViewModel.swift
View file @
14dd9631
...
...
@@ -187,6 +187,31 @@ class YHCerAppointViewModel: NSObject {
callback
?(
false
)
}
}
//
func
cancelAppoint
(
orderId
:
Int
,
reservationId
:
Int
,
callback
:((
_
success
:
Bool
)
->
())?)
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
AppointHK
.
cancelAppoint
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
[
"order_id"
:
orderId
,
"reservation_id"
:
reservationId
])
{
[
weak
self
]
json
,
code
in
guard
let
self
=
self
else
{
return
}
printLog
(
"model 是 ==>
\(
json
)
"
)
if
json
.
code
==
200
{
callback
?(
true
)
}
else
{
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
callback
?(
false
)
}
}
failBlock
:
{
err
in
callback
?(
false
)
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
14dd9631
...
...
@@ -355,7 +355,7 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
// }
let
vc
=
YHCertificateAppointViewController
()
vc
.
orderId
=
1510
85
vc
.
orderId
=
1510
90
self
.
navigationController
?
.
pushViewController
(
vc
)
return
}
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
14dd9631
...
...
@@ -443,6 +443,8 @@ class YHAllApiName {
static
let
isNeedGoHK
=
"super-app/order/hk/get-need-to-hk"
// 保存是否需要赴港
static
let
saveNeedGoHK
=
"super-app/order/hk/save-need-to-hk"
// 取消预约
static
let
cancelAppoint
=
"super-app/reservation/cancel"
}
...
...
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