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.
339 lines
14 KiB
HTML
339 lines
14 KiB
HTML
<extend name="Public/base"/>
|
|
|
|
<block name="body">
|
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
|
<link rel="stylesheet" href="__CSS__/pro_promote.css" type="text/css" />
|
|
<script src="__STATIC__/jquery.form.js"></script>
|
|
<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;
|
|
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;}
|
|
.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">
|
|
<h3 class="page_title">{$meta_title}</h3>
|
|
<p class="description_text">说明:此功能可设置所有公会对应的游戏分成比例。</p>
|
|
</div>
|
|
|
|
<div class="cf top_nav_list">
|
|
<div class="fl button_list">
|
|
<div class="tools">
|
|
<empty name="show_status">
|
|
<a class=" " href="{:U('applyRatio?model='.$model['id'])}"><span class="button_icon button_icon1"></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>
|
|
<!-- 高级搜索 -->
|
|
<div class="jssearch fl cf search_list">
|
|
<div class="input-list search-title-box">
|
|
<label>搜索:</label>
|
|
</div>
|
|
<div class="input-list input-list-promote search_label_rehab">
|
|
<select id="promote_id" name="promote_id" class="select_gallery" >
|
|
<option value="">推广员账号</option>
|
|
<volist name="promoteList" id="vo">
|
|
<option promote-id="{$vo.id}" value="{$vo.id}">{$vo.account}({$vo.real_name})</option>
|
|
</volist>
|
|
</select>
|
|
</div>
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
<select id="game_id" name="game_id" class="select_gallery" >
|
|
<option value="">游戏名称</option>
|
|
<volist name="gameList" id="vo">
|
|
<option value="{$vo.id}" <if condition="$vo.id eq I('game_id')">selected</if> >{$vo.game_name}</option>
|
|
</volist>
|
|
</select>
|
|
</div>
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
<select id="status" name="status" class="select_gallery" >
|
|
<option value="">审核状态</option>
|
|
<?php foreach ($statusList as $key => $status) :?>
|
|
<option value="{$key}" <if condition="$key heq I('status', '')">selected</if> >{$status}</option>
|
|
<?php endforeach ;?>
|
|
</select>
|
|
</div>
|
|
<div class="input-list">
|
|
<a class="sch-btn" href="javascript:;" id="search" url="{:U('PromoteGameRatio/lists','model='.$model['name'] .'&row='.I('row'),false)}">搜索</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 数据列表 -->
|
|
<div class="data_list">
|
|
<div class="">
|
|
<table>
|
|
<!-- 表头 -->
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<input class="check-all" type="checkbox">
|
|
</th>
|
|
<th>会长ID</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>确认人</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<!-- 列表 -->
|
|
<tbody>
|
|
<if condition = "empty($records)">
|
|
<tr>
|
|
<td colspan="16" class="text-center">aOh! 暂时还没有内容!</td>
|
|
</tr>
|
|
<else/>
|
|
<volist name="records" id="record">
|
|
<tr>
|
|
<td>
|
|
<eq name="record.status" value="0">
|
|
<input class="ids" type="checkbox" value="{$record['id']}" name="ids[]">
|
|
<else />
|
|
<input class="ids disabled" disabled="disabled" type="checkbox" value="{$record['id']}" name="ids[]">
|
|
</eq>
|
|
</td>
|
|
<td>{$record.promote_id}</td>
|
|
<td>{$record.promote_account}</td>
|
|
<td>{$record.promote_mobile_phone}</td>
|
|
<td>{$record.promote_create_time}</td>
|
|
<td>{$record.promote_status_text}</td>
|
|
<td>{$record.promote_ver_status_text}</td>
|
|
<td>{$record.game_name}</td>
|
|
<td>{$record.last_ratio}</td>
|
|
<td>{$record.ratio}</td>
|
|
<td>{$record.valid_date}</td>
|
|
<td>{$record.remark}</td>
|
|
<td>{$record.status_text}</td>
|
|
<td>{$record.applicant}</td>
|
|
<td>{$record.reviewer}</td>
|
|
<td>
|
|
<a href="{:U('applyRatio', array('id'=>$record['id']))}" class="">修改</a>
|
|
</td>
|
|
</tr>
|
|
</volist>
|
|
</if>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</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="{$m_title}">
|
|
<input type="hidden" name="url" value="PromoteGameRatio/lists/type/{:I('type',1)}">
|
|
</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" name="remark" id="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">
|
|
<script>
|
|
<volist name=":I('get.')" id="vo">
|
|
Think.setValue('{$key}',"{$vo}");
|
|
</volist>
|
|
$(".select_gallery").select2();
|
|
</script>
|
|
<script type="text/javascript">
|
|
//导航高亮
|
|
highlight_subnav('{:U('PromoteGameRatio/lists')}');
|
|
$(function(){
|
|
//搜索功能
|
|
$("#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();
|
|
}
|
|
});
|
|
})
|
|
|
|
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');
|
|
$('#remark').addClass('ids');
|
|
} else {
|
|
updateAlert('请选择需要操作的数据','tip_error');
|
|
setTimeout(function(){
|
|
$('#tip').find('.tipclose').click();
|
|
},1500);
|
|
}
|
|
}
|
|
</script>
|
|
<script type="text/javascript">
|
|
//点击字母按照条件按钮筛选
|
|
$(".pro_promot_select_list_con").click(function(){
|
|
//选中高亮样式
|
|
$(this).addClass('active');
|
|
$(this).siblings().removeClass('active');
|
|
|
|
var that = $(this);
|
|
var index = $(this).attr("data-index");
|
|
|
|
$("#game_list li").each(function(index,ele){
|
|
var short = $(this).attr('data-short');
|
|
$(this).show();
|
|
if(that.attr('data-index')){
|
|
if(that.attr('data-index')!=short.charAt(0)){
|
|
$(this).hide();
|
|
}
|
|
}
|
|
})
|
|
});
|
|
|
|
//打开弹窗
|
|
$(".ajax-view").click(function(){
|
|
//获取游戏列表
|
|
var url = "{:U('Promote/getPromoteGame')}";
|
|
var id = $(this).attr('data-id');
|
|
$.post(url,{id:id},function(res){
|
|
if(res.code==1){
|
|
|
|
$(".pro_promot_select_list a").eq(0).addClass('active');
|
|
$(".pro_promot_select_list a").eq(0).siblings().removeClass('active');
|
|
|
|
var game_list = res.data.game_list;
|
|
var promote_info = res.data.promote_info;
|
|
var lis = [];
|
|
|
|
$.each(game_list,function(index,ele){
|
|
if(ele.game_name.length>6){
|
|
ele.game_name = ele.game_name .substring(0,6)+"..."
|
|
}
|
|
lis.push('<li class="fl pro_promot_game_con" data-short="'+ele.short+'">');
|
|
|
|
|
|
if(promote_info['game_ids']==''){
|
|
lis.push('<input type="checkbox" value="'+ele.id+'" name="game_ids[]" class="fl pro_promot_game_check jsgameid" checked="checked" id="gameCheck'+index+'" />');
|
|
}else{
|
|
if(promote_info['game_ids'].indexOf(ele.id)>-1){
|
|
lis.push('<input type="checkbox" value="'+ele.id+'" name="game_ids[]" class="fl pro_promot_game_check jsgameid" checked="checked" id="gameCheck'+index+'" />');
|
|
}else{
|
|
lis.push('<input type="checkbox" value="'+ele.id+'" name="game_ids[]" class="fl pro_promot_game_check jsgameid" id="gameCheck'+index+'" />');
|
|
}
|
|
}
|
|
lis.push('<label for="gameCheck'+index+'" class="fl"></label>');
|
|
lis.push('<span class="fl pro_promot_game_name">'+ele.game_name+'</span>');
|
|
lis.push('</li>');
|
|
});
|
|
|
|
$("#game_list").html(lis.join(''));
|
|
$(".pro_promot_number").text(res.data.promote_info.account);
|
|
$("#se_promote_id").val(res.data.promote_info.id);
|
|
$(".pro_promot").css("display","block");
|
|
|
|
jsgameid();
|
|
|
|
}else{
|
|
alert('请求失败');
|
|
}
|
|
});
|
|
});
|
|
|
|
//保存修改
|
|
$(".pro_promot_btn_confirm").click(function(){
|
|
$("#ajaxForm").ajaxSubmit(function(res){
|
|
layer.msg(res.msg);
|
|
$(".pro_promot").hide();
|
|
});
|
|
return false;
|
|
});
|
|
|
|
//关闭弹窗
|
|
$(".pro_promot_close").click(function(){
|
|
$(".pro_promot").css("display","none");
|
|
});
|
|
//取消修改
|
|
$(".pro_promot_btn_cancel").click(function(){
|
|
$(".pro_promot").css("display","none");
|
|
layer.msg('修改已取消');
|
|
});
|
|
|
|
$(".jsgamecheckall").click(function(){
|
|
$(this).closest('.jsgamecheckallbox').siblings("#game_list").find(".jsgameid").prop("checked", this.checked);
|
|
});
|
|
</script>
|
|
</block>
|