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
9a510d9a
Commit
9a510d9a
authored
Aug 23, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 赴港
parent
1081e7c1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
193 additions
and
6 deletions
+193
-6
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHCertificateAppointViewController.swift
...cate(3 赴港办证预约)/C/YHCertificateAppointViewController.swift
+18
-6
YHCancelAppointAlertView.swift
...intCertificate(3 赴港办证预约)/V/YHCancelAppointAlertView.swift
+170
-0
YHSelectApplicantGroupCell.swift
...tCertificate(3 赴港办证预约)/V/YHSelectApplicantGroupCell.swift
+1
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
9a510d9a
...
@@ -129,6 +129,7 @@
...
@@ -129,6 +129,7 @@
04358E0A2C7835B000811928
/* YHMakeCertificatePlaceModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04358E092C7835B000811928
/* YHMakeCertificatePlaceModel.swift */
;
};
04358E0A2C7835B000811928
/* YHMakeCertificatePlaceModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04358E092C7835B000811928
/* YHMakeCertificatePlaceModel.swift */
;
};
04358E0C2C7836BB00811928
/* YHSelectHKPlaceListView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04358E0B2C7836BB00811928
/* YHSelectHKPlaceListView.swift */
;
};
04358E0C2C7836BB00811928
/* YHSelectHKPlaceListView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04358E0B2C7836BB00811928
/* YHSelectHKPlaceListView.swift */
;
};
04358E0E2C78395200811928
/* YHHKPlaceInfoCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04358E0D2C78395200811928
/* YHHKPlaceInfoCell.swift */
;
};
04358E0E2C78395200811928
/* YHHKPlaceInfoCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04358E0D2C78395200811928
/* YHHKPlaceInfoCell.swift */
;
};
04358E102C78819F00811928
/* YHCancelAppointAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04358E0F2C78819F00811928
/* YHCancelAppointAlertView.swift */
;
};
0435FA7F2BA178C100024EAE
/* YHCommonAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0435FA7E2BA178C100024EAE
/* YHCommonAlertView.swift */
;
};
0435FA7F2BA178C100024EAE
/* YHCommonAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0435FA7E2BA178C100024EAE
/* YHCommonAlertView.swift */
;
};
0435FA812BA186D600024EAE
/* YHMyFileMethodTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0435FA802BA186D600024EAE
/* YHMyFileMethodTableViewCell.swift */
;
};
0435FA812BA186D600024EAE
/* YHMyFileMethodTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0435FA802BA186D600024EAE
/* YHMyFileMethodTableViewCell.swift */
;
};
0435FA832BA2DEB100024EAE
/* YHCardButton.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0435FA822BA2DEB100024EAE
/* YHCardButton.swift */
;
};
0435FA832BA2DEB100024EAE
/* YHCardButton.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0435FA822BA2DEB100024EAE
/* YHCardButton.swift */
;
};
...
@@ -880,6 +881,7 @@
...
@@ -880,6 +881,7 @@
04358E092C7835B000811928
/* YHMakeCertificatePlaceModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakeCertificatePlaceModel.swift
;
sourceTree
=
"<group>"
;
};
04358E092C7835B000811928
/* YHMakeCertificatePlaceModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakeCertificatePlaceModel.swift
;
sourceTree
=
"<group>"
;
};
04358E0B2C7836BB00811928
/* YHSelectHKPlaceListView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSelectHKPlaceListView.swift
;
sourceTree
=
"<group>"
;
};
04358E0B2C7836BB00811928
/* YHSelectHKPlaceListView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSelectHKPlaceListView.swift
;
sourceTree
=
"<group>"
;
};
04358E0D2C78395200811928
/* YHHKPlaceInfoCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHKPlaceInfoCell.swift
;
sourceTree
=
"<group>"
;
};
04358E0D2C78395200811928
/* YHHKPlaceInfoCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHKPlaceInfoCell.swift
;
sourceTree
=
"<group>"
;
};
04358E0F2C78819F00811928
/* YHCancelAppointAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCancelAppointAlertView.swift
;
sourceTree
=
"<group>"
;
};
0435FA7E2BA178C100024EAE
/* YHCommonAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCommonAlertView.swift
;
sourceTree
=
"<group>"
;
};
0435FA7E2BA178C100024EAE
/* YHCommonAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCommonAlertView.swift
;
sourceTree
=
"<group>"
;
};
0435FA802BA186D600024EAE
/* YHMyFileMethodTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyFileMethodTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
0435FA802BA186D600024EAE
/* YHMyFileMethodTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyFileMethodTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
0435FA822BA2DEB100024EAE
/* YHCardButton.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCardButton.swift
;
sourceTree
=
"<group>"
;
};
0435FA822BA2DEB100024EAE
/* YHCardButton.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCardButton.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -1682,6 +1684,7 @@
...
@@ -1682,6 +1684,7 @@
04256DEF2C733B2D00A37BA4
/* YHGrabNumberInfoView.swift */
,
04256DEF2C733B2D00A37BA4
/* YHGrabNumberInfoView.swift */
,
04256DF32C73626900A37BA4
/* YHServiceSelectAlertView.swift */
,
04256DF32C73626900A37BA4
/* YHServiceSelectAlertView.swift */
,
04358E0B2C7836BB00811928
/* YHSelectHKPlaceListView.swift */
,
04358E0B2C7836BB00811928
/* YHSelectHKPlaceListView.swift */
,
04358E0F2C78819F00811928
/* YHCancelAppointAlertView.swift */
,
);
);
path
=
V
;
path
=
V
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -4787,6 +4790,7 @@
...
@@ -4787,6 +4790,7 @@
045EEECA2B9F171A0022A143
/* YHMyDocumentsListViewController.swift in Sources */
,
045EEECA2B9F171A0022A143
/* YHMyDocumentsListViewController.swift in Sources */
,
049D62C52C6F272800E811A1
/* YHRiskWarningCell.swift in Sources */
,
049D62C52C6F272800E811A1
/* YHRiskWarningCell.swift in Sources */
,
04358E062C77334B00811928
/* YHHaveGrabbedNumberInfoView.swift in Sources */
,
04358E062C77334B00811928
/* YHHaveGrabbedNumberInfoView.swift in Sources */
,
04358E102C78819F00811928
/* YHCancelAppointAlertView.swift in Sources */
,
045EEF052B9F171A0022A143
/* YHFormItemExpireDateCell.swift in Sources */
,
045EEF052B9F171A0022A143
/* YHFormItemExpireDateCell.swift in Sources */
,
043B0A352C1190C6008A9BBA
/* YHSelectFileSheetView.swift in Sources */
,
043B0A352C1190C6008A9BBA
/* YHSelectFileSheetView.swift in Sources */
,
0430E6462C73171E000511E2
/* YHAdopterStepTableViewCell.swift in Sources */
,
0430E6462C73171E000511E2
/* YHAdopterStepTableViewCell.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/C/YHCertificateAppointViewController.swift
View file @
9a510d9a
...
@@ -316,14 +316,26 @@ extension YHCertificateAppointViewController: UITableViewDelegate, UITableViewDa
...
@@ -316,14 +316,26 @@ extension YHCertificateAppointViewController: UITableViewDelegate, UITableViewDa
[
weak
self
]
groupModel
in
[
weak
self
]
groupModel
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
// 抢号中点击取消预约
// 抢号中点击取消预约
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
cancelAppoint
(
orderId
:
orderId
,
reservationId
:
groupModel
.
id
)
{
success
in
let
alert
=
YHCancelAppointAlertView
.
alertView
()
YHHUD
.
hide
()
alert
.
memberNamesText
=
groupModel
.
getMemberNames
()
if
!
success
{
alert
.
selectBlock
=
{
YHHUD
.
flash
(
message
:
"取消失败"
)
[
weak
self
]
sure
in
guard
let
self
=
self
else
{
return
}
if
!
sure
{
return
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
()
}
}
}
}
}
return
cell
return
cell
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHCancelAppointAlertView.swift
0 → 100644
View file @
9a510d9a
//
// YHCancelAppointAlertView.swift
// galaxy
//
// Created by edy on 2024/8/23.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
AttributedString
class
YHCancelAppointAlertView
:
UIView
{
let
baseTag
=
9527
var
selectBlock
:((
Bool
)
->
())?
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
))
detailLabel
.
attributed
.
text
=
a
+
b
}
}
// 底层蒙版
lazy
var
blackMaskView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
alertMaskColor
return
view
}()
lazy
var
whiteContentView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
view
.
layer
.
cornerRadius
=
kCornerRadius6
return
view
}()
lazy
var
iconImgView
:
UIImageView
=
{
let
view
=
UIImageView
(
image
:
UIImage
(
named
:
"cs_family_risk"
))
return
view
}()
lazy
var
titleLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
textAlignment
=
.
center
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
17
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
text
=
"取消预约"
return
label
}()
lazy
var
detailLabel
:
UILabel
=
{
var
label
=
UILabel
()
label
.
numberOfLines
=
0
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14.0
)
return
label
}()
lazy
var
cancelBtn
:
UIButton
=
{
let
button
=
UIButton
()
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
button
.
setTitle
(
"否"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
.
white
,
for
:
.
normal
)
button
.
backgroundColor
=
.
brandMainColor
button
.
tag
=
baseTag
+
0
button
.
layer
.
cornerRadius
=
kCornerRadius3
return
button
}()
lazy
var
confirmBtn
:
UIButton
=
{
let
button
=
UIButton
()
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
button
.
setTitle
(
"是"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
.
brandMainColor
,
for
:
.
normal
)
button
.
backgroundColor
=
.
white
button
.
layer
.
borderWidth
=
1.0
button
.
tag
=
baseTag
+
1
button
.
layer
.
borderColor
=
UIColor
.
brandMainColor
.
cgColor
button
.
layer
.
cornerRadius
=
kCornerRadius3
return
button
}()
@objc
func
didConfirmBtnClicked
(
_
sender
:
UIButton
)
{
let
tag
=
sender
.
tag
-
self
.
baseTag
selectBlock
?(
tag
==
1
)
}
static
func
alertView
()
->
YHCancelAppointAlertView
{
let
view
=
YHCancelAppointAlertView
(
frame
:
UIScreen
.
main
.
bounds
)
return
view
}
@objc
func
show
()
{
UIApplication
.
shared
.
yhKeyWindow
()?
.
addSubview
(
self
)
}
@objc
func
dismiss
()
{
self
.
removeFromSuperview
()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
createUI
()
}
func
createUI
()
{
self
.
addSubview
(
blackMaskView
)
self
.
addSubview
(
whiteContentView
)
whiteContentView
.
addSubview
(
iconImgView
)
whiteContentView
.
addSubview
(
titleLabel
)
whiteContentView
.
addSubview
(
detailLabel
)
whiteContentView
.
addSubview
(
confirmBtn
)
whiteContentView
.
addSubview
(
cancelBtn
)
confirmBtn
.
addTarget
(
self
,
action
:
#selector(
didConfirmBtnClicked(_:)
)
,
for
:
.
touchUpInside
)
cancelBtn
.
addTarget
(
self
,
action
:
#selector(
didConfirmBtnClicked(_:)
)
,
for
:
.
touchUpInside
)
blackMaskView
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
}
whiteContentView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
38
)
make
.
right
.
equalTo
(
-
38
)
make
.
centerY
.
equalToSuperview
()
}
iconImgView
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
53
)
make
.
top
.
equalTo
(
30
)
make
.
centerX
.
equalToSuperview
()
}
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
iconImgView
.
snp
.
bottom
)
.
offset
(
16
)
make
.
height
.
equalTo
(
24
)
make
.
left
.
equalTo
(
21
)
make
.
right
.
equalTo
(
-
21
)
}
detailLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
21
)
make
.
right
.
equalTo
(
-
21
)
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
8
)
}
confirmBtn
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
detailLabel
.
snp
.
bottom
)
.
offset
(
30
)
make
.
left
.
equalTo
(
21
)
make
.
right
.
equalTo
(
cancelBtn
.
snp
.
left
)
.
offset
(
-
8
)
make
.
bottom
.
equalTo
(
-
21
)
make
.
height
.
equalTo
(
45
)
}
cancelBtn
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalTo
(
confirmBtn
)
make
.
height
.
equalTo
(
45
)
make
.
right
.
equalTo
(
-
21
)
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHSelectApplicantGroupCell.swift
View file @
9a510d9a
...
@@ -295,6 +295,7 @@ extension YHSelectApplicantGroupCell: UICollectionViewDelegate, UICollectionView
...
@@ -295,6 +295,7 @@ extension YHSelectApplicantGroupCell: UICollectionViewDelegate, UICollectionView
}
}
if
selectArr
.
count
==
1
,
member
.
isSelected
==
true
,
member
.
id
==
selectArr
[
0
]
.
id
{
if
selectArr
.
count
==
1
,
member
.
isSelected
==
true
,
member
.
id
==
selectArr
[
0
]
.
id
{
// 分组中仅有一个选中用户 且点击的是该用户
// 分组中仅有一个选中用户 且点击的是该用户
YHHUD
.
flash
(
message
:
"一个批次最少需要选中一个申请个人"
)
return
return
}
}
selectBlock
?(
member
,
!
member
.
isSelected
,
dataModel
.
itemIndex
)
selectBlock
?(
member
,
!
member
.
isSelected
,
dataModel
.
itemIndex
)
...
...
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