<template>
  <view>
    <div class="img"></div>
    <h2 style="text-align: center">恭喜您，预约成功！</h2>

    <div class="btn">
      <u-button
        type="primary"
        shape="circle"
        text="返回首页"
        plain
        style="margin-bottom: 10px"
        @click="handleBack"
      ></u-button>
      <u-button type="primary" shape="circle" text="查看预约" @click="handleSee"></u-button>
    </div>
  </view>
</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {
    handleBack() {
      uni.reLaunch({
        url: '/pages/HealthExaminationApp/index/index'
      })
    },
    handleSee() {
      uni.reLaunch({
        url: '/pages/HealthExaminationApp/myAppointment/myAppointment'
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.img {
  margin: 130px auto 0;
  width: 344px;
  height: 247px;
  background: url('/static/images-tijian/success.png') no-repeat;
  background-size: 100% 100%;
}
.btn {
  margin: 20px 80px;
}
</style>
