b880100a by yangjianbin

init

1 parent c2e02cec
......@@ -122,7 +122,31 @@
btn: ['确认','取消'],
title: '删除网查'
}, function(){
layer_load('应用工具', '<?=site_url("tool/web")?>');
$.ajax({
type:'delete',
url:apiBaseUrl + id,
cache: false,
data:JSON.stringify(data),
dataType:'json',
contentType: "application/json; charset=UTF-8",
success:function(data){
if(data.msg){
layer.alert(data.msg);
} else if(data.code != 0){
layer.alert('请求失败');
} else {
layer.msg('删除成功');
setTimeout(function () {
layer_load('应用工具', '<?=site_url("tool/web")?>');
},500);
}
},
error:function(){
layer.alert("请求失败")
}
})
});
}
</script>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!