<template>
  <div class="bottom_container">
    <div class="info_container">
      <div class="real">
        <div class="first_wrap">
          <div class="title">更多服务 ｜ More</div>
          <div class="links">
            <div class="link" @click="toPage('/')">
              <span>整机开发</span>
              <p>></p>
            </div>
            <div class="link" @click="toPage('/pc/design')">
              <span>工业设计</span>
              <p>></p>
            </div>
            <div class="link" @click="toPage('/pc/hardware')">
              <span>软硬件开发</span>
              <p>></p>
            </div>
            <div class="link" @click="toPage('/pc/metal')">
              <span>加工生产</span>
              <p>></p>
            </div>
            <!-- <p class="link" @click="toPage('/medical')">医疗健康</p> -->
          </div>
        </div>
        <div class="line1"></div>
        <div class="second_wrap">
          <div class="title">联系我们 ｜ Contact</div>
          <img class="qrcode" :src="CodePng" alt="" />
          <div class="info_text">
            <div class="line_phone">
              <span>商务咨询：</span>
              <p class="phone">
                <span>1</span>
                <span>3</span>
                <span>7</span>
                <span>1</span>
                <span>7</span>
                <span>8</span>
                <span>9</span>
                <span>2</span>
                <span>0</span>
                <span>1</span>
                <span>8</span>
              </p>
              <span>| 袁老师</span>
            </div>
            <div class="line_phone">
              <span>商务咨询：</span>
              <p class="phone">
                <span>1</span>
                <span>5</span>
                <span>6</span>
                <span>2</span>
                <span>4</span>
                <span>9</span>
                <span>6</span>
                <span>2</span>
                <span>2</span>
                <span>9</span>
                <span>0</span>
              </p>
              <span>| 杨老师</span>
            </div>
          </div>
        </div>
        <div class="line2"></div>
        <div class="third_wrap">
          <div class="title">电子邮箱 ｜ E-mail</div>
          <div class="info_text mb">
            <p>商务邮箱：info@iflytop.com</p>
            <p>招聘邮箱：hr@iflytop.com</p>
          </div>
          <div class="title">我们的位置 ｜ Position</div>
          <div class="info_text">
            <p>北京市昌平区回龙观街道</p>
            <p>博纳集团3号楼一层 产品梦工厂</p>
          </div>
        </div>
      </div>
    </div>
    <div class="map_container" id="map_container"></div>
  </div>
</template>

<script setup>
import { onMounted } from 'vue'
import CodePng from '@/assets/design/bottom/code.png'
import { useRouter } from 'vue-router'

const router = useRouter()

const toPage = path => {
  document.body.scrollTop = document.documentElement.scrollTop = 0
  window.location.href = `http://iflytop.com${path}`
}

const props = defineProps({
  isBlack: {
    type: Boolean,
  },
})

onMounted(() => {
  var map = new BMapGL.Map('map_container')
  var point = new BMapGL.Point(116.311629, 40.088971)
  map.centerAndZoom(point, 15)
  map.enableScrollWheelZoom(true)
  var opts = {
    width: 250, // 信息窗口宽度
    height: 60, // 信息窗口高度
    title: '产品梦工厂', // 信息窗口标题
  }
  var infoWindow = new BMapGL.InfoWindow(
    '北京市昌平区回龙观街道博纳集团3号楼一层   产品梦工厂',
    opts,
  ) // 创建信息窗口对象
  map.openInfoWindow(infoWindow, map.getCenter())
})
</script>

<style lang="scss" scoped>
.bottom_container {
  background: #fff;
  display: flex;
  align-items: center;
  height: 368px;
  box-sizing: border-box;
  .info_container {
    flex: 1;
    height: 368px;
    padding: 40px;
    box-sizing: border-box;
    .real {
      border-radius: 38px;
      background: #f6f6f6;
      width: 100%;
      display: flex;
      height: 287px;
      padding: 35px 0 27px 119px;
      box-sizing: border-box;
      .first_wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        .title {
          font-family: Source Han Sans;
          font-size: 18px;
          font-weight: bold;
          line-height: normal;
          letter-spacing: 0em;
          font-feature-settings: 'kern' on;
          color: #000000;
          margin-bottom: 32px;
        }
        .links {
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          .link {
            font-family: Source Han Sans;
            font-size: 16px;
            font-weight: bold;
            line-height: normal;
            letter-spacing: 0.06em;
            font-feature-settings: 'kern' on;
            color: #000000;
            margin-bottom: 17px;
            cursor: pointer;
            border-bottom: solid 1px #ddd;
            width: 270px;
            padding-bottom: 6px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            // &:hover {
            //   text-decoration: underline;
            // }
          }
        }
      }
      .line1 {
        height: 224.89px;
        width: 1px;
        background: #d8d8d8;
        margin-right: 101px;
        margin-left: 45px;
      }
      .second_wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        .title {
          font-family: Source Han Sans;
          font-size: 18px;
          font-weight: bold;
          line-height: normal;
          letter-spacing: 0em;
          font-feature-settings: 'kern' on;
          color: #000000;
          margin-bottom: 18px;
        }
        .qrcode {
          width: 111px;
          height: 108px;
          margin-bottom: 16px;
        }
        .info_text {
          .line_phone {
            font-family: Source Han Sans;
            font-size: 16px;
            font-weight: 500;
            line-height: 26px;
            letter-spacing: 0.04em;
            font-feature-settings: 'kern' on;
            color: #000000;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: nowrap;
            .phone {
              flex: 1;
              display: flex;
              align-items: center;
              justify-content: space-between;
              margin-right: 6px;
            }
          }
        }
      }
      .line2 {
        height: 224.89px;
        width: 1px;
        background: #d8d8d8;
        margin-right: 81px;
        margin-left: 116px;
      }
      .third_wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        .title {
          font-family: Source Han Sans;
          font-size: 18px;
          font-weight: bold;
          line-height: normal;
          letter-spacing: 0em;
          font-feature-settings: 'kern' on;
          color: #000000;
          margin-bottom: 18px;
        }
        .info_text {
          font-family: 思源黑体;
          font-size: 16px;
          font-weight: normal;
          line-height: 26px;
          letter-spacing: 0.04em;
          font-feature-settings: 'kern' on;
          color: #000000;
        }
        .mb {
          margin-bottom: 27px;
        }
      }
    }
  }
  .map_container {
    width: 495px;
    height: 368px;
  }
}
</style>
