公会信息
parent
9f61cdade9
commit
0aef9e3019
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Admin\Model;
|
||||
|
||||
use Think\Model;
|
||||
|
||||
class SocietyInfoModel extends Model
|
||||
{
|
||||
protected $tablePrefix = 'tab_';
|
||||
|
||||
}
|
@ -0,0 +1,147 @@
|
||||
<extend name="Public/base"/>
|
||||
|
||||
<block name="body">
|
||||
|
||||
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||||
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||||
<script src="__STATIC__/table2excel.js"></script>
|
||||
<style>
|
||||
html{
|
||||
opacity: 0;
|
||||
}
|
||||
.select2-container--default .select2-selection--single {
|
||||
color: #000;
|
||||
resize: none;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
||||
box-shadow: 0px 3px 3px #F7F8F9 inset;height:35px;
|
||||
height:28px;border-radius:3px;font-size:12px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height:35px;
|
||||
line-height:28px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height:26px;
|
||||
}
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
height:26px;line-height:26px;font-size:12px;
|
||||
}
|
||||
.select2-results__option[aria-selected] {font-size:12px;}
|
||||
.data_list table td{
|
||||
text-indent:0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="cf main-place top_nav_list navtab_list">
|
||||
<h3 class="page_title">{$meta_title}</h3>
|
||||
</div>
|
||||
<!-- 数据列表 -->
|
||||
<div class="data_list data_game_list">
|
||||
<!-- <div style="margin:auto;font-size: 20px;color: red;line-height: 3;padding: 20px;">
|
||||
导出进行中。。。<br/>
|
||||
如果导出成功你也可以手动关闭此页面
|
||||
</div> -->
|
||||
<div class="">
|
||||
<table border="1" id="exporttable">
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>省份</th>
|
||||
<th>城市</th>
|
||||
<th>公司</th>
|
||||
<th>注册资本</th>
|
||||
<th>负责人</th>
|
||||
<th>电话</th>
|
||||
<th>微信</th>
|
||||
<th>QQ</th>
|
||||
<th>游戏类型</th>
|
||||
<th>所做游戏</th>
|
||||
<th>合作平台</th>
|
||||
<th>推广规模</th>
|
||||
<th>流水</th>
|
||||
<th>地址</th>
|
||||
<th>联盟信息</th>
|
||||
<th>是否为意向客户</th>
|
||||
<th>备注信息</th>
|
||||
<th>对接人</th>
|
||||
<th>录入时间</th>
|
||||
<th>最后沟通时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<!-- 列表 -->
|
||||
<tbody>
|
||||
<empty name ="listData">
|
||||
<td colspan="15" class="text-center">aOh! 暂时还没有内容!</td>
|
||||
<else />
|
||||
<volist name="listData" id="data">
|
||||
<tr>
|
||||
<td rowspan="{$data.row}">{$data.province}</td>
|
||||
<td rowspan="{$data.row}">{$data.city}</td>
|
||||
<td rowspan="{$data.row}">{$data.company_name}</td>
|
||||
<td rowspan="{$data.row}">{$data.register_capital}</td>
|
||||
<td rowspan="{$data.row}">{$data.functionary}</td>
|
||||
<td rowspan="{$data.row}">{$data.phone}</td>
|
||||
<td rowspan="{$data.row}">{$data.wechat}</td>
|
||||
<td rowspan="{$data.row}">{$data.qq}</td>
|
||||
<td rowspan="{$data.row}">{$data.game_type}</td>
|
||||
<td rowspan="{$data.row}">{$data.game_name}</td>
|
||||
<td rowspan="{$data.row}">{$data.join_platform}</td>
|
||||
<td rowspan="{$data.row}">{$data.promote_scale}</td>
|
||||
<td rowspan="{$data.row}">{$data.turnover}</td>
|
||||
<td rowspan="{$data.row}">{$data.address}</td>
|
||||
<td rowspan="{$data.row}">{$data.league_info}</td>
|
||||
<td rowspan="{$data.row}">{$data.is_potential}</td>
|
||||
<td rowspan="{$data.row}">{$data.remark}</td>
|
||||
<td rowspan="{$data.row}">{$data.interface_person}</td>
|
||||
<td rowspan="{$data.row}">{$data.create_time|date='Y-m-d H:i:s', ###}</td>
|
||||
<td rowspan="{$data.row}">{$data.communication_time|date='Y-m-d H:i:s', ###}</td>
|
||||
</tr>
|
||||
</volist>
|
||||
</empty>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="page">
|
||||
{$_page|default=''}
|
||||
</div>
|
||||
|
||||
|
||||
</block>
|
||||
|
||||
<block name="script">
|
||||
<script src="__STATIC__/layer/layer.js"></script>
|
||||
<script src="__STATIC__/layer/extend/layer.ext.js"></script>
|
||||
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
||||
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
|
||||
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
|
||||
<style>
|
||||
.layui-layer-demo .layui-layer-title {background:#F0F5F7;font-weight:bold;}
|
||||
.layui-layer-demo .layui-layer-content {}
|
||||
.layui-layer-demo .layui-layer-content table{width:100%;border:0;border-spacing:0;padding:0;}
|
||||
.layui-layer-demo .layui-layer-content td {height:42px;padding-left:20px;}
|
||||
.layui-layer-demo .layui-layer-content tr:hover {background:#F0F5F7;}
|
||||
.layui-layer-demo .layui-layer-content tr~tr {border-top:1px solid #ccc;}
|
||||
.layui-layer-demo .layui-layer-content td~td {border-left:1px solid #ccc;}
|
||||
.layui-layer-demo .layui-layer-content tr:last-child td {}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
<volist name=":I('get.')" id="vo">
|
||||
Think.setValue('{$key}',"{$vo}");
|
||||
</volist>
|
||||
$(".select_gallery").select2();
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$("#exporttable").table2excel({
|
||||
filename: "公会信息.xls", // do include extension
|
||||
preserveColors: false // set to true if you want background colors and font colors preserved
|
||||
});
|
||||
</script>
|
||||
</block>
|
@ -0,0 +1,306 @@
|
||||
<extend name="Public/base"/>
|
||||
|
||||
<block name="body">
|
||||
|
||||
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||||
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||||
<script src="__STATIC__/area.js" type="text/javascript" charset="utf-8"></script>
|
||||
<style>
|
||||
.select2-container--default .select2-selection--single {
|
||||
color: #000;
|
||||
resize: none;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
||||
box-shadow: 0px 3px 3px #F7F8F9 inset;height:35px;
|
||||
height:28px;border-radius:3px;font-size:12px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height:35px;
|
||||
line-height:28px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height:26px;
|
||||
}
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
height:26px;line-height:26px;font-size:12px;
|
||||
}
|
||||
.select2-results__option[aria-selected] {font-size:12px;}
|
||||
.data_list table td{
|
||||
text-indent:0;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="cf main-place top_nav_list navtab_list">
|
||||
<h3 class="page_title">{$meta_title}</h3>
|
||||
</div>
|
||||
|
||||
<div class="cf top_nav_list">
|
||||
<div class="jssearch fl cf search_list" style="margin-bottom: 0px;">
|
||||
<div class="input-list search-title-box">
|
||||
<label>搜索:</label>
|
||||
</div>
|
||||
|
||||
<div class="input-list input-list-game search_label_rehab">
|
||||
<select id="province" name="province" class="" >
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="input-list input-list-game search_label_rehab">
|
||||
<select id="city" name="city" class="" >
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="input-list input-list-game search_label_rehab">
|
||||
<select name="game_type" id="game_type" class="select_gallery">
|
||||
<option value="" >请选择游戏类型</option>
|
||||
<volist name="game_types" id="vo">
|
||||
<option value="{$vo['type_name']}" >{$vo['type_name']}</option>
|
||||
</volist>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="input-list input-list-game search_label_rehab">
|
||||
<input placeholder="请选择对接人" name="interface_person" class="input">
|
||||
</div>
|
||||
|
||||
<div class="input-list input-list-game search_label_rehab">
|
||||
<select name="time_gap" id="time_gap" class="select_gallery">
|
||||
<option value="" >请选择近期是否沟通</option>
|
||||
<option value="1" >是</option>
|
||||
<option value="0" >否</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="input-list">
|
||||
<a class="sch-btn" href="javascript:;" id="search" url="{:U('lists','model='.$model['name'] .'&row='.I('row'),false)}">搜索</a>
|
||||
</div>
|
||||
<!--<div class="input-list">
|
||||
<if condition="$role_export_check eq true ">
|
||||
<a class="sch-btn" href="javascript:;" id="downloadexcel" url="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')))}">导出excel</a>
|
||||
</if>
|
||||
</div>-->
|
||||
</div>
|
||||
<div class="cf top_nav_list jssearch fl cf search_list" style="margin-bottom: 0px;">
|
||||
<div class="input-list">
|
||||
<a class="sch-btn" href="{:U('add')}">新增</a>
|
||||
</div>
|
||||
<div class="input-list">
|
||||
<a class="sch-btn" href="javascript:;" id="excel_in">导入</a>
|
||||
</div>
|
||||
<div class="input-list">
|
||||
<if condition="$role_export_check eq true ">
|
||||
<a class="sch-btn" href="javascript:;" id="downloadexcel" url="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')))}">导出</a>
|
||||
</if>
|
||||
</div>
|
||||
<div class="input-list">
|
||||
<if condition="$timeset_check eq true ">
|
||||
<a style="width: 100px;" class="sch-btn" href="javascript:;" id="timeset" data-url="{:U('timeset')}">时间间隔设置</a>
|
||||
</if>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cf top_nav_list jssearch fl cf excel_list" style="margin-bottom: 0px; display: none;">
|
||||
<form id="form" action="{:U('excelImport')}" method="post" class="form-horizontal" enctype="multipart/form-data">
|
||||
<div class="input-list">
|
||||
<input type="file" id="excelData" name="excelData" accept="application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
|
||||
<button class="submit_btn" id="submit" type="submit" target-form="form-horizontal">确 定</button>
|
||||
<button id="excel_back" class="submit_btn" type="text" target-form="form-horizontal">返 回</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 数据列表 -->
|
||||
<div class="data_list data_game_list">
|
||||
<div class="">
|
||||
<table border="1">
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>省份</th>
|
||||
<th>城市</th>
|
||||
<th>公司</th>
|
||||
<th>注册资本</th>
|
||||
<th>负责人</th>
|
||||
<th>电话</th>
|
||||
<th>微信</th>
|
||||
<th>QQ</th>
|
||||
<th>游戏类型</th>
|
||||
<th>所做游戏</th>
|
||||
<th>合作平台</th>
|
||||
<th>推广规模</th>
|
||||
<th>流水</th>
|
||||
<th>地址</th>
|
||||
<th>联盟信息</th>
|
||||
<th>是否为意向客户</th>
|
||||
<th>备注信息</th>
|
||||
<th>对接人</th>
|
||||
<th>录入时间</th>
|
||||
<th>最后沟通时间</th>
|
||||
|
||||
<th style="width:8%;min-width:10px;">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<!-- 列表 -->
|
||||
<tbody>
|
||||
<empty name ="listData">
|
||||
<td colspan="22" class="text-center">aOh! 暂时还没有内容!</td>
|
||||
<else />
|
||||
<volist name="listData" id="data">
|
||||
<tr <if condition="$data['is_gap_time'] eq 1"> style="background: yellow;" </if> >
|
||||
<td rowspan="{$data.row}">{$data.province}</td>
|
||||
<td rowspan="{$data.row}">{$data.city}</td>
|
||||
<td rowspan="{$data.row}">{$data.company_name}</td>
|
||||
<td rowspan="{$data.row}">{$data.register_capital}</td>
|
||||
<td rowspan="{$data.row}">{$data.functionary}</td>
|
||||
<td rowspan="{$data.row}">{$data.phone}</td>
|
||||
<td rowspan="{$data.row}">{$data.wechat}</td>
|
||||
<td rowspan="{$data.row}">{$data.qq}</td>
|
||||
<td rowspan="{$data.row}">{$data.game_type}</td>
|
||||
<td rowspan="{$data.row}">{$data.game_name}</td>
|
||||
<td rowspan="{$data.row}">{$data.join_platform}</td>
|
||||
<td rowspan="{$data.row}">{$data.promote_scale}</td>
|
||||
<td rowspan="{$data.row}">{$data.turnover}</td>
|
||||
<td rowspan="{$data.row}">{$data.address}</td>
|
||||
<td rowspan="{$data.row}">{$data.league_info}</td>
|
||||
<td rowspan="{$data.row}">{$data.is_potential}</td>
|
||||
<td rowspan="{$data.row}">{$data.remark}</td>
|
||||
<td rowspan="{$data.row}">{$data.interface_person}</td>
|
||||
<td rowspan="{$data.row}">{$data.create_time|date='Y-m-d H:i:s', ###}</td>
|
||||
<td rowspan="{$data.row}">{$data.communication_time|date='Y-m-d H:i:s', ###}</td>
|
||||
|
||||
|
||||
<td rowspan="{$data.row}">
|
||||
<a href="{:U('edit',array('id'=>$data['id']))}">编辑</a>
|
||||
<a href="{:U('del',array('id'=>$data['id']))}" class="confirm ajax-get">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</volist>
|
||||
</empty>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="page">
|
||||
{$_page|default=''}
|
||||
</div>
|
||||
|
||||
<div class="common_settings">
|
||||
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
|
||||
<form class="addShortcutIcon">
|
||||
<input type="hidden" name="title" value="{$meta_title}">
|
||||
<input type="hidden" name="url" value="SocietyInfo/lists">
|
||||
</form>
|
||||
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
|
||||
</div>
|
||||
|
||||
</block>
|
||||
|
||||
<block name="script">
|
||||
<script src="__STATIC__/layer/layer.js"></script>
|
||||
<script src="__STATIC__/layer/extend/layer.ext.js"></script>
|
||||
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
||||
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
|
||||
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
|
||||
<style>
|
||||
.layui-layer-demo .layui-layer-title {background:#F0F5F7;font-weight:bold;}
|
||||
.layui-layer-demo .layui-layer-content {}
|
||||
.layui-layer-demo .layui-layer-content table{width:100%;border:0;border-spacing:0;padding:0;}
|
||||
.layui-layer-demo .layui-layer-content td {height:42px;padding-left:20px;}
|
||||
.layui-layer-demo .layui-layer-content tr:hover {background:#F0F5F7;}
|
||||
.layui-layer-demo .layui-layer-content tr~tr {border-top:1px solid #ccc;}
|
||||
.layui-layer-demo .layui-layer-content td~td {border-left:1px solid #ccc;}
|
||||
.layui-layer-demo .layui-layer-content tr:last-child td {}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
<volist name=":I('get.')" id="vo">
|
||||
Think.setValue('{$key}',"{$vo}");
|
||||
</volist>
|
||||
$(".select_gallery").select2();
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
areaInit();
|
||||
provinceChange()
|
||||
});
|
||||
//导航高亮
|
||||
highlight_subnav("{:U('lists')}");
|
||||
$(function(){
|
||||
$("#excel_in").click(function () {
|
||||
$(".search_list").hide();
|
||||
$(".excel_list").show();
|
||||
return false;
|
||||
});
|
||||
$("#excel_back").click(function () {
|
||||
$(".search_list").show();
|
||||
$(".excel_list").hide();
|
||||
return false;
|
||||
});
|
||||
$("#timeset").click(function () {
|
||||
var url = $(this).data('url');
|
||||
var title = '时间提醒设置';
|
||||
layer.open({
|
||||
type: 2,
|
||||
title: title,
|
||||
shadeClose: true,
|
||||
shade: 0.8,
|
||||
area: ['30%', '30%'],
|
||||
content: url
|
||||
});
|
||||
});
|
||||
|
||||
$("#downloadexcel").on("click",function(){
|
||||
var url = $(this).attr("url");
|
||||
var title = '公会信息导出';
|
||||
var index = layer.load(2);
|
||||
layer.open({
|
||||
type: 2,
|
||||
title: title,
|
||||
shadeClose: true,
|
||||
shade: 0,
|
||||
area: ['40%', '60%'],
|
||||
content: url,
|
||||
zIndex :-5,
|
||||
success:function(){
|
||||
layer.closeAll();
|
||||
}
|
||||
});
|
||||
// window.open(url, "blank");
|
||||
});
|
||||
|
||||
//搜索功能
|
||||
$("#search").click(function(){
|
||||
var url = $(this).attr('url');
|
||||
var query = $('.jssearch').find('input').serialize();
|
||||
query += "&"+$('.jssearch').find('select').serialize();
|
||||
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
|
||||
query = query.replace(/^&/g,'');
|
||||
|
||||
if( url.indexOf('?')>0 ){
|
||||
url += '&' + query;
|
||||
}else{
|
||||
url += '?' + query;
|
||||
}
|
||||
|
||||
window.location.href = url;
|
||||
});
|
||||
|
||||
//回车自动提交
|
||||
$('.jssearch').find('input').keyup(function(event){
|
||||
if(event.keyCode===13){
|
||||
$("#search").click();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</block>
|
@ -0,0 +1,84 @@
|
||||
<!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;">
|
||||
<input style="width: 60px;" type="text" id="num" name="company_name" value="{$num}" placeholder="请输入天数">
|
||||
</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;
|
||||
}
|
||||
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>
|
Loading…
Reference in New Issue