|
|
|
@ -7,6 +7,8 @@
|
|
|
|
|
<script src="__STATIC__/layer/layer.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/layer/extend/layer.ext.js"></script>
|
|
|
|
|
<link rel="stylesheet" href="__CSS__/promote.css" type="text/css"/>
|
|
|
|
|
<style>
|
|
|
|
|
.select2-container--default .select2-selection--single {
|
|
|
|
|
color: #000;
|
|
|
|
@ -29,6 +31,17 @@
|
|
|
|
|
}
|
|
|
|
|
.select2-results__option[aria-selected] {font-size:12px;}
|
|
|
|
|
.layui-layer-dialog .layui-layer-content{color:red}
|
|
|
|
|
.textarea-style {
|
|
|
|
|
width: 195px;
|
|
|
|
|
height: 150px;
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
}
|
|
|
|
|
.mustmark {
|
|
|
|
|
color: #FF0000;
|
|
|
|
|
font-style: normal;
|
|
|
|
|
margin: 0 3px;
|
|
|
|
|
margin-left:-7px
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
|
@ -41,8 +54,10 @@
|
|
|
|
|
<div class="tools">
|
|
|
|
|
<empty name="show_status">
|
|
|
|
|
<a class=" " href="{:U('applyRatio?model='.$model['id'])}"><span class="button_icon button_icon1"></span>游戏分成比例申请</a>
|
|
|
|
|
<a class="ajax-post " target-form="ids" url="{:U('setStatus',array('status'=>1))}"><span class="button_icon button_icon9"></span>审核通过</a>
|
|
|
|
|
<a class="ajax-post " style="color: red;" target-form="ids" url="{:U('setStatus',array('status'=>-1))}"><span class="button_icon button_icon9"></span>审核拒绝</a>
|
|
|
|
|
<if condition = "$reviewRule">
|
|
|
|
|
<a class="ajax-post " target-form="ids" url="{:U('setStatus',array('status'=>1))}"><span class="button_icon button_icon9"></span>审核通过</a>
|
|
|
|
|
<a href="javascript:;" onclick="refuse()" style="color: red;"><span class="button_icon button_icon9"></span>审核拒绝</a>
|
|
|
|
|
</if>
|
|
|
|
|
</empty>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -157,7 +172,21 @@
|
|
|
|
|
</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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--弹出层-->
|
|
|
|
|
<div class="promote-layer mb20">
|
|
|
|
|
<form id="ajaxForm" action="{:U('set_withdraw')}" method="post">
|
|
|
|
|
<ol class="promote-con">
|
|
|
|
|
<li class="promote-con-con " id="deny">
|
|
|
|
|
<div class="mb20">
|
|
|
|
|
<span class="promote-name">备注:</span>
|
|
|
|
|
<textarea class="textarea-style ids" name="remark"></textarea>
|
|
|
|
|
</div>
|
|
|
|
|
<a class="ajax-post pack" style="cursor: pointer;" target-form="ids" url="{:U('setStatus',array('status'=>-1))}"><div class="promote-btn">拒绝</div></a>
|
|
|
|
|
</li>
|
|
|
|
|
</ol>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</block>
|
|
|
|
|
|
|
|
|
|
<block name="script">
|
|
|
|
@ -191,63 +220,26 @@ $(function(){
|
|
|
|
|
$("#search").click();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$("#admin").on('click',function(event) {
|
|
|
|
|
var navlist = $(this).find('.i_list_li');
|
|
|
|
|
if (navlist.hasClass('hidden')) {
|
|
|
|
|
navlist.removeClass('hidden');
|
|
|
|
|
$(this).find('#i_list_id').focus().val('');
|
|
|
|
|
} else {
|
|
|
|
|
navlist.addClass('hidden');
|
|
|
|
|
}
|
|
|
|
|
$(document).one("click", function(){
|
|
|
|
|
navlist.addClass('hidden');
|
|
|
|
|
});
|
|
|
|
|
event.stopPropagation();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#admin #i_list_id').on('keyup',function(event) {
|
|
|
|
|
var val = $.trim($(this).val()).toLowerCase();
|
|
|
|
|
$(this).closest('.drop-down').find('#i_list_idh').val(val);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#admin #i_list_li").find("a").each(function(){
|
|
|
|
|
$(this).click(function(){
|
|
|
|
|
var text = $.trim($(this).text()).toLowerCase();
|
|
|
|
|
$(this).closest('.drop-down').find("#i_list_id").val(text);
|
|
|
|
|
$(this).closest('.drop-down').find('#i_list_idh').val(text);
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/* 状态搜索子菜单 */
|
|
|
|
|
/*渠道删除*/
|
|
|
|
|
$('.delete').click(function(){
|
|
|
|
|
var id = $(this).attr('data-id');
|
|
|
|
|
layer.confirm('渠道删除后,下级渠道同时被删除,所属数据归属于自然渠道!', {
|
|
|
|
|
title:'确定要删除该渠道?',
|
|
|
|
|
icon:0,
|
|
|
|
|
btn: ['删除','取消'] //按钮
|
|
|
|
|
}, function(){
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
|
url: "{:U('del_promote')}",
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
async: false,
|
|
|
|
|
data: {id:id},
|
|
|
|
|
success:function(data){
|
|
|
|
|
if(data.status==1){
|
|
|
|
|
layer.msg(data.msg);
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
window.location.reload();
|
|
|
|
|
},1500);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}, function(){
|
|
|
|
|
layer.close();
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
function refuse() {
|
|
|
|
|
if ($('.ids[type=checkbox]:checked').length > 0) {
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 1,
|
|
|
|
|
title: '审核拒绝',
|
|
|
|
|
shadeClose: true,
|
|
|
|
|
shade: 0.8,
|
|
|
|
|
area: ['387px', '500px'],
|
|
|
|
|
content: $('.promote-layer')
|
|
|
|
|
});
|
|
|
|
|
$('#deny').addClass('promote-show');
|
|
|
|
|
} else {
|
|
|
|
|
updateAlert('请选择需要操作的数据','tip_error');
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
$('#tip').find('.tipclose').click();
|
|
|
|
|
},1500);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
//点击字母按照条件按钮筛选
|
|
|
|
@ -341,21 +333,5 @@ $(function(){
|
|
|
|
|
$(".jsgamecheckall").click(function(){
|
|
|
|
|
$(this).closest('.jsgamecheckallbox').siblings("#game_list").find(".jsgameid").prop("checked", this.checked);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//可申请游戏 全选及全选反选 功能 @author zwm date 20180604
|
|
|
|
|
function jsgameid(){
|
|
|
|
|
$(".jsgameid").click(function(){
|
|
|
|
|
var option = $(this).closest('ul').find(".jsgameid"),
|
|
|
|
|
checkall = $(this).closest('ul').siblings('.jsgamecheckallbox').find('.jsgamecheckall');
|
|
|
|
|
option.each(function(i){
|
|
|
|
|
if(!this.checked){
|
|
|
|
|
checkall.prop("checked", false);
|
|
|
|
|
return false;
|
|
|
|
|
}else{
|
|
|
|
|
checkall.prop("checked", true);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</block>
|
|
|
|
|