<view class="sub-page sj-page">
  <view class="status-bar" style="height:{{statusBar}}px"></view>
  <view class="sub-nav flexb">
    <text class="back" bindtap="goBack">‹</text>
    <text class="sub-nav-title">经营数据</text>
    <text class="back placeholder"></text>
  </view>

  <scroll-view scroll-y class="sub-scroll" enhanced show-scrollbar="{{false}}" refresher-enabled refresher-triggered="{{loading}}" bindrefresherrefresh="onPullDownRefresh">
    <view class="sj-panel sj-mx20 data-panel">
      <view class="data-highlight flexb">
        <view class="data-hl-item">
          <text class="data-hl-num accent">{{orderStats.pending_count}}</text>
          <text class="data-hl-lbl">待结算(单)</text>
          <text class="data-hl-sub" wx:if="{{canViewFinance}}">¥{{orderStats.pending_amount}}</text>
        </view>
        <view class="data-hl-item">
          <text class="data-hl-num">{{orderStats.completed_count}}</text>
          <text class="data-hl-lbl">成交总量</text>
          <text class="data-hl-sub" wx:if="{{canViewFinance}}">¥{{orderStats.completed_amount}}</text>
        </view>
      </view>
      <view class="data-grid">
        <view class="data-cell">
          <text class="data-cell-num">{{orderStats.refund_count}}</text>
          <text class="data-cell-lbl">退款总量</text>
          <text class="data-cell-sub" wx:if="{{canViewFinance}}">¥{{orderStats.refund_amount}}</text>
        </view>
        <view class="data-cell">
          <text class="data-cell-num">{{orderStats.dispatch_count}}</text>
          <text class="data-cell-lbl">发单总量</text>
          <text class="data-cell-sub" wx:if="{{canViewFinance}}">¥{{orderStats.dispatch_amount}}</text>
        </view>
        <view class="data-cell">
          <text class="data-cell-num">{{jinriliushui}}</text>
          <text class="data-cell-lbl">今日流水</text>
        </view>
        <view class="data-cell">
          <text class="data-cell-num">{{jinyueliushui}}</text>
          <text class="data-cell-lbl">今月流水</text>
        </view>
        <view class="data-cell">
          <text class="data-cell-num">{{jinridingdan}}</text>
          <text class="data-cell-lbl">今日派单</text>
        </view>
        <view class="data-cell">
          <text class="data-cell-num">{{jinrituikuan}}</text>
          <text class="data-cell-lbl">今日退款</text>
        </view>
      </view>
      <view class="penalty-mini" wx:if="{{penaltyStats.fakuan_pending || penaltyStats.jifen_pending}}">
        <text>处罚待处理：罚单 {{penaltyStats.fakuan_pending}}（¥{{penaltyStats.fakuan_pending_amount}}）· 积分 {{penaltyStats.jifen_pending}}</text>
      </view>
    </view>
  </scroll-view>
</view>
