<view class="booking-success">
  <message
    a:if="{{!bookInfo.status}}"
    type="fail"
    title="预约失败"
    subTitle="{{bookInfo.msg}}"
  ></message>
  <message
    a:else
    type="success"
    title="预约成功"
    subTitle=""
  >
    <view slot="tips" class="tips">
      <view class="tip-line">
        <text><text decode="true">就诊时间：{{bookInfo.id}}&nbsp;</text>{{bookInfo.startTime}}~{{bookInfo.endTime}}</text>
      </view>
      <view class="tip-line">
        <text>就诊科室：{{bookInfo.depName}}</text>
        <text>就诊人：{{bookInfo.cardName}}</text>
      </view>
    </view>>
  </message>
  <button a:if="{{!success}}" type="primary" onTap="resetBook">
    重新预约
  </button>
  <button type="{{success ? 'primary' : 'default'}}" onTap="backHome">
    返回首页
  </button>
</view>
