<!-- packageH/credit_value/detail/detail.wxml -->
<van-tabs active="{{ currentShowTab }}" bind:change="switchListTab">
  <van-tab title="全部" name="all"></van-tab>
  <van-tab title="收入" name="income"></van-tab>
  <van-tab title="支出" name="expenditure"></van-tab>
  <view class="detail-list">
    <block wx:for="{{ detailData }}" wx:for-item="detailDataPage" wx:key="index">
      <scoped-panel class="detail-item" wx:for="{{ detailDataPage }}" wx:key="id">
        <view class="detail-header">
          <view hover-class="none" hover-stop-propagation="false">{{ item.business_name }}</view>
          <view hover-class="none" class="detail-count" hover-stop-propagation="false">
            {{ item.amount }}
          </view>
        </view>
        <view class="detail-footer">
          <view hover-class="none" hover-stop-propagation="false">{{ item.created_at }}</view>
          <view hover-class="none" hover-stop-propagation="false">{{ item.change_name }}</view>
        </view>
      </scoped-panel>
    </block>
  </view>
  <view class="data-empty-prompt" wx:if="{{ detailPageCount<=0 }}">
    ~暂无记录~
  </view>
</van-tabs>