<view>
  <view class="tag2">
    <view class="order_detail_div_bcc19f7c">
      <view class="order_detail_div_ad9574cf">
        <text class="order_detail_text_8b242fdb">订单金额</text>
        <view class="order_detail_div_e1bf085e">
          <text class="order_detail_text_18ff0b7a">¥</text>
          <text class="order_detail_text_fd5299af">{{orderDetail.amount}}</text>
        </view>
        <view class="order_detail_div_0cae544b">
          <text class="order_detail_text_fbfbbf3f">创建时间</text>
          <text class="order_detail_text_40eca345">{{orderDetail.createTime||'--'}}</text>
        </view>
        <view class="order_detail_div_2ec4fa5f">
          <text class="order_detail_text_13a168f4">流水编号</text>
          <text class="order_detail_text_b823cecc">{{orderDetail.outTradeNo}}</text>
        </view>
      </view>
      <view class="order_detail_div_e31e4c1c">
        <list-item a:for="{{orderDetail.customInfo}}" a:key="*this">
         {{item.key}}
          <list-secondary
            title="{{item.value}}"
            slot="extra"
          ></list-secondary>
        </list-item>
      </view>
      <view class="btn-container">
        <block a:if="{{orderDetail.status === 0}}">
          <view a:if="{{orderDetail.medicareBinded === true}}" style="background: #1677FF; border-radius: 8rpx; margin: 40rpx 40rpx auto 40rpx;">
            <button
              type="primary"
              onTap="toPay"
              data-type="0"
            >
              医保结算
            </button>
          </view>
          <view style="margin: 30rpx 40rpx auto 40rpx; border-radius: 8rpx;">
            <button
              type="default"
              onTap="toPay"
              data-type="1"
            >
              自费结算
            </button>
          </view>
        </block>
        <block a:if="{{orderDetail.status === 1}}">
          <view style="text-align: center; line-height: 100rpx; color: #888;">已支付</view>
        </block>
        <block a:if="{{orderDetail.status === 9}}">
          <view style="text-align: center; line-height: 100rpx; color: #888;">已取消</view>
        </block>
      </view>
    </view>
  </view>
</view>
