<template>
  <div class="aboutUs">
    <div class="content-title">平台介绍</div>
    <div class="plat-info" v-html="aboutUs"></div>
    <BackTop></BackTop>
  </div>
</template>

<script type="text/javascript">
  import Cookies from 'js-cookie';
  import httpUrl from '@/libs/http';
  import util from '@/libs/util';

  export default {
    data() {
      return {
        platId: '',
        aboutUs: ''
      };
    },
    created() {
       this.platId = Cookies.get('platId');
       this.getAboutUs(this.platId);
    },
    methods: {
      getAboutUs(id) {
        this.$axios.get(httpUrl.hQuery.baseInfo.query, {
          params: {
            id: id
          }
        }).then((res) => {
          console.log(res);
          this.aboutUs = util.getFormatCode(res.data.descp);
        });
      }
    }
  };
</script>

<style lang="stylus" rel="stylesheet/stylus">
  .aboutUs
    margin-bottom:20px
    padding:20px
    background: #fff
    color:$mainFont
    .faq-title
      font-size:16px

    .faq-content
      line-height: 26px
      margin:20px 10px 20px
      text-align: justify
      overflow: hidden
      .faq-sub-title
        margin-top:10px
        font-weight:600

      p
        margin-bottom: 10px
        text-indent: 2em

</style>
