<view wx:if="{{total}}" class="box">
  <view>共{{total}}条</view>
  <t-button size="small" disabled="{{curr_page == 1}}" bindtap="pageChange" data-page="prev"
    icon="chevron-left" style="padding-left: 16rpx;padding-right: 16rpx" />
  <block wx:for="{{pages}}" wx:key="index">
    <t-button size="small" theme="{{curr_page == item ? 'primary': ''}}"
      variant="{{curr_page == item ? 'outline': ''}}" bindtap="pageChange" data-page="{{item}}">
      {{item}}
    </t-button>
  </block>
  <t-button size="small" disabled="{{curr_page == totalPage}}" bindtap="pageChange" data-page="next"
    icon="chevron-right" style="padding-left: 16rpx;padding-right: 16rpx" />
  <t-button size="small" bindtap="pageSelect" style="padding-left: 16rpx;padding-right: 16rpx">跳转
  </t-button>
</view>
<t-picker title="选择页码" visible="{{open}}" value="{{[curr_page]}}" cancelBtn="取消" confirmBtn="确认"
  bind:confirm="onConfirm">
  <t-picker-item options="{{pickerPages}}" />
</t-picker>