<template>
  <div class="wrap p-b-30">
    <div class="single-banner single-banner-overview">
      <img class="banner-img" :src="modules[0].form.pic" alt="">
      <div class="texts">
        <h6 class="banner-title">{{ modules[0].form.title }}</h6>
      </div>
    </div>

    <div class="org">
      <div class="left">
        <h6>{{ modules[1].form.title }}</h6>
        <p class="text" v-html="modules[1].form.des"></p>
      </div>
      <img class="pic" src="http://10.10.11.7/images/overviewSetup/1.png" alt="">
    </div>
    <div class="lg-bg">
      <img width="100%" :src="modules[2].form.pic" alt="">
    </div>
  </div>
</template>

<script>
import mixins from '@/mixins/page'
import WOW from 'wow.js'
export default {
  mixins: [mixins],
  data() {
    return {
      
    }
  },
  mounted() {
    new WOW().init()
  },
  methods: {
    // 获取文章详情
    getInfo() {
      // 预览/详情
      this.$post(
        `${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}`
      )
        .then(({ data }) => {
          if (data.length) {
            // state：已发布（1）则取theEditedJson，草稿（0）则取jsonBeforeEditing
            const json = JSON.parse(
              this.preview
                ? data
                : data[data.length - 1][
                    data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing"
                  ]
            );
            this.modules = json;
            console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
          }
        })
        .catch((err) => {});
    },
  }
};
</script>

<style lang="scss" scoped>
@import url(../../plugins/wow/animate.css);
@import "../../styles/page/page.scss";
.org {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1294px;
  padding: 9px 86px 29px 116px;
  margin: 0 auto 50px;
  background: #FCFCFC;
  border-radius: 160px;
  .left {
    width: 705px;
  }
  h6 {
    font-size: 1.4rem;
    font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi;
    font-weight: bold;
    color: #333;
  }
  .text {
    margin-top: 10px;
    font-size: 1rem;
    color: #020202;
    line-height: 2rem;
  }
  .pic {
    width: 320px;
    height: 282px;
  }
}
.lg-bg {
  width: 65%;
  margin: 0 auto;
}
@media (max-width: 1200px) {
  .org{
    width: 100%;
    padding:15px;
    flex-direction: column;
    .pic {
      width: 100%;
    }
    .left{
      width: 100%;
    }
  }
}

@media (min-width: 280px) and (max-width: 1200px) {
  .single-banner {
    .banner-img {
      height: 15rem;
    }
    .texts{
      top: 8rem !important;
      left: 22rem !important;
    }
  }
}
@media (max-width: 320px) {
  .single-banner {
    .banner-img {
      height: auto;
    }
    .texts {
      bottom: 0 !important;
      left: 1rem !important;
      top: auto !important;
      .banner-title {
        font-size: 1.5rem;
      }
    }
  }
  .org{
    .pic {
      width: 80%;
      height: auto;
    }
  }
}
@media (min-width: 320px) and (max-width: 375px) {
  .single-banner {
    .banner-img {
      height: auto;
    }
    .texts {
      bottom: 0 !important;
      left: 1rem !important;
      top: auto !important;
      .banner-title {
        font-size: 1.5rem;
      }
    }
  }
  .org{
    .pic {
      width: 80%;
      height: auto;
    }
  }
}

@media (min-width: 375px) and (max-width: 480px) {
  .single-banner {
    .banner-img {
      height: auto;
    }
    .texts {
      bottom: 0 !important;
      left: 1rem !important;
      top: auto !important;
      .banner-title {
        font-size: 1.5rem;
      }
    }
  }
  .org{
    .pic {
      width: 80%;
      height: auto;
    }
  }
}
@media (min-width: 480px) and (max-width: 640px) {
  .single-banner {
    .banner-img {
      height: auto;
    }
    .texts {
      bottom: 0 !important;
      left: 1rem !important;
      top: auto !important;
      .banner-title {
        font-size: 1.5rem;
      }
    }
  }
  .org{
    .pic {
      width: 80%;
      height: auto;
    }
  }
}
@media (min-width: 640px) and (max-width: 768px) {
  .single-banner {
    .banner-img {
      height: auto;
    }
    .texts {
      bottom: 0 !important;
      left: 1rem !important;
      top: auto !important;
      .banner-title {
        font-size: 1.5rem;
      }
    }
  }
  .org{
    flex-direction: row;
    .left {
      width: 60%;
    }
    .pic {
      width: 30%;
      height: auto;
    }
  }
}
@media (min-width: 768px) and (max-width: 980px) {
  .single-banner {
    .banner-img {
      height: auto;
    }
    .texts {
      bottom: 0 !important;
      left: 1rem !important;
      top: auto !important;
      .banner-title {
        font-size: 1.5rem;
      }
    }
  }
  .org{
    flex-direction: row;
    .left {
      width: 60%;
    }
    .pic {
      width: 30%;
      height: auto;
    }
  }
}
@media (min-width: 980px) and (max-width: 1200px) {
  .single-banner {
    .banner-img {
      height: auto;
    }
    .texts {
      bottom: 0 !important;
      left: 1rem !important;
      top: auto !important;
      .banner-title {
        font-size: 1.5rem;
      }
    }
  }
  .org{
    flex-direction: row;
    .left {
      width: 60%;
    }
    .pic {
      width: 30%;
      height: auto;
    }
  }
}
</style>