平台币

master
sunke 5 years ago
parent 031528411b
commit b6649a7b9d

@ -1312,6 +1312,13 @@ class FinanceController extends ThinkController
if ($sort == 17) { if ($sort == 17) {
$order = 'restvalue asc'; $order = 'restvalue asc';
} }
if ($sort == 19) {
$order = 'totalvalue desc';
}
if ($sort == 20) {
$order = 'totalvalue asc';
}
$this->assign('sorting', $sort); $this->assign('sorting', $sort);
$map5['v.pay_type'] = 1; $map5['v.pay_type'] = 1;
$map5['v.create_time'] = $map['create_time']; $map5['v.create_time'] = $map['create_time'];
@ -1357,6 +1364,7 @@ class FinanceController extends ThinkController
$ids = [-100]; $ids = [-100];
} }
$allDatas = []; $allDatas = [];
foreach($datas as $key => $data) { foreach($datas as $key => $data) {
$id = $data['id']; $id = $data['id'];
$account = $data['account']; $account = $data['account'];
@ -1372,7 +1380,7 @@ class FinanceController extends ThinkController
if(empty($deposit)) { if(empty($deposit)) {
$deposit = '0.00'; $deposit = '0.00';
} }
$promoteCoin = $data['promoteCoin']; $promoteCoin = $data['promotecoin'];
if(empty($promoteCoin)) { if(empty($promoteCoin)) {
$promoteCoin = '0.00'; $promoteCoin = '0.00';
} }
@ -1405,8 +1413,7 @@ class FinanceController extends ThinkController
$map3['create_time'] = $map['create_time']; $map3['create_time'] = $map['create_time'];
$map3['pay_type'] = 3; $map3['pay_type'] = 3;
$allpromoteCoin = M('value_detail_log', 'tab_')->where($map3)->sum('value'); $allpromoteCoin = M('value_detail_log', 'tab_')->where($map3)->sum('value');
$allpromoteCoin = empty($promoteCoin) ? '0.00' : number_format($allpromoteCoin,2,'.',''); $allpromoteCoin = empty($allpromoteCoin) ? '0.00' : number_format($allpromoteCoin,2,'.','');
$map4['create_time'] = $map['create_time']; $map4['create_time'] = $map['create_time'];
if($_REQUEST['user_account']) { if($_REQUEST['user_account']) {
$banlace = M('value_detail_log', 'tab_')->field('user_id, after_value')->where($map4)->order('create_time desc')->limit(1)->select(); $banlace = M('value_detail_log', 'tab_')->field('user_id, after_value')->where($map4)->order('create_time desc')->limit(1)->select();

@ -106,7 +106,15 @@
<th class="pointer-hand" onclick="idsort(0)" id="zheng">账号ID▭</th> <th class="pointer-hand" onclick="idsort(0)" id="zheng">账号ID▭</th>
</if> </if>
<th>玩家账号</th> <th>玩家账号</th>
<th>平台币余额</th> <if condition="$sorting eq 13">
<th class="pointer-hand" onclick="idsort(19)" id="zheng1">平台币余额▭</th>
<elseif condition="$sorting eq 19" />
<th class="pointer-hand" onclick="idsort(20)" id="dao1">平台币余额<span ></span></th>
<elseif condition="$sorting eq 20" />
<th class="pointer-hand" onclick="idsort(21)" id="sheng1">平台币余额<span ></span></th>
<else />
<th class="pointer-hand" onclick="idsort(19)" id="zheng1">平台币余额▭</th>
</if>
<if condition="$sorting eq 13"> <if condition="$sorting eq 13">
<th class="pointer-hand" onclick="idsort(16)" id="zheng1">平台币直充余额▭</th> <th class="pointer-hand" onclick="idsort(16)" id="zheng1">平台币直充余额▭</th>
<elseif condition="$sorting eq 16" /> <elseif condition="$sorting eq 16" />
@ -492,6 +500,19 @@
document.getElementById('sort').value = 16 document.getElementById('sort').value = 16
document.getElementById('search').click(); document.getElementById('search').click();
} }
if (status == 19) {
document.getElementById('sort').value = 19
document.getElementById('search').click();
}
if (status == 20) {
document.getElementById('sort').value = 20
document.getElementById('search').click();
}
if (status == 21) {
document.getElementById('sort').value = 19
document.getElementById('search').click();
}

Loading…
Cancel
Save