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
7161a157
Commit
7161a157
authored
Oct 16, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 预约
parent
28da309c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
13 deletions
+32
-13
YHResignAppointContainerViewController.swift
...nt(在港递交预约)/C/YHResignAppointContainerViewController.swift
+8
-2
YHResignAppointScheduleListViewController.swift
...在港递交预约)/C/YHResignAppointScheduleListViewController.swift
+8
-3
YHResignAppointTimeViewController.swift
...Appoint(在港递交预约)/C/YHResignAppointTimeViewController.swift
+7
-2
YHResignAppointGroup.swift
...(续签)/ResignHKAppoint(在港递交预约)/M/YHResignAppointGroup.swift
+1
-1
YHResignAppointViewModel.swift
...ResignHKAppoint(在港递交预约)/VM/YHResignAppointViewModel.swift
+5
-5
YhConstant.swift
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
+3
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/C/YHResignAppointContainerViewController.swift
View file @
7161a157
...
...
@@ -36,6 +36,8 @@ class YHResignAppointContainerViewController: YHBaseViewController {
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
requestData
)
,
name
:
YhConstant
.
YhNotification
.
didUpdateResignAppointStatusList
,
object
:
nil
)
self
.
addChild
(
appointVC
)
self
.
addChild
(
scheduleVC
)
...
...
@@ -48,10 +50,14 @@ class YHResignAppointContainerViewController: YHBaseViewController {
requestData
()
}
func
requestData
()
{
deinit
{
NotificationCenter
.
default
.
removeObserver
(
self
)
}
@objc
func
requestData
()
{
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
viewModel
.
get
Appoint
InfoList
(
renewalId
:
renewalId
)
{
viewModel
.
get
Schedule
InfoList
(
renewalId
:
renewalId
)
{
[
weak
self
]
success1
,
error1
in
YHHUD
.
hide
()
guard
let
self
=
self
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/C/YHResignAppointScheduleListViewController.swift
View file @
7161a157
...
...
@@ -105,9 +105,16 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
height
.
equalTo
(
98
)
}
self
.
tableView
.
reloadData
()
self
.
updateBottomBtnAndMotifyBtnStatus
()
}
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
super
.
viewWillAppear
(
animated
)
requestList
()
}
@objc
func
didNextBtnClicked
()
{
//查看续签结果
let
vc
=
YHLookResignResultViewController
()
...
...
@@ -329,10 +336,8 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
}
func
requestList
()
{
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
getAppointInfoList
(
renewalId
:
self
.
renewalId
)
{
self
.
viewModel
.
getScheduleInfoList
(
renewalId
:
self
.
renewalId
)
{
[
weak
self
]
success
,
error
in
YHHUD
.
hide
()
guard
let
self
else
{
return
}
self
.
scheduleArr
.
removeAll
()
self
.
scheduleArr
.
append
(
contentsOf
:
self
.
viewModel
.
scheduleInfoList
.
renewal_List
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/C/YHResignAppointTimeViewController.swift
View file @
7161a157
...
...
@@ -337,8 +337,13 @@ class YHResignAppointTimeViewController: YHBaseViewController {
YHHUD
.
hide
()
guard
let
self
=
self
else
{
return
}
if
success
{
YHHUD
.
flash
(
message
:
"提交成功"
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
if
self
.
isUpdate
{
// 是行程修改
YHHUD
.
flash
(
message
:
"提交成功"
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
return
}
// 是首次预约 需要刷新展示行程安排列表
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didUpdateResignAppointStatusList
,
object
:
nil
)
return
}
let
msg
=
error
?
.
errorMsg
??
"提交失败"
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/M/YHResignAppointGroup.swift
View file @
7161a157
...
...
@@ -17,7 +17,7 @@ class YHResignAppointTogetherSetting: SmartCodable {
}
}
class
YHResign
Appoint
ListModel
:
SmartCodable
{
class
YHResign
Schedule
ListModel
:
SmartCodable
{
var
is_together
:
Int
=
0
// 1 是2不是 一起赴港
var
renewal_List
:
[
YHResignAppointGroup
]
=
[]
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/VM/YHResignAppointViewModel.swift
View file @
7161a157
...
...
@@ -13,7 +13,7 @@ class YHResignAppointViewModel: NSObject {
// 赴港人员列表
var
appointUsers
:
[
YHResignAppointMember
]
=
[]
// 预约列表预约
var
scheduleInfoList
:
YHResign
AppointListModel
=
YHResignAppoint
ListModel
()
var
scheduleInfoList
:
YHResign
ScheduleListModel
=
YHResignSchedule
ListModel
()
// 赴港人员列表
func
getResignAppointUserlist
(
renewalId
:
Int
,
callBack
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
...
...
@@ -68,14 +68,14 @@ class YHResignAppointViewModel: NSObject {
}
// 预约列表预约
func
get
Appoint
InfoList
(
renewalId
:
Int
,
callBack
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
func
get
Schedule
InfoList
(
renewalId
:
Int
,
callBack
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
let
params
=
[
"renewal_id"
:
renewalId
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
ResignAppoint
.
appointInfoList
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
if
json
.
code
==
200
{
guard
let
dic
=
json
.
data
?
.
peel
as?
[
String
:
Any
],
let
resultModel
=
YHResign
Appoint
ListModel
.
deserialize
(
from
:
dic
)
else
{
guard
let
dic
=
json
.
data
?
.
peel
as?
[
String
:
Any
],
let
resultModel
=
YHResign
Schedule
ListModel
.
deserialize
(
from
:
dic
)
else
{
let
err
=
YHErrorModel
(
errorCode
:
YHErrorCode
.
dictParseError
.
rawValue
,
errorMsg
:
YHErrorCode
.
dictParseError
.
description
())
callBack
(
false
,
err
)
return
...
...
@@ -85,11 +85,11 @@ class YHResignAppointViewModel: NSObject {
}
else
{
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
self
.
scheduleInfoList
=
YHResign
Appoint
ListModel
()
self
.
scheduleInfoList
=
YHResign
Schedule
ListModel
()
callBack
(
false
,
err
)
}
}
failBlock
:
{
err
in
self
.
scheduleInfoList
=
YHResign
Appoint
ListModel
()
self
.
scheduleInfoList
=
YHResign
Schedule
ListModel
()
callBack
(
false
,
err
)
}
}
...
...
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
View file @
7161a157
...
...
@@ -305,6 +305,9 @@ extension YhConstant {
// 跳转到首页生活tab - 教育
public
static
let
didJumpToHomePageLifeEduTabNotification
=
Notification
.
Name
(
rawValue
:
"com.yinhe.homePage.life.edu"
)
// 刷新续签预约状态列表
public
static
let
didUpdateResignAppointStatusList
=
Notification
.
Name
(
rawValue
:
"com.yinhe.resign.appoint.list.update"
)
}
}
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