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
047f5a71
Commit
047f5a71
authored
Mar 25, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 模版指引
parent
bb6aab00
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
17 deletions
+55
-17
YHCertificateUploadContentListVC.swift
...rtificates(我的证书)/C/YHCertificateUploadContentListVC.swift
+13
-3
YHCertificateModel.swift
...ice(服务中心)/MyCertificates(我的证书)/M/YHCertificateModel.swift
+4
-1
YHCertificateTemplateCell.swift
...心)/MyCertificates(我的证书)/V/YHCertificateTemplateCell.swift
+12
-1
YHCertificateTemplateSheetView.swift
...Certificates(我的证书)/V/YHCertificateTemplateSheetView.swift
+7
-3
YHCertificateUploadSheetView.swift
...MyCertificates(我的证书)/V/YHCertificateUploadSheetView.swift
+19
-9
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/C/YHCertificateUploadContentListVC.swift
View file @
047f5a71
...
@@ -18,10 +18,14 @@ class YHCertificateUploadContentListVC: YHBaseViewController {
...
@@ -18,10 +18,14 @@ class YHCertificateUploadContentListVC: YHBaseViewController {
templateArr
.
removeAll
()
templateArr
.
removeAll
()
if
let
uploadInfo
=
supplementInfo
{
if
let
uploadInfo
=
supplementInfo
{
if
uploadInfo
.
templateInfo
.
materialPath
.
count
>
0
{
if
uploadInfo
.
templateInfo
.
materialPath
.
count
>
0
{
templateArr
.
append
(
uploadInfo
.
templateInfo
.
materialPath
[
0
])
let
template
=
uploadInfo
.
templateInfo
.
materialPath
[
0
]
template
.
type
=
0
templateArr
.
append
(
template
)
}
}
if
uploadInfo
.
templateInfo
.
guideFilePath
.
count
>
0
{
if
uploadInfo
.
templateInfo
.
guideFilePath
.
count
>
0
{
templateArr
.
append
(
uploadInfo
.
templateInfo
.
guideFilePath
[
0
])
let
guide
=
uploadInfo
.
templateInfo
.
guideFilePath
[
0
]
guide
.
type
=
1
templateArr
.
append
(
guide
)
}
}
}
}
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
...
@@ -496,7 +500,13 @@ extension YHCertificateUploadContentListVC {
...
@@ -496,7 +500,13 @@ extension YHCertificateUploadContentListVC {
}
}
}
}
self
.
uploadBtn
.
alpha
=
(
items
.
count
>=
100
?
0.5
:
1.0
)
if
categoryInfo
.
checkStatus
==
YHCertificateUploadStatus
.
finish
.
rawValue
{
self
.
uploadBtn
.
isHidden
=
true
}
else
{
self
.
uploadBtn
.
isHidden
=
false
self
.
uploadBtn
.
alpha
=
(
items
.
count
>=
99
?
0.5
:
1.0
)
}
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/M/YHCertificateModel.swift
View file @
047f5a71
...
@@ -250,6 +250,8 @@ class YHTemplateInfo: SmartCodable {
...
@@ -250,6 +250,8 @@ class YHTemplateInfo: SmartCodable {
class
YHMaterialPath
:
SmartCodable
{
class
YHMaterialPath
:
SmartCodable
{
var
name
:
String
=
""
var
name
:
String
=
""
var
url
:
String
=
""
var
url
:
String
=
""
// 自定义类型 0:模版 1:指引
var
type
:
Int
=
0
enum
CodingKeys
:
String
,
CodingKey
{
enum
CodingKeys
:
String
,
CodingKey
{
case
name
=
"name"
case
name
=
"name"
...
@@ -260,7 +262,8 @@ class YHMaterialPath: SmartCodable {
...
@@ -260,7 +262,8 @@ class YHMaterialPath: SmartCodable {
}
}
init
(
name
:
String
=
""
,
url
:
String
=
""
)
{
init
(
type
:
Int
,
name
:
String
=
""
,
url
:
String
=
""
)
{
self
.
type
=
type
self
.
name
=
name
self
.
name
=
name
self
.
url
=
url
self
.
url
=
url
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateTemplateCell.swift
View file @
047f5a71
...
@@ -72,7 +72,18 @@ class YHCertificateSampleTemplateView: UIView {
...
@@ -72,7 +72,18 @@ class YHCertificateSampleTemplateView: UIView {
class
YHCertificateTemplateCell
:
UITableViewCell
{
class
YHCertificateTemplateCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHCertificateTemplateCell"
static
let
cellReuseIdentifier
=
"YHCertificateTemplateCell"
var
templatePath
:
YHMaterialPath
?
var
templatePath
:
YHMaterialPath
?
{
didSet
{
if
let
path
=
templatePath
{
var
title
=
"查看证件示例模版"
if
path
.
type
==
1
{
// 指引
title
=
"查看证件操作指引"
}
templateView
.
titleLabel
.
text
=
title
}
}
}
lazy
var
templateView
:
YHCertificateSampleTemplateView
=
{
lazy
var
templateView
:
YHCertificateSampleTemplateView
=
{
let
view
=
YHCertificateSampleTemplateView
(
frame
:
CGRectZero
)
let
view
=
YHCertificateSampleTemplateView
(
frame
:
CGRectZero
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateTemplateSheetView.swift
View file @
047f5a71
...
@@ -140,12 +140,16 @@ class YHCertificateTemplateSheetView: UIView {
...
@@ -140,12 +140,16 @@ class YHCertificateTemplateSheetView: UIView {
}
}
templateArr
.
removeAll
()
templateArr
.
removeAll
()
if
model
.
materialPath
.
count
>
0
{
if
model
.
materialPath
.
count
>
0
{
templateArr
.
append
(
model
.
materialPath
[
0
])
let
template
=
model
.
materialPath
[
0
]
template
.
type
=
0
templateArr
.
append
(
template
)
}
}
if
model
.
guideFilePath
.
count
>
0
{
if
model
.
guideFilePath
.
count
>
0
{
templateArr
.
append
(
model
.
guideFilePath
[
0
])
let
guide
=
model
.
guideFilePath
[
0
]
guide
.
type
=
1
templateArr
.
append
(
guide
)
}
}
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateUploadSheetView.swift
View file @
047f5a71
...
@@ -64,10 +64,14 @@ class YHCertificateUploadSheetView: UIView {
...
@@ -64,10 +64,14 @@ class YHCertificateUploadSheetView: UIView {
templateArr
.
removeAll
()
templateArr
.
removeAll
()
if
let
templateInfo
=
templateInfo
{
if
let
templateInfo
=
templateInfo
{
if
templateInfo
.
materialPath
.
count
>
0
{
if
templateInfo
.
materialPath
.
count
>
0
{
templateArr
.
append
(
templateInfo
.
materialPath
[
0
])
let
template
=
templateInfo
.
materialPath
[
0
]
template
.
type
=
0
templateArr
.
append
(
template
)
}
}
if
templateInfo
.
guideFilePath
.
count
>
0
{
if
templateInfo
.
guideFilePath
.
count
>
0
{
templateArr
.
append
(
templateInfo
.
guideFilePath
[
0
])
let
guide
=
templateInfo
.
guideFilePath
[
0
]
guide
.
type
=
1
templateArr
.
append
(
guide
)
}
}
}
}
let
totalHeight
=
calculateHeight
()
let
totalHeight
=
calculateHeight
()
...
@@ -300,6 +304,7 @@ extension YHCertificateUploadSheetView: UITableViewDelegate, UITableViewDataSour
...
@@ -300,6 +304,7 @@ extension YHCertificateUploadSheetView: UITableViewDelegate, UITableViewDataSour
dismiss
()
dismiss
()
}
else
if
operationItem
.
type
==
.
photo
{
}
else
if
operationItem
.
type
==
.
photo
{
selectPhoto
()
selectPhoto
()
}
else
if
operationItem
.
type
==
.
camera
{
}
else
if
operationItem
.
type
==
.
camera
{
...
@@ -430,17 +435,22 @@ extension YHCertificateUploadSheetView: (UIImagePickerControllerDelegate & UINav
...
@@ -430,17 +435,22 @@ extension YHCertificateUploadSheetView: (UIImagePickerControllerDelegate & UINav
}
}
if
!
authorization
{
if
!
authorization
{
YHHUD
.
flash
(
message
:
"请在设置中打开相册权限"
)
YHHUD
.
flash
(
message
:
"请在设置中打开相册权限"
)
return
return
}
}
if
UIImagePickerController
.
isSourceTypeAvailable
(
.
photoLibrary
){
let
isMultiSelect
=
false
let
imagePicker
=
UIImagePickerController
()
if
!
isMultiSelect
{
imagePicker
.
delegate
=
self
if
UIImagePickerController
.
isSourceTypeAvailable
(
.
photoLibrary
){
imagePicker
.
sourceType
=
.
photoLibrary
let
imagePicker
=
UIImagePickerController
()
// 这一句,开始调用图库
imagePicker
.
delegate
=
self
UIViewController
.
current
?
.
present
(
imagePicker
,
animated
:
true
)
imagePicker
.
sourceType
=
.
photoLibrary
// 这一句,开始调用图库
UIViewController
.
current
?
.
present
(
imagePicker
,
animated
:
true
)
}
}
else
{
}
}
}
}
...
...
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