Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
token
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
wallet
token
Commits
9633479d
Commit
9633479d
authored
Jun 21, 2018
by
rlgy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfixed
parent
c6ace7d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
index.php
backend/views/coin/index.php
+1
-1
index.js
backend/web/js/coin/index.js
+1
-2
No files found.
backend/views/coin/index.php
View file @
9633479d
...
@@ -85,7 +85,7 @@ $this->registerJsFile('@web/js/coin/index.js');
...
@@ -85,7 +85,7 @@ $this->registerJsFile('@web/js/coin/index.js');
<
button
class
=
"layui-btn layui-btn-sm"
><
i
class
=
"layui-icon"
>&
#
xe642
;
<
/i></
button
>
<
button
class
=
"layui-btn layui-btn-sm"
><
i
class
=
"layui-icon"
>&
#
xe642
;
<
/i></
button
>
<
/a
>
<
/a
>
<
a
lay
-
event
=
"delete"
>
<
a
lay
-
event
=
"delete"
>
<
button
class
=
"layui-btn layui-btn-sm layui-btn-
warm
"
><
i
class
=
"layui-icon"
>&
#
xe640
;
<
/i></
button
>
<
button
class
=
"layui-btn layui-btn-sm layui-btn-
danger
"
><
i
class
=
"layui-icon"
>&
#
xe640
;
<
/i></
button
>
<
/a
>
<
/a
>
</script>
</script>
<script
type=
"text/html"
id=
"exchangeTpl"
>
<script
type=
"text/html"
id=
"exchangeTpl"
>
...
...
backend/web/js/coin/index.js
View file @
9633479d
...
@@ -55,11 +55,10 @@ table.on('tool(table1)', function (obj) {
...
@@ -55,11 +55,10 @@ table.on('tool(table1)', function (obj) {
});
});
});
});
}
else
if
(
obj
.
event
==
'delete'
)
{
}
else
if
(
obj
.
event
==
'delete'
)
{
layer
.
confirm
(
'真的
删除行么'
,
function
(
index
)
{
layer
.
confirm
(
'真的
要删除'
+
data
.
name
+
'吗?'
,
{
icon
:
3
,
title
:
'删除'
}
,
function
(
index
)
{
obj
.
del
();
//删除对应行(tr)的DOM结构
obj
.
del
();
//删除对应行(tr)的DOM结构
layer
.
close
(
index
);
layer
.
close
(
index
);
//向服务端发送删除指令
//向服务端发送删除指令
console
.
log
(
obj
);
$
.
get
(
'/admin/coin/delete?id='
+
obj
.
data
.
id
,
function
(
data
,
status
)
{
$
.
get
(
'/admin/coin/delete?id='
+
obj
.
data
.
id
,
function
(
data
,
status
)
{
layer
.
msg
(
data
.
info
);
layer
.
msg
(
data
.
info
);
});
});
...
...
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