php 代碼:
$result = $jjModel->where($wheres)->paginate(10,false,['query' => ['peytype'=>$peytypes]]); (查詢10條數據,get參數'paytype',根據自己情況來)
$this->assign('page', $page);
$this->assign('list',$result);
return $this->view->fetch();
html代碼:
{volist name="list" id="v"}
<tr class="td_type_content">
<td align="left">{$v['peytype']}</td>
<td align="center" style="color:#05ff98">+{$v['coin']}</td>
<td id="td_type_content_btn" align="right">{$v['idate']}</td>
</tr>
{/volist}
<div id="footerss">
{$page}
</div>
簡直不要太簡單。。。。