推广平台>财务管理>结算中心--更新

master
chenxiaojun 5 years ago
parent 3d35ce3769
commit 23f38f6a07

@ -299,6 +299,9 @@
<if condition="session('user_auth.uid') eq 1"> <if condition="session('user_auth.uid') eq 1">
<a class='delete' data-id="{$data.id}">删除</a> <a class='delete' data-id="{$data.id}">删除</a>
</if> </if>
<if condition="$data.level = 1">
<a href="{:U('certification', array('id' => $data['id']))}">资质认证</a>
</if>
</td> </td>
</tr> </tr>
</volist> </volist>

@ -130,11 +130,15 @@ class FinanceController extends BaseController
} }
$withdrawMap['promote_id'] = $this->loginPromote['id']; $withdrawMap['promote_id'] = $this->loginPromote['id'];
$withdrawMap['status'] = ['neq', 2]; $withdrawMap['status'] = 2;
//已提现总额 //已提现总额
$income['withdrawn_amount'] = M('withdraw', 'tab_')->field('sum(sum_money) as withdrawn_amount')->where($withdrawMap)->find()['withdrawn_amount']; $income['withdrawn_amount'] = M('withdraw', 'tab_')->field('sum(sum_money) as withdrawn_amount')->where($withdrawMap)->find()['withdrawn_amount'];
$withdrawMap['status'] = ['in', [-1, 0, 1]];
$notWithdrawnAmount = M('withdraw', 'tab_')->field('sum(sum_money) as withdrawn_amount')->where($withdrawMap)->find()['withdrawn_amount'];
$income['withdrawn_amount'] = $income['withdrawn_amount'] ?? '0.00'; $income['withdrawn_amount'] = $income['withdrawn_amount'] ?? '0.00';
$notWithdrawnAmount = $notWithdrawnAmount ?? 0;
$income['not_withdrawn_amount'] = bcadd($income['not_withdrawn_amount'], $notWithdrawnAmount, 2);
$withdrawMap['status'] = ['not in', [-2, -1]]; $withdrawMap['status'] = ['not in', [-2, -1]];
$withdrawns = M('withdraw', 'tab_')->field('settlement_begin_time, settlement_end_time') $withdrawns = M('withdraw', 'tab_')->field('settlement_begin_time, settlement_end_time')

@ -34,8 +34,8 @@
<li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi5.png"/></span></div> <div class="text text5"><p>账户余额</p><span>¥{$income.balance}</span></div> </li> <li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi5.png"/></span></div> <div class="text text5"><p>账户余额</p><span>¥{$income.balance}</span></div> </li>
</ul> </ul>
<ul style="margin-top: 10px;"> <ul style="margin-top: 10px;">
<li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi1.png"/></span></div> <div class="text text2"><p>已提现总金额</p><span>¥{$income.withdrawn_amount}</span></div> </li> <li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi1.png"/></span></div> <div class="text text2"><p>实际提现总金额</p><span>¥{$income.withdrawn_amount}</span></div> </li>
<li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi2.png"/></span></div> <div class="text text1"><p>未提现金额</p><span>¥{$income.not_withdrawn_amount}</span></div> </li> <li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi2.png"/></span></div> <div class="text text1"><p>实际提现金额</p><span>¥{$income.not_withdrawn_amount}</span></div> </li>
<li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi3.png"/></span></div> <div class="text text3"><p>结算周期</p><span>{$settlementCycle}</span></div> </li> <li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi3.png"/></span></div> <div class="text text3"><p>结算周期</p><span>{$settlementCycle}</span></div> </li>
</ul> </ul>
</div> </div>

Loading…
Cancel
Save