{extend name="default/users/base" /}
{block name="title"}提现管理 - 用户中心 - {:WSTConf('CONF.shopName')}{__block__}{/block}
{block name='css'}
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
{/block}
{block name="content"}
<div class="wst-user-box"><div class="wst-user-info">
	<div class="wst-user-head">提现管理 </div>
	<div class="manage-head">
		<div class="quota">
			<span>可用余额：<b id="userMoney">0</b>元</span>
			<span>冻结余额：<b id="lockMoney">0</b>元</span>
			<span>可提现金额：<b id="userCashMoney">0</b>元</span>
		</div>
		<div class="extract">至少{:WSTConf('CONF.drawCashUserLimit')}元方可提现<a href="javascript:toDrawMoney()">[申请提现]</a></div>
		<div class="wst-clear"></div>
	</div>
	<div class='wst-user-content'>
	   <div id='tab' class="wst-tab-box">
	    <ul class="wst-tab-nav" style="border:0px;">
	       <li style="padding-left:0px;border-left:0px;">提现记录</li>
	       <li>提现账号</li>
	    </ul>
	    <div class="wst-clear"></div>
	    <div class='wst-tab-content' style="padding:0px;">
	      <div class='wst-tab-item'>
	        <table class='wst-list' style="font-size:13px;">
	             <thead>
	               <tr>
	                 <th width='100'>提现单号</th>
	                 <th width='100'>提现银行</th>
	                 <th width='130'>开户地区</th>
	                 <th width='130'>银行卡号</th>
	                 <th width='130'>持卡人</th>
	                 <th width='130'>提现金额</th>
	                 <th width='130'>提现状态</th>
	               </tr>
	             </thead>
	             <script id="draw-list" type="text/html">
             {{# for(var i = 0; i < d.length; i++){ }}
                <tr>
                  <td>{{d[i].cashNo}}</td>
                  <td>{{d[i].accTargetName}}</td>
                  <td>{{ d[i].accAreaName }}</td>
                  <td>{{ d[i].accNo }}</td>
                  <td>{{ d[i].accUser }}</td>
                  <td>¥{{ d[i].money }}</td>
                  <td>{{#if(d[i].cashSatus==1){}}已通过{{#}else{}}待处理{{#}}}</td>
                </tr>
             {{# } }}
             </script>
	             <tbody id="draw-page-list"></tbody>
	             <tfoot>
	               <tr>
	               	 <td colspan='4' id="draw-pager" align="center" class="wst-pager">&nbsp;</td>
	               </tr>
	             </tfoot>
	          </table>
	        </div>
	        {/**提现账号**/}
	        <div class='wst-tab-item hide'>
	          <div class='wst-manage-term'>
	            <button class="wst-button wst-btn-default" onclick="toEditConfig(0)">新增</button>
	          </div>
	          <table class='wst-list' style="font-size:13px;">
	               <thead>
	                 <tr>
	                   <th width='160'>开户银行</th>
	                   <th width='*'>开户地址</th>
	                   <th width='180'>卡号</th>
	                   <th width='130'>持卡人</th>
	                   <th width='80'>操作</th>
	                 </tr>
	               </thead>
	               <tbody id="config-page-list"></tbody>
	               <tfoot>
	                 <tr>
	                    <td colspan='4' id="config-pager" align="center" class="wst-pager">&nbsp;</td>
	                 </tr>
	               </tfoot>
	            </table>
	            <script id="config-list" type="text/html">
               {{# for(var i = 0; i < d.length; i++){ }}
                  <tr>
                    <td>{{d[i].bankName}}</td>
                    <td>{{d[i].areaName }}</td>
                    <td>{{d[i].accNo}}</td>
                    <td>{{d[i].accUser}}</td>
                    <td>
                    <a href='javascript:toEditConfig({{d[i].id}})'>编辑</a>&nbsp;&nbsp;
                    <a href='javascript:delConfig({{d[i].id}})'>删除</a>
                    </td>
                  </tr>
              {{# } }}
           </script>
	        </div>
	      </div>
	    </div>  
	</div>
</div></div>
{/block}  
{block name="js"}
<script type='text/javascript' src='__STYLE__/users/cashdraws/cashdraws.js?v={$v}'></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
<script>
$(function(){
   getUserMoney();
})
</script>
{/block}