<template>
  <div class="int">
    <div class="title">{{ currTitle }}</div>
    <div class="info-box">{{ infoData.title }}</div>
    <div class="content" v-html="infoData.content"></div>
  </div>
</template>

<script>
import { article_info } from "../../request/api";
export default {
  name: "Int",
  data() {
    return {
      //委员会基本介绍
      infoData: {},
      currTitle: "学会简介",
    };
  },
  created() {
    this.getInfoDate();
  },
  methods: {
    getInfoDate() {
      article_info({}, 13).then(({ data }) => {
        this.infoData = data.data;
        this.infoData.content = this.infoData.content.replace(/中国国际经济技术合作促进会/,'<strong>中国国际经济技术合作促进会<\/strong>')
        this.infoData.content = this.infoData.content.replace(/学会的宗旨和工作重心是：/,'<strong>学会的宗旨和工作重心是：<\/strong>')
        this.infoData.content = this.infoData.content.replace(/一带一路国际项目工作委员会等。/,'一带一路国际项目工作委员会等。<br><br>')
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.title {
  color: #96311c;
  text-align: center;
  font-size: 20px;
  margin: 45px auto;
  font-weight: bold;
  position: relative;
  &::before {
    background: url('../../assets/divbefore.png') no-repeat;
    left: 265px;
  }
  &::after {
    background: url('../../assets/divafter.png') no-repeat;
    left: 474px;   
  }

  &::before, &::after {
    width: 93px;
    height: 5px;
    content: '';
    position: absolute;
    top: 37%;
    margin-top: -2px;
    display: inline-block;
    margin: 0 10px;
  }
}
.info-box {
  font-size: 24px;
  font-weight: bold;
  color: #be0000;
  text-align: center;
  margin: 45px auto;
}
.content {
    text-size-adjust: 100%;
    font: 0.8rem/1.2 "Helvetica Neue",Helvetica,"Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
    box-sizing: border-box;
    line-height: 28px;
    color: #666666;
    font-size: 16px!important;
}
</style>