<template>
  <common-header />
  <div class="content">
    <div class="title">
      <div>详情 <span>专题艺术活动-{{detailData.sm_name}}-活动列表-</span><span>详情</span></div>
    </div>
    <div class="main">
      <p>{{ detailData.yzcz_name }}</p>
      <div style="display: flex; justify-content: space-between">
        <div class="left">
          <img class="avatar" src="@/assets/img/zhjy/main_3.png" alt="" />

          <div class="left-top">
            {{ detailData.yzcz_author }}
          </div>

        </div>

      </div>
      <div class="docx">
        <div>{{ detailData.yzcz_fj }}</div>
        <span v-if="detailData.yzcz_fj" @click="download(detailData.yzcz_fj)">下载附件</span>
      </div>
      <p class="jieshao">
        {{ detailData.yzcz_brief }}
      </p>

      <ul class="tp_list">
        <li><img :src="https + detailData.yzcz_img" alt="" /></li>
      </ul>

    </div>

  </div>
</template>

<script>
import {
  schoolZp_detail,

} from "./api";
import { download } from "~/utils/request";
import CommonHeader from "@/components/CommonHeader/index.vue";
export default {
  name: "index",
  components: {
    CommonHeader,
    download,
  },
  data() {
    return {
      detailData: {},
      https: window.GLOBAL_CONFIG.api,


    };
  },
  methods: {
    getDetailData() {
      let data = {
        yzcz_id: this.yzcz_id,
      };
      schoolZp_detail(data).then((res) => {
        this.detailData = res.data.one_info;

      });
    },



  },
  mounted() {
    if (this.$route.params.id != "") {
      this.yzcz_id = this.$route.params.id;
      this.getDetailData();

    }
  },
};
</script>

<style lang="scss" scoped>
.content {
  width: 100%;
  min-width: 1400px;
  margin: 0 auto;
  background-image: url("@/assets/img/zhjy/xq_bg.png");
  background-repeat: no-repeat;
}
.title {
  width: 100%;

  height: 60px;
  line-height: 60px;
  font-size: 18px;
  font-family: PingFangSC, PingFangSC-Regular;
  font-weight: 400;
  color: #050026;
  background: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0px 1px 10px 0px rgba(17, 46, 74, 0.1);
  div {
    width: 1400px;

    margin: 0 auto;
    span:first-of-type {
      width: 56px;
      height: 20px;
      font-size: 14px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      text-align: left;
      color: #949494;
      line-height: 20px;
      margin-left: 30px;
    }
    span:last-of-type {
      width: 56px;
      height: 20px;
      font-size: 14px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      text-align: left;
      color: #000000;
      line-height: 20px;
    }
  }
}

.main {
  width: 1400px;
  margin: 0 auto;

  background: #ffffff;
  border-radius: 12px;
  padding: 30px;

  p {
    font-size: 20px;
    font-family: PingFangSC, PingFangSC-Semibold;
    font-weight: 600;
    text-align: left;
    color: #333333;
  }

  .jieshao {
    font-size: 16px;
    font-family: PingFang, PingFang-Medium;
    font-weight: 500;
    text-align: left;
    color: #333333;
    line-height: 31px;
    margin-bottom: 30px;
  }
}
.left {
  width: 700px;
  height: 100px;
  border-bottom: 1px solid #eeeeee;
  position: relative;
  .avatar {
    width: 75px;
    height: 77px;
    border-radius: 50%;
    display: inline-block;
  }
  .left-top {
    display: inline-block;
    width: 150px;
    height: 22px;

    font-size: 16px;
    font-family: PingFang, PingFang-Heavy;
    font-weight: 800;
    text-align: left;
    color: #000000;
    line-height: 22px;
    margin-left: 10px;
    img {
      display: inline-block;
    }
    span:first-of-type {
      display: inline-block;
      width: 48px;
      height: 22px;
      font-size: 16px;
      font-family: PingFang, PingFang-Heavy;
      font-weight: 800;
      text-align: left;
      color: #000000;
      line-height: 22px;
      margin-right: 10px;
    }
    span:last-of-type {
      display: inline-block;
      width: 40px;
      height: 20px;
      font-size: 14px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      text-align: left;
      color: #949494;
      line-height: 20px;
    }
  }
  .left-bottom {
    width: 150px;
    height: 22px;
    margin-left: 10px;
    position: absolute;
    bottom: 20px;
    left: 70px;
    span:first-of-type {
      display: inline-block;
      width: 63px;
      height: 23px;
      line-height: 23px;
      background: #190006;
      border: 1px solid #f1c342;
      border-radius: 12px;
      font-size: 12px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      text-align: center;
      color: #ffffff;
    }
    span:last-of-type {
      display: inline-block;
      width: 63px;
      height: 24px;
      background: linear-gradient(90deg, #00a3ff 1%, #57c38f);
      border-radius: 12px;
      font-size: 14px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      text-align: center;
      color: #ffffff;
      line-height: 24px;
      letter-spacing: 0.6px;
    }
  }
}
.right {
  width: 400px;
  height: 100px;
  line-height: 100px;
  font-size: 14px;
  color: #00a3ff;
  display: flex;
  padding-left: 20px;
  border-radius: 0px 12px 0px 12px;
  img {
    display: inline-block;
    width: 17px;
    height: 16px;
    margin: 40px 5px 0 20px;
  }
  span {
    width: 100px;
    height: 40px;
    background: rgba(0, 131, 197, 0.8);
    border-radius: 6px;
    font-size: 16px;
    font-family: PingFangSC, PingFangSC-Regular;
    font-weight: 400;
    text-align: center;
    color: #ffffff;
    line-height: 40px;
    margin: 30px 20px;
    cursor: pointer;
  }
}
.docx {
  margin: 10px;
  div {
    display: inline-block;
    // width: 281px;
    height: 30px;
    background: rgba(#00a3ff, 0.1);
    border-radius: 15px;
    font-size: 14px;
    font-family: PingFangSC, PingFangSC-Regular;
    font-weight: 400;
    text-align: center;
    color: #00a3ff;
    line-height: 30px;
    margin-right: 10px;
  }
  span {
    display: inline-block;
    width: 56px;
    height: 20px;
    font-size: 14px;
    font-family: PingFangSC, PingFangSC-Regular;
    font-weight: 400;
    text-decoration: underline;
    text-align: left;
    color: #4d60fc;
    line-height: 20px;
    cursor: pointer;
  }
}

.tp_list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 0 200px;
  li {
    width: 250px;
    height: 250px;
    margin-right: 20px;
    img {
      width: 250px;
      height: 250px;
    }
  }
}
</style>

