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
60cb263b
Commit
60cb263b
authored
Aug 23, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交 香港特别服务选择
parent
f400c820
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
84 additions
and
12 deletions
+84
-12
YHCertificateAppointViewController.swift
...cate(3 赴港办证预约)/C/YHCertificateAppointViewController.swift
+51
-11
YHServiceSelectAlertView.swift
...intCertificate(3 赴港办证预约)/V/YHServiceSelectAlertView.swift
+5
-0
YHCerAppointViewModel.swift
...pointCertificate(3 赴港办证预约)/VM/YHCerAppointViewModel.swift
+26
-0
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+2
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/C/YHCertificateAppointViewController.swift
View file @
60cb263b
...
@@ -371,19 +371,9 @@ extension YHCertificateAppointViewController: UITableViewDelegate, UITableViewDa
...
@@ -371,19 +371,9 @@ extension YHCertificateAppointViewController: UITableViewDelegate, UITableViewDa
}
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
// self.viewModel.getServicelist { success, error in
// let view = YHServiceSelectAlertView.alertView()
// view.items = self.viewModel.serviceArr
// view.confirmBlock = {
// [weak self] ids in
// printLog("\(ids)")
// }
// view.show()
// }
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
items1
.
count
{
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
items1
.
count
{
self
.
saveHkexpectServicOp
()
//for test hjl
}
}
}
}
...
@@ -467,6 +457,56 @@ extension YHCertificateAppointViewController {
...
@@ -467,6 +457,56 @@ extension YHCertificateAppointViewController {
}
}
extension
YHCertificateAppointViewController
{
extension
YHCertificateAppointViewController
{
//预约成功后调用
func
saveHkexpectServicOp
()
{
if
self
.
orderId
>
0
{
let
key
=
"hkExpectService_
\(
self
.
orderId
)
"
if
let
value
=
UserDefaults
.
standard
.
value
(
forKey
:
key
)
{
printLog
(
"已经展示过了 兄弟..."
)
return
}
}
self
.
viewModel
.
getServicelist
{
success
,
error
in
let
view
=
YHServiceSelectAlertView
.
alertView
()
view
.
items
=
self
.
viewModel
.
serviceArr
view
.
confirmBlock
=
{
[
weak
self
]
ids
in
if
!
ids
.
isEmpty
{
var
str
=
""
for
(
index
,
item
)
in
ids
.
enumerated
()
{
str
=
str
+
(
index
==
0
?
""
:
","
)
+
String
(
item
)
}
let
param
:
[
String
:
Any
]
=
[
"order_id"
:
self
?
.
orderId
as
Any
,
"ids"
:
str
]
self
?
.
saveHkexpectServic
(
params
:
param
)
}
}
view
.
show
()
}
}
func
saveHkexpectServic
(
params
:
[
String
:
Any
])
{
YHHUD
.
show
(
.
progress
(
message
:
"提交中..."
))
viewModel
.
saveHkExpectService
(
params
:
params
)
{
success
,
error
in
YHHUD
.
hide
()
if
success
{
YHHUD
.
flash
(
message
:
"提交成功"
)
if
self
.
orderId
>
0
{
let
key
=
"hkExpectService_
\(
self
.
orderId
)
"
UserDefaults
.
standard
.
setValue
(
"true"
,
forKey
:
key
)
UserDefaults
.
standard
.
synchronize
()
}
}
else
{
YHHUD
.
flash
(
message
:
"提交失败"
)
}
}
}
func
loadHKHolidays
()
{
func
loadHKHolidays
()
{
viewModel
.
getHKHolidays
{
success
,
error
in
viewModel
.
getHKHolidays
{
success
,
error
in
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHServiceSelectAlertView.swift
View file @
60cb263b
...
@@ -207,6 +207,11 @@ class YHServiceSelectAlertView: UICollectionViewCell {
...
@@ -207,6 +207,11 @@ class YHServiceSelectAlertView: UICollectionViewCell {
ids
.
append
(
item
.
id
)
ids
.
append
(
item
.
id
)
}
}
}
}
if
ids
.
isEmpty
{
YHHUD
.
flash
(
message
:
"至少选择一项"
)
return
}
confirmBlock
?(
ids
)
confirmBlock
?(
ids
)
dismiss
()
dismiss
()
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/VM/YHCerAppointViewModel.swift
View file @
60cb263b
...
@@ -21,6 +21,32 @@ class YHCerAppointViewModel: NSObject {
...
@@ -21,6 +21,32 @@ class YHCerAppointViewModel: NSObject {
var
isRequestFlag
:
Bool
=
false
var
isRequestFlag
:
Bool
=
false
// 保存香港额外服务
func
saveHkExpectService
(
params
:[
String
:
Any
],
callback
:((
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())?)
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
AppointHK
.
saveExpectServiceApi
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
guard
let
self
=
self
else
{
callback
?(
false
,
nil
)
return
}
printLog
(
"model 是 ==>
\(
json
)
"
)
if
json
.
code
==
200
{
callback
?(
true
,
nil
)
}
else
{
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
callback
?(
false
,
err
)
}
}
failBlock
:
{
err
in
callback
?(
false
,
nil
)
}
}
// 获取香港节假日
// 获取香港节假日
func
getHKHolidays
(
callback
:((
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())?)
{
func
getHKHolidays
(
callback
:((
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())?)
{
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
60cb263b
...
@@ -436,9 +436,10 @@ class YHAllApiName {
...
@@ -436,9 +436,10 @@ class YHAllApiName {
//赴港办证预约
//赴港办证预约
struct
AppointHK
{
struct
AppointHK
{
// 保存香港额外服务
static
let
saveExpectServiceApi
=
"super-app/expect-service/save"
// 获取香港节假日
// 获取香港节假日
static
let
hkholidaysApi
=
"super-app/holiday/get"
static
let
hkholidaysApi
=
"super-app/holiday/get"
// 所有赴港人员列表
// 所有赴港人员列表
static
let
hkMembers
=
"super-app/order/hk/user"
static
let
hkMembers
=
"super-app/order/hk/user"
// 获取港府预约结果
// 获取港府预约结果
...
...
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