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
6e08dfc9
Commit
6e08dfc9
authored
Aug 19, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// UI
parent
52fb1494
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
91 additions
and
13 deletions
+91
-13
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHCertificateAppointViewController.swift
...ficate(赴港办证预约)/C/YHCertificateAppointViewController.swift
+9
-6
YHServiceItemCell.swift
...办证段)/AppointCertificate(赴港办证预约)/V/YHServiceItemCell.swift
+1
-1
YHServiceSelectAlertView.swift
...pointCertificate(赴港办证预约)/V/YHServiceSelectAlertView.swift
+19
-6
YHCerAppointViewModel.swift
...AppointCertificate(赴港办证预约)/VM/YHCerAppointViewModel.swift
+51
-0
YHFileListModel.swift
...igentService(服务中心)/FileList(文件清单)/M/YHFileListModel.swift
+1
-0
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+6
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
6e08dfc9
...
...
@@ -57,6 +57,7 @@
04256DF22C734E7E00A37BA4
/* YHGrabFileCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04256DF12C734E7E00A37BA4
/* YHGrabFileCell.swift */
;
};
04256DF42C73626900A37BA4
/* YHServiceSelectAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04256DF32C73626900A37BA4
/* YHServiceSelectAlertView.swift */
;
};
04256DF62C736A0800A37BA4
/* YHServiceItemCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04256DF52C736A0800A37BA4
/* YHServiceItemCell.swift */
;
};
04256DF82C73726C00A37BA4
/* YHCerAppointViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04256DF72C73726C00A37BA4
/* YHCerAppointViewModel.swift */
;
};
0425E63D2BA9345200A5E763
/* YHSchemeTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0425E63C2BA9345200A5E763
/* YHSchemeTableViewCell.swift */
;
};
0425E6402BA9357D00A5E763
/* YHScemeItemModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0425E63F2BA9357D00A5E763
/* YHScemeItemModel.swift */
;
};
0425E6422BA95B1B00A5E763
/* YHSchemeTableFooterView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0425E6412BA95B1B00A5E763
/* YHSchemeTableFooterView.swift */
;
};
...
...
@@ -745,6 +746,7 @@
04256DF12C734E7E00A37BA4
/* YHGrabFileCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHGrabFileCell.swift
;
sourceTree
=
"<group>"
;
};
04256DF32C73626900A37BA4
/* YHServiceSelectAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHServiceSelectAlertView.swift
;
sourceTree
=
"<group>"
;
};
04256DF52C736A0800A37BA4
/* YHServiceItemCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHServiceItemCell.swift
;
sourceTree
=
"<group>"
;
};
04256DF72C73726C00A37BA4
/* YHCerAppointViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCerAppointViewModel.swift
;
sourceTree
=
"<group>"
;
};
0425E63C2BA9345200A5E763
/* YHSchemeTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSchemeTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
0425E63F2BA9357D00A5E763
/* YHScemeItemModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHScemeItemModel.swift
;
sourceTree
=
"<group>"
;
};
0425E6412BA95B1B00A5E763
/* YHSchemeTableFooterView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSchemeTableFooterView.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1516,6 +1518,7 @@
04256DD82C72D9F000A37BA4
/* VM */
=
{
isa
=
PBXGroup
;
children
=
(
04256DF72C73726C00A37BA4
/* YHCerAppointViewModel.swift */
,
);
path
=
VM
;
sourceTree
=
"<group>"
;
...
...
@@ -3982,6 +3985,7 @@
04256DD42C70538400A37BA4
/* YHFamilyInfoUpdateViewController.swift in Sources */
,
04FD85702C21646200BEF9C5
/* YHMyInterestTopicCell.swift in Sources */
,
04A7BD172BA43A0F00BD35A2
/* YHMyDocumentsDetailViewModel.swift in Sources */
,
04256DF82C73726C00A37BA4
/* YHCerAppointViewModel.swift in Sources */
,
045EEEB32B9F171A0022A143
/* YHWorkFileSyncTableViewCell.swift in Sources */
,
045EEEF12B9F171A0022A143
/* YHChildInfoContainerVC.swift in Sources */
,
045EEF0B2B9F171A0022A143
/* YHBasicInfoFillViewController.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(赴港办证预约)/C/YHCertificateAppointViewController.swift
View file @
6e08dfc9
...
...
@@ -11,6 +11,8 @@ import UIKit
class
YHCertificateAppointViewController
:
YHBaseViewController
{
var
items
=
[
""
,
""
,
""
]
let
viewModel
=
YHCerAppointViewModel
()
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
grouped
)
tableView
.
estimatedSectionHeaderHeight
=
16.0
...
...
@@ -78,14 +80,15 @@ extension YHCertificateAppointViewController: UITableViewDelegate, UITableViewDa
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
self
.
viewModel
.
getServicelist
{
success
,
error
in
let
view
=
YHServiceSelectAlertView
.
alertView
()
view
.
items
=
[
YHServiceItem
(
id
:
1
,
title
:
"开户"
),
YHServiceItem
(
id
:
1
,
title
:
"开户"
),
YHServiceItem
(
id
:
1
,
title
:
"开户"
),
YHServiceItem
(
id
:
1
,
title
:
"开户"
),
YHServiceItem
(
id
:
1
,
title
:
"开户"
),
YHServiceItem
(
id
:
1
,
title
:
"开户"
),]
view
.
items
=
self
.
viewModel
.
serviceArr
view
.
confirmBlock
=
{
[
weak
self
]
ids
in
printLog
(
"
\(
ids
)
"
)
}
view
.
show
()
}
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
items
.
count
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(赴港办证预约)/V/YHServiceItemCell.swift
View file @
6e08dfc9
...
...
@@ -30,7 +30,7 @@ class YHServiceItemCell: UICollectionViewCell {
}
func
updateItem
(
_
item
:
YHServiceItem
)
{
titleLabel
.
text
=
item
.
titl
e
titleLabel
.
text
=
item
.
nam
e
if
item
.
isSelect
{
self
.
layer
.
borderWidth
=
1.0
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(赴港办证预约)/V/YHServiceSelectAlertView.swift
View file @
6e08dfc9
...
...
@@ -8,15 +8,20 @@
import
UIKit
import
AttributedString
import
SmartCodable
class
YHServiceItem
{
var
id
=
0
var
title
=
""
class
YHServiceItem
:
SmartCodable
{
var
id
:
Int
=
0
var
name
:
String
=
""
var
isSelect
:
Bool
=
false
init
(
id
:
Int
=
0
,
title
:
String
=
""
)
{
required
init
()
{
}
init
(
id
:
Int
=
0
,
name
:
String
=
""
)
{
self
.
id
=
id
self
.
title
=
titl
e
self
.
name
=
nam
e
}
}
...
...
@@ -37,9 +42,10 @@ class YHServiceSelectAlertView: UICollectionViewCell {
collectionView
.
snp
.
updateConstraints
{
make
in
make
.
height
.
equalTo
(
height
)
}
}
}
var
confirmBlock
:(([
Int
])
->
())?
// 底层蒙版
lazy
var
blackMaskView
:
UIView
=
{
let
view
=
UIView
()
...
...
@@ -195,6 +201,13 @@ class YHServiceSelectAlertView: UICollectionViewCell {
}
@objc
func
didConfirmBtnClicked
()
{
var
ids
=
[
Int
]()
for
item
in
items
{
if
item
.
isSelect
{
ids
.
append
(
item
.
id
)
}
}
confirmBlock
?(
ids
)
dismiss
()
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(赴港办证预约)/VM/YHCerAppointViewModel.swift
0 → 100644
View file @
6e08dfc9
//
// YHCerAppointViewModel.swift
// galaxy
//
// Created by edy on 2024/8/19.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHCerAppointViewModel
:
NSObject
{
var
serviceArr
:[
YHServiceItem
]
=
[]
func
getServicelist
(
_
callBack
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
MakeCertificate
.
servicelist
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
printLog
(
json
)
if
json
.
code
==
200
{
let
dic
=
json
.
data
guard
let
list
=
[
YHServiceItem
]
.
deserialize
(
array
:
dic
as?
[
Any
])
else
{
let
err
=
YHErrorModel
(
errorCode
:
YHErrorCode
.
dictParseError
.
rawValue
,
errorMsg
:
YHErrorCode
.
dictParseError
.
description
())
self
.
serviceArr
=
[]
callBack
(
false
,
err
)
return
}
self
.
serviceArr
.
removeAll
()
for
item
in
list
{
if
let
item
=
item
{
self
.
serviceArr
.
append
(
item
)
}
}
callBack
(
true
,
nil
)
}
else
{
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
)
self
.
serviceArr
=
[]
callBack
(
false
,
error
)
}
}
failBlock
:
{
err
in
self
.
serviceArr
=
[]
callBack
(
false
,
err
)
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/FileList(文件清单)/M/YHFileListModel.swift
View file @
6e08dfc9
...
...
@@ -19,5 +19,6 @@ class YHFileListModel: SmartCodable {
var
arrTxt
:
[
String
]
=
[]
//type=1时使用的内容
required
init
()
{
}
}
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
6e08dfc9
...
...
@@ -403,4 +403,10 @@ class YHAllApiName {
static
let
sendMail
=
"infoflow/file/send-mail"
}
struct
MakeCertificate
{
// 获取香港服务列表
static
let
servicelist
=
"super-app/order/customer/journey/journey-service"
}
}
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