<template>
  <div>
    <div class="city">
      <div class="container" v-bind:style="{ background: `url(${loginStyle.rebgUrl}) center center/100% 100% no-repeat` }">
        <div class="go">
          <div class="content">
            <img src="/images/all/success.png" alt=""/> 恭喜您注册完成！
          </div>
          <a :href="(loginStyle && loginStyle.returnHomeUrl) ? JSON.parse(loginStyle.returnHomeUrl).url : ''" class="btn">跳转至产城门户</a>
        </div>
      </div>
    </div>
    <template>
      <div v-html="loginStyle.footUrl" class="footer"></div>
    </template>
  </div>
</template>
<script>
  export default {
    name: 'city',
    computed: {
      loginStyle () {
        console.log(this.$store.state.login.loginStyle.data.content)
        return this.$store.state.login.loginStyle.data.content ? this.$store.state.login.loginStyle.data.content : ''
      }
    }
  }
</script>
<style scoped type="text/scss" lang="scss">
  .city{
    margin: 0 auto;
    text-align: center;
    .container{
      padding: 100px 0 200px!important ;
      width: 100%;
    }
    .go{
      margin: 0 auto;
      width: 605px;
      height: 290px;
      text-align: center;
      border-radius: 24px;
      background: rgba(255,255,255,.7);
      .content{
        padding-top: 65px;
        font-size: 48px;
        color: #000;
        letter-spacing: 1.43px;
        img{
          margin-right: 33px;
        }
      }
    }
    .btn{
      margin-top: 52px;
      display: inline-block;
      width: 428px;
      height: 72px;
      line-height: 72px;
      font-size: 28px;
      color: #fff;
      background: #237594;
    }
  }
  .footer{
    padding: 50px 0;
  }
</style>
