Commit 675b4396 by 孙龙

up

parent c28d30e3
......@@ -9,7 +9,7 @@
return [
//域名
'domain_local'=>'message.liexin.com',
'domain_local'=>'message.liexin.net',
'domain_sz'=>'szmessage.ichunt.net',
'domain_release'=>'message.ichunt.net',
......
......@@ -10,9 +10,9 @@ return [
'search'=> 'http://' . env('LOGIN_DOMAIN', '') . '/api/search',
],
'data' => env('DATA_DOMAIN', 'message.liexin.com'),
'data' => env('DATA_DOMAIN', 'message.liexin.net'),
"domain" => "liexin.com",
"domain" => "liexin.net",
"rabbitmq"=>[
......
......@@ -27,13 +27,15 @@ layui.use(['jquery','element', 'layer', 'form','table','laypage','laydate'], fun
//监听表单提交按钮
form.on('submit(search)', function(data){
//根据搜索条件 重载表单
msg_tpl_table.reload({
where: data.field,//设定异步数据接口的额外参数,任意设
page: {
curr: 1 //重新从第 1 页开始
}
layer.confirm('确定删除?', function(index){
//根据搜索条件 重载表单
msg_tpl_table.reload({
where: data.field,//设定异步数据接口的额外参数,任意设
page: {
curr: 1 //重新从第 1 页开始
}
});
layer.close(index);
});
return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。
......@@ -83,27 +85,33 @@ layui.use(['jquery','element', 'layer', 'form','table','laypage','laydate'], fun
});
function delTpl(tpl_id){
$.ajax({
url: "/msgapi/delTpl",
dataType: 'json',
data: {
tpl_id: tpl_id
},
success: function (resp) {
if(!resp){
Prompt('网络异常,请重试', 5);
return false;
}
if(resp.errcode==0){
Prompt(resp.errmsg, 1);
location.reload();
}else{
Prompt(resp.errmsg, 5);
return false;
layer.confirm('确定要删除?', {icon: 3, title:'提示'}, function(index){
$.ajax({
url: "/msgapi/delTpl",
dataType: 'json',
data: {
tpl_id: tpl_id
},
success: function (resp) {
if(!resp){
Prompt('网络异常,请重试', 5);
return false;
}
if(resp.errcode==0){
Prompt(resp.errmsg, 1);
location.reload();
}else{
Prompt(resp.errmsg, 5);
return false;
}
},
error:function(jqXHR, textStatus, errorThrown){
Prompt("网络异常,请重试",5);
}
},
error:function(jqXHR, textStatus, errorThrown){
Prompt("网络异常,请重试",5);
}
});
layer.close(index);
});
}
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 sign in to comment