
<header class="uc_head">
	<h3 class="current"><a href="{url:/ucenter/account_log}">交易记录</a></h3>
	<h3><a href='{url:/ucenter/withdraw}'>提现申请</a></h3>
	<span class="money">账户余额：<em>￥{$this->memberRow['balance']}</em></span>
</header>

{set:$queryAccountLogList = Api::run('getUcenterAccoutLog',$this->user['user_id'])}
{set:$queryAccountMoney = $queryAccountLogList->find()}
{if:$queryAccountMoney}
<section class="uc_table">
	<table>
		<col />
			<col width="110px" />
			<col width="110px" />
			<col width="110px" />
			<col width="145px" />
		<thead>
			<tr>
				<th>事件</th><th>存入金额</th><th>支出金额</th><th>当前金额</th><th>时间</th>
			</tr>
		</thead>
		<tbody>
			{foreach:items = $queryAccountMoney}
			<tr>
				<td style="text-align:left;">{$item['note']}</td>
				<td>{echo:$item['amount'] > 0 ? $item['amount'].'元' : ''}</td>
				<td>{echo:$item['amount'] < 0 ? $item['amount'].'元' : ''}</td>
				<td><span class="red">{$item['amount_log']} 元</span></td>
				<td>{$item['time']}</td>
			</tr>
			{/foreach}
		</tbody>
	</table>
</section>
{else:}
<section class="nodata">暂无数据</section>
{/if}
{$queryAccountLogList->getPageBar()}
