<template>
  <view class="main">
    <view class="content">
      <image class="successImg" src="/static/images/mbwa/successIcon.svg" />

      <view class="messageBox">
        <view class="title">提交成功</view>
      </view>

      <view class="btnBox">
        <view class="detailBtn" @click="handleGoDetail">查看详情</view>
        <view class="continue" @click="handleBackHome">继续考核</view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      id: "",
    };
  },
  onLoad(query) {
    this.id = query.id;
  },
  methods: {
    // 跳转查看详情
    handleGoDetail() {
      this.$util.toNextRoute(
        "redirectTo",
        `/pages/walkAroundManager/detail?id=${this.id}`
      );
    },
    // 跳转回到首页
    handleBackHome() {
      this.$util.toNextRoute("switchTab", "/pages/index/index");
    },
  },
};
</script>

<style lang="less" scoped>
.main {
  width: 100%;
  height: 100vh;
  background: #f6f7f9;
  box-sizing: border-box;
  .content {
    width: 100%;
    background: linear-gradient(#e6eefd 0%, #f6f7f9 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding-top: 160rpx;
    .successImg {
      width: 224rpx;
      height: 168rpx;
    }
    .messageBox {
      width: 100%;
      margin-top: 40rpx;
      .title {
        font-family: "PingFangSC";
        font-weight: 400;
        font-size: 36rpx;
        color: #130f05;
        line-height: 48rpx;
        text-align: center;
        font-style: normal;
      }
    }

    .btnBox {
      width: 100%;
      margin-top: 62rpx;
      box-sizing: border-box;
      padding: 0 80rpx;

      .detailBtn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #3b72ff;
        border-radius: 6rpx;
        font-family: "PingFangSC";
        font-weight: 400;
        font-size: 32rpx;
        color: #ffffff;
        line-height: 44rpx;
        font-style: normal;
        margin-bottom: 32rpx;
        padding: 22rpx 0;
      }
      .continue {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        border-radius: 6rpx;
        font-family: "PingFangSC";
        font-weight: 400;
        font-size: 32rpx;
        color: #010b18;
        line-height: 44rpx;
        font-style: normal;
        padding: 22rpx 0;
      }
    }
  }

  // .content {
  //   width: 100%;
  //   height: 100%;
  //   display: flex;
  //   flex-direction: column;
  //   align-items: center;
  //   box-sizing: border-box;
  //   padding-top: 150rpx;
  //   .successImg {
  //     width: 500rpx;
  //     height: 500rpx;
  //   }
  //   .btnBox {
  //     .detailBtn {
  //       font-family: "PingFangSC";
  //       font-size: 32rpx;
  //       color: #feffff;
  //       line-height: 44rpx;
  //       text-align: left;
  //       font-style: normal;
  //       padding: 12rpx 36rpx;
  //       border-radius: 48rpx;
  //       background: #7d5632;
  //       margin-bottom: 24rpx;
  //     }
  //     .continue {
  //       font-family: "PingFangSC";
  //       font-size: 32rpx;
  //       color: #7d5632;
  //       line-height: 44rpx;
  //       text-align: left;
  //       font-style: normal;
  //       padding: 8rpx 32rpx;
  //       border-radius: 48rpx;
  //       border: 4rpx solid #7d5632;
  //     }
  //   }
  // }
}
</style>