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
c1185b68
Commit
c1185b68
authored
Aug 15, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// UI
parent
07c68650
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
YHTwoOptionAlertView.swift
galaxy/galaxy/Classes/Base/V/YHTwoOptionAlertView.swift
+4
-2
YHPrincipleUploadListVC.swift
...rvice/PrincipleBatch(原则批)/C/YHPrincipleUploadListVC.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Base/V/YHTwoOptionAlertView.swift
View file @
c1185b68
...
...
@@ -17,10 +17,11 @@ class YHTwoOptionAlertView: UIView {
var
rightButton
:
UIButton
!
var
leftButton
:
UIButton
!
static
func
showAlertView
(
message
:
String
?,
leftBtnTitle
:
String
?
=
"取消"
.
local
,
rightBtnTitle
:
String
?
=
"确认"
.
local
,
callBack
:
@escaping
Block
)
{
static
func
showAlertView
(
message
:
String
?,
leftBtnTitle
:
String
?
=
"取消"
.
local
,
rightBtnTitle
:
String
?
=
"确认"
.
local
,
aligentment
:
NSTextAlignment
=
.
center
,
callBack
:
@escaping
Block
)
{
let
view
=
YHTwoOptionAlertView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
))
view
.
messageLabel
.
text
=
message
view
.
messageLabel
.
textAlignment
=
aligentment
view
.
leftButton
.
setTitle
(
leftBtnTitle
,
for
:
.
normal
)
view
.
rightButton
.
setTitle
(
rightBtnTitle
,
for
:
.
normal
)
view
.
block
=
callBack
...
...
@@ -100,8 +101,9 @@ class YHTwoOptionAlertView: UIView {
make
.
left
.
equalTo
(
22
)
make
.
right
.
equalTo
(
-
22
)
}
leftButton
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
messageLabel
.
snp
.
bottom
)
.
offset
(
4
0
)
make
.
top
.
equalTo
(
messageLabel
.
snp
.
bottom
)
.
offset
(
2
0
)
make
.
left
.
equalTo
(
16
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
16
)
make
.
size
.
equalTo
(
CGSize
(
width
:
128
,
height
:
45
))
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/C/YHPrincipleUploadListVC.swift
View file @
c1185b68
...
...
@@ -310,7 +310,7 @@ extension YHPrincipleUploadListVC {
}
else
if
editType
==
.
delete
{
// 删除
let
msg
=
"您确定要删除文档
\(
model
.
name
)
吗?"
YHTwoOptionAlertView
.
showAlertView
(
message
:
msg
)
{
sure
in
YHTwoOptionAlertView
.
showAlertView
(
message
:
msg
,
aligentment
:
.
left
)
{
sure
in
if
!
sure
{
return
}
// 删除
var
targetIndex
:
Int
=
-
1
...
...
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