<!--pages/integralRecord/index.wxml-->
<navigator title="积分明细" canBack="{{true}}" />

<view wx:if="{{list.length}}">
    <van-cell-group>
        <van-cell 
            wx:for="{{list}}" 
            wx:key="id"
            title="{{item.type}}" 
            value="{{item.value}}" 
            label="{{item.createdAt}}" 
        />
    </van-cell-group>
    <pagination
        currentIndex="{{page}}" 
        totalPage="{{totalPage}}" 
        bind:pagingChange="onChangePage"  
    />
</view>

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