<template>
  <div>
    <div class="slogan-div"><p class="slogan" >{{ slogan }}</p></div>
  </div>
</template>

<script>
export default {
  name: 'Slogan',
  data () {
    return {
      slogan: ''
    }
  },
  methods: {
    /**
     * @description:获取寄语
     */
    getSlogan: function () {
      var that = this
      this.$axios
        .get('/admin/getSlogan')
        .then(res => {
          that.slogan = res.data
        })
    }
  },
  mounted: function () {
    this.getSlogan()
  }
}
</script>

<style scoped>
.slogan-div {
    position:absolute; /*父元素设置成relative*/
    top: 0.1%;
    left: 0.1%;
    height: 224px;
    width: 145px;
    writing-mode: vertical-lr; /*设置文字纵向*/
    box-sizing: border-box; /*固定div大小*/
    line-height: 35px;
    font-size: 18px;
    font-family: "Source Han Sans CN";
    white-space: pre-wrap;
    /*float: left;*/
}

.slogan {
    margin-top: 30px;
    color: #475837;
}

</style>
