<!--pages/encyclopedia/components/item/index.wxml-->
<view wx:if="{{list.length}}">
    <van-field
        wx:for="{{list}}"
        value="{{ item.title }}"
        readonly
        border="{{ true }}"
        wx:key="id"
        bind:tap="jumpToDetail"
        data-data="{{item}}"
    />
    <pagination 
        currentIndex="{{page}}" 
        totalPage="{{totalPage}}" 
        bind:pagingChange="onChangePage"  
    />
</view>

<view wx:else>
    <empty bind:refresh="getData" />
</view>