{extend name="default/users/base" /}
{block name="title"}资金流水 - 用户中心 - {:WSTConf('CONF.shopName')}{__block__}{/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>{$object['userMoney']}</b>元</span>
			<span>冻结余额：<b>{$object['lockMoney']}</b>元</span>
		</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>
	       <li>资金支出</li>
	    </ul>
	      <table class='wst-list'>
	           <thead>
	             <tr>
	               <th width='80'>来源/用途</th>
	               <th width='100'>金额</th>
	               <th width='130'>日期</th>
	               <th width='130'>外部流水号</th>
	               <th width='*'>备注</th>
	             </tr>
	           </thead>
	           <script id="tblist" type="text/html">
           {{# for(var i = 0; i < d.length; i++){ }}
              <tr>
                <td>{{d[i].dataSrc}}</td>
                <td>
                {{# if(d[i].moneyType==1){ }}
                  <span class="money-add">+ ¥{{ d[i].money }}</span>
                {{# }else{ }}
                  <span class='money-reduce'> - ¥{{ d[i].money }}</span>
                {{# } }}
                </td>
                <td>{{ d[i].createTime }}</td>
                <td>{{ WST.blank(d[i].tradeNo,'-')}}</td>
                <td style='line-height:23px'>{{ d[i].remark }}</td>
              </tr>
           {{# } }}
           </script>
	           <tbody id="page-list"></tbody>
	           <tfoot>
	             <tr>
	             	<td colspan='5' id="pager" align="center" class="wst-pager">&nbsp;</td>
	             </tr>
	           </tfoot>
	        </table>
	    </div>  
	</div>
</div></div>
{/block}  
{block name="js"}
<script type='text/javascript' src='__STYLE__/users/logmoneys/logmoneys.js?v={$v}'></script>
{/block}