Merge branch 'feature/admin_optimize' into release

master
liuweiwen 5 years ago
commit 87de8d2717

@ -345,9 +345,7 @@ class PartnerController extends ThinkController
$save['has_game_evidence'] = I('has_game_evidence'); $save['has_game_evidence'] = I('has_game_evidence');
$save['company_type'] = I('company_type'); $save['company_type'] = I('company_type');
$save['remark'] = I('remark'); $save['remark'] = I('remark');
if (!empty(I('file_info'))) { $save['file_info'] = I('file_info');
$save['file_info'] = I('file_info');
}
$save['status'] = $status; $save['status'] = $status;
$save['last_up_time'] = $time; $save['last_up_time'] = $time;

@ -844,7 +844,7 @@ class SpendModel extends Model
->field("s.game_id,s.game_name,p.partner as partner_name, g.game_type_name, ->field("s.game_id,s.game_name,p.partner as partner_name, g.game_type_name,
SUM(CASE WHEN pay_way > 0 THEN pay_amount ELSE 0 END) as cash_count, SUM(CASE WHEN pay_way > 0 THEN pay_amount ELSE 0 END) as cash_count,
SUM(CASE WHEN pay_way = 0 THEN pay_amount ELSE 0 END) as balance_coin_count, SUM(CASE WHEN pay_way = 0 THEN pay_amount ELSE 0 END) as balance_coin_count,
SUM(CASE WHEN pay_way = -1 THEN pay_amount ELSE 0 END) as inside_cash_count") SUM(CASE WHEN pay_way = -1 THEN pay_amount ELSE 0 END) as inside_cash_count,g.sdk_version")
->join('LEFT JOIN tab_game as g ON s.game_id=g.id') ->join('LEFT JOIN tab_game as g ON s.game_id=g.id')
->join('LEFT JOIN tab_partner as p ON g.partner_id=p.id') ->join('LEFT JOIN tab_partner as p ON g.partner_id=p.id')
->where(['s.pay_status' => 1, 'pay_game_status' => 1]) ->where(['s.pay_status' => 1, 'pay_game_status' => 1])

@ -161,6 +161,8 @@
<th >游戏</th> <th >游戏</th>
<th >设备类型</th>
<th>游戏类型</th> <th>游戏类型</th>
<th ><div class="tooltip">游戏现金金额<span class="tooltiptext"><span style="margin-left: -10px">第三方支付(微信,支付宝,快捷)。</span></span></div></th> <th ><div class="tooltip">游戏现金金额<span class="tooltiptext"><span style="margin-left: -10px">第三方支付(微信,支付宝,快捷)。</span></span></div></th>
@ -191,6 +193,7 @@
<tr> <tr>
<td ><if condition="$data.partner_name neq ''">{$data.partner_name}<else/></if></td> <td ><if condition="$data.partner_name neq ''">{$data.partner_name}<else/></if></td>
<td ><if condition="$data.game_name neq ''">{$data.game_name}<else/></if></td> <td ><if condition="$data.game_name neq ''">{$data.game_name}<else/></if></td>
<td ><if condition="$data.sdk_version eq 1">安卓<elseif condition="$data.sdk_version eq 2"/>苹果</if></td>
<td ><if condition="$data.game_type_name neq ''">{$data.game_type_name}<else/></if></td> <td ><if condition="$data.game_type_name neq ''">{$data.game_type_name}<else/></if></td>
<td ><if condition="$data.cash_count neq ''">{$data.cash_count}<else/>0</if></td> <td ><if condition="$data.cash_count neq ''">{$data.cash_count}<else/>0</if></td>
<td class="coin-detail" data-pay_type="0" style="color: #0066cc;cursor: pointer" <td class="coin-detail" data-pay_type="0" style="color: #0066cc;cursor: pointer"

@ -283,11 +283,10 @@
</script> </script>
<script> <script>
var doc = {$data.file_info}; var doc = <?php echo ($data['file_info'] ?: "''") ?>;
if(!doc){ if(!doc){
doc = []; doc = [];
} }
function addFile(info) { function addFile(info) {
doc.push(info); doc.push(info);
layer.closeAll(); layer.closeAll();
@ -308,11 +307,14 @@
}); });
}); });
$("#submit2").on("click",function(){ $("#submit2").on("click",function(){
console.log(111);
var cres = $('form').serializeArray(); var cres = $('form').serializeArray();
console.log(222);
//验证通过 //验证通过
if(doc.length > 0){ if(doc.length > 0){
cres.push({"name":"file_info", "value":JSON.stringify(doc)}); cres.push({"name":"file_info", "value":JSON.stringify(doc)});
} }
console.log(333);
//添加 //添加
$.ajax({ $.ajax({
url:"{:U('partner/edit')}", url:"{:U('partner/edit')}",

@ -7,6 +7,9 @@
<script type="text/javascript" src="__JS__/select2.min.js"></script> <script type="text/javascript" src="__JS__/select2.min.js"></script>
<script src="__STATIC__/table2excel.js"></script> <script src="__STATIC__/table2excel.js"></script>
<style> <style>
html{
display: none;
}
.select2-container--default .select2-selection--single { .select2-container--default .select2-selection--single {
color: #000; color: #000;
resize: none; resize: none;
@ -38,6 +41,10 @@
<!-- 数据列表 --> <!-- 数据列表 -->
<div class="data_list data_game_list"> <div class="data_list data_game_list">
<div style="margin:auto;font-size: 20px;color: red;line-height: 3;padding: 20px;">
导出进行中。。。<br/>
如果导出成功你也可以手动关闭此页面
</div>
<div class=""> <div class="">
<table border="1" id="exporttable" style="opacity: 0;"> <table border="1" id="exporttable" style="opacity: 0;">
<!-- 表头 --> <!-- 表头 -->
@ -81,7 +88,7 @@
<td rowspan="{$data.row}">{$data.contract_time}</td> <td rowspan="{$data.row}">{$data.contract_time}</td>
<td rowspan="{$data.row}">{$data.invoice_rate}%</td> <td rowspan="{$data.row}">{$data.invoice_rate}%</td>
<td rowspan="{$data.row}">{$data.settlement_type}</td> <td rowspan="{$data.row}">{$data.settlement_type}</td>
<td rowspan="{$data.row}">{$data.bank_account}</td> <td rowspan="{$data.row}">&nbsp;{$data.bank_account}</td>
<td rowspan="{$data.row}">{$data.opening_bank}</td> <td rowspan="{$data.row}">{$data.opening_bank}</td>
<td rowspan="{$data.row}">{$data.remark}</td> <td rowspan="{$data.row}">{$data.remark}</td>
<td rowspan="{$data.row}">{$data.has_game_evidence}</td> <td rowspan="{$data.row}">{$data.has_game_evidence}</td>

@ -242,17 +242,8 @@
$(function(){ $(function(){
$("#downloadexcel").on("click",function(){ $("#downloadexcel").on("click",function(){
var url = $(this).attr("url"); var url = $(this).attr("url");
var title = '合作方导出'; window.open(url, "blank");
layer.open({ });
type: 2,
title: title,
shadeClose: true,
shade: 0.8,
area: ['40%', '60%'],
content: url
});
})
$('#time-start').datetimepicker({ $('#time-start').datetimepicker({
format: 'yyyy-mm-dd', format: 'yyyy-mm-dd',
language: "zh-CN", language: "zh-CN",

Loading…
Cancel
Save