<view class="page-detail">
    <header></header>
    <block a:if="{{type === 'report'}}">
        <hospital-report-detail detail="{{detail}}"></hospital-report-detail>
    </block>
    <block a:if="{{type === 'visit'}}">
        <record-detail
         detail="{{detail}}"
         showStatus={{false}}
         onRefresh="onFetchDetail"
        />
    </block>
    <block a:if="{{type === 'order'}}">
        <record-detail
         detail="{{detail}}"
         onRefresh="onFetchDetail"
        />
    </block>
    <block a:if="{{type === 'charge'}}">
        <charge-detail detail="{{detail}}"></charge-detail>
    </block>
    <block a:if="type">
        <view class="button-box">
        <button onTap="navigateBack">
            返回列表
        </button>
        </view>
    </block>
</view>
