<template>
  <view class="success_page">
    <view class="success_header">
      <uni-icons type="checkbox-filled" size="50" color="#0082fa"></uni-icons> <text>提交成功</text>
    </view>
    <view class="success_des">
      <view> 已提交至后台审核，请耐心等待 </view>
    </view>

    <view class="success_fooer">
      <hs-button label="返回首页" @click="handleExitMiniProgram()" type="primary" size="md" />
    </view>
  </view>
</template>

<script setup lang="ts">
const handleExitMiniProgram = () => {
  // uni.exitMiniProgram()
  uni.switchTab({
    url: '/pages/index/index'
  })
}
const handleGoToHouse = (url: string) => {
  uni.reLaunch({
    url: url
  })
}
</script>

<style lang="scss" scoped>
.success_page {
  width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, #d8e7ff 0%, rgba(255, 255, 255, 0) 400rpx);
  .success_header {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44rpx;
    color: #333;
    padding: 280rpx 0 60rpx 0;
    font-weight: 500;
    text {
      padding-left: 10rpx;
    }
  }
  .success_des {
    font-size: 28rpx;
    color: #333;
    text-align: center;
    line-height: 60rpx;
    text {
      color: #0082fa;
    }
  }
  .success_fooer {
    text-align: center;
    padding: 40rpx 200rpx 0 200rpx;
  }
}
</style>
