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
a53cfe90
Commit
a53cfe90
authored
Oct 21, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 确认
parent
e8d1828f
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
88 additions
and
94 deletions
+88
-94
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+20
-20
YHResignAppointScheduleListViewController.swift
...在港递交预约)/C/YHResignAppointScheduleListViewController.swift
+4
-4
YHResignAppointTimeModifyViewController.swift
...t(在港递交预约)/C/YHResignAppointTimeModifyViewController.swift
+2
-2
YHResignAppointTimeMultipleCell.swift
...HKAppoint(在港递交预约)/V/YHResignAppointTimeMultipleCell.swift
+2
-2
YHResignAppointedScheduleLineView.swift
...Appoint(在港递交预约)/V/YHResignAppointedScheduleLineView.swift
+2
-2
YHResignHaveAppointedApplicantsInfoCell.swift
...t(在港递交预约)/V/YHResignHaveAppointedApplicantsInfoCell.swift
+3
-3
YHResignScheduleLineCollectCell.swift
...HKAppoint(在港递交预约)/V/YHResignScheduleLineCollectCell.swift
+3
-3
YHResignScheduleMultipleInfoCell.swift
...KAppoint(在港递交预约)/V/YHResignScheduleMultipleInfoCell.swift
+3
-3
YHResignScheduleSingleInfoCell.swift
...nHKAppoint(在港递交预约)/V/YHResignScheduleSingleInfoCell.swift
+3
-3
YHResignSelectApplicantCollectCell.swift
...ppoint(在港递交预约)/V/YHResignSelectApplicantCollectCell.swift
+3
-3
YHResignInfoConfirmModifyViewController.swift
...m(续签信息确认)/C/YHResignInfoConfirmModifyViewController.swift
+23
-0
YHResignFamilyInfoListCell.swift
...ignInfoConfirm(续签信息确认)/V/YHResignFamilyInfoListCell.swift
+8
-26
YHResignInfoItemView.swift
...签)/ResignInfoConfirm(续签信息确认)/V/YHResignInfoItemView.swift
+7
-18
YHResignInfoConfirmIViewModel.swift
...nfoConfirm(续签信息确认)/VM/YHResignInfoConfirmIViewModel.swift
+5
-5
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
a53cfe90
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/C/YHResignAppointScheduleListViewController.swift
View file @
a53cfe90
...
@@ -39,8 +39,8 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
...
@@ -39,8 +39,8 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
tableView
.
separatorStyle
=
.
none
tableView
.
separatorStyle
=
.
none
tableView
.
bounces
=
false
tableView
.
bounces
=
false
tableView
.
register
(
YHResign
HaveAppointedMultipleInfoCell
.
self
,
forCellReuseIdentifier
:
YHResignHaveAppointed
MultipleInfoCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHResign
ScheduleMultipleInfoCell
.
self
,
forCellReuseIdentifier
:
YHResignSchedule
MultipleInfoCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHResign
HaveAppointedSingleInfoCell
.
self
,
forCellReuseIdentifier
:
YHResignHaveAppointed
SingleInfoCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHResign
ScheduleSingleInfoCell
.
self
,
forCellReuseIdentifier
:
YHResignSchedule
SingleInfoCell
.
cellReuseIdentifier
)
tableView
.
delegate
=
self
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
dataSource
=
self
return
tableView
return
tableView
...
@@ -360,7 +360,7 @@ extension YHResignAppointScheduleListViewController: UITableViewDelegate, UITabl
...
@@ -360,7 +360,7 @@ extension YHResignAppointScheduleListViewController: UITableViewDelegate, UITabl
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
scheduleArr
.
count
{
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
scheduleArr
.
count
{
let
model
=
scheduleArr
[
indexPath
.
row
]
let
model
=
scheduleArr
[
indexPath
.
row
]
if
scheduleArr
.
count
<=
1
{
if
scheduleArr
.
count
<=
1
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResign
HaveAppointedSingleInfoCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignHaveAppointed
SingleInfoCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResign
ScheduleSingleInfoCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignSchedule
SingleInfoCell
cell
.
updateModel
(
model
)
cell
.
updateModel
(
model
)
// 点击确认在港或未确认在港按钮
// 点击确认在港或未确认在港按钮
cell
.
clickConfirmBtnBlock
=
{
cell
.
clickConfirmBtnBlock
=
{
...
@@ -379,7 +379,7 @@ extension YHResignAppointScheduleListViewController: UITableViewDelegate, UITabl
...
@@ -379,7 +379,7 @@ extension YHResignAppointScheduleListViewController: UITableViewDelegate, UITabl
}
}
// 分组
// 分组
let
cell2
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResign
HaveAppointedMultipleInfoCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignHaveAppointed
MultipleInfoCell
let
cell2
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResign
ScheduleMultipleInfoCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignSchedule
MultipleInfoCell
model
.
batchIndex
=
indexPath
.
row
+
1
model
.
batchIndex
=
indexPath
.
row
+
1
cell2
.
updateModel
(
model
)
cell2
.
updateModel
(
model
)
cell2
.
clickConfirmBtnBlock
=
{
cell2
.
clickConfirmBtnBlock
=
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/C/YHResignAppointTimeModifyViewController.swift
View file @
a53cfe90
...
@@ -33,7 +33,7 @@ class YHResignAppointTimeModifyViewController: YHBaseViewController {
...
@@ -33,7 +33,7 @@ class YHResignAppointTimeModifyViewController: YHBaseViewController {
tableView
.
separatorStyle
=
.
none
tableView
.
separatorStyle
=
.
none
tableView
.
bounces
=
false
tableView
.
bounces
=
false
tableView
.
register
(
YHResignAppointOptionResultCell
.
self
,
forCellReuseIdentifier
:
YHResignAppointOptionResultCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHResignAppointOptionResultCell
.
self
,
forCellReuseIdentifier
:
YHResignAppointOptionResultCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHResign
AppointApplicantInfoCell
.
self
,
forCellReuseIdentifier
:
YHResignAppointApplicant
InfoCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHResign
HaveAppointedApplicantsInfoCell
.
self
,
forCellReuseIdentifier
:
YHResignHaveAppointedApplicants
InfoCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHResignAppointTimeMultipleCell
.
self
,
forCellReuseIdentifier
:
YHResignAppointTimeMultipleCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHResignAppointTimeMultipleCell
.
self
,
forCellReuseIdentifier
:
YHResignAppointTimeMultipleCell
.
cellReuseIdentifier
)
tableView
.
delegate
=
self
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
dataSource
=
self
...
@@ -129,7 +129,7 @@ extension YHResignAppointTimeModifyViewController: UITableViewDelegate, UITableV
...
@@ -129,7 +129,7 @@ extension YHResignAppointTimeModifyViewController: UITableViewDelegate, UITableV
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
selectGroupArr
.
count
{
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
selectGroupArr
.
count
{
let
model
=
selectGroupArr
[
indexPath
.
row
]
let
model
=
selectGroupArr
[
indexPath
.
row
]
if
model
.
isHaveAppointed
{
// 已确认在港 只展示信息
if
model
.
isHaveAppointed
{
// 已确认在港 只展示信息
let
cell1
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResign
AppointApplicantInfoCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignAppointApplicant
InfoCell
let
cell1
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResign
HaveAppointedApplicantsInfoCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignHaveAppointedApplicants
InfoCell
cell1
.
updateModel
(
model
)
cell1
.
updateModel
(
model
)
return
cell1
return
cell1
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResignAppointTimeMultipleCell.swift
View file @
a53cfe90
...
@@ -84,7 +84,7 @@ class YHResignAppointTimeMultipleCell: UITableViewCell {
...
@@ -84,7 +84,7 @@ class YHResignAppointTimeMultipleCell: UITableViewCell {
collectView
.
dataSource
=
self
collectView
.
dataSource
=
self
collectView
.
backgroundColor
=
.
clear
collectView
.
backgroundColor
=
.
clear
// 注册自定义单元格
// 注册自定义单元格
collectView
.
register
(
YHResign
AppointApplicantCell
.
self
,
forCellWithReuseIdentifier
:
YHResignAppointApplican
tCell
.
cellReuseIdentifier
)
collectView
.
register
(
YHResign
SelectApplicantCollectCell
.
self
,
forCellWithReuseIdentifier
:
YHResignSelectApplicantCollec
tCell
.
cellReuseIdentifier
)
return
collectView
return
collectView
}()
}()
...
@@ -425,7 +425,7 @@ extension YHResignAppointTimeMultipleCell: UICollectionViewDelegate, UICollectio
...
@@ -425,7 +425,7 @@ extension YHResignAppointTimeMultipleCell: UICollectionViewDelegate, UICollectio
// 返回自定义单元格
// 返回自定义单元格
func
collectionView
(
_
collectionView
:
UICollectionView
,
cellForItemAt
indexPath
:
IndexPath
)
->
UICollectionViewCell
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
cellForItemAt
indexPath
:
IndexPath
)
->
UICollectionViewCell
{
let
cell
=
collectionView
.
dequeueReusableCell
(
withReuseIdentifier
:
YHResign
AppointApplicantCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignAppointApplican
tCell
let
cell
=
collectionView
.
dequeueReusableCell
(
withReuseIdentifier
:
YHResign
SelectApplicantCollectCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignSelectApplicantCollec
tCell
if
0
<=
indexPath
.
item
&&
indexPath
.
item
<
arr
.
count
{
if
0
<=
indexPath
.
item
&&
indexPath
.
item
<
arr
.
count
{
let
applicant
=
arr
[
indexPath
.
item
]
let
applicant
=
arr
[
indexPath
.
item
]
cell
.
updateApplicantInfo
(
applicant
)
cell
.
updateApplicantInfo
(
applicant
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResignAppointedScheduleLineView.swift
View file @
a53cfe90
...
@@ -44,7 +44,7 @@ class YHResignAppointedScheduleLineView: UIView {
...
@@ -44,7 +44,7 @@ class YHResignAppointedScheduleLineView: UIView {
let
collectionView
=
UICollectionView
(
frame
:
.
zero
,
collectionViewLayout
:
flowLayout
)
let
collectionView
=
UICollectionView
(
frame
:
.
zero
,
collectionViewLayout
:
flowLayout
)
collectionView
.
backgroundColor
=
.
clear
collectionView
.
backgroundColor
=
.
clear
collectionView
.
register
(
YHResign
AppointedScheduleLineCollectCell
.
self
,
forCellWithReuseIdentifier
:
YHResignAppointed
ScheduleLineCollectCell
.
cellReuseIdentifier
)
collectionView
.
register
(
YHResign
ScheduleLineCollectCell
.
self
,
forCellWithReuseIdentifier
:
YHResign
ScheduleLineCollectCell
.
cellReuseIdentifier
)
collectionView
.
delegate
=
self
collectionView
.
delegate
=
self
collectionView
.
dataSource
=
self
collectionView
.
dataSource
=
self
collectionView
.
bounces
=
false
collectionView
.
bounces
=
false
...
@@ -134,7 +134,7 @@ extension YHResignAppointedScheduleLineView: UICollectionViewDelegate, UICollect
...
@@ -134,7 +134,7 @@ extension YHResignAppointedScheduleLineView: UICollectionViewDelegate, UICollect
// 返回自定义单元格
// 返回自定义单元格
func
collectionView
(
_
collectionView
:
UICollectionView
,
cellForItemAt
indexPath
:
IndexPath
)
->
UICollectionViewCell
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
cellForItemAt
indexPath
:
IndexPath
)
->
UICollectionViewCell
{
let
cell
=
collectionView
.
dequeueReusableCell
(
withReuseIdentifier
:
YHResign
AppointedScheduleLineCollectCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignAppointed
ScheduleLineCollectCell
let
cell
=
collectionView
.
dequeueReusableCell
(
withReuseIdentifier
:
YHResign
ScheduleLineCollectCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResign
ScheduleLineCollectCell
if
0
<=
indexPath
.
item
&&
indexPath
.
item
<
steps
.
count
{
if
0
<=
indexPath
.
item
&&
indexPath
.
item
<
steps
.
count
{
let
model
=
steps
[
indexPath
.
item
]
let
model
=
steps
[
indexPath
.
item
]
model
.
index
=
indexPath
.
item
+
1
model
.
index
=
indexPath
.
item
+
1
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResign
AppointApplicant
InfoCell.swift
→
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResign
HaveAppointedApplicants
InfoCell.swift
View file @
a53cfe90
//
//
// YHResign
AppointApplicant
InfoCell.swift
// YHResign
HaveAppointedApplicants
InfoCell.swift
// galaxy
// galaxy
//
//
// Created by edy on 2024/10/10.
// Created by edy on 2024/10/10.
...
@@ -9,9 +9,9 @@
...
@@ -9,9 +9,9 @@
import
UIKit
import
UIKit
import
AttributedString
import
AttributedString
class
YHResign
AppointApplicant
InfoCell
:
UITableViewCell
{
class
YHResign
HaveAppointedApplicants
InfoCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHResign
AppointApplicant
InfoCell"
static
let
cellReuseIdentifier
=
"YHResign
HaveAppointedApplicants
InfoCell"
lazy
var
whiteContentView
:
UIView
=
{
lazy
var
whiteContentView
:
UIView
=
{
let
view
=
UIView
()
let
view
=
UIView
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResign
Appointed
ScheduleLineCollectCell.swift
→
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResignScheduleLineCollectCell.swift
View file @
a53cfe90
//
//
// YHResign
AppointedScheduleLine
Cell.swift
// YHResign
ScheduleLineCollect
Cell.swift
// galaxy
// galaxy
//
//
// Created by edy on 2024/10/10.
// Created by edy on 2024/10/10.
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
import
UIKit
import
UIKit
class
YHResign
Appointed
ScheduleLineCollectCell
:
UICollectionViewCell
{
class
YHResignScheduleLineCollectCell
:
UICollectionViewCell
{
static
let
cellReuseIdentifier
=
"YHResign
Appointed
ScheduleLineCollectCell"
static
let
cellReuseIdentifier
=
"YHResignScheduleLineCollectCell"
lazy
var
numLabel
:
UILabel
=
{
lazy
var
numLabel
:
UILabel
=
{
var
label
=
UILabel
()
var
label
=
UILabel
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResign
HaveAppointed
MultipleInfoCell.swift
→
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResign
Schedule
MultipleInfoCell.swift
View file @
a53cfe90
//
//
// YHResign
HaveAppointedInfoCellTableView
Cell.swift
// YHResign
ScheduleMultipleInfo
Cell.swift
// galaxy
// galaxy
//
//
// Created by edy on 2024/10/10.
// Created by edy on 2024/10/10.
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
import
UIKit
import
UIKit
class
YHResign
HaveAppointed
MultipleInfoCell
:
UITableViewCell
{
class
YHResign
Schedule
MultipleInfoCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHResign
HaveAppointed
MultipleInfoCell"
static
let
cellReuseIdentifier
=
"YHResign
Schedule
MultipleInfoCell"
var
confirmHKStatus
:
YHResignConfirmHKStatus
=
.
waitConfirmHK
var
confirmHKStatus
:
YHResignConfirmHKStatus
=
.
waitConfirmHK
var
clickConfirmBtnBlock
:
((
YHResignConfirmHKStatus
)
->
())?
var
clickConfirmBtnBlock
:
((
YHResignConfirmHKStatus
)
->
())?
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResign
HaveAppointed
SingleInfoCell.swift
→
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResign
Schedule
SingleInfoCell.swift
View file @
a53cfe90
//
//
// YHResign
HaveAppointed
SingleInfoCell.swift
// YHResign
Schedule
SingleInfoCell.swift
// galaxy
// galaxy
//
//
// Created by edy on 2024/10/11.
// Created by edy on 2024/10/11.
...
@@ -14,9 +14,9 @@ enum YHResignConfirmHKStatus: Int {
...
@@ -14,9 +14,9 @@ enum YHResignConfirmHKStatus: Int {
case
haveConfirmHK
=
2
// 已确认在港
case
haveConfirmHK
=
2
// 已确认在港
}
}
class
YHResign
HaveAppointed
SingleInfoCell
:
UITableViewCell
{
class
YHResign
Schedule
SingleInfoCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHResign
HaveAppointed
SingleInfoCell"
static
let
cellReuseIdentifier
=
"YHResign
Schedule
SingleInfoCell"
var
clickConfirmBtnBlock
:
((
YHResignConfirmHKStatus
)
->
())?
var
clickConfirmBtnBlock
:
((
YHResignConfirmHKStatus
)
->
())?
var
modifyBtnBlock
:
(()
->
())?
var
modifyBtnBlock
:
(()
->
())?
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResign
AppointApplican
tCell.swift
→
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResign
SelectApplicantCollec
tCell.swift
View file @
a53cfe90
//
//
// YHResign
AppointApplican
tCell.swift
// YHResign
SelectApplicantCollec
tCell.swift
// galaxy
// galaxy
//
//
// Created by edy on 2024/10/12.
// Created by edy on 2024/10/12.
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
import
UIKit
import
UIKit
class
YHResign
AppointApplican
tCell
:
UICollectionViewCell
{
class
YHResign
SelectApplicantCollec
tCell
:
UICollectionViewCell
{
static
let
cellReuseIdentifier
=
"YHResign
AppointApplican
tCell"
static
let
cellReuseIdentifier
=
"YHResign
SelectApplicantCollec
tCell"
lazy
var
selectImgView
:
UIImageView
=
{
lazy
var
selectImgView
:
UIImageView
=
{
let
view
=
UIImageView
(
image
:
UIImage
(
named
:
""
))
let
view
=
UIImageView
(
image
:
UIImage
(
named
:
""
))
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignInfoConfirm(续签信息确认)/C/YHResignInfoConfirmModifyViewController.swift
View file @
a53cfe90
...
@@ -167,6 +167,21 @@ class YHResignInfoConfirmModifyViewController: YHBaseViewController {
...
@@ -167,6 +167,21 @@ class YHResignInfoConfirmModifyViewController: YHBaseViewController {
}
}
}
}
}
}
func
requestNamePinYin
()
{
YHHUD
.
hide
()
if
!
self
.
detailMember
.
name
.
isEmpty
,
self
.
detailMember
.
familyName
.
isEmpty
{
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
getPinYinFromName
(
self
.
detailMember
.
name
)
{
[
weak
self
]
firstName
,
lastName
in
YHHUD
.
hide
()
guard
let
self
=
self
else
{
return
}
self
.
detailMember
.
familyName
=
firstName
self
.
detailMember
.
givenName
=
lastName
self
.
updateData
()
}
}
}
}
}
extension
YHResignInfoConfirmModifyViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
extension
YHResignInfoConfirmModifyViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
...
@@ -202,13 +217,21 @@ extension YHResignInfoConfirmModifyViewController: UITableViewDelegate, UITableV
...
@@ -202,13 +217,21 @@ extension YHResignInfoConfirmModifyViewController: UITableViewDelegate, UITableV
self
.
isInfoEditing
=
true
self
.
isInfoEditing
=
true
self
.
detailMember
.
isNeedCheck
=
true
self
.
detailMember
.
isNeedCheck
=
true
self
.
updateData
()
self
.
updateData
()
self
.
requestNamePinYin
()
return
return
}
}
}
}
self
.
isInfoEditing
=
isEdit
self
.
isInfoEditing
=
isEdit
self
.
updateData
()
self
.
updateData
()
self
.
requestNamePinYin
()
}
}
cell
.
updateNamePinYinBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
self
.
requestNamePinYin
()
}
// 选择出生国家/地区
// 选择出生国家/地区
cell
.
selectBirthNation
=
{
cell
.
selectBirthNation
=
{
[
weak
self
]
isInChina
in
[
weak
self
]
isInChina
in
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignInfoConfirm(续签信息确认)/V/YHResignFamilyInfoListCell.swift
View file @
a53cfe90
...
@@ -143,6 +143,8 @@ class YHResignFamilyInfoListCell: UITableViewCell {
...
@@ -143,6 +143,8 @@ class YHResignFamilyInfoListCell: UITableViewCell {
// 是否进入编辑模式
// 是否进入编辑模式
var
editBlock
:((
Bool
)
->
())?
var
editBlock
:((
Bool
)
->
())?
// 更新姓名拼音
var
updateNamePinYinBlock
:(()
->
())?
// 选择出生国家
// 选择出生国家
var
selectBirthNation
:((
Bool
)
->
())?
var
selectBirthNation
:((
Bool
)
->
())?
// 姓名更改
// 姓名更改
...
@@ -249,32 +251,12 @@ class YHResignFamilyInfoListCell: UITableViewCell {
...
@@ -249,32 +251,12 @@ class YHResignFamilyInfoListCell: UITableViewCell {
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
updateList
?()
self
.
updateList
?()
}
}
// itemView.updateName = {
itemView
.
updateNamePinYinBlock
=
{
// [weak self] text in
[
weak
self
]
in
// guard let self = self else { return }
guard
let
self
=
self
else
{
return
}
// for subView in self.itemsContentView.subviews {
self
.
updateNamePinYinBlock
?()
// if subView is YHResignInfoItemView {
}
// let targetView = subView as! YHResignInfoItemView
// if targetView.item.id == .firstName {
// targetView.item.value = self.familyInfo.familyName
// }
// if targetView.item.id == .lastName {
// targetView.item.value = self.familyInfo.givenName
// targetView.updateItem(targetView.item, familyInfo: self.familyInfo)
// }
// targetView.updateItem(targetView.item, familyInfo: self.familyInfo)
// }
// }
// self.itemsContentView.snp.updateConstraints { make in
// make.top.equalTo(self.titleLabel.snp.bottom).offset(12)
// make.left.equalTo(18)
// make.right.equalTo(-18)
// make.bottom.equalTo(0)
// }
// self.setNeedsLayout()
// self.layoutIfNeeded()
//
// }
}
else
if
let
itemView
=
itemView
as?
YHResignInfoValidTimeItemView
{
}
else
if
let
itemView
=
itemView
as?
YHResignInfoValidTimeItemView
{
itemsContentView
.
addSubview
(
itemView
)
itemsContentView
.
addSubview
(
itemView
)
itemView
.
updateItem
(
item
,
familyInfo
:
familyInfo
)
itemView
.
updateItem
(
item
,
familyInfo
:
familyInfo
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignInfoConfirm(续签信息确认)/V/YHResignInfoItemView.swift
View file @
a53cfe90
...
@@ -17,8 +17,8 @@ class YHResignInfoItemView: UIView {
...
@@ -17,8 +17,8 @@ class YHResignInfoItemView: UIView {
var
item
:
YHResignFamilyInfoItem
=
YHResignFamilyInfoItem
()
var
item
:
YHResignFamilyInfoItem
=
YHResignFamilyInfoItem
()
var
faimilyInfo
=
YHResignInfoConfirmFamilyModel
()
var
faimilyInfo
=
YHResignInfoConfirmFamilyModel
()
//
姓名更改
//
更新姓名拼音
var
updateName
:((
String
)
->
())?
var
updateName
PinYinBlock
:((
)
->
())?
var
updateList
:(()
->
())?
var
updateList
:(()
->
())?
let
rightBtnWidth
=
22.0
let
rightBtnWidth
=
22.0
...
@@ -350,11 +350,8 @@ extension YHResignInfoItemView: UITextFieldDelegate {
...
@@ -350,11 +350,8 @@ extension YHResignInfoItemView: UITextFieldDelegate {
func
textFieldDidEndEditing
(
_
textField
:
UITextField
)
{
func
textFieldDidEndEditing
(
_
textField
:
UITextField
)
{
if
self
.
item
.
id
==
.
mainApplicantName
||
self
.
item
.
id
==
.
spouseName
||
self
.
item
.
id
==
.
childName
{
if
self
.
item
.
id
==
.
mainApplicantName
||
self
.
item
.
id
==
.
spouseName
||
self
.
item
.
id
==
.
childName
{
// 名称编辑时需防抖请求拼音
self
.
updateNamePinYin
()
debounceTimer
?
.
invalidate
()
debounceTimer
=
Timer
.
scheduledTimer
(
withTimeInterval
:
1.0
,
repeats
:
false
)
{
[
weak
self
]
_
in
self
?
.
updateNamePinYin
()
}
}
else
{
}
else
{
self
.
updateList
?()
self
.
updateList
?()
}
}
...
@@ -371,17 +368,7 @@ extension YHResignInfoItemView: UITextFieldDelegate {
...
@@ -371,17 +368,7 @@ extension YHResignInfoItemView: UITextFieldDelegate {
self
.
updateList
?()
self
.
updateList
?()
return
return
}
}
self
.
updateNamePinYinBlock
?()
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
getPinYinFromName
(
text
)
{
[
weak
self
]
firstNamePinYin
,
lastNamePinYin
in
YHHUD
.
hide
()
guard
let
self
=
self
else
{
return
}
self
.
faimilyInfo
.
familyName
=
firstNamePinYin
self
.
faimilyInfo
.
givenName
=
lastNamePinYin
self
.
updateList
?()
}
}
}
}
}
...
@@ -395,6 +382,8 @@ extension YHResignInfoItemView: UITextFieldDelegate {
...
@@ -395,6 +382,8 @@ extension YHResignInfoItemView: UITextFieldDelegate {
self
.
faimilyInfo
.
familyName
=
""
self
.
faimilyInfo
.
familyName
=
""
self
.
faimilyInfo
.
givenName
=
""
self
.
faimilyInfo
.
givenName
=
""
self
.
updateList
?()
self
.
updateList
?()
}
else
{
}
}
return
return
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignInfoConfirm(续签信息确认)/VM/YHResignInfoConfirmIViewModel.swift
View file @
a53cfe90
...
@@ -105,7 +105,7 @@ class YHResignInfoConfirmViewModel {
...
@@ -105,7 +105,7 @@ class YHResignInfoConfirmViewModel {
}
}
}
}
func
getPinYinFromName
(
_
name
:
String
,
callback
:
((
String
,
String
)
->
())?
)
{
func
getPinYinFromName
(
_
name
:
String
,
callback
:
@escaping
((
String
,
String
)
->
())
)
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
FamilyInfoConfirm
.
pinyinInfo
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
FamilyInfoConfirm
.
pinyinInfo
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
[
"name"
:
name
])
{
[
weak
self
]
json
,
code
in
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
[
"name"
:
name
])
{
[
weak
self
]
json
,
code
in
...
@@ -117,19 +117,19 @@ class YHResignInfoConfirmViewModel {
...
@@ -117,19 +117,19 @@ class YHResignInfoConfirmViewModel {
guard
let
dic
=
json
.
data
?
.
peel
as?
[
String
:
Any
],
let
resultModel
=
YHFamilyNamePinYin
.
deserialize
(
from
:
dic
)
else
{
guard
let
dic
=
json
.
data
?
.
peel
as?
[
String
:
Any
],
let
resultModel
=
YHFamilyNamePinYin
.
deserialize
(
from
:
dic
)
else
{
let
err
=
YHErrorModel
(
errorCode
:
YHErrorCode
.
dictParseError
.
rawValue
,
errorMsg
:
YHErrorCode
.
dictParseError
.
description
())
let
err
=
YHErrorModel
(
errorCode
:
YHErrorCode
.
dictParseError
.
rawValue
,
errorMsg
:
YHErrorCode
.
dictParseError
.
description
())
callback
?
(
""
,
""
)
callback
(
""
,
""
)
return
return
}
}
self
.
pinyinInfo
=
resultModel
self
.
pinyinInfo
=
resultModel
callback
?
(
resultModel
.
family_name
,
resultModel
.
given_name
)
callback
(
resultModel
.
family_name
,
resultModel
.
given_name
)
}
else
{
}
else
{
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
callback
?
(
""
,
""
)
callback
(
""
,
""
)
}
}
}
failBlock
:
{
err
in
}
failBlock
:
{
err
in
callback
?
(
""
,
""
)
callback
(
""
,
""
)
}
}
}
}
}
}
...
...
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