<?php if (!defined('ROOT')){ echo 'Deny ...'; exit; } extract($data); ?>
<style>
.cash-form {text-align: center;width: 80%;margin: 0 auto; margin-bottom: 24px;}
input[type=tel] {display: block;width: 100%;margin: 0 auto;outline: none;padding-top: 24px;padding-bottom: 24px;}
.cash-button {width: 100%;margin: 0 auto;}    
</style>
<ons-page ng-controller="UserCashController">
    <div class="navigation-bar">
        <div class="navigation-bar__left">
            <span class="toolbar-button--quiet navigation-bar__line-height" onclick="userNavigator.popPage();">
                <i class="ion-ios-arrow-back" style="font-size:32px; vertical-align:-6px;"></i>
                返回
            </span>
        </div>
        <div class="navigation-bar__center">
            我的提现
        </div>
    </div>
    <div class="cash-form">
        <p>可提现余额：<font color="red">¥ <?php echo $left = $moneys - $cash;?></font></p>
        <input type="tel" class="text-input--underbar" id="cash_price" placeholder="请输入提现金额, 满<?php echo $cachOutMinPrice;?>元起提" />
        <br>
        <ons-button modifier="large" class="cash-button" ng-click="cashIt();">点击提现</ons-button>
    </div>
    <?php if ($lists){ $status_arr = array('审核中', '已提现', '已拒绝');?>
    <ul class="list">
        <li class="list__header" style="line-height: 40px;">提现记录 <span style="color: gray;">(最近20条)</span></li>
    </ul>
    <ons-list class="settings-list" style="margin-top: 0;">
        <?php foreach ($lists as $item){?>
        <ons-list-item>
            <font color="#FF7300">¥ <?php echo $item['price'];?></font>
            <font color="gray" style="font-size:12px;">(<?php echo $status_arr[$item['status']]; ?>)</font>
            <span class="list-item-note lucent" style="right:12px;"><?php echo date('Y-m-d H:i', $item['dateline']);?></span>
        </ons-list-item>
        <?php }?>
    </ons-list>
    <?php }?>
</ons-page>