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
13f676a9
Commit
13f676a9
authored
Oct 30, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 微信上传
parent
48788b4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
YHCertificateUploadSheetView.swift
...MyCertificates(我的证书)/V/YHCertificateUploadSheetView.swift
+15
-3
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateUploadSheetView.swift
View file @
13f676a9
...
...
@@ -36,7 +36,8 @@ enum YHCertificateUploadType: Int {
case
camera
=
2
case
photo
=
3
case
phoneFile
=
4
case
cancel
=
5
case
wechatUpload
=
5
case
cancel
=
6
}
...
...
@@ -67,6 +68,7 @@ class YHCertificateUploadSheetView: UIView {
YHCertificateUploadItem
(
type
:
.
camera
,
title
:
"拍照上传"
),
YHCertificateUploadItem
(
type
:
.
photo
,
title
:
"相册上传"
),
YHCertificateUploadItem
(
type
:
.
phoneFile
,
title
:
"手机文件上传"
,
subtitle
:
"从手机文件管理中上传"
),
YHCertificateUploadItem
(
type
:
.
wechatUpload
,
title
:
"微信上传"
),
YHCertificateUploadItem
(
type
:
.
cancel
,
title
:
"取消"
)]
// 上传文件
...
...
@@ -259,8 +261,8 @@ class YHCertificateUploadSheetView: UIView {
context
:
nil
)
.
size
.
height
descHeight
=
ceil
(
descHeight
)
+
21
+
34
// 底部
四
个操作行高度之和
let
actionsHeight
=
52.0
*
4.0
// 底部
5
个操作行高度之和
let
actionsHeight
=
52.0
*
Double
(
uploadTypeArr
.
count
)
var
tableViewHeight
=
descHeight
+
actionsHeight
if
tips
==
""
{
tableViewHeight
=
actionsHeight
...
...
@@ -321,6 +323,9 @@ extension YHCertificateUploadSheetView: UITableViewDelegate, UITableViewDataSour
}
else
if
operationItem
.
type
==
.
phoneFile
{
selectFile
()
}
else
if
operationItem
.
type
==
.
wechatUpload
{
selectFileFromWeChatPragram
()
}
}
}
...
...
@@ -594,3 +599,10 @@ extension YHCertificateUploadSheetView: UIDocumentPickerDelegate {
}
}
extension
YHCertificateUploadSheetView
{
func
selectFileFromWeChatPragram
()
{
}
}
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