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
9f6eb0b4
Commit
9f6eb0b4
authored
Apr 07, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的文书我的签字bug
parent
6123b4ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
3 deletions
+43
-3
YHMyDocumentsDetailViewController.swift
...Documents(我的文书)/C/YHMyDocumentsDetailViewController.swift
+20
-0
YHFailPromptView.swift
...tService(服务中心)/MyDocuments(我的文书)/V/YHFailPromptView.swift
+3
-3
YHMySignatureDetailViewController.swift
...Signature(我的签字)/C/YHMySignatureDetailViewController.swift
+20
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyDocuments(我的文书)/C/YHMyDocumentsDetailViewController.swift
View file @
9f6eb0b4
...
@@ -103,6 +103,12 @@ class YHMyDocumentsDetailViewController: YHBaseViewController {
...
@@ -103,6 +103,12 @@ class YHMyDocumentsDetailViewController: YHBaseViewController {
self
.
bottomView
.
isHidden
=
false
self
.
bottomView
.
isHidden
=
false
self
.
bottomButton
.
alpha
=
1
self
.
bottomButton
.
alpha
=
1
self
.
bottomButton
.
setTitle
(
"确定已签章,提交"
,
for
:
.
normal
)
self
.
bottomButton
.
setTitle
(
"确定已签章,提交"
,
for
:
.
normal
)
let
height
=
self
.
getPromptHeight
(
self
.
viewModel
.
mainModel
?
.
writing_document
.
doc_sign
.
audit_opinion
??
""
)
self
.
promptView
.
snp
.
remakeConstraints
{
make
in
make
.
height
.
equalTo
(
height
)
make
.
bottom
.
equalTo
(
-
k_Height_safeAreaInsetsBottom
()
-
64
)
make
.
left
.
right
.
equalTo
(
self
.
view
)
}
}
}
self
.
stepView
.
currentIndex
=
1
self
.
stepView
.
currentIndex
=
1
}
}
...
@@ -119,6 +125,20 @@ class YHMyDocumentsDetailViewController: YHBaseViewController {
...
@@ -119,6 +125,20 @@ class YHMyDocumentsDetailViewController: YHBaseViewController {
})
})
}
}
func
getPromptHeight
(
_
value
:
String
)
->
CGFloat
{
let
text
=
value
// 要显示的文本内容
let
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
// 字体大小
let
maxWidth
=
KScreenWidth
-
74
// 最大宽度限制
// 创建NSAttributedString对象并设置属性
let
attributes
=
[
NSAttributedString
.
Key
.
font
:
font
]
as
[
NSAttributedString
.
Key
:
Any
]
_
=
NSMutableAttributedString
(
string
:
text
,
attributes
:
attributes
)
// 根据指定的最大宽度和字体大小计算文本的高度
let
size
=
(
text
as
NSString
)
.
boundingRect
(
with
:
CGSize
(
width
:
maxWidth
,
height
:
.
greatestFiniteMagnitude
),
options
:
.
usesLineFragmentOrigin
,
attributes
:
attributes
,
context
:
nil
)
.
size
return
size
.
height
+
15
}
func
updateDataSource
()
{
func
updateDataSource
()
{
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyDocuments(我的文书)/V/YHFailPromptView.swift
View file @
9f6eb0b4
...
@@ -33,7 +33,7 @@ class YHFailPromptView: UIView {
...
@@ -33,7 +33,7 @@ class YHFailPromptView: UIView {
}()
}()
func
setPrompt
(
_
prompt
:
String
)
{
func
setPrompt
(
_
prompt
:
String
)
{
titleLable
.
text
=
prompt
titleLable
.
text
=
"驳回原因:"
+
prompt
}
}
}
}
...
@@ -42,7 +42,7 @@ private extension YHFailPromptView {
...
@@ -42,7 +42,7 @@ private extension YHFailPromptView {
backgroundColor
=
UIColor
(
hex
:
0xfeeded
)
backgroundColor
=
UIColor
(
hex
:
0xfeeded
)
addSubview
(
alertImageView
)
addSubview
(
alertImageView
)
alertImageView
.
snp
.
makeConstraints
{
make
in
alertImageView
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalToSuperview
(
)
make
.
top
.
equalTo
(
10
)
make
.
left
.
equalTo
(
18
)
make
.
left
.
equalTo
(
18
)
make
.
width
.
height
.
equalTo
(
16
)
make
.
width
.
height
.
equalTo
(
16
)
}
}
...
@@ -51,7 +51,7 @@ private extension YHFailPromptView {
...
@@ -51,7 +51,7 @@ private extension YHFailPromptView {
titleLable
.
snp
.
makeConstraints
{
make
in
titleLable
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
38
)
make
.
left
.
equalTo
(
38
)
make
.
right
.
equalTo
(
-
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
top
.
bottom
.
equalToSuperview
(
)
make
.
top
.
equalTo
(
8
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MySignature(我的签字)/C/YHMySignatureDetailViewController.swift
View file @
9f6eb0b4
...
@@ -88,6 +88,12 @@ class YHMySignatureDetailViewController: YHBaseViewController {
...
@@ -88,6 +88,12 @@ class YHMySignatureDetailViewController: YHBaseViewController {
self
.
bottomView
.
isHidden
=
false
self
.
bottomView
.
isHidden
=
false
self
.
bottomButton
.
alpha
=
1
self
.
bottomButton
.
alpha
=
1
self
.
bottomButton
.
setTitle
(
"确定已签章,提交"
,
for
:
.
normal
)
self
.
bottomButton
.
setTitle
(
"确定已签章,提交"
,
for
:
.
normal
)
let
height
=
self
.
getPromptHeight
(
self
.
viewModel
.
mainModel
?
.
audit_opinion
??
""
)
self
.
promptView
.
snp
.
remakeConstraints
{
make
in
make
.
height
.
equalTo
(
height
)
make
.
bottom
.
equalTo
(
-
k_Height_safeAreaInsetsBottom
()
-
64
)
make
.
left
.
right
.
equalTo
(
self
.
view
)
}
}
}
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
}
else
{
}
else
{
...
@@ -102,6 +108,20 @@ class YHMySignatureDetailViewController: YHBaseViewController {
...
@@ -102,6 +108,20 @@ class YHMySignatureDetailViewController: YHBaseViewController {
})
})
}
}
func
getPromptHeight
(
_
value
:
String
)
->
CGFloat
{
let
text
=
value
// 要显示的文本内容
let
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
// 字体大小
let
maxWidth
=
KScreenWidth
-
74
// 最大宽度限制
// 创建NSAttributedString对象并设置属性
let
attributes
=
[
NSAttributedString
.
Key
.
font
:
font
]
as
[
NSAttributedString
.
Key
:
Any
]
_
=
NSMutableAttributedString
(
string
:
text
,
attributes
:
attributes
)
// 根据指定的最大宽度和字体大小计算文本的高度
let
size
=
(
text
as
NSString
)
.
boundingRect
(
with
:
CGSize
(
width
:
maxWidth
,
height
:
.
greatestFiniteMagnitude
),
options
:
.
usesLineFragmentOrigin
,
attributes
:
attributes
,
context
:
nil
)
.
size
return
size
.
height
+
15
}
func
updateDataSource
()
{
func
updateDataSource
()
{
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
}
}
...
...
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