<view class="discharge-settlement">
    <!-- 头部背景 -->
    <view class="discharge-settlement-header"></view>
    <!-- 内容 -->
    <view class="discharge-settlement-content">
        <!-- 出院结算成功 -->
        <settlement-succeeded 
            remainingRefundTime="{{ dischargeSettlementDetails.refundCostDay }}" 
            settlementType="{{ settlementType }}" />
        
        <!-- supportMedicalPreSettlement - 支持医保,预结算 -->
        <block a:if="{{ settlementType === 'supportMedicalPreSettlement' }}">
            <support-medical-pre-settlement dischargeSettlementDetails="{{ dischargeSettlementDetails }}" />
        </block>
        
        <!-- notSupportMedicalRefund - 不支持医保, 有退款 -->
        <block a:if="{{ settlementType === 'notSupportMedicalRefund' }}">
            <not-support-medical-refund dischargeSettlementDetails="{{ dischargeSettlementDetails }}" />
        </block>
        
        <!-- notSupportMedicalSupplementary - 不支持医保,需补缴 -->
        <block a:if="{{ settlementType === 'notSupportMedicalSupplementary' }}">
            <not-support-medical-supplementary  dischargeSettlementDetails="{{ dischargeSettlementDetails }}"/>
        </block>
        
        <!-- 住院信息 -->
        <hospitalization-information dischargeSettlementDetails="{{ dischargeSettlementDetails }}" />
        <!-- 出院须知 -->
        <discharge-instructions dischargeInstructions="{{ dischargeInstructions }}" />
        <!-- 按钮 -->
        <button size="default" class="returnHome" onTap="onReturnHome">
            返回首页
        </button>
    </view>
</view>