<template>
  <div class="result">
    <image src="/static/img/result.png" />
    <h2>上报成功！</h2>
    <div class="result-btn" hover-class="text-hover" @click="back">前往查看</div>
  </div>
</template>

<script>
  export default {
    appName:"上报随手拍",
    data () {
      return {
        id: ''
      }
    },

    onLoad (query) {
      this.id = query.id
    },

    methods: {
      back () {
        uni.redirectTo({
          url: './PhotoDetail?id=' + this.id
        })
      }
    }
  }
</script>

<style lang="scss">
  .result {
    min-height: 100vh;
    padding-top: 160px;
    box-sizing: border-box;
    text-align: center;
    background: #fff;

    image {
      width: 220px;
      height: 220px;
    }

    h2 {
      margin: 32px 0 80px;
      font-weight: 600;
      font-size: 40px;
      color: #333;
    }

    .result-btn {
      width: 320px;
      height: 88px;
      line-height: 88px;
      margin: 0 auto;
      text-align: center;
      background: #4181FF;
      color: #fff;
      font-size: 34px;
      border-radius: 16px;
    }
  }
</style>
