<view class="ledger-page safe-area">
  <view class="status-bar" style="height:{{statusBar}}px"></view>
  <view class="nav-bar flexb">
    <text class="back" bindtap="goBack">‹</text>
    <text class="nav-title">{{pageTitle}}</text>
    <text class="back placeholder"></text>
  </view>
  <scroll-view scroll-y class="ledger-scroll" refresher-enabled refresher-triggered="{{refreshing}}" bindrefresherrefresh="onRefresh" bindscrolltolower="onLoadMore">
    <view wx:if="{{loading && list.length === 0}}" class="empty-box">加载中...</view>
    <view wx:elif="{{list.length === 0}}" class="empty-box">暂无记录</view>
    <view wx:for="{{list}}" wx:key="id" class="list-item flexb">
      <view class="item-main">
        <view class="row-t">{{item.title}}</view>
        <view class="row-d">{{item.time}}</view>
      </view>
      <text class="row-r {{item.minus ? 'minus' : ''}}">{{item.amount}}</text>
    </view>
    <view wx:if="{{list.length > 0 && !hasMore}}" class="load-tip">— 已加载全部 —</view>
  </scroll-view>
</view>
