<template>
  <div>
    <div class="city">
      <div class="container">
        <div class="bgImg" v-bind:style="{ background: `url(${loginStyle.rebgUrl}) center center/100% 100% no-repeat #417294` }">
          <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>
    </div>
    <template>
      <div v-html="loginStyle.footUrl" class="footer"></div>
    </template>
  </div>
</template>
<script>
  export default {
    name: 'city',
    computed: {
      loginStyle () {
        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 {
      width: 100%;
      .bgImg {
        padding-top: 120px;
        width: 100%;
        min-height: 670px;
        .go {
          margin: 0 auto;
          width: 395px;
          height: 205px;
          text-align: center;
          border-radius: 24px;
          background: rgba(255, 255, 255, 0.7);
          .content {
            padding-top: 25px;
            font-size: 28px;
            color: #000;
            letter-spacing: 1.43px;
            img {
              margin-right: 33px;
            }
          }
        }
      }
    }
    .btn{
      margin-top: 39px;
      display: inline-block;
      width: 240px;
      height: 46px;
      line-height: 46px;
      font-size: 22px;
      color: #fff;
      background: #237594;
    }
  }
  .footer{
    padding: 50px 0;
  }
</style>
