<block a:if="{{type}}">
  <scroll-fetch onService="onService" ref="saveRef">
    <view class="preview_records_container" slot-scope="props">
      <view a:for="{{props.list}}" a:for-item="item" key="*this">
        <!-- 预约 -->
        <preview-record
          a:if="{{type === 'order'}}"
          item="{{item}}"
          onToDetail="toDetail">
        </preview-record>
        <!-- 就诊列表 -->
        <preview-record
          a:if="{{type === 'visit'}}"
          item="{{item}}"
          isSee="{{true}}"
          onToDetail="toDetail">
        </preview-record>

        <!-- 充值列表 -->
        <charge-list
          a:if="{{type === 'charge'}}"
          item="{{item}}"
          onToDetail="toDetail">
        </charge-list>
      </view>
    </view>
  </scroll-fetch>
</block>
