Commit a0333f16 authored by rlgy's avatar rlgy

update

parent 937b1504
......@@ -39,7 +39,6 @@ table.on('tool(table1)', function (obj) {
content: rev,
btn: ['保存', '取消'],
btn1: function () {
$btn = $('.layui-layer-btn0').button('loading');
$.post('/admin/coin-publish-rule/set', $("#form_data").serialize(), function (rev) {
layer.msg(rev.msg);
if (rev.code == 0) {
......@@ -47,7 +46,6 @@ table.on('tool(table1)', function (obj) {
table.reload("table1", {});
}
});
$btn.button('reset');
}
});
form.render();
......@@ -100,7 +98,7 @@ table.on('toolbar(table1)', function (obj) {
// area: ['500px', 'auto'],
btn: ['确认', '取消'],
btn1: function () {
$btn = $('.layui-layer-btn0').button('loading');
$.post('/admin/coin-publish-rule/set', $("#form_data").serialize(), function (rev) {
layer.msg(rev.msg);
if (rev.code == 0) {
......@@ -108,7 +106,7 @@ table.on('toolbar(table1)', function (obj) {
table.reload("table1", {});
}
});
$btn.button('reset');
}
});
form.render();
......
......@@ -80,7 +80,7 @@ $('#add').click(function () {
var coin_name_zh = $('#addData input[name="coin_name_zh"]').val();
var coin_name_en = $('#addData input[name="coin_name_en"]').val();
if (company_name !== "" && company_name !== "" && coin_name_en !== "") {
$btn = $('.layui-layer-btn0').button('loading');
$.post('/admin/coin-publish/add', $("#addData").serialize(), function (rev) {
layer.msg(rev.msg);
if (rev.code == 0) {
......@@ -88,7 +88,7 @@ $('#add').click(function () {
table.reload("table1", {});
}
});
$btn.button('reset');
} else {
layer.msg("请输入完整!");
}
......
......@@ -40,7 +40,7 @@ $('#add1').click(function () {
var count = $('#addData input[name="count"]').val();
var type = $('#addData input[name="type"]').val();
if (uid !== "" && count !== "") {
$btn = $('.layui-layer-btn0').button('loading');
$.post('/admin/investment/add-one', $("#addData").serialize(), function (rev) {
layer.msg(rev.msg);
if (rev.code == 0) {
......@@ -48,7 +48,7 @@ $('#add1').click(function () {
table.reload("table1", {});
}
});
$btn.button('reset');
} else {
layer.msg("请输入完整!");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment