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
4bc22a28
Commit
4bc22a28
authored
Aug 24, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS
into develop
parents
23d8066e
a2e36b0f
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
122 additions
and
87 deletions
+122
-87
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-4
YHServiceCenterMainViewController.swift
...ntService(服务中心)/C/YHServiceCenterMainViewController.swift
+13
-10
YHSelectApplicantGroupCell.swift
...tCertificate(3 赴港办证预约)/V/YHSelectApplicantGroupCell.swift
+38
-0
YHUploadCertificateDetailVC.swift
...dCertificate(7上传过关证件)/C/YHUploadCertificateDetailVC.swift
+0
-0
YHUploadCertificateVC.swift
.../UploadCertificate(7上传过关证件)/C/YHUploadCertificateVC.swift
+47
-49
YHUploadCertificateDateItem.swift
...dCertificate(7上传过关证件)/V/YHUploadCertificateDateItem.swift
+4
-0
YHVisaPaymentVC.swift
...ificate(办证段)/VisaPayment(4电子签字缴费)/C/YHVisaPaymentVC.swift
+2
-3
YHFileListBottomView.swift
...Service(服务中心)/FileList(文件清单)/V/YHFileListBottomView.swift
+8
-5
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+6
-16
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
4bc22a28
...
...
@@ -4946,7 +4946,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyTestEnv.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
2
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
...
...
@@ -5087,7 +5087,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
2
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
...
...
@@ -5291,7 +5291,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyDebug.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
2
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
...
...
@@ -5337,7 +5337,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
2
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHServiceCenterMainViewController.swift
View file @
4bc22a28
...
...
@@ -254,16 +254,19 @@ extension YHServiceCenterMainViewController {
}
@objc
func
pushOrderView
()
{
// let vc = YHOrderDetailViewController()
// vc.model = oldModel
// vc.backDate = { [weak self] model in
// guard let self = self else { return }
// self.model = model
// }
// self.navigationController?.pushViewController(vc)
let
vc
=
YHAddAdoptersViewController
()
vc
.
orderId
=
orderId
navigationController
?
.
pushViewController
(
vc
)
let
vc
=
YHOrderDetailViewController
()
vc
.
model
=
oldModel
vc
.
backDate
=
{
[
weak
self
]
model
in
guard
let
self
=
self
else
{
return
}
self
.
model
=
model
}
self
.
navigationController
?
.
pushViewController
(
vc
)
// let vc = YHAddAdoptersViewController()
// vc.orderId = orderId
// navigationController?.pushViewController(vc) //for test pete
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHSelectApplicantGroupCell.swift
View file @
4bc22a28
...
...
@@ -484,6 +484,14 @@ private extension YHSelectApplicantGroupCell {
guard
let
self
=
self
else
{
return
}
//1.判断选择的日期是否不在今天之前
if
!
dateLessGreatToday
(
date
:
dateStr
)
{
YHHUD
.
flash
(
message
:
"不能选择今天之前的日期"
)
return
}
//2.
if
let
model
=
dataModel
?
.
model
{
if
!
showHKHolidayWarmTips
(
startDateStr
:
dateStr
,
endDateStr
:
nil
)
{
model
.
detailDateStr
=
dateStr
...
...
@@ -494,6 +502,36 @@ private extension YHSelectApplicantGroupCell {
}
}
func
dateLessGreatToday
(
date
:
String
)
->
Bool
{
if
date
.
count
==
"2022.02.02"
.
count
{
let
dateFormatter
=
DateFormatter
()
dateFormatter
.
dateFormat
=
"yyyy-MM-dd"
// 假设我们有两个日期
if
let
date1
=
dateFormatter
.
date
(
from
:
date
)
{
let
today
=
Date
()
// 使用Calendar比较两个日期
let
calendar
=
Calendar
(
identifier
:
.
chinese
)
let
comparisonResult
=
calendar
.
compare
(
today
,
to
:
date1
,
toGranularity
:
.
day
)
switch
comparisonResult
{
case
.
orderedAscending
:
return
true
case
.
orderedDescending
:
print
(
"第一个日期在第二个日期之后"
)
return
false
case
.
orderedSame
:
return
true
}
}
}
return
false
}
// 选择时间段
func
selectDurationTime
()
{
let
view
=
YHRangeDatePickerSheetView
.
sheetView
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/UploadCertificate(7上传过关证件)/C/YHUploadCertificateDetailVC.swift
View file @
4bc22a28
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/UploadCertificate(7上传过关证件)/C/YHUploadCertificateVC.swift
View file @
4bc22a28
...
...
@@ -9,8 +9,6 @@
import
UIKit
class
YHUploadCertificateVC
:
YHBaseViewController
{
var
items
:
[
String
]
=
[
"1"
,
"1"
]
lazy
var
viewModel
:
YHUploadCertificateViewModel
=
{
let
vm
=
YHUploadCertificateViewModel
()
...
...
@@ -69,9 +67,6 @@ class YHUploadCertificateVC: YHBaseViewController {
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
setupUI
()
orderId
=
150661
//for test hjl
loadData
()
}
}
...
...
@@ -149,48 +144,43 @@ extension YHUploadCertificateVC: UITableViewDelegate, UITableViewDataSource {
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
items
.
count
{
if
indexPath
.
row
==
0
{
let
warningCell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHUploadCertificateTitleCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHUploadCertificateTitleCell
var
title
=
""
if
indexPath
.
section
==
0
{
title
=
"小白条"
}
else
{
title
=
"香港身份证"
}
warningCell
.
updateTitle
(
title
)
return
warningCell
if
indexPath
.
row
==
0
{
let
warningCell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHUploadCertificateTitleCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHUploadCertificateTitleCell
var
title
=
""
if
indexPath
.
section
==
0
{
title
=
"小白条"
}
else
{
let
approveCell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHUploadCertificateDetailCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHUploadCertificateDetailCell
if
let
model
=
viewModel
.
uploadCertificateDataListModel
{
if
indexPath
.
section
==
0
{
let
tmp
=
model
.
small_whites
[
indexPath
.
row
-
1
]
approveCell
.
dataModel
=
tmp
if
indexPath
.
row
==
model
.
small_whites
.
count
{
approveCell
.
isLastCell
=
true
}
else
{
approveCell
.
isLastCell
=
false
}
}
else
if
indexPath
.
section
==
1
{
let
tmp
=
model
.
id_cards
[
indexPath
.
row
-
1
]
approveCell
.
dataModel
=
tmp
if
indexPath
.
row
==
model
.
id_cards
.
count
{
approveCell
.
isLastCell
=
true
}
else
{
approveCell
.
isLastCell
=
false
}
title
=
"香港身份证"
}
warningCell
.
updateTitle
(
title
)
return
warningCell
}
else
{
let
approveCell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHUploadCertificateDetailCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHUploadCertificateDetailCell
if
let
model
=
viewModel
.
uploadCertificateDataListModel
{
if
indexPath
.
section
==
0
{
let
tmp
=
model
.
small_whites
[
indexPath
.
row
-
1
]
approveCell
.
dataModel
=
tmp
if
indexPath
.
row
==
model
.
small_whites
.
count
{
approveCell
.
isLastCell
=
true
}
else
{
approveCell
.
isLastCell
=
false
}
}
else
if
indexPath
.
section
==
1
{
let
tmp
=
model
.
id_cards
[
indexPath
.
row
-
1
]
approveCell
.
dataModel
=
tmp
if
indexPath
.
row
==
model
.
id_cards
.
count
{
approveCell
.
isLastCell
=
true
}
else
{
approveCell
.
isLastCell
=
false
}
}
return
approveCell
}
return
approveCell
}
let
approveCell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"cell"
,
for
:
indexPath
)
return
approveCell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
...
...
@@ -201,14 +191,22 @@ extension YHUploadCertificateVC: UITableViewDelegate, UITableViewDataSource {
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
let
vc
=
YHUploadCertificateDetailVC
()
//
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
items
.
count
{
let
vc
=
YHUploadCertificateDetailVC
()
vc
.
detailType
=
.
SmallWhiteNote
self
.
navigationController
?
.
pushViewController
(
vc
)
if
let
model
=
viewModel
.
uploadCertificateDataListModel
{
var
tmp
:
YHUploadCertificateModel
?
if
indexPath
.
section
==
0
{
tmp
=
model
.
small_whites
[
indexPath
.
row
-
1
]
vc
.
detailType
=
.
SmallWhiteNote
}
else
if
indexPath
.
section
==
1
{
tmp
=
model
.
id_cards
[
indexPath
.
row
-
1
]
vc
.
detailType
=
.
HongKongCard
}
if
let
tmp
=
tmp
{
vc
.
dataModel
=
tmp
self
.
navigationController
?
.
pushViewController
(
vc
)
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/UploadCertificate(7上传过关证件)/V/YHUploadCertificateDateItem.swift
View file @
4bc22a28
...
...
@@ -99,5 +99,9 @@ extension YHUploadCertificateDateItem {
cardLabel
.
attributed
.
text
=
b
}
}
func
updateDate
(
date
:
String
)
{
dateTextField
.
text
=
date
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/VisaPayment(4电子签字缴费)/C/YHVisaPaymentVC.swift
View file @
4bc22a28
...
...
@@ -130,9 +130,7 @@ private extension YHVisaPaymentVC {
self
.
orderID
=
(
id
as?
Int
)
??
0
}
}
// orderID = 133874//for test hjl
view
.
addSubview
(
tableView
)
view
.
addSubview
(
bottomView
)
bottomView
.
snp
.
makeConstraints
{
make
in
...
...
@@ -155,6 +153,7 @@ private extension YHVisaPaymentVC {
if
self
.
viewModel
.
isAllMemberPay
()
{
//跳转
let
vc
=
YHUploadCertificateVC
()
vc
.
orderId
=
orderID
self
.
navigationController
?
.
push
(
vc
,
removeClass
:
YHVisaPaymentVC
.
self
)
}
else
{
postPaymentResult
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/FileList(文件清单)/V/YHFileListBottomView.swift
View file @
4bc22a28
...
...
@@ -39,6 +39,7 @@ private extension YHFileListBottomView {
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
clipsToBounds
=
true
button
.
addTarget
(
self
,
action
:
#selector(
submit
)
,
for
:
.
touchUpInside
)
button
.
backgroundColor
=
UIColor
.
brandMainColor
return
button
}()
addSubview
(
nextButton
)
...
...
@@ -49,14 +50,16 @@ private extension YHFileListBottomView {
make
.
left
.
equalTo
(
kMargin
)
}
nextButton
.
layoutIfNeeded
()
nextButton
.
addYinHeGradualLayer
()
}
@objc
func
save
()
{
block
?(
0
)
}
@objc
func
submit
()
{
block
?(
1
)
}
}
extension
YHFileListBottomView
{
func
updateBtnTitle
(
title
:
String
)
{
nextButton
.
setTitle
(
title
,
for
:
.
normal
)
}
}
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
4bc22a28
...
...
@@ -142,16 +142,6 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
vc
.
myDefaultNavItemIndex
=
2
self
.
navigationController
?
.
pushViewController
(
vc
)
print
(
"最近浏览"
)
// let view = YHRangeDatePickerSheetView.sheetView()
// view.block = { (startDate,endDate) in
// print("选择的日期是:")
// print(startDate)
// print(endDate)
// }
// view.show() //for test hjl
}
return
view
}()
...
...
@@ -346,12 +336,12 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
return
}
if
true
{
let
vc
=
YHCertificateAppointViewController
()
vc
.
orderId
=
151085
self
.
navigationController
?
.
pushViewController
(
vc
)
return
}
//
if true {
//
let vc = YHCertificateAppointViewController()
//
vc.orderId = 151085
//
self.navigationController?.pushViewController(vc)
//
return
// } //for test dy
let
item
:
PersonalModuleItem
=
items
[
indexPath
.
row
]
...
...
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