解决冲突
commit
56282658fc
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
/**
|
||||
* 后台首页
|
||||
*/
|
||||
namespace Admin\Controller;
|
||||
|
||||
|
||||
class CpJuheCompanyController extends ThinkController {
|
||||
|
||||
//聚合公司
|
||||
public function index($p = 0) {
|
||||
|
||||
// dump(getCpCompanySelect(1));die();
|
||||
|
||||
$p = I('p');
|
||||
$page = intval($p);
|
||||
$page = $page ? $page : 1; //默认显示第一页数据
|
||||
$arraypage = $page;
|
||||
|
||||
if (isset($_REQUEST['row'])) {
|
||||
$row = $_REQUEST['row'];
|
||||
} else {
|
||||
$row = 10;
|
||||
}
|
||||
|
||||
$request = [];
|
||||
$request['p'] = $p;
|
||||
$request['row'] = $row;
|
||||
$request['remote'] = 1;
|
||||
if($_REQUEST['export']) {
|
||||
$request['export'] = 1;
|
||||
}
|
||||
|
||||
$_REQUEST['origin_game_name']?($request['origin_game_name'] = $_REQUEST['origin_game_name']):'';
|
||||
$_REQUEST['game_id'] ? ($request['game.id'] = $_REQUEST['game_id']):'';
|
||||
$_REQUEST['channel_id'] ? ($request['channel_id'] = $_REQUEST['channel_id']):'';
|
||||
($_REQUEST['company_properties']||$_REQUEST['company_properties']=='0') ? ($request['company_properties'] = $_REQUEST['company_properties']):'';
|
||||
|
||||
$url = M("kv")->field("value")->where(['key'=>"cp_company_api"])->find();
|
||||
|
||||
$data = json_decode(curl_post($url['value'],$request),true);
|
||||
// dump($request);die();
|
||||
|
||||
if($_REQUEST['export']) {
|
||||
$list_data = $data['data'];
|
||||
foreach ($list_data as $key => $value) {
|
||||
|
||||
if ($list_data[$key]['bank_card']){
|
||||
$list_data[$key]['bank_card'] = ' '.$list_data[$key]['bank_card'];
|
||||
}
|
||||
|
||||
if ($list_data[$key]['alipay_user']) {
|
||||
$list_data[$key]['alipay_user'] = ' '.$list_data[$key]['alipay_user'];
|
||||
}
|
||||
|
||||
$list_data[$key]['agreement_time'] = json_decode($list_data[$key]['agreement_time'],true);
|
||||
$list_data[$key]['balance_time'] = json_decode($list_data[$key]['balance_time'],true);
|
||||
|
||||
$list_data[$key]['agreement_time']['start_time'] = date("Y-m-d",$list_data[$key]['agreement_time']['start_time']);
|
||||
($list_data[$key]['agreement_time']['end_time']!=1)?($list_data[$key]['agreement_time']['end_time'] = date("Y-m-d",$list_data[$key]['agreement_time']['end_time'])):($list_data[$key]['agreement_time']['end_time'] = "");
|
||||
|
||||
$list_data[$key]['balance_time']['start_time'] = date("Y-m-d",$list_data[$key]['balance_time']['start_time']);
|
||||
($list_data[$key]['balance_time']['end_time']!=1)?($list_data[$key]['balance_time']['end_time'] = date("Y-m-d",$list_data[$key]['balance_time']['end_time'])):($list_data[$key]['balance_time']['end_time'] = "");
|
||||
}
|
||||
|
||||
$this->assign("listdata",$list_data);
|
||||
|
||||
$this->display("export");die();
|
||||
} else {
|
||||
$page = set_pagination($data['count'], $row);
|
||||
if ($page) {
|
||||
$this->assign('_page', $page);
|
||||
}
|
||||
$this->assign("listdata",$data['data']);
|
||||
$this->display();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function detail() {
|
||||
|
||||
$_REQUEST['id']?($request['id'] = $_REQUEST['id']):'';
|
||||
$url = M("kv")->field("value")->where(['key'=>"cp_company_detail_api"])->find();
|
||||
$data = json_decode(curl_post($url['value'],$request),true);
|
||||
|
||||
$this->assign("data",$data);
|
||||
$this->display();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
namespace Admin\Model;
|
||||
|
||||
use Think\Model;
|
||||
|
||||
class PartnerVerifyModel extends Model
|
||||
{
|
||||
protected $tablePrefix = 'tab_';
|
||||
public $VerifyStatus=[
|
||||
"-1"=>"审核拒绝",
|
||||
"0"=>"未审核",
|
||||
"1"=>"审核通过"
|
||||
];
|
||||
public function getVerifyCompanyInfo($id)
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* 新增
|
||||
* @param [array]] $partner_info 公司信息
|
||||
* @return void
|
||||
*/
|
||||
public function add_db($partner_info)
|
||||
{
|
||||
$verifydata = [
|
||||
"partner_id"=>0,
|
||||
"partner_name"=>$partner_info['partner'],
|
||||
"verify_status"=>0,
|
||||
"create_time"=>time(),
|
||||
'verify_log'=>json_encode(["create_user"=>$_SESSION['onethink_admin']['user_auth']['username'],"create_time"=>date("Y-m-d H:i:s")])
|
||||
];
|
||||
$verifydata['partner_info'] = json_encode($partner_info,JSON_UNESCAPED_UNICODE);
|
||||
return $this->add($verifydata);
|
||||
}
|
||||
public function edit_db($partner_info)
|
||||
{
|
||||
if(!isset($partner_info['id'])){
|
||||
return false;
|
||||
}
|
||||
$p_id = $partner_info['id'];
|
||||
|
||||
$verifydata = [
|
||||
"partner_id"=>$p_id,
|
||||
"partner_name"=>$partner_info['partner'],
|
||||
"verify_status"=>0,
|
||||
"create_time"=>time(),
|
||||
'verify_log'=>json_encode(["create_user"=>$_SESSION['onethink_admin']['user_auth']['username'],"create_time"=>date("Y-m-d H:i:s")])
|
||||
];
|
||||
$verifydata['partner_info'] = json_encode($partner_info,JSON_UNESCAPED_UNICODE);
|
||||
|
||||
//判断是否存在
|
||||
$has = $this->where("partner_id = {$p_id}")->find();
|
||||
if($has){
|
||||
//存在
|
||||
$verifydata['id'] = $has['id'];
|
||||
$res = $this->save($verifydata);
|
||||
}else{
|
||||
$res = $this->add($verifydata);
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace Admin\Model;
|
||||
|
||||
use Think\Model;
|
||||
|
||||
class PromoteCompanyVerifyModel extends Model
|
||||
{
|
||||
protected $tablePrefix = 'tab_';
|
||||
public $VerifyStatus=[
|
||||
"-2"=>"管理员审核拒绝",
|
||||
"-1"=>"市场部审核拒绝",
|
||||
"0"=>"未审核",
|
||||
"1"=>"市场部审核通过",
|
||||
"2"=>"管理员审核通过"
|
||||
];
|
||||
/**
|
||||
* 新增
|
||||
* @param [array]] $info 公司信息
|
||||
* @return void
|
||||
*/
|
||||
public function add_db($info)
|
||||
{
|
||||
$verifydata = [
|
||||
"company_id"=>0,
|
||||
"company_name"=>$info['company_name'],
|
||||
"verify_status"=>0,
|
||||
"create_time"=>time(),
|
||||
'verify_log'=>json_encode(["create_user"=>$_SESSION['onethink_admin']['user_auth']['username'],"create_time"=>date("Y-m-d H:i:s")])
|
||||
];
|
||||
if(isset($info['instanceof'])) unset($info['instanceof']);
|
||||
if(isset($info['turnover'])) unset($info['turnover']);
|
||||
$verifydata['company_info'] = json_encode($info,JSON_UNESCAPED_UNICODE);
|
||||
return $this->add($verifydata);
|
||||
}
|
||||
public function edit_db($info)
|
||||
{
|
||||
if(!isset($info['id'])){
|
||||
return false;
|
||||
}
|
||||
$p_id = $info['id'];
|
||||
|
||||
$verifydata = [
|
||||
"company_id"=>$p_id,
|
||||
"company_name"=>$info['company_name'],
|
||||
"verify_status"=>0,
|
||||
"create_time"=>time(),
|
||||
'verify_log'=>json_encode(["create_user"=>$_SESSION['onethink_admin']['user_auth']['username'],"create_time"=>date("Y-m-d H:i:s")])
|
||||
];
|
||||
if(isset($info['instanceof'])) unset($info['instanceof']);
|
||||
if(isset($info['turnover'])) unset($info['turnover']);
|
||||
$verifydata['company_info'] = json_encode($info,JSON_UNESCAPED_UNICODE);
|
||||
|
||||
//判断是否存在
|
||||
$has = $this->where("company_id = {$p_id}")->find();
|
||||
if($has){
|
||||
//存在
|
||||
$verifydata['id'] = $has['id'];
|
||||
$res = $this->save($verifydata);
|
||||
}else{
|
||||
$res = $this->add($verifydata);
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
<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">
|
||||
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
||||
<script src="__STATIC__/table2excel.js"></script>
|
||||
</head>
|
||||
<style>
|
||||
html {
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
padding: 0px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<div style="margin:auto;font-size: 16px;color: red;line-height: 3;padding: 20px;">
|
||||
导出进行中。。。<br />
|
||||
如果导出成功你也可以手动关闭此页面
|
||||
</div>
|
||||
<table border="1" id="exporttable" style="opacity: 0;">
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>公司名称</th>
|
||||
<th>内外团</th>
|
||||
<th>结算周期</th>
|
||||
<th>游戏类型</th>
|
||||
<th>原游戏名称</th>
|
||||
<th>现游戏名称</th>
|
||||
<th>生效时间</th>
|
||||
<th colspan="2">比例分成</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<!-- 列表 -->
|
||||
<tbody>
|
||||
<if condition = "empty($data)">
|
||||
<tr>
|
||||
<td colspan="9" class="text-center">aOh! 暂时还没有内容!</td>
|
||||
</tr>
|
||||
<else/>
|
||||
<volist name="data" id="data">
|
||||
<tr>
|
||||
<td rowspan="{$data.row}">{$data.company_name}</td>
|
||||
<td rowspan="{$data.row}">{$data.company_belong}</td>
|
||||
<td rowspan="{$data.row}">{$data.settlement_type}</td>
|
||||
<td rowspan="{$data.row}">{$data.game_type_name}</td>
|
||||
<td rowspan="{$data.row}">{$data.original_package_name}</td>
|
||||
<td rowspan="{$data.row}">{$data.relation_game_name}</td>
|
||||
<td rowspan="{$data.row}">{$data.valid}</td>
|
||||
<notempty name="data['turnover_ratio'][0]">
|
||||
<td>{$data['turnover_ratio'][0]['name']|default="--"}</td>
|
||||
<td>{$data['turnover_ratio'][0]['ratio']|showPercent}</td>
|
||||
<else />
|
||||
<td>--</td>
|
||||
<td>--</td>
|
||||
</notempty>
|
||||
</tr>
|
||||
<if condition="$data['row'] gt 1">
|
||||
<foreach name="data['turnover_ratio']" item="game_ratio" key="gamekey">
|
||||
<if condition="$gamekey gt 0">
|
||||
<tr>
|
||||
<td>{$game_ratio['name']|default="--"}</td>
|
||||
<td>{$game_ratio['ratio']|showPercent}</td>
|
||||
</tr>
|
||||
</if>
|
||||
</foreach>
|
||||
</if>
|
||||
</volist>
|
||||
</if>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$("#exporttable").table2excel({
|
||||
filename: "游戏特殊比例申请.xls", // do include extension
|
||||
preserveColors: false // set to true if you want background colors and font colors preserved
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
@ -0,0 +1,302 @@
|
||||
<extend name="Public/base" />
|
||||
|
||||
<block name="body">
|
||||
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
|
||||
<link href="__STATIC__/icons_alibaba/iconfont.css" rel="stylesheet">
|
||||
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/provincecityarea/AreaData_min.js"></script>
|
||||
<script src="__STATIC__/layer/layer.js"></script>
|
||||
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||||
|
||||
<style>
|
||||
.tabcon1711 input.time {
|
||||
width: 150px;
|
||||
}
|
||||
#form .txt_area {
|
||||
width: 300px;
|
||||
height: 150px;
|
||||
}
|
||||
.tabcon1711 .form_unit {
|
||||
margin-left: 2px;
|
||||
}
|
||||
.tabcon1711 .mustmark {
|
||||
margin-left:-7px;
|
||||
}
|
||||
.list-ratio {
|
||||
display: table;
|
||||
}
|
||||
.list-ratio .li-ratio {
|
||||
display: flex;
|
||||
margin-bottom: 20px;
|
||||
align-items: center;
|
||||
}
|
||||
.list-ratio .li-ratio .turnover, .list-ratio .li-ratio .turnover-ratio {
|
||||
position: relative;
|
||||
}
|
||||
.list-ratio .li-ratio .turnover span, .list-ratio .li-ratio .turnover-ratio .error-message {
|
||||
color: red;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 30px;
|
||||
white-space: nowrap;
|
||||
display: none;
|
||||
}
|
||||
.iconfont-btn {
|
||||
cursor: pointer;
|
||||
}
|
||||
.iconfont-style {
|
||||
font-size: 18px;
|
||||
color: #fff;
|
||||
border-radius: 4px;
|
||||
border: 0;
|
||||
padding: 5px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.iconfont-selected {
|
||||
background-color: #0A9AF2;
|
||||
}
|
||||
.iconfont-selected:hover {
|
||||
background-color: #03a9f4;
|
||||
}
|
||||
.iconfont-unselected {
|
||||
background-color: #999;
|
||||
}
|
||||
.iconfont-unselected:hover {
|
||||
background-color: #ababab;
|
||||
}
|
||||
|
||||
input[type=number]{
|
||||
padding: 4px 6px;
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
color: #555;
|
||||
vertical-align: middle;
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #ccc;
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
|
||||
-moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
|
||||
box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
|
||||
-webkit-transition: border linear .2s, box-shadow linear .2s;
|
||||
-moz-transition: border linear .2s, box-shadow linear .2s;
|
||||
-o-transition: border linear .2s, box-shadow linear .2s;
|
||||
transition: border linear .2s, box-shadow linear .2s;
|
||||
}
|
||||
</style>
|
||||
<div class="cf main-place top_nav_list navtab_list">
|
||||
<h3 class="page_title">编辑公司绑定</h3>
|
||||
<p class="description_text" style="color: red;">说明:修改后需要走审批流程,通过后才会覆盖。如需调换甲乙公司,请删除后重新添加</p>
|
||||
</div>
|
||||
|
||||
<!-- 标签页导航 -->
|
||||
<div class="tab-wrap">
|
||||
<div class="tab-content tabcon1711" >
|
||||
<!-- 表单 -->
|
||||
<form id="form" action="{:U('edit')}" method="post" class="form-horizontal" >
|
||||
<div style="display: flex;">
|
||||
<!-- 基础文档模型 -->
|
||||
<div id="tab1" class="tab-pane in tab1">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="l">甲方公司类型:</td>
|
||||
<td class="r table_radio">
|
||||
<span class="form_radio table_btn">{$data.first_company_type}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">甲方公司:</td>
|
||||
<td class="r table_radio">
|
||||
<span class="form_radio table_btn">{$data.first_company_name}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tbody id="first_company_info">
|
||||
|
||||
</tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="tab2" class="tab-pane in tab2">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="l">乙方公司类型:</td>
|
||||
<td class="r table_radio">
|
||||
<span class="form_radio table_btn">{$data.second_company_type}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">乙方公司:</td>
|
||||
<td class="r table_radio">
|
||||
<span class="form_radio table_btn">{$data.second_company_name}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tbody id="second_company_info">
|
||||
|
||||
</tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div style="width: 80%;height: 1px;border-bottom: 1px solid #e6e6e6;margin: 10px;"></div>
|
||||
<div id="tab3" class="tab-pane in tab3">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="l"><i class="mustmark">*</i>结算周期:</td>
|
||||
<td class="r">
|
||||
<select name="settlement_type" id="settlement_type" class="select_gallery">
|
||||
<option value="0" <if condition="$data['settlement_type'] eq 0">selected</if>>无</option>
|
||||
<option value="1" <if condition="$data['settlement_type'] eq 1">selected</if>>周结</option>
|
||||
<option value="2" <if condition="$data['settlement_type'] eq 2">selected</if>>月结</option>
|
||||
</select>
|
||||
<span class="notice-text"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l"><i class="mustmark">*</i>开票类型:</td>
|
||||
<td class="r">
|
||||
<select name="invoice_type" id="invoice_type" class="select_gallery">
|
||||
<option value="0" <if condition="$data['invoice_type'] eq 0">selected</if>>无</option>
|
||||
<option value="1" <if condition="$data['invoice_type'] eq 1">selected</if>>专票</option>
|
||||
<option value="2" <if condition="$data['invoice_type'] eq 2">selected</if>>普票</option>
|
||||
</select>
|
||||
<span class="notice-text"></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="l">开票内容:</td>
|
||||
<td class="r table_radio">
|
||||
<input type="text" name="invoice_content" id="invoice_content" class="input" value="{$data['invoice_content']}"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="l">是否有打款流程:</td>
|
||||
<td class="r table_radio">
|
||||
<span class="form_radio table_btn">
|
||||
<label>
|
||||
<input type="radio" value="1" name="is_payment" <if condition="$data['is_payment'] eq 1">checked="checked"</if>> 是
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" value="2" name="is_payment" <if condition="$data['is_payment'] eq 2">checked="checked"</if>> 否
|
||||
</label>
|
||||
</span>
|
||||
<span class="notice-text">选择否将不能进行线上打款</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l"><i class="mustmark">*</i>收款方:</td>
|
||||
<td class="r">
|
||||
<select name="collection" id="collection" class="select_gallery">
|
||||
<option value="1" <if condition="$data['collection'] eq 1">selected</if>>甲方</option>
|
||||
<option value="2" <if condition="$data['collection'] eq 2">selected</if>>乙方</option>
|
||||
</select>
|
||||
<span class="notice-text"></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="l">备注:</td>
|
||||
<td class="r table_radio">
|
||||
<textarea type="text" name="remark" id="remark" class="txt_area">{$data['remark']}</textarea>
|
||||
<span class="notice-text"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<input type="hidden" name="id" id="id" value="{$data['id']|default=''}" />
|
||||
<div class="form-item cf">
|
||||
<button class="submit_btn mlspacing" id="submit" type="submit" target-form="form-horizontal">
|
||||
保存
|
||||
</button>
|
||||
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="javascript:window.history.back();" >
|
||||
返回
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</block>
|
||||
|
||||
<block name="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>
|
||||
<script src="__STATIC__/czinputcheck.js?v=1.29" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
//导航高亮
|
||||
highlight_subnav("{:U('index')}");
|
||||
$(".select_gallery").select2();
|
||||
var first_company={$first_company_info|json_encode=###,JSON_UNESCAPED_UNICODE};
|
||||
var second_company={$second_company_info|json_encode=###,JSON_UNESCAPED_UNICODE};
|
||||
|
||||
|
||||
$(function(){
|
||||
//
|
||||
$('#submit').click(function (e) {
|
||||
//查看是否报错
|
||||
var target = $('form').get(0).action;
|
||||
var query = $('form').serialize();
|
||||
var that = this;
|
||||
$(that).addClass('disabled').attr('autocomplete','off').prop('disabled',true);
|
||||
$.post(target,query).success(function(data){
|
||||
if(layer) {layer.closeAll('loading');}
|
||||
if (data.code==1) {
|
||||
if (data.url) {
|
||||
updateAlert(data.msg + ' 页面即将自动跳转~');
|
||||
}else{
|
||||
updateAlert(data.msg);
|
||||
}
|
||||
setTimeout(function(){
|
||||
$(that).removeClass('disabled').prop('disabled',false);
|
||||
if (data.url) {
|
||||
location.href=data.url;
|
||||
}else if( $(that).hasClass('no-refresh')){
|
||||
$('#tip').find('.tipclose').click();
|
||||
}else{
|
||||
location.reload();
|
||||
}
|
||||
},1500);
|
||||
}else{
|
||||
$(that).removeClass('disabled').prop('disabled',false);
|
||||
layer.msg(data.msg,{icon: 2});
|
||||
}
|
||||
});
|
||||
});
|
||||
$("#first_company_info").html(setCompanyInfo(first_company));
|
||||
$("#second_company_info").html(setCompanyInfo(second_company));
|
||||
function setCompanyInfo(companyinfo){
|
||||
var companyinfostr = '';
|
||||
if("company_belong" in companyinfo){
|
||||
companyinfostr += '<tr><td class="l">内外团:</td><td class="r table_radio"><span class="form_radio table_btn">'+companyinfo.company_belong+'</span></td></tr>';
|
||||
}
|
||||
if("company_type" in companyinfo){
|
||||
companyinfostr += '<tr><td class="l">公司性质:</td><td class="r table_radio"><span class="form_radio table_btn">'+companyinfo.company_type+'</span></td></tr>';
|
||||
}
|
||||
if("company_relation" in companyinfo){
|
||||
companyinfostr += '<tr><td class="l">开发类型:</td><td class="r table_radio"><span class="form_radio table_btn">'+companyinfo.company_relation+'</span></td></tr>';
|
||||
}
|
||||
if("link_man" in companyinfo){
|
||||
companyinfostr += '<tr><td class="l">联系人:</td><td class="r table_radio"><span class="form_radio table_btn">'+companyinfo.link_man+'</span></td></tr>';
|
||||
}
|
||||
if("link_phone" in companyinfo){
|
||||
companyinfostr += '<tr><td class="l">联系电话:</td><td class="r table_radio"><span class="form_radio table_btn">'+companyinfo.link_phone+'</span></td></tr>';
|
||||
}
|
||||
return companyinfostr;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</block>
|
||||
|
@ -0,0 +1,272 @@
|
||||
<extend name="Public/base"/>
|
||||
<block name="body">
|
||||
<style>
|
||||
.tabcon1711 .table_click,.tabcon1711 .table_click:hover {border:none;}
|
||||
.tabcon1711 .table_click .table_click_text {border-bottom:1px solid transparent;}
|
||||
.tabcon1711 .table_click:hover .table_click_text {border-bottom-color:#145CCD;}
|
||||
</style>
|
||||
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
|
||||
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
|
||||
<!-- 标签页导航 -->
|
||||
<div class="tab-wrap">
|
||||
|
||||
<div class="tab-content tabcon1711">
|
||||
<!-- 表单 -->
|
||||
<form id="form" action="{:U('edit?id='.$model['id'])}" method="post" class="form-horizontal">
|
||||
<div class="cf main-place top_nav_list navtab_list">
|
||||
<h3 class="page_title">聚合公司详情</h3>
|
||||
<p class="description_text">说明:查看聚合公司详情信息</p>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane in tab1">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="l">合作方</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['name']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">登录账号</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['code']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">联系邮箱</td>
|
||||
<td class="r table_radio">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['user_email']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">联系手机</td>
|
||||
<td class="r table_radio">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['mobile']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">状态</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;"><if condition="$data['user_status'] eq 1">正常<elseif condition="$data['user_status'] eq 0"/>禁用<else/>未验证</if></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">备注</td>
|
||||
<td class="r">
|
||||
<textarea name="remark" rows="3" cols="80" style="width: 400px;" readonly>{$data['remark']}</textarea></td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">对应平台</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['platform']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">合同期限</td>
|
||||
<td class="r pr">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['agreement_time']['start_time']}</span>
|
||||
<!-- <input type="text" class="J_lay_datetime" name="agreement_time[]" autocomplete="off" placeholder="开始时间" value="{$data['agreement_time']['start_time']}" readonly>-->
|
||||
—
|
||||
<!-- <input type="text" class="J_lay_datetime" name="agreement_time[]" autocomplete="off" placeholder="结束时间" value="{$data['agreement_time']['end_time']}" readonly>-->
|
||||
<span class="form-required" style="line-height: 30px;">{$data['agreement_time']['end_time']|default="永久"}</span>
|
||||
说明:结束时间不填为永久时间
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">结算生效期限</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['balance_time']['start_time']}</span>
|
||||
<!-- <input type="text" class="J_lay_datetime" name="balance_time[]" autocomplete="off" placeholder="开始时间" value="{$data['balance_time']['start_time']}" readonly>-->
|
||||
—
|
||||
<span class="form-required" style="line-height: 30px;">{$data['balance_time']['end_time']|default="永久"}</span>
|
||||
<!-- <input type="text" class="J_lay_datetime" name="balance_time[]" autocomplete="off" placeholder="结束时间" value="{$data['balance_time']['end_time']}" readonly>-->
|
||||
说明:结束时间不填为永久时间
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">开票税点</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['tax_point']}</span>
|
||||
%
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="l">公司性质</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;"><if condition="$data['company_properties'] eq 0">个人<else/>公司</if></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">是否签署合同</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;"><if condition="$data['is_contract'] eq 0">否<else/>是</if></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">是否为收款方</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;"><if condition="$data['is_received'] eq 0">否<else/>是</if></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">联系人</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['connection_person']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">联系电话</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['phone']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">联系地址</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['connection_address']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">注册地址</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['register_address']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="l noticeinfo">注册电话</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['register_phone']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="l noticeinfo">邮寄地址</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['send_address']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">账户名</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['bank_user']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">银行卡号</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['bank_card']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="l noticeinfo">收款银行</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['bank_name']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">支付宝账户</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['alipay_user']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">承担服务费</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;"><if condition="$data['is_service'] eq 0">否<else/>是</if></span>
|
||||
<!-- <input readonly type="radio" name="is_service" style="margin-top: -2px;" autocomplete="off" placeholder="开始时间" value="1" <if condition="$data['is_service'] eq 1">checked</if>><span style="margin-top: 7px;display: inline-block;">是</span>-->
|
||||
<!-- <input readonly type="radio" name="is_service" style="margin-top: -2px;margin-left: 30px" autocomplete="off" placeholder="结束时间" value="0" <if condition="$data['is_service'] eq 0">checked</if>><span>否</span>-->
|
||||
<span class="form-required" style="line-height: 30px;">服务费:{$data['service_cost']}</span>
|
||||
<!-- <input readonly type="text" name="service_cost" value="{$data['service_cost']}" onkeyup ="value=value.replace(/[^\d]/g,'')" style="margin-left: 30px">-->
|
||||
元
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">税费费率</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['tax_ratio']|default=0}%</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">渠道费率</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['channel_radio']|default=0}%</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">发票类型</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['invoice_type']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">开票内容</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['invoice_item']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">纳税人识别号</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;">{$data['tax_identification_number']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">合作状态</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;"><if condition="$data['is_cooperate'] eq 1">合作中<else/>停止合作</if></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo">显示状态</td>
|
||||
<td class="r">
|
||||
<span class="form-required" style="line-height: 30px;"><if condition="$data['is_show'] eq 1">开启<else/>关闭</if></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l noticeinfo"></td>
|
||||
<td class="r">
|
||||
<div class="new_submit">
|
||||
<input type="hidden" id="selfid" name="id" value="{$data.id}">
|
||||
<input type="hidden" id="url" name="urll" value="{$url}">
|
||||
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="javascript:window.history.back();" >
|
||||
返回
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</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="Member/user_info">
|
||||
</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">
|
||||
<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__/layer/extend/layer.ext.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
|
||||
charset="UTF-8"></script>
|
||||
<script type="text/javascript">
|
||||
highlight_subnav('{:U('CpJuheCompany/index')}');
|
||||
</script>
|
||||
|
||||
</block>
|
@ -0,0 +1,314 @@
|
||||
<!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__/table2excel.js"></script>
|
||||
</head>
|
||||
|
||||
<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>
|
||||
<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;}
|
||||
|
||||
.tooltip {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
color: #056dae;
|
||||
}
|
||||
|
||||
.tooltip .tooltiptext {
|
||||
visibility: hidden;
|
||||
width: 250%;
|
||||
background-color: #fff;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px 0;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
bottom: 80%;
|
||||
left: 0;
|
||||
margin-left: -70%;
|
||||
border: #000 solid 1px;
|
||||
}
|
||||
|
||||
.tooltip .tooltiptext::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
margin-left: -5px;
|
||||
border-width: 5px;
|
||||
border-style: solid;
|
||||
border-color: black transparent transparent transparent;
|
||||
}
|
||||
|
||||
.tooltip:hover .tooltiptext {
|
||||
|
||||
color: #000;
|
||||
visibility: visible;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<div style="margin:auto;font-size: 20px;color: red;line-height: 3;padding: 20px;">
|
||||
导出进行中。。。<br/>
|
||||
如果导出成功你也可以手动关闭此页面
|
||||
</div>
|
||||
|
||||
<!-- 数据列表 -->
|
||||
<div class="data_list" style="display: none">
|
||||
<empty name="show_status">
|
||||
<div class="">
|
||||
<table id="exporttable">
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th >合作方名称</th>
|
||||
<th >对应平台</th>
|
||||
<th >公司性质</th>
|
||||
<!-- <th >支付渠道</th>-->
|
||||
<th >原包名</th>
|
||||
<th >现包名</th>
|
||||
<th >聚合包名</th>
|
||||
<th >产品类型</th>
|
||||
<th >结算周期</th>
|
||||
<th colspan="2">游戏分成比例</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>
|
||||
<th >联系人</th>
|
||||
<th >联系电话</th>
|
||||
<th >联系地址</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<!-- 列表 -->
|
||||
<tbody>
|
||||
<style>
|
||||
.data-table thead th, .data-table tbody td{text-align:center}
|
||||
.data-table tbody td{border-right:1px solid #DDDDDD;}
|
||||
.d_list .drop-down ul {z-index:999;}
|
||||
</style>
|
||||
<!-- <if condition = "empty($data)">-->
|
||||
<!-- <tr>-->
|
||||
<!-- <td colspan="14" class="text-center">aOh! 暂时还没有内容!</td>-->
|
||||
<!-- </tr>-->
|
||||
<!-- </if>-->
|
||||
<notemtpy name = "listdata">
|
||||
<volist name="listdata" id="vo">
|
||||
<tr>
|
||||
<td rowspan="{$vo.rowspan}">{$vo.name|default="------"}</td>
|
||||
<td rowspan="{$vo.rowspan}">{$vo.platform|default="------"}</td>
|
||||
<td rowspan="{$vo.rowspan}">{$vo.company_properties|default="------"}</td>
|
||||
<td rowspan="{$vo['sec_rowspan'][0]}">{$vo['original_package_name'][0]|default="------"}</td>
|
||||
<td rowspan="{$vo['sec_rowspan'][0]}">{$vo['game_name'][0]|default="------"}</td>
|
||||
<td rowspan="{$vo['sec_rowspan'][0]}">{$vo['game_name'][0]|default="------"}</td>
|
||||
<td rowspan="{$vo['sec_rowspan'][0]}">{$vo['game_type'][0]|default="------"}</td>
|
||||
<td rowspan="{$vo['sec_rowspan'][0]}">{$vo['withdraw_type'][0]|default="------"}</td>
|
||||
<td rowspan='1'>默认</td>
|
||||
<td rowspan='1'>{$vo['rate_data'][0][0]['exploitation_rate']|default="0"}</td>
|
||||
<td rowspan="{$vo.rowspan}">{$vo.bank_user|default="------"}</td>
|
||||
<td rowspan="{$vo.rowspan}">{$vo.bank_card|default="------"}</td>
|
||||
<td rowspan="{$vo.rowspan}">{$vo.bank_name|default="------"}</td>
|
||||
<td rowspan="{$vo.rowspan}">{$vo.alipay_user|default="------"}</td>
|
||||
|
||||
<td rowspan="{$vo.rowspan}">{$vo.is_received|default="否"}</td>
|
||||
<td rowspan="{$vo.rowspan}">{$vo.is_surplus|default="否"}</td>
|
||||
<td rowspan="{$vo.rowspan}">{$vo.before_amount|default="0"}</td>
|
||||
<td rowspan="{$vo.rowspan}">{$vo.is_contract|default="------"}</td>
|
||||
<td rowspan="{$vo.rowspan}">
|
||||
<span class="form-required" style="line-height: 30px;">{$vo['agreement_time']['start_time']}</span>—
|
||||
<span class="form-required" style="line-height: 30px;">{$vo['agreement_time']['end_time']|default="永久"}</span></td>
|
||||
<td rowspan="{$vo.rowspan}">
|
||||
<span class="form-required" style="line-height: 30px;">{$vo['balance_time']['start_time']}</span>—
|
||||
<span class="form-required" style="line-height: 30px;">{$vo['balance_time']['end_time']|default="永久"}</span>
|
||||
</td>
|
||||
<td rowspan="{$vo.rowspan}">{$vo['tax_point']}%</td>
|
||||
<td rowspan="{$vo.rowspan}">{$vo.invoice_type|default="------"}</td>
|
||||
<td rowspan="{$vo.rowspan}">{$vo.tax_ratio|default="0"}%</td>
|
||||
<td rowspan="{$vo.rowspan}">{$vo.channel_radio|default="0"}%</td>
|
||||
<td rowspan="{$vo.rowspan}">{$vo.connection_person|default="------"}</td>
|
||||
<td rowspan="{$vo.rowspan}">{$vo.phone|default="------"}</td>
|
||||
<td rowspan="{$vo.rowspan}">{$vo.connection_address|default="------"}</td>
|
||||
</tr>
|
||||
<volist name="vo.game_name" id="sec" key="index">
|
||||
<if condition="$index gt 1">
|
||||
<tr>
|
||||
<td rowspan="{$vo['sec_rowspan'][$index-1]}">{$vo['original_package_name'][$index-1]|default="------"}</td>
|
||||
<td rowspan="{$vo['sec_rowspan'][$index-1]}">{$vo['game_name'][$index-1]|default="------"}</td>
|
||||
<td rowspan="{$vo['sec_rowspan'][$index-1]}">{$vo['game_name'][$index-1]|default="------"}</td>
|
||||
<td rowspan="{$vo['sec_rowspan'][$index-1]}">{$vo['game_type'][$index-1]|default="------"}</td>
|
||||
<td rowspan="{$vo['sec_rowspan'][$index-1]}">{$vo['withdraw_type'][$index-1]|default="------"}</td>
|
||||
<td rowspan='1'>{$vo['rate_data'][$index-1][0]['exploitation_name']}</td>
|
||||
<td rowspan='1'>{$vo['rate_data'][$index-1][0]['exploitation_rate']}</td>
|
||||
|
||||
</tr>
|
||||
</if>
|
||||
<volist name="vo['rate_data'][$index-1]" id="rate" key="rate_index">
|
||||
<if condition="$rate['exploitation_name'] neq '默认'">
|
||||
<tr>
|
||||
<td rowspan='1'>{$rate.exploitation_name}</td>
|
||||
<td rowspan='1'>{$rate.exploitation_rate}</td>
|
||||
</tr>
|
||||
</if>
|
||||
|
||||
</volist>
|
||||
|
||||
|
||||
</volist>
|
||||
</volist>
|
||||
|
||||
</notemtpy>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</empty>
|
||||
</div>
|
||||
|
||||
</block>
|
||||
|
||||
<block name="script">
|
||||
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
||||
<script type="text/javascript" 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>
|
||||
<script src="__STATIC__/table2excel.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$("#channel_id").select2();
|
||||
$("#company_properties").select2();
|
||||
$("#origin_game_name").select2();
|
||||
$("#game_id").select2();
|
||||
|
||||
function showWindow() {
|
||||
layer.open({
|
||||
type: 2,
|
||||
title: "游戏登录记录",
|
||||
shadeClose: true,
|
||||
shade: 0.8,
|
||||
area: ['70%', '80%'],
|
||||
content: ['admin.php?s=/Member/denglu/id/', 'no']
|
||||
});
|
||||
}
|
||||
|
||||
function get_game_list()
|
||||
{
|
||||
var game_name = "{:I('game_id')}";
|
||||
$.ajax({
|
||||
url:"{:U('PayChannel/getGameList')}",
|
||||
type:"post",
|
||||
data:{partner_id:$("#partner_id option:selected").val(), sdk_type:$("#sdk_version1 option:selected").val()},
|
||||
dataType:'json',
|
||||
success:function(data){
|
||||
var str = "<option value=''>请选择游戏</option>";
|
||||
for (var i in data){
|
||||
str += "<option value='"+data[i].id+"'"+(game_name && data[i].id == game_name?'selected':'')+">"+data[i].game_name+"</option>"
|
||||
}
|
||||
// console.log(str);
|
||||
$("#game_name").empty();
|
||||
$("#game_name").append(str);
|
||||
$("#game_name").select2();
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
get_game_list();
|
||||
$(function(){
|
||||
|
||||
$("#exporttable").table2excel({
|
||||
filename: "下游聚合公司导出.xls", // do include extension
|
||||
preserveColors: false // set to true if you want background colors and font colors preserved
|
||||
});
|
||||
|
||||
$('#timestart').datetimepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
language:"zh-CN",
|
||||
minView:2,
|
||||
autoclose:true
|
||||
});
|
||||
|
||||
$('#datetimepicker').datetimepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
language:"zh-CN",
|
||||
minView:2,
|
||||
autoclose:true,
|
||||
pickerPosition:'bottom-left'
|
||||
})
|
||||
|
||||
//搜索功能
|
||||
$("#search").click(function(){
|
||||
var starttime = $.trim($('#time-start').val());
|
||||
var endtime = $.trim($('#time-end').val());
|
||||
|
||||
if (starttime && endtime && starttime > endtime) {layer.msg('开始时间必须小于等于结束时间');return false;}
|
||||
|
||||
|
||||
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>
|
||||
</html>
|
@ -0,0 +1,89 @@
|
||||
<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">
|
||||
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
||||
<script src="__STATIC__/table2excel.js"></script>
|
||||
</head>
|
||||
<style>
|
||||
html {
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
padding: 0px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<div style="margin:auto;font-size: 16px;color: red;line-height: 3;padding: 20px;">
|
||||
导出进行中。。。<br />
|
||||
如果导出成功你也可以手动关闭此页面
|
||||
</div>
|
||||
<table border="1" id="exporttable" style="opacity: 0;">
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>游戏类型</th>
|
||||
<th>现包名</th>
|
||||
<th>原包名</th>
|
||||
<th>公司类型</th>
|
||||
<th colspan="2">比例分成</th>
|
||||
<th>时间</th>
|
||||
<th>操作人</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<!-- 列表 -->
|
||||
<tbody>
|
||||
<if condition = "empty($data)">
|
||||
<tr>
|
||||
<td colspan="16" class="text-center">aOh! 暂时还没有内容!</td>
|
||||
</tr>
|
||||
<else/>
|
||||
<volist name="data" id="data">
|
||||
<tr>
|
||||
<td rowspan="{$data.row}">{$data.game_type_name}</td>
|
||||
<td rowspan="{$data.row}">{$data.relation_game_name}</td>
|
||||
<td rowspan="{$data.row}">{$data.original_package_name}</td>
|
||||
<td rowspan="{$data.row}">{$data.company_belong}</td>
|
||||
<notempty name="data['turnover_ratio'][0]">
|
||||
<td>{$data['turnover_ratio'][0]['name']|default="--"}</td>
|
||||
<td>{$data['turnover_ratio'][0]['ratio']|showPercent}</td>
|
||||
<else />
|
||||
<td>--</td>
|
||||
<td>--</td>
|
||||
</notempty>
|
||||
<td rowspan="{$data.row}">{$data.create_time}</td>
|
||||
<td rowspan="{$data.row}">{$data.admin_name}</td>
|
||||
</tr>
|
||||
<if condition="$data['row'] gt 1">
|
||||
<foreach name="data['turnover_ratio']" item="game_ratio" key="gamekey">
|
||||
<if condition="$gamekey gt 0">
|
||||
<tr>
|
||||
<td>{$game_ratio['name']|default="--"}</td>
|
||||
<td>{$game_ratio['ratio']|showPercent}</td>
|
||||
</tr>
|
||||
</if>
|
||||
</foreach>
|
||||
</if>
|
||||
</volist>
|
||||
</if>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$("#exporttable").table2excel({
|
||||
filename: "游戏分成比例模板.xls", // do include extension
|
||||
preserveColors: false // set to true if you want background colors and font colors preserved
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
@ -0,0 +1,369 @@
|
||||
<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>
|
||||
<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;
|
||||
}
|
||||
.butnbox {padding:10px 0 10px;}
|
||||
.butnbox .butnlist {overflow:hidden;clear:both;}
|
||||
.butnbox .butnlist .butn,.butnbox .butnlist .butn:hover {text-decoration:none;border:none;}
|
||||
.butnbox .butnlist .butn {display:inline-block;width:120px;height:28px;line-height:28px;text-align:center;color:#FFF;background:#3C95C8;border-radius:3px;}
|
||||
.butnbox .butnlist .butn.last {background:#009900;}
|
||||
.butnbox .butnlist .butn~.butn {margin-left:20px;}
|
||||
.butnbox a{
|
||||
cursor:pointer
|
||||
}
|
||||
.data_list table tbody tr a.disabled,.data_list table tbody tr a.disabled:hover {color:#999;cursor:default;}
|
||||
.layui-layer-title {
|
||||
text-align: center;
|
||||
height: 80px;
|
||||
line-height: 80px;
|
||||
font-weight: 600;
|
||||
font-size: 18px;
|
||||
}
|
||||
.data_list table td{
|
||||
line-height: 1.5;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="cf main-place top_nav_list navtab_list">
|
||||
<div class="fr">
|
||||
<a href="{:U('lists')}">生效列表</a>
|
||||
<a class="tabchose" href="{:U('index')}">审核列表</a>
|
||||
</div>
|
||||
<h3 class="page_title">{$meta_title}</h3>
|
||||
<p class="description_text">审核通过后的修改申请将覆盖旧值,如果旧公司已被删除,将忽略</p>
|
||||
</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 style="width: 200px;" type="text" name="partner_name" class="search-input" value="{:I('partner_name')}" placeholder="请输入公司名称搜索">
|
||||
</div>
|
||||
|
||||
<div class="input-list input-list-game search_label_rehab">
|
||||
<select id="verify_type" name="verify_type" class="select_gallery" >
|
||||
<option value="">审核类型</option>
|
||||
<option value="1">新增</option>
|
||||
<option value="2">修改</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="input-list">
|
||||
<input type="text" id="time-start" name="timestart" class="" value="{$startDate}"
|
||||
placeholder="操作开始时间"/>
|
||||
-
|
||||
<div class="input-append date" id="datetimepicker" style="display:inline-block">
|
||||
<input type="text" id="time-end" name="timeend" class="" value="{$endDate}"
|
||||
placeholder="操作结束时间"/>
|
||||
<span class="add-on"><i class="icon-th"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="input-list input-list-promote search_label_rehab">
|
||||
<select id="verify_status" name="verify_status" class="select_gallery" >
|
||||
<option value="">请选择审核状态</option>
|
||||
<volist name="VerifyStatus" id="vo">
|
||||
<option value="{$key}" <if condition="isset($_GET['verify_status']) && $key eq I('verify_status')">selected</if> >{$vo}</option>
|
||||
</volist>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="input-list">
|
||||
<a class="sch-btn" href="javascript:;" id="search" url="{:U('index','model='.$model['name'] .'&row='.I('row'),false)}">搜索</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="butnbox" style="margin-bottom: 10px;">
|
||||
<div class="butnlist jscheckbutn" style="margin-left: 2px">
|
||||
<foreach name="menubtn" item="vo" >
|
||||
{$vo}
|
||||
</foreach>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 数据列表 -->
|
||||
<div class="data_list data_game_list">
|
||||
<div class="">
|
||||
<table border="1">
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="padding:0 5px;text-indent:0px">
|
||||
<input class="check-all" type="checkbox">
|
||||
</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>
|
||||
|
||||
|
||||
<th style="width:8%;min-width:10px;"> 操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<!-- 列表 -->
|
||||
<tbody>
|
||||
<empty name ="listData">
|
||||
<td colspan="16" class="text-center">aOh! 暂时还没有内容!</td>
|
||||
<else />
|
||||
<volist name="listData" id="data">
|
||||
<tr>
|
||||
<td>
|
||||
<input class="ids" type="checkbox" data-status="{$data.verify_status}" value="{$data['id']}" name="ids[]" >
|
||||
</td>
|
||||
<td>{$data.partner_info.partner}</td>
|
||||
<td>{$data.partner_info.matche_platform}</td>
|
||||
<td>{$data.verify_type}</td>
|
||||
<td>{$data.partner_info.company_type}</td>
|
||||
<td>{$data.contract_time}</td>
|
||||
<td>{$data.validity_time}</td>
|
||||
|
||||
<td>{$data.partner_info.channel_rate}%</td>
|
||||
<td>{$data.partner_info.invoice_rate}%</td>
|
||||
<td>{$data.partner_info.taxation_rate}%</td>
|
||||
|
||||
<td>{$data.partner_info.payee_name}</td>
|
||||
<td>{$data.partner_info.bank_account}</td>
|
||||
<td>{$data.partner_info.opening_bank}</td>
|
||||
|
||||
<td>{$data.create}</td>
|
||||
|
||||
<td>
|
||||
<if condition="$data.verify_status eq -1 ">
|
||||
<div style="line-height: 2;color: red;">
|
||||
{$data.verify}
|
||||
</div>
|
||||
<else />
|
||||
<div style="line-height: 2;">
|
||||
{$data.verify}
|
||||
</div>
|
||||
</if>
|
||||
</td>
|
||||
<td >
|
||||
<a href="{:U('verifyView',array('id'=>$data['id']))}">查看</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="Partner/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">
|
||||
//导航高亮
|
||||
highlight_subnav("{:U('lists')}");
|
||||
$(function(){
|
||||
$("#downloadexcel").on("click",function(){
|
||||
var url = $(this).attr("url");
|
||||
var title = '合作方导出';
|
||||
layer.open({
|
||||
type: 2,
|
||||
title: title,
|
||||
shadeClose: true,
|
||||
shade: 0,
|
||||
area: ['40%', '60%'],
|
||||
content: url,
|
||||
zIndex :-5
|
||||
});
|
||||
// window.open(url, "blank");
|
||||
});
|
||||
$('#time-start').datetimepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
language: "zh-CN",
|
||||
showMeridian:true,
|
||||
pickDate:true,
|
||||
minView: 2,
|
||||
autoclose: true,
|
||||
pickTime:true,
|
||||
todayBtn:true,
|
||||
}).on('change',function(ev){
|
||||
var val = new Date($.trim($(this).val())).getTime();
|
||||
var end = new Date($.trim($('#time-end').val())).getTime();
|
||||
if (val>end) {
|
||||
layer.msg('开始时间大于结束时间!');$(this).val('');
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
$("#time-end").datetimepicker({
|
||||
format:"yyyy-mm-dd",
|
||||
language: "zh-CN",
|
||||
showMeridian:true,
|
||||
minView:2,
|
||||
autoclose:true,
|
||||
todayBtn:true,
|
||||
}).on('change',function(ev){
|
||||
var val = new Date($.trim($(this).val())).getTime();
|
||||
var start = new Date($.trim($('#time-start').val())).getTime();
|
||||
if (val<start) {
|
||||
layer.msg('开始时间大于结束时间!');$(this).val('');
|
||||
}
|
||||
return false;
|
||||
});
|
||||
//搜索功能
|
||||
$("#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();
|
||||
}
|
||||
});
|
||||
$("#adminAgree,#adminRefuse").on("click",function(){
|
||||
var id = $(this).attr("id");
|
||||
if(id=="adminAgree"){
|
||||
var opname = "管理员审批通过";
|
||||
var opurl = "{:U('adminAgree')}";
|
||||
var opst ="[未进行审批]";
|
||||
var status = 0;
|
||||
}else if(id=="adminRefuse"){
|
||||
var opname = "管理员审批拒绝";
|
||||
var opurl = "{:U('adminRefuse')}";
|
||||
var opst ="[未进行审批]";
|
||||
var status = 0;
|
||||
}
|
||||
|
||||
var flag = false;
|
||||
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
|
||||
if($(elem).data("status") != status){
|
||||
flag = true;
|
||||
}else{
|
||||
return $(elem).val();
|
||||
}
|
||||
}).get().join(",");
|
||||
if(text == ''){
|
||||
layer.msg("<font style='color:white'>" + '无需要'+opname+'的申请,仅'+opst+'状态可以进行'+opname+"</font>");
|
||||
return;
|
||||
}
|
||||
if(flag){
|
||||
layer.confirm(opname+"仅会对"+opst+"的申请进行处理,选择中包含其他的状态的申请将被忽略,点击取消停止操作",{title:false}, function(index){
|
||||
_doAgreeApply();
|
||||
layer.close(index);
|
||||
});
|
||||
}else{
|
||||
_doAgreeApply();
|
||||
}
|
||||
function _doAgreeApply(){
|
||||
layer.load(2);
|
||||
//执行
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: opurl,
|
||||
dataType: 'json',
|
||||
async: true,
|
||||
data: {ids:text},
|
||||
success:function(data){
|
||||
layer.closeAll('loading');
|
||||
if(data.status==1){
|
||||
layer.msg("<font style='color:white'>" + data.info + "</font>");
|
||||
setTimeout(function(){
|
||||
window.location.reload();
|
||||
},1500);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
});
|
||||
</script>
|
||||
</block>
|
@ -0,0 +1,378 @@
|
||||
<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>
|
||||
<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;
|
||||
}
|
||||
.butnbox {padding:10px 0 10px;}
|
||||
.butnbox .butnlist {overflow:hidden;clear:both;}
|
||||
.butnbox .butnlist .butn,.butnbox .butnlist .butn:hover {text-decoration:none;border:none;}
|
||||
.butnbox .butnlist .butn {display:inline-block;width:120px;height:28px;line-height:28px;text-align:center;color:#FFF;background:#3C95C8;border-radius:3px;}
|
||||
.butnbox .butnlist .butn.last {background:#009900;}
|
||||
.butnbox .butnlist .butn~.butn {margin-left:20px;}
|
||||
.butnbox a{
|
||||
cursor:pointer
|
||||
}
|
||||
.data_list table tbody tr a.disabled,.data_list table tbody tr a.disabled:hover {color:#999;cursor:default;}
|
||||
.layui-layer-title {
|
||||
text-align: center;
|
||||
height: 80px;
|
||||
line-height: 80px;
|
||||
font-weight: 600;
|
||||
font-size: 18px;
|
||||
}
|
||||
.data_list table td{
|
||||
line-height: 1.5;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="cf main-place top_nav_list navtab_list">
|
||||
<div class="fr">
|
||||
<a href="{:U('lists')}">生效列表</a>
|
||||
<a class="tabchose" href="{:U('index')}">审核列表</a>
|
||||
</div>
|
||||
<h3 class="page_title">{$meta_title}</h3>
|
||||
<p class="description_text">审核通过后的修改申请将覆盖旧值,如果旧公司已被删除,将忽略</p>
|
||||
</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 style="width: 200px;" type="text" name="company_name" class="search-input" value="{:I('company_name')}" placeholder="请输入公司名称搜索">
|
||||
</div>
|
||||
|
||||
<div class="input-list input-list-game search_label_rehab">
|
||||
<select id="verify_type" name="verify_type" class="select_gallery" >
|
||||
<option value="">审核类型</option>
|
||||
<option value="1">新增</option>
|
||||
<option value="2">修改</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="input-list">
|
||||
<input type="text" id="time-start" name="timestart" class="" value="{$startDate}"
|
||||
placeholder="操作开始时间"/>
|
||||
-
|
||||
<div class="input-append date" id="datetimepicker" style="display:inline-block">
|
||||
<input type="text" id="time-end" name="timeend" class="" value="{$endDate}"
|
||||
placeholder="操作结束时间"/>
|
||||
<span class="add-on"><i class="icon-th"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="input-list input-list-promote search_label_rehab">
|
||||
<select id="verify_status" name="verify_status" class="select_gallery" >
|
||||
<option value="">请选择审核状态</option>
|
||||
<volist name="VerifyStatus" id="vo">
|
||||
<option value="{$key}" <if condition="isset($_GET['verify_status']) && $key eq I('verify_status')">selected</if> >{$vo}</option>
|
||||
</volist>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="input-list">
|
||||
<a class="sch-btn" href="javascript:;" id="search" url="{:U('index','model='.$model['name'] .'&row='.I('row'),false)}">搜索</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="butnbox" style="margin-bottom: 10px;">
|
||||
<div class="butnlist jscheckbutn" style="margin-left: 2px">
|
||||
<foreach name="menubtn" item="vo" >
|
||||
{$vo}
|
||||
</foreach>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 数据列表 -->
|
||||
<div class="data_list data_game_list">
|
||||
<div class="">
|
||||
<table border="1">
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="padding:0 5px;text-indent:0px">
|
||||
<input class="check-all" type="checkbox">
|
||||
</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>
|
||||
<th>管理员审批</th>
|
||||
|
||||
|
||||
<th style="width:8%;min-width:10px;"> 操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<!-- 列表 -->
|
||||
<tbody>
|
||||
<empty name ="listData">
|
||||
<td colspan="17" class="text-center">aOh! 暂时还没有内容!</td>
|
||||
<else />
|
||||
<volist name="listData" id="data">
|
||||
<tr>
|
||||
<td>
|
||||
<input class="ids" type="checkbox" data-status="{$data.verify_status}" value="{$data['id']}" name="ids[]" >
|
||||
</td>
|
||||
<td>{$data.company_name}</td>
|
||||
<td>{$data.company_info.platform_name}</td>
|
||||
<td>{$data.verify_type}</td>
|
||||
<td>{$data.company_info.company_type}</td>
|
||||
<td>{$data.contract_time}</td>
|
||||
<td>{$data.validity_time}</td>
|
||||
|
||||
<td>{$data.company_info.channel_rate|showPercent}</td>
|
||||
<td>{$data.company_info.fax_ratio|showPercent}</td>
|
||||
<td>{$data.company_info.taxation_rate|showPercent}</td>
|
||||
|
||||
<td>{$data.company_info.bank_address}</td>
|
||||
<td>{$data.company_info.bank_card}</td>
|
||||
<td>{$data.company_info.bank_name}</td>
|
||||
|
||||
<td>{$data.create}</td>
|
||||
|
||||
<td>
|
||||
<if condition="$data.verify_status eq -1 ">
|
||||
<div style="line-height: 2;color: red;">
|
||||
{$data.market}
|
||||
</div>
|
||||
<else />
|
||||
<div style="line-height: 2;">
|
||||
{$data.market}
|
||||
</div>
|
||||
</if>
|
||||
</td>
|
||||
<td>
|
||||
<if condition="$data.verify_status eq -2 ">
|
||||
<div style="line-height: 2;color: red;">
|
||||
{$data.admin}
|
||||
</div>
|
||||
<else />
|
||||
<div style="line-height: 2;">
|
||||
{$data.admin}
|
||||
</div>
|
||||
</if>
|
||||
</td>
|
||||
<td >
|
||||
<a href="{:U('verifyView',array('id'=>$data['id']))}">查看</a>
|
||||
<if condition="$data.verify_status elt 0 ">
|
||||
<a style="color: red;" href="{:U('verifyDel',array('id'=>$data['id']))}" class="confirm ajax-get">删除</a>
|
||||
</if>
|
||||
</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">
|
||||
//导航高亮
|
||||
highlight_subnav("{:U('lists')}");
|
||||
$(function(){
|
||||
$("#downloadexcel").on("click",function(){
|
||||
var url = $(this).attr("url");
|
||||
var title = '合作方导出';
|
||||
layer.open({
|
||||
type: 2,
|
||||
title: title,
|
||||
shadeClose: true,
|
||||
shade: 0,
|
||||
area: ['40%', '60%'],
|
||||
content: url,
|
||||
zIndex :-5
|
||||
});
|
||||
// window.open(url, "blank");
|
||||
});
|
||||
$('#time-start').datetimepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
language: "zh-CN",
|
||||
showMeridian:true,
|
||||
pickDate:true,
|
||||
minView: 2,
|
||||
autoclose: true,
|
||||
pickTime:true,
|
||||
todayBtn:true,
|
||||
}).on('change',function(ev){
|
||||
var val = new Date($.trim($(this).val())).getTime();
|
||||
var end = new Date($.trim($('#time-end').val())).getTime();
|
||||
if (val>end) {
|
||||
layer.msg('开始时间大于结束时间!');$(this).val('');
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
$("#time-end").datetimepicker({
|
||||
format:"yyyy-mm-dd",
|
||||
language: "zh-CN",
|
||||
showMeridian:true,
|
||||
minView:2,
|
||||
autoclose:true,
|
||||
todayBtn:true,
|
||||
}).on('change',function(ev){
|
||||
var val = new Date($.trim($(this).val())).getTime();
|
||||
var start = new Date($.trim($('#time-start').val())).getTime();
|
||||
if (val<start) {
|
||||
layer.msg('开始时间大于结束时间!');$(this).val('');
|
||||
}
|
||||
return false;
|
||||
});
|
||||
//搜索功能
|
||||
$("#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();
|
||||
}
|
||||
});
|
||||
$("#marketAgree,#marketRefuse,#adminAgree,#adminRefuse").on("click",function(){
|
||||
var id = $(this).attr("id");
|
||||
if(id == "marketAgree"){
|
||||
var opname = "市场部审批通过";
|
||||
var opurl = "{:U('marketAgree')}";
|
||||
var opst ="[未进行审批]";
|
||||
var status = 0;
|
||||
}else if(id=="marketRefuse"){
|
||||
var opname = "市场部审批拒绝";
|
||||
var opurl = "{:U('marketRefuse')}";
|
||||
var opst ="[未进行审批]";
|
||||
var status = 0;
|
||||
}else if(id=="adminAgree"){
|
||||
var opname = "管理员审批通过";
|
||||
var opurl = "{:U('adminAgree')}";
|
||||
var opst ="[市场部审批通过]";
|
||||
var status = 1;
|
||||
}else if(id=="adminRefuse"){
|
||||
var opname = "管理员审批拒绝";
|
||||
var opurl = "{:U('adminRefuse')}";
|
||||
var opst ="[市场部审批通过]";
|
||||
var status = 1;
|
||||
}
|
||||
|
||||
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
|
||||
if($(elem).data("status") == status){
|
||||
return $(elem).val();
|
||||
}
|
||||
}).get().join(",");
|
||||
if(text == ''){
|
||||
layer.msg("<font style='color:white'>" + '无需要'+opname+'的申请,仅'+opst+'状态可以进行'+opname+"</font>");
|
||||
return;
|
||||
}
|
||||
layer.confirm(opname+"仅会对"+opst+"的申请进行处理,选择中包含其他的状态的申请将被忽略,操作不可逆,请慎重选择,点击取消停止操作",{title:false}, function(index){
|
||||
_doAgreeApply();
|
||||
layer.close(index);
|
||||
});
|
||||
|
||||
function _doAgreeApply(){
|
||||
layer.load(2);
|
||||
//执行
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: opurl,
|
||||
dataType: 'json',
|
||||
async: true,
|
||||
data: {ids:text},
|
||||
success:function(data){
|
||||
layer.closeAll('loading');
|
||||
if(data.status==1){
|
||||
layer.msg("<font style='color:white'>" + data.info + "</font>");
|
||||
setTimeout(function(){
|
||||
window.location.reload();
|
||||
},1500);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
});
|
||||
</script>
|
||||
</block>
|
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Base\Tool;
|
||||
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Exception\RequestException;
|
||||
|
||||
class AggregateClient
|
||||
{
|
||||
const SUCCESS = '0000';
|
||||
|
||||
protected $client;
|
||||
|
||||
private $apis = [
|
||||
'game-data' => '/index.php?g=api&m=Game&a=rechargeData',
|
||||
];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->client = new Client([
|
||||
'base_uri' => C('AGGREGATE_URL'),
|
||||
'timeout' => 10.0,
|
||||
]);
|
||||
}
|
||||
|
||||
public function api($api, array $params = [])
|
||||
{
|
||||
$uri = $this->apis[$api] ?? null;
|
||||
if (is_null($uri)) {
|
||||
throw new \Exception('接口不存在');
|
||||
}
|
||||
$params['api-name'] = $api;
|
||||
$sign = Sign::generate($params);
|
||||
$params[Sign::SIGN_NAME] = $sign;
|
||||
|
||||
try {
|
||||
return $this->post($uri, $params);
|
||||
} catch (\Exception $e) {
|
||||
return ['code' => '1000', 'message' => '接口请求错误:' . $e->getMessage() , 'data' => []];
|
||||
}
|
||||
}
|
||||
|
||||
protected function post($uri, array $params = [])
|
||||
{
|
||||
$response = $this->client->post($uri, [
|
||||
'verify' => false,
|
||||
'form_params' => $params,
|
||||
]);
|
||||
$result = (string)$response->getBody();
|
||||
return json_decode($result, true);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Base\Tool;
|
||||
|
||||
class Sign
|
||||
{
|
||||
const SIGN_NAME = 'sign';
|
||||
const SIGN_KEY = 'Wmtx_2019!@#API';
|
||||
|
||||
public static function generate($params, $signName = self::SIGN_NAME)
|
||||
{
|
||||
unset($params[$signName]);
|
||||
ksort($params);
|
||||
return md5(http_build_query($params) . self::SIGN_KEY);
|
||||
}
|
||||
|
||||
public static function check($params, $signName = self::SIGN_NAME)
|
||||
{
|
||||
return self::generate($params) === $params[$signName];
|
||||
}
|
||||
}
|
Binary file not shown.
Loading…
Reference in New Issue