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
bff1d87e
Commit
bff1d87e
authored
Aug 13, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 确认发送邮件弹窗
parent
b94c4cf1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
+20
-13
YHPrincipleUploadListVC.swift
...rvice/PrincipleBatch(原则批)/C/YHPrincipleUploadListVC.swift
+14
-8
YHCheckEamilAlertView.swift
...ice(服务中心)/MyDocuments(我的文书)/V/YHCheckEamilAlertView.swift
+6
-5
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/C/YHPrincipleUploadListVC.swift
View file @
bff1d87e
...
...
@@ -520,16 +520,22 @@ extension YHPrincipleUploadListVC: UITableViewDelegate, UITableViewDataSource {
printLog
(
"mail :
\(
mail
)
"
)
if
let
template
=
model
.
file_url
.
first
{
YHHUD
.
show
(
.
progress
(
message
:
"发送邮件中"
))
self
.
viewModel
.
sendMail
(
mail
,
template
:
template
)
{
success
,
error
in
YHHUD
.
hide
()
if
success
{
YHHUD
.
flash
(
message
:
"发送成功"
)
}
else
{
let
errMsg
=
error
?
.
errorMsg
??
"发送失败"
YHHUD
.
flash
(
message
:
errMsg
)
// 确认发送弹窗
YHCheckEamilAlertView
.
show
(
nil
,
mail
,
"取消"
,
"确认"
,
.
center
)
{
YHHUD
.
show
(
.
progress
(
message
:
"发送邮件中"
))
self
.
viewModel
.
sendMail
(
mail
,
template
:
template
)
{
success
,
error
in
YHHUD
.
hide
()
if
success
{
YHHUD
.
flash
(
message
:
"发送成功"
)
}
else
{
let
errMsg
=
error
?
.
errorMsg
??
"发送失败"
YHHUD
.
flash
(
message
:
errMsg
)
}
}
}
}
else
{
YHHUD
.
flash
(
message
:
"模版链接为空"
)
}
}
mailView
.
show
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyDocuments(我的文书)/V/YHCheckEamilAlertView.swift
View file @
bff1d87e
...
...
@@ -18,10 +18,11 @@ class YHCheckEamilAlertView: UIView {
var
agreeButton
:
UIButton
!
var
disAgressButton
:
UIButton
!
static
func
show
(
_
title
:
String
?
=
nil
,
_
message
:
String
?
=
nil
,
_
leftButtonString
:
String
?
=
nil
,
_
rightButtonString
:
String
?
=
nil
,
callBack
:
@escaping
(()
->
Void
))
{
static
func
show
(
_
title
:
String
?
=
nil
,
_
message
:
String
?
=
nil
,
_
leftButtonString
:
String
?
=
nil
,
_
rightButtonString
:
String
?
=
nil
,
_
textAlignment
:
NSTextAlignment
=
.
left
,
callBack
:
@escaping
(()
->
Void
))
{
let
view
=
YHCheckEamilAlertView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
))
view
.
agreeBlock
=
callBack
view
.
setContent
(
title
,
message
,
leftButtonString
,
rightButtonString
)
view
.
messageLabel
.
textAlignment
=
textAlignment
let
window
=
UIApplication
.
shared
.
yhKeyWindow
()
window
?
.
addSubview
(
view
)
}
...
...
@@ -61,19 +62,19 @@ class YHCheckEamilAlertView: UIView {
disAgressButton
.
snp
.
removeConstraints
()
disAgressButton
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
messageLabel
.
snp
.
bottom
)
.
offset
(
kMargin
)
make
.
top
.
equalTo
(
messageLabel
.
snp
.
bottom
)
.
offset
(
19
)
make
.
left
.
equalTo
(
16
)
make
.
width
.
equalTo
(
128
)
make
.
height
.
equalTo
(
45
)
make
.
bottom
.
equalTo
(
-
21
)
make
.
bottom
.
equalTo
(
-
16
)
}
agreeButton
.
snp
.
removeConstraints
()
agreeButton
.
snp
.
makeConstraints
{
make
in
agreeButton
.
snp
.
re
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
16
)
make
.
width
.
equalTo
(
128
)
make
.
height
.
equalTo
(
45
)
make
.
top
.
equalTo
(
messageLabel
.
snp
.
bottom
)
.
offset
(
kMargi
n
)
make
.
top
.
equalTo
(
disAgressButto
n
)
}
}
...
...
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