优化推广公司添加

master
chenzhi 5 years ago
parent 84f5ff2e95
commit 92929b1db7

@ -283,12 +283,7 @@
content: url content: url
}); });
}); });
var isclick = false;
$("#submit").on("click",function(){ $("#submit").on("click",function(){
if(isclick){
return;
}
isclick = true;
var obj = { var obj = {
"company_name":["required","推广公司名称不允许为空"], "company_name":["required","推广公司名称不允许为空"],
"platform_name":["nocheck"], "platform_name":["nocheck"],
@ -326,7 +321,6 @@
data:cres, data:cres,
dataType:"json", dataType:"json",
success:function(data){ success:function(data){
isclick = false;
if(data.status == 1){ if(data.status == 1){
layer.msg(data.info,function(){ layer.msg(data.info,function(){
window.location.href="{:U('PromoteCompany/lists')}"; window.location.href="{:U('PromoteCompany/lists')}";
@ -336,7 +330,7 @@
} }
}, },
error:function(e){ error:function(e){
isclick = false;
} }
}); });

Loading…
Cancel
Save