每页条数bug修复

master
chenxiaojun 5 years ago
parent 4e7904c3de
commit f91c0f0965

@ -105,7 +105,7 @@
</block> </block>
<block name="body"> <block name="body">
<div class="page-list normal_list apply-index-list"> <div class="page-list normal_list apply-index-list jssearch">
<div class="trunk-title"> <div class="trunk-title">
<div class="location"> <div class="location">
<div class="location-container">当前位置:<span>游戏管理></span><span>{$position}</span></div> <div class="location-container">当前位置:<span>游戏管理></span><span>{$position}</span></div>
@ -180,10 +180,11 @@
</div> </div>
</div> </div>
<form action="{:U($game,array('row'=>I('get.row'),'type'=>$type))}" method="post" enctype="multipart/form-data" <!-- <form action="{:U($game,array('row'=>I('get.row'),'type'=>$type))}" method="post" enctype="multipart/form-data"-->
class="marg_top20"> <!-- class="marg_top20">-->
<div class="form-group normal_space fr"> <div class="form-group normal_space fr">
<input type="submit" class="submit" value="查询"> <input type="submit" class="submit" id='submit' url="{:U($game,array('model'=>$model['name'],'type'=>$type),false)}"
value="查询">
</div> </div>
<div class="form-group normal_space fr"> <div class="form-group normal_space fr">
<select id="game_id" name="game_id" class="reselect select_gallery" style="min-width:200px;width: 175px;"> <select id="game_id" name="game_id" class="reselect select_gallery" style="min-width:200px;width: 175px;">
@ -218,7 +219,7 @@
<input id="promote_role" name="promote_role"> <input id="promote_role" name="promote_role">
</div> </div>
</form> <!-- </form>-->
</div> </div>
<div class="trunk-list"> <div class="trunk-list">
<div class="div_bgtab"> <div class="div_bgtab">
@ -869,5 +870,21 @@
$('#promote_id').on('change', function () { $('#promote_id').on('change', function () {
newPromoteId = $(this).val(); newPromoteId = $(this).val();
}); });
$('#submit').click(function () {
var url = $(this).attr('url');
console.log(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;
});
</script> </script>
</block> </block>

@ -89,7 +89,7 @@
</block> </block>
<block name="body"> <block name="body">
<div class="page-list normal_list apply-my_game-list"> <div class="page-list normal_list apply-my_game-list jssearch">
<div class="trunk-title"> <div class="trunk-title">
<div class="location"> <div class="location">
<div class="location-container">当前位置:<span>游戏管理></span><span>{$position}</span></div> <div class="location-container">当前位置:<span>游戏管理></span><span>{$position}</span></div>
@ -156,10 +156,11 @@
<!-- <a class="btn_calc" href="javascript:;">审核通过</a>--> <!-- <a class="btn_calc" href="javascript:;">审核通过</a>-->
<!-- <a class="btn_calc examine_a" href="{:U('my_game_ch')}">审核中</a>--> <!-- <a class="btn_calc examine_a" href="{:U('my_game_ch')}">审核中</a>-->
<!-- </div>--> <!-- </div>-->
<form class="marg_top20" action="{:U($myGame,array('row'=>I('get.row')))}" method="post" <!-- <form class="marg_top20" action="{:U($myGame,array('row'=>I('get.row')))}" method="post"-->
enctype="multipart/form-data"> <!-- enctype="multipart/form-data">-->
<div class="form-group normal_space fr"> <div class="form-group normal_space fr">
<input type="submit" class="submit zwm_submit" value="查询"> <input type="submit" class="submit" id='submit' url="{:U($myGame,array('model'=>$model['name'],'type'=>$type),false)}"
value="查询">
</div> </div>
<div class="form-group normal_space fr"> <div class="form-group normal_space fr">
<select id="game_id" name="game_id" class="reselect select_gallery" style="min-width:200px;width: 175px;"> <select id="game_id" name="game_id" class="reselect select_gallery" style="min-width:200px;width: 175px;">
@ -196,7 +197,7 @@
<div class="form-group normal_space fr" style="display: none;"> <div class="form-group normal_space fr" style="display: none;">
<input id="promote_role" name="promote_role"> <input id="promote_role" name="promote_role">
</div> </div>
</form> <!-- </form>-->
</div> </div>
<div class="trunk-list zwm_trunklist"> <div class="trunk-list zwm_trunklist">
@ -1031,5 +1032,21 @@
clipboard.on('error', function(e) { clipboard.on('error', function(e) {
// console.log(e); // console.log(e);
}); });
$('#submit').click(function () {
var url = $(this).attr('url');
console.log(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;
});
</script> </script>
</block> </block>

@ -135,7 +135,7 @@
</block> </block>
<block name="body"> <block name="body">
<div class="page-list normal_list apply-index-list"> <div class="page-list normal_list apply-index-list jssearch">
<div class="trunk-title"> <div class="trunk-title">
<div class="location"> <div class="location">
<div class="location-container">当前位置:<span>游戏管理></span><span>分成比例</span></div> <div class="location-container">当前位置:<span>游戏管理></span><span>分成比例</span></div>
@ -150,8 +150,8 @@
<if condition="isset($dataList)"> <if condition="isset($dataList)">
<div class="trunk-search clearfix"> <div class="trunk-search clearfix">
<div class="tab marg_top20" style="clear:both;display: flex;"></div> <div class="tab marg_top20" style="clear:both;display: flex;"></div>
<form action="{:U('index',array('row'=>I('get.row')))}" method="post" enctype="multipart/form-data" <!-- <form action="{:U('index',array('row'=>I('get.row')))}" method="post" enctype="multipart/form-data"-->
class="marg_top20" style="float: left;"> <!-- class="marg_top20" style="float: left;">-->
<div class="form-group normal_space fl"> <div class="form-group normal_space fl">
<select id="relation_game_id" name="relation_game_id" class="reselect select_gallery" style="min-width:200px;width: 175px;"> <select id="relation_game_id" name="relation_game_id" class="reselect select_gallery" style="min-width:200px;width: 175px;">
<option value="">请选择游戏</option> <option value="">请选择游戏</option>
@ -201,10 +201,9 @@
<input id="server_type" name="server_type"> <input id="server_type" name="server_type">
</div> </div>
<div class="form-group normal_space fl"> <div class="form-group normal_space fl"><input type="submit" class="submit" id='submit' url="{:U('index','model'=>$model['name'],false)}" value="查询">
<input type="submit" class="submit" value="查询">
</div> </div>
</form> <!-- </form>-->
</div> </div>
<div class="trunk-list"> <div class="trunk-list">
<div class="div_bgtab"> <div class="div_bgtab">
@ -314,6 +313,22 @@
$('.btn-security-close').on('click', function () { $('.btn-security-close').on('click', function () {
window.location.href = "{:U('Promote/index')}"; window.location.href = "{:U('Promote/index')}";
}); });
$('#submit').click(function () {
var url = $(this).attr('url');
console.log(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;
});
}); });
</script> </script>
</block> </block>

@ -107,7 +107,7 @@
</block> </block>
<block name="body"> <block name="body">
<div class="page-list normal_list apply-index-list"> <div class="page-list normal_list apply-index-list jssearch">
<div style="position: absolute;margin: .6% 2% 0 2%;margin-top: -30px;color: #6a7082;"> <div style="position: absolute;margin: .6% 2% 0 2%;margin-top: -30px;color: #6a7082;">
<span class="back-btn" style="cursor: pointer;"><i class="iconfont iconreply"></i> 返回</span> <span class="back-btn" style="cursor: pointer;"><i class="iconfont iconreply"></i> 返回</span>
</div> </div>
@ -119,10 +119,11 @@
</div> </div>
<div class="trunk-content article"> <div class="trunk-content article">
<div class="trunk-search clearfix"> <div class="trunk-search clearfix">
<form action="{:U('PromoteCoin/coinRecord',array('game_id'=>I('get.game_id')))}" method="post" enctype="multipart/form-data" <!-- <form action="{:U('PromoteCoin/coinRecord',array('game_id'=>I('get.game_id')))}" method="post" enctype="multipart/form-data"-->
class="marg_top20"> <!-- class="marg_top20">-->
<div class="form-group normal_space fr"> <div class="form-group normal_space fr">
<input type="submit" class="submit" value="查询"> <input type="submit" class="submit" id='submit' url="{:U('PromoteCoin/coinRecord',array('model'=>$model['name'],'game_id'=>I('get.game_id')),false)}"
value="查询">
</div> </div>
<div class="form-group normal_space fr"> <div class="form-group normal_space fr">
<label>充值时间:</label> <label>充值时间:</label>
@ -161,7 +162,7 @@
</volist> </volist>
</select> </select>
</div> </div>
</form> <!-- </form>-->
</div> </div>
<div class="trunk-list"> <div class="trunk-list">
<div class="div_bgtab"> <div class="div_bgtab">
@ -204,7 +205,7 @@
</table> </table>
</div> </div>
<div class="pagenation clearfix"> <div class="pagenation clearfix">
<a class="sch-btn" href="{:U('Export/expUser',array_merge(array('id'=>8,'xlsname'=>'会长福利_平台币入账记录'),I('post.')))}" >导出</a> <!-- <a class="sch-btn" href="{:U('Export/expUser',array_merge(array('id'=>8,'xlsname'=>'会长福利_平台币入账记录'),I('post.')))}" >导出</a>-->
{$_page} {$_page}
</div> </div>
</div> </div>
@ -254,6 +255,28 @@
$('.back-btn').on('click', function () { $('.back-btn').on('click', function () {
history.back(-1); history.back(-1);
}); });
$('#submit').click(function () {
var sdate = $('#start_time').val();
var edate = $('#end_time').val();
if (Date.parse(sdate) > Date.parse(edate)) {
layer.msg('开始时间必须小于等于结束时间');
return false;
}
var url = $(this).attr('url');
console.log(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;
});
}); });
</script> </script>
</block> </block>

@ -103,7 +103,7 @@
</block> </block>
<block name="body"> <block name="body">
<div class="page-list normal_list apply-index-list"> <div class="page-list normal_list apply-index-list jssearch">
<div class="trunk-title"> <div class="trunk-title">
<div class="location"> <div class="location">
<div class="location-container">当前位置:<span>平台币管理></span><span>我的平台币</span></div> <div class="location-container">当前位置:<span>平台币管理></span><span>我的平台币</span></div>
@ -112,10 +112,11 @@
</div> </div>
<div class="trunk-content article"> <div class="trunk-content article">
<div class="trunk-search clearfix"> <div class="trunk-search clearfix">
<form action="{:U('myCoin')}" method="post" enctype="multipart/form-data" <!-- <form action="{:U('myCoin')}" method="post" enctype="multipart/form-data"-->
class="marg_top20"> <!-- class="marg_top20">-->
<div class="form-group normal_space fr"> <div class="form-group normal_space fr">
<input type="submit" class="submit" value="查询"> <input type="submit" class="submit" id='submit' url="{:U('myCoin','model='.$model['name'],false)}"
value="查询">
</div> </div>
<div class="form-group normal_space fr"> <div class="form-group normal_space fr">
<label>状态:</label> <label>状态:</label>
@ -151,7 +152,7 @@
</volist> </volist>
</select> </select>
</div> </div>
</form> <!-- </form>-->
</div> </div>
<div class="trunk-list"> <div class="trunk-list">
<div class="div_bgtab"> <div class="div_bgtab">
@ -191,7 +192,7 @@
</table> </table>
</div> </div>
<div class="pagenation clearfix"> <div class="pagenation clearfix">
<a class="sch-btn" href="{:U('Export/expUser',array_merge(array('id'=>8,'xlsname'=>'会长福利_平台币入账记录'),I('post.')))}" >导出</a> <!-- <a class="sch-btn" href="{:U('Export/expUser',array_merge(array('id'=>8,'xlsname'=>'会长福利_平台币入账记录'),I('post.')))}" >导出</a>-->
{$_page} {$_page}
</div> </div>
</div> </div>
@ -206,6 +207,22 @@
$(document).ready(function () { $(document).ready(function () {
$(".select_gallery").select2(); $(".select_gallery").select2();
$('#submit').click(function () {
var url = $(this).attr('url');
console.log(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;
});
}); });
</script> </script>
</block> </block>

@ -52,7 +52,7 @@
right: 10px; right: 10px;
} }
</style> </style>
<div class="page-search normal_list query-recharge-search"> <div class="page-search normal_list query-recharge-search jssearch">
<div class="trunk-title"> <div class="trunk-title">
<div class="location"> <div class="location">
<div class="location-container">当前位置:<span>数据管理></span><span>订单查询</span></div> <div class="location-container">当前位置:<span>数据管理></span><span>订单查询</span></div>
@ -63,8 +63,8 @@
</div> </div>
<div class="trunk-content article"> <div class="trunk-content article">
<div class="trunk-search clearfix"> <div class="trunk-search clearfix">
<form action="{:U('Query/recharge',['version'=>I(" request.version <!-- <form action="{:U('Query/recharge',['version'=>I(" request.version-->
",1),'row'=>I("get.row")])}" method="post" enctype="multipart/form-data" class="normal_form"> <!-- ",1),'row'=>I("get.row")])}" method="post" enctype="multipart/form-data" class="normal_form">-->
<div class="form-group normal_space fl"> <div class="form-group normal_space fl">
<select id="relation_game_id" name="relation_game_id" class="reselect select_gallery"> <select id="relation_game_id" name="relation_game_id" class="reselect select_gallery">
<option value="">请选择游戏</option> <option value="">请选择游戏</option>
@ -154,7 +154,8 @@
</div> </div>
<div class="form-group normal_space fl"> <div class="form-group normal_space fl">
<input type="submit" class="submit" id='submit' value="查询"> <input type="submit" class="submit" id='submit' url="{:U('Query/recharge','model='.$model['name'],false)}"
value="查询">
</div> </div>
<div class="form-group normal_space fl" style="margin-left: 60px;"> <div class="form-group normal_space fl" style="margin-left: 60px;">
@ -164,7 +165,7 @@
</label> </label>
</div> </div>
<!-- <input type="hidden" name="version" value="{:I('version',1)}"> --> <!-- <input type="hidden" name="version" value="{:I('version',1)}"> -->
</form> <!-- </form>-->
</div> </div>
</div> </div>
<div class="page-list apply-app_apply-list query-recharge-list"> <div class="page-list apply-app_apply-list query-recharge-list">
@ -342,16 +343,25 @@
$('#submit').click(function () { $('#submit').click(function () {
var sdate = $('#sdate').val(); var sdate = $('#sdate').val();
var edate = $('#edate').val(); var edate = $('#edate').val();
// if(sdate =='' || edate==''){
// layer.msg('请完整时间搜索框');
// return false;
// }
if (Date.parse(sdate) > Date.parse(edate)) { if (Date.parse(sdate) > Date.parse(edate)) {
layer.msg('开始时间必须小于等于结束时间'); layer.msg('开始时间必须小于等于结束时间');
return false; return false;
} }
var url = $(this).attr('url');
console.log(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;
}); });
$(".select_gallery").select2(); $(".select_gallery").select2();
}); });
</script> </script>

@ -24,7 +24,7 @@
</block> </block>
<block name="body"> <block name="body">
<div class="page-search normal_list query-register-search"> <div class="page-search normal_list query-register-search jssearch">
<div class="trunk-title"> <div class="trunk-title">
<div class="location"> <div class="location">
<div class="location-container">当前位置:<span>数据管理></span><span>注册明细</span></div> <div class="location-container">当前位置:<span>数据管理></span><span>注册明细</span></div>
@ -35,7 +35,7 @@
</div> </div>
<div class="trunk-content article"> <div class="trunk-content article">
<div class="trunk-search clearfix"> <div class="trunk-search clearfix">
<form action="{:U('Query/register',array('row'=>I('get.row')))}" method="post" enctype="multipart/form-data"> <!-- <form action="{:U('Query/register',array('row'=>I('get.row')))}" method="post" enctype="multipart/form-data">-->
<if condition="$thisParentPromoteId eq 0"> <if condition="$thisParentPromoteId eq 0">
<div class="form-group normal_space fl"> <div class="form-group normal_space fl">
<select id="team_leader_id" name="team_leader_id" class="reselect select_gallery" style="min-width:130px;"> <select id="team_leader_id" name="team_leader_id" class="reselect select_gallery" style="min-width:130px;">
@ -80,7 +80,8 @@
</div> </div>
<div class="form-group normal_space fl"> <div class="form-group normal_space fl">
<input type="submit" class="submit" id='submit' value="查询"> <input type="submit" class="submit" id='submit' url="{:U('Query/register','model='.$model['name'],false)}"
value="查询">
</div> </div>
<div class="form-group normal_space fl" style="margin-left: 60px;"> <div class="form-group normal_space fl" style="margin-left: 60px;">
@ -89,7 +90,7 @@
<input type="hidden" name="own_id" id="own_id" value="{:empty(I('own_id'))?0:I('own_id')}" /> <input type="hidden" name="own_id" id="own_id" value="{:empty(I('own_id'))?0:I('own_id')}" />
</label> </label>
</div> </div>
</form> <!-- </form>-->
</div> </div>
</div> </div>
<div class="page-list query-register-list"> <div class="page-list query-register-list">
@ -204,14 +205,26 @@
}); });
$(".select_gallery").select2(); $(".select_gallery").select2();
$('.submit').click(function () { $('#submit').click(function () {
var sdate = $('#sdate').val(); var sdate = $('#sdate').val();
var edate = $('#edate').val(); var edate = $('#edate').val();
if (Date.parse(sdate) > Date.parse(edate)) { if (Date.parse(sdate) > Date.parse(edate)) {
layer.msg('开始时间必须小于等于结束时间'); layer.msg('开始时间必须小于等于结束时间');
return false; return false;
} }
var url = $(this).attr('url');
console.log(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;
}); });
}); });
</script> </script>

@ -7,7 +7,7 @@
</block> </block>
<block name="body"> <block name="body">
<div class="page-search normal_list query-register-search" style="font-size: small;"> <div class="page-search normal_list query-register-search jssearch" style="font-size: small;">
<div style="position: absolute;margin: .6% 2% 0 2%;margin-top: -30px;color: #6a7082;"> <div style="position: absolute;margin: .6% 2% 0 2%;margin-top: -30px;color: #6a7082;">
<span class="back-btn" style="cursor: pointer;"><i class="iconfont iconreply"></i> 返回</span> <span class="back-btn" style="cursor: pointer;"><i class="iconfont iconreply"></i> 返回</span>
</div> </div>
@ -20,7 +20,7 @@
</div> </div>
<div class="trunk-content article"> <div class="trunk-content article">
<div class="trunk-search clearfix"> <div class="trunk-search clearfix">
<form action="{:U('Query/viewRole',array('row'=>I('get.row'),'id'=>I('get.id')))}" method="post" enctype="multipart/form-data"> <!-- <form action="{:U('Query/viewRole',array('row'=>I('get.row'),'id'=>I('get.id')))}" method="post" enctype="multipart/form-data">-->
<div class="form-group normal_space fl"> <div class="form-group normal_space fl">
<select id="relation_game_id" name="relation_game_id" class="reselect select_gallery"> <select id="relation_game_id" name="relation_game_id" class="reselect select_gallery">
<option value="">请选择游戏</option> <option value="">请选择游戏</option>
@ -65,9 +65,10 @@
</div> </div>
<div class="form-group normal_space fl"> <div class="form-group normal_space fl">
<input type="submit" class="submit" id='submit' value="查询"> <input type="submit" class="submit" id='submit' url="{:U('Query/viewRole',array('model'=>$model['name'],'id'=>I('get.id')),false)}"
value="查询">
</div> </div>
</form> <!-- </form>-->
</div> </div>
</div> </div>
<div class="page-list query-register-list"> <div class="page-list query-register-list">
@ -203,18 +204,25 @@
}); });
$(".select_gallery").select2(); $(".select_gallery").select2();
$('.submit').click(function () { $('#submit').click(function () {
var sdate = $('#sdate').val(); var sdate = $('#sdate').val();
var edate = $('#edate').val(); var edate = $('#edate').val();
// if(sdate =='' || edate==''){
// layer.msg('请完整时间搜索框');
// return false;
// }
if (Date.parse(sdate) > Date.parse(edate)) { if (Date.parse(sdate) > Date.parse(edate)) {
layer.msg('开始时间必须小于等于结束时间'); layer.msg('开始时间必须小于等于结束时间');
return false; return false;
} }
var url = $(this).attr('url');
console.log(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;
}); });
}); });

Loading…
Cancel
Save