{extend name="$member_base" /} {block name="right_main"} {php} // 会员账户信息 $member_account = api("System.Member.memberAccount"); $member_account = $member_account['data']; $balance_arr = explode(".",$member_account['balance']); $balance_arr[1] = empty($balance_arr[1]) ? '00' : $balance_arr[1]; // 余额明细 $balance_list = api("System.Member.accountRecordsList",['page_index'=>$page_index, 'account_type' => 2]); $balance_list = $balance_list['data']; $total_count = $balance_list['total_count']; // 获取交易流水号 $out_trade_no = api("System.Pay.outTradeNo"); // 提现设置 $withdraw_config = api("System.Config.balanceWithdraw"); $withdraw_config = $withdraw_config['data']; // 会员信息 $member_detail = api("System.Member.memberInfo"); $member_detail = $member_detail['data']; {/php}
我的可用余额
{$balance_arr[0]}.{$balance_arr[1]} 充值 {eq name="$withdraw_config['is_use']" value="1"} 提现 {/eq}

- 全部余额：{$member_account['balance']}
- 锁定余额：0.00
- 账户状态：{$member_detail.user_info.user_status_name}

时间 | 金额 | 操作
--- | --- | ---
{notempty name="$balance_list['data']"} {foreach $balance_list['data'] as $balance}
{$balance.create_time | getTimeStampTurnTime} | {$balance.number} | {$balance.text}
{/foreach} {else/}
您还没有与余额相关的数据！
{/notempty}

#### 充值

充值金额：

{/block} {block name="script"}
{/block}