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
19606c11
Commit
19606c11
authored
Mar 22, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的证件
parent
8cb67c62
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
3 deletions
+38
-3
YHCertificateUploadContentListVC.swift
...rtificates(我的证书)/C/YHCertificateUploadContentListVC.swift
+1
-0
YHCertificateUploadSheetView.swift
...MyCertificates(我的证书)/V/YHCertificateUploadSheetView.swift
+30
-1
YHCertificateUploadTypeCell.swift
.../MyCertificates(我的证书)/V/YHCertificateUploadTypeCell.swift
+4
-0
YHCertificateViewModel.swift
...务中心)/MyCertificates(我的证书)/VM/YHCertificateViewModel.swift
+3
-2
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/C/YHCertificateUploadContentListVC.swift
View file @
19606c11
...
@@ -549,6 +549,7 @@ extension YHCertificateUploadContentListVC {
...
@@ -549,6 +549,7 @@ extension YHCertificateUploadContentListVC {
msg
=
errorMsg
msg
=
errorMsg
}
}
YHHUD
.
flash
(
message
:
msg
)
YHHUD
.
flash
(
message
:
msg
)
YHCertificateUploadFailTipsView
.
tipsView
()
.
show
()
}
}
}
else
{
}
else
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateUploadSheetView.swift
View file @
19606c11
...
@@ -32,6 +32,29 @@ enum YHCertificateUploadType: Int {
...
@@ -32,6 +32,29 @@ enum YHCertificateUploadType: Int {
class
YHCertificateUploadSheetView
:
UIView
{
class
YHCertificateUploadSheetView
:
UIView
{
static
let
sheetView
=
YHCertificateUploadSheetView
(
frame
:
UIScreen
.
main
.
bounds
)
static
let
sheetView
=
YHCertificateUploadSheetView
(
frame
:
UIScreen
.
main
.
bounds
)
func
calculateHeight
()
->
CGFloat
{
guard
let
templateInfo
=
templateInfo
else
{
return
0.0
}
// 注意事项文字高度
var
descHeight
=
templateInfo
.
description
.
boundingRect
(
with
:
CGSize
(
width
:
KScreenWidth
-
40.0
,
height
:
.
greatestFiniteMagnitude
),
options
:
.
usesLineFragmentOrigin
,
attributes
:
[
.
font
:
UIFont
.
PFSC_R
(
ofSize
:
14
)],
context
:
nil
)
.
size
.
height
descHeight
=
ceil
(
descHeight
)
+
20
// 所有模版高度之和
let
templatesHeight
=
82.0
*
Double
(
templateArr
.
count
)
// 底部四个操作行高度之和
let
actionsHeight
=
52.0
*
4.0
let
tableViewHeight
=
descHeight
+
templatesHeight
+
actionsHeight
// 白色View总高度
var
totalHeight
=
53.0
+
20.0
+
tableViewHeight
+
k_Height_safeAreaInsetsBottom
()
if
totalHeight
>
KScreenHeight
{
totalHeight
=
458
}
return
totalHeight
}
var
templateInfo
:
YHTemplateInfo
?
{
var
templateInfo
:
YHTemplateInfo
?
{
didSet
{
didSet
{
...
@@ -44,6 +67,12 @@ class YHCertificateUploadSheetView: UIView {
...
@@ -44,6 +67,12 @@ class YHCertificateUploadSheetView: UIView {
templateArr
.
append
(
templateInfo
.
guideFilePath
[
0
])
templateArr
.
append
(
templateInfo
.
guideFilePath
[
0
])
}
}
}
}
let
totalHeight
=
calculateHeight
()
whiteContentView
.
snp
.
updateConstraints
{
make
in
make
.
height
.
equalTo
(
totalHeight
)
}
self
.
setNeedsLayout
()
self
.
layoutIfNeeded
()
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
}
}
}
}
...
@@ -195,7 +224,7 @@ class YHCertificateUploadSheetView: UIView {
...
@@ -195,7 +224,7 @@ class YHCertificateUploadSheetView: UIView {
whiteContentView
.
snp
.
makeConstraints
{
make
in
whiteContentView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
top
.
equalToSuperview
()
.
offset
(
355
)
make
.
height
.
equalTo
(
458.0
)
}
}
topView
.
snp
.
makeConstraints
{
make
in
topView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
left
.
right
.
equalToSuperview
()
make
.
top
.
left
.
right
.
equalToSuperview
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateUploadTypeCell.swift
View file @
19606c11
...
@@ -75,6 +75,10 @@ class YHCertificateUploadItemView: UIView {
...
@@ -75,6 +75,10 @@ class YHCertificateUploadItemView: UIView {
if
item
.
type
==
.
cancel
{
if
item
.
type
==
.
cancel
{
titleLabel
.
textColor
=
UIColor
(
hexString
:
"#909090"
)
titleLabel
.
textColor
=
UIColor
(
hexString
:
"#909090"
)
titleLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
}
else
{
titleLabel
.
textColor
=
UIColor
.
mainTextColor
titleLabel
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
}
}
titleLabel
.
snp
.
remakeConstraints
{
make
in
titleLabel
.
snp
.
remakeConstraints
{
make
in
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/VM/YHCertificateViewModel.swift
View file @
19606c11
...
@@ -248,13 +248,14 @@ class YHCertificateViewModel: YHBaseViewModel {
...
@@ -248,13 +248,14 @@ class YHCertificateViewModel: YHBaseViewModel {
if
operation
==
"add"
{
if
operation
==
"add"
{
if
success
{
if
success
{
YHHUD
.
flash
(
message
:
"
添加
成功"
)
YHHUD
.
flash
(
message
:
"
上传
成功"
)
}
else
{
}
else
{
var
msg
=
"
添加
失败"
var
msg
=
"
上传
失败"
if
let
errorMsg
=
error
?
.
errorMsg
,
!
errorMsg
.
isEmpty
{
if
let
errorMsg
=
error
?
.
errorMsg
,
!
errorMsg
.
isEmpty
{
msg
=
errorMsg
msg
=
errorMsg
}
}
YHHUD
.
flash
(
message
:
msg
)
YHHUD
.
flash
(
message
:
msg
)
YHCertificateUploadFailTipsView
.
tipsView
()
.
show
()
}
}
callBack
?()
callBack
?()
return
return
...
...
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