|
|
|
@ -52,12 +52,54 @@
|
|
|
|
|
<p class="description_text">上下游奖罚记录管理</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="butnbox" >
|
|
|
|
|
<div class="butnlist jscheckbutn" style="margin-left: 2px">
|
|
|
|
|
<a class="butn" href="{:U('StatementMangement/rewardManageSave')}">添加</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="cf top_nav_list">
|
|
|
|
|
|
|
|
|
|
<!-- 高级搜索 -->
|
|
|
|
|
<div class="jssearch fl cf search_list">
|
|
|
|
|
<!--游戏类型搜索END-->
|
|
|
|
|
<div class="input-list input-list-server search_label_rehab">
|
|
|
|
|
<select id="partner_id" name="partner_id" class="select_gallery" style="width:120px;">
|
|
|
|
|
<option value="">请选择合作公司</option>
|
|
|
|
|
<volist name=":getPartner()" id="vo">
|
|
|
|
|
<option partner-id="{$vo.id}" value="{$vo.id}" <if condition="$vo.id eq $_GET['partner_id']">selected=selected</if>>{$vo.partner}</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
|
|
|
<select id="game_name" name="game_name" class="select_gallery" >
|
|
|
|
|
<option value="">请选择游戏</option>
|
|
|
|
|
<volist name=":getAllGame()" id="vo">
|
|
|
|
|
<option value="{$vo.game_name}" <if condition="$vo.game_name eq I('game_name')">selected</if>
|
|
|
|
|
>{$vo.game_name}</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="input-list">
|
|
|
|
|
|
|
|
|
|
<input type="text" name="account" placeholder="账号" class="" value="{:I('account')}"/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<input type="hidden" name="from" value="{$_GET['from']}"/>
|
|
|
|
|
<div class="input-list">
|
|
|
|
|
<a class="sch-btn" href="javascript:;" id="search" url="{:U('StatementMangement/rewardManageList','model='.$model['name'].'&row='.I('row'),false)}"
|
|
|
|
|
style="width: 100px;border: #3C95C8 solid 1px;">搜索</a>
|
|
|
|
|
<!-- <a class="sch-btn" href="javascript:history.go(-1)" style="background:#fff;color: #000;border: #000 solid 1px;width: 100px">返回</a>-->
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 数据列表 -->
|
|
|
|
|
<div class="data_list">
|
|
|
|
|
<div class="">
|
|
|
|
@ -150,5 +192,54 @@
|
|
|
|
|
</volist>
|
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
|
highlight_subnav("{:U('StatementMangement/rewardManageList')}");
|
|
|
|
|
|
|
|
|
|
function get_game_list()
|
|
|
|
|
{
|
|
|
|
|
var game_name = $('#game_name').val();
|
|
|
|
|
var partner_id = $("#partner_id option:selected").val();
|
|
|
|
|
var sdk_type = $("#sdk_version1 option:selected").val();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:"{:U('Finance/getGameList')}",
|
|
|
|
|
type:"post",
|
|
|
|
|
data:{
|
|
|
|
|
partner_id:partner_id,
|
|
|
|
|
sdk_type:sdk_type
|
|
|
|
|
},
|
|
|
|
|
dataType:'json',
|
|
|
|
|
success:function(data){
|
|
|
|
|
var str = "<option value=''>请选择游戏</option>";
|
|
|
|
|
for (var i in data){
|
|
|
|
|
str += "<option value='"+data[i].game_name+"'"+(game_name && data[i].game_name == game_name?'selected':'')+">"+data[i].game_name+"</option>"
|
|
|
|
|
}
|
|
|
|
|
// console.log(str);
|
|
|
|
|
$("#game_name").empty();
|
|
|
|
|
$("#game_name").append(str);
|
|
|
|
|
$("#game_name").select2();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
$(function(){
|
|
|
|
|
$("#partner_id").change(function(){
|
|
|
|
|
get_game_list();
|
|
|
|
|
});
|
|
|
|
|
//搜索功能
|
|
|
|
|
$("#search").click(function(){
|
|
|
|
|
var url = $(this).attr('url');
|
|
|
|
|
var query = $('.jssearch').find('input').serialize();
|
|
|
|
|
console.log(url);
|
|
|
|
|
query += "&" + $('.jssearch').find('select').serialize();
|
|
|
|
|
console.log(query);
|
|
|
|
|
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
|
|
|
|
|
query = query.replace(/^&/g,'');
|
|
|
|
|
if( url.indexOf('?')>0 ){
|
|
|
|
|
url += '&' + query;
|
|
|
|
|
}else{
|
|
|
|
|
url += '?' + query;
|
|
|
|
|
}
|
|
|
|
|
window.location.replace(url);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
</block>
|
|
|
|
|