{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['userScore']}</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='*'>来源/用途</th>
	               <th width='120'>积分变化</th>
	               <th width='160'>日期</th>
	               <th width='260'>备注</th>
	             </tr>
	           </thead>
	           <script id="tblist" type="text/html">
			{{# for(var i = 0; i < d.length; i++){ }}
            <tr>
               <td width='160'>{{d[i].dataSrc}}</td>
               <td width='120'>
				{{# if(d[i].scoreType==1){ }}
					<span class="score-add">+ {{ d[i].score }}</span>
				{{# }else{ }}
					<span class='score-reduce'> - {{ d[i].score }}</span>
				{{# } }}
				</td>
			   <td width='160'>{{ d[i].createTime }}</td>
               <td width='*'>{{ d[i].dataRemarks }}</td>
             </tr>
			{{# } }}
			</script>
	           <tbody id="page-list"></tbody>
	           <tfoot>
	             <tr>
	             	<td colspan='4' 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/userscores/userscores.js?v={$v}'></script>
{/block}