You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
3.1 KiB
HTML

4 years ago
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<title></title>
<link href="http://admin.vlcms.com/Public/icon.ico" type="image/x-icon" rel="shortcut icon">
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
<link rel="stylesheet" type="text/css" href="__CSS__/module.css">
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
</head>
<style>
html {
min-width:100%;
}
body {
padding: 0px;
}
</style>
<body>
<div id="main" class="main" style="min-height: 342px;margin-top: 20px;padding-left: 50px;">
<table border="0" cellspacing="0" cellpadding="0">
<tr style="padding: 10px;height: 50px;">
<td class="l" style="width: 120px;">未沟通时间超过:</td>
<td class="r" style="margin-left: 10px;">
4 years ago
<input style="width: 60px;" type="text" id="num" name="company_name" value="{$num}" placeholder="请输入天数" oninput="value=value.replace(/[^\d]/g,'')">
4 years ago
</td>
<td class="l" style="width: 100px;">天后自动提示</td>
</tr>
</table>
<div class="jssearch search_list fl cf">
<div class="input-list">
<div class="sch-btn add" style="margin-left: 77px;text-align: center; width: 100px;padding: 5px;">确认添加</div>
</div>
</div>
</div>
<script>
$(function(){
$(".add").on("click",function(){
var formData = new FormData();
var num = $("#num").val();
if(num == ''){
layer.msg("天数不能为空");
return false;
}
4 years ago
if(num < 0){
layer.msg("天数不能小于0");
return false;
}
4 years ago
formData.append("num", num);
var index = layer.load();
$.ajax({
url:"{:U('SocietyInfo/timeset')}",
type:"post",
data:formData,
processData:false,
contentType:false,
success:function(data){
layer.closeAll();
if(data.status == 1){
layer.alert(data.info, {}, function() {
var index = parent.layer.getFrameIndex(window.name);
parent.window.location.href="{:U('SocietyInfo/lists')}";
parent.layer.close(index);
});
}else{
layer.alert(data.info);
}
},
error:function(e){
}
});
})
});
</script>
</body>
</html>