<template>
  <div class="main_content">
    <img
      class="banner"
      src="https://webapp-pub.ezijing.com/www/pc/practice/laboratory/laboratory_banner.png"
      alt=""
    />
    <div class="content_part">
      <div class="part_title">{{ $t('laboratory.tit') }}</div>
      <div class="part_desc">
        {{ $t('laboratory.desc') }}
      </div>
    </div>
    <div class="content_part1">
      <div class="part_title">
        {{ $t('laboratory.tit2') }}
      </div>
      <img
        class="part_img"
        :src="
          $cookies.get('lang') == 'en-US'
            ? 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/practice/laboratory/img1_en.png'
            : 'https://webapp-pub.ezijing.com/www/pc/practice/laboratory/img1.png'
        "
        alt=""
      />
    </div>
    <div class="content_tab">
      <div class="tab_con">
        <div v-for="(item, index) in zyList" :key="index">
          <div
            class="con_item"
            :style="`background:url(${item.imgUrl}) no-repeat center`"
          >
            <div class="item_tit">{{ item.tit }}</div>
            <div class="item_con">
              <nuxt-link class="subNav-li" :to="{ name: item.name }">
                <div class="item_desc item_desc1">
                  {{ $t('laboratory.btn1') }}
                </div>
              </nuxt-link>
              <a :href="item.url" target="_blank">
                <div class="item_desc item_desc2">
                  {{ $t('laboratory.btn2') }}
                </div>
              </a>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      zyList: [
        {
          tit: this.$t('laboratory.tab1_tit'),
          name: 'practice-laboratory-analysis',
          url: 'https://bi.ezijing.com/bi/',
          imgUrl:
            'https://webapp-pub.ezijing.com/www/pc/practice/laboratory/tab11.png'
        },
        {
          tit: this.$t('laboratory.tab2_tit'),
          name: 'practice-laboratory-marketing',
          url: 'https://digitalmarketinglab.ezijing.com/login',
          imgUrl:
            'https://webapp-pub.ezijing.com/www/pc/practice/laboratory/tab22.png'
        }
      ]
    }
  },
  methods: {}
}
</script>

<style lang="scss" scoped>
.main_content {
  background: #ffff;
  width: 100%;
  .banner {
    width: 100%;
    height: 580px;
  }
  .content_part {
    width: 100%;
    height: 316px;
    background: #f9f8f8;
    padding-top: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    .part_title {
      font-size: 30px;
      font-weight: bold;
      color: #333333;
    }
    .part_desc {
      width: 1200px;
      margin: auto;
      margin-top: 36px;
      font-size: 18px;
      font-weight: 400;
      line-height: 34px;
      color: #666666;
    }
  }
  .content_part1 {
    margin: 120px auto;
    text-align: center;
    .part_title {
      font-size: 30px;
      font-weight: bold;
      color: #333333;
    }

    .part_img {
      width: 1200px;
      height: 922px;
      margin-top: 48px;
    }
  }
  .content_tab {
    width: 100%;
    height: 681px;
    background: #f9f8f8;
    padding-top: 120px;
    margin: 120px auto;

    .tab_con {
      display: flex;
      justify-content: center;
    }
    .con_item:nth-child(1) {
      margin-right: 20px;
    }

    .con_item {
      width: 590px;
      height: 420px;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 145px;
      .item_tit {
        font-size: 30px;
        font-weight: 500;
        color: #ffffff;
        letter-spacing: 1.5px;
      }
      .item_con {
        display: flex;
      }
      .item_desc {
        width: 129px;
        height: 40px;
        border: 1px solid #ffffff;
        font-size: 16px;
        font-weight: 400;
        line-height: 40px;
        color: #ffffff;
        text-align: center;
        margin: 22px 19px 0 0;
      }
      .item_desc1 {
        border: 1px solid #ffffff;
        color: #ffffff;
        background: none;
      }
      .item_desc2 {
        width: 129px;
        height: 40px;
        background: #ffffff;
        color: #333333;
      }
    }
  }
}
</style>
