<template>
  <el-footer class="p-footer">
    <el-row>
      <div class="p-footer-link max-w1280">
        <el-row class="">
          <el-col :span="8" style="margin-top: -10px;">
            <ul>
              <li class="desc_t">
                <NuxtLink to="/">
                  <img src="/img/logo2.png" class="p-logo" loading="lazy" width="150" alt="logo" />
                </NuxtLink>
              </li>
              <li class="desc_a desc_inner">
                <h4>联系我们</h4>
                <p>公司电话：0755-82565333</p>
                <p>电子邮箱：hkt@heketai.com</p>
                <p>销售电话：13670157820（微信同号）</p>
                <p>集团总部：深圳市龙岗区平吉大道66号康利城7栋8层</p>
                <h4>智能制造基地</h4>
                <p>华南区域：惠州市博罗县罗阳街道博罗大道西1758号</p>
                <p>西南区域：南充市顺庆区科创中心18号楼</p>
              </li>
            </ul>
          </el-col>
          <el-col :span="1"></el-col>
          <el-col :span="2">
            <ul>
              <li class="li-t">
                关于我们
              </li>
              <li class="li-a">
                <NuxtLink to="/about/Introduction#company-intro">公司简介</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/about/Introduction#company-culture">企业文化</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/about/Introduction#company-history">发展历程</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/about/Introduction#company-award">公司奖项</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/about/zzzl">资质专利</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/suppliers">供应商查询</NuxtLink>
              </li>
            </ul>
          </el-col>
          <el-col :span="2">
            <ul>
              <li class="li-t">
                产品中心
              </li>
              <li class="li-a">
                <NuxtLink to="/newProduct/72/77?page=1&name=肖特基二极管">二极管</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/newProduct/73/87?page=1&name=NPN晶体管">三极管</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/newProduct/71/119?page=1&name=N沟道MOSFET">MOS</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/newProduct/74/124?page=1&name=线性电源IC">集成电路</NuxtLink>
              </li>
            </ul>
          </el-col>
          <el-col :span="2">
            <ul>
              <li class="li-t">
                生产制造
              </li>
              <li class="li-a">
                <NuxtLink to="/pdtion/finfo">封测服务</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/pdtion/encapsulation">封装形式</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/pdtion/pktx">品控体系</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/pdtion/sysb">实验中心</NuxtLink>
              </li>
            </ul>
          </el-col>
          <el-col :span="2">
            <ul>
              <li class="li-t">
                新闻中心
              </li>
              <li class="li-a">
                <NuxtLink to="/news?type=40&current=1&size=6">公司新闻</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/news?type=41&current=1&size=6">行业新闻</NuxtLink>
              </li>
            </ul>
          </el-col>
          <el-col :span="6">
            <ul>
              <li class="li-t">
                关注我们
              </li>
              <li class="li-a d-flex footer-ico">
                <div>
                  <img src="@/assets/img/icon/shipinhao.png" alt="" srcset="">
                  <p>视频号</p>
                </div>
                <div>
                  <img src="@/assets/img/icon/douyinhao.png" alt="" srcset="">
                  <p>抖音号</p>
                </div>
                <div>
                  <img src="@/assets/img/icon/weixingongzhonghao.jpg" alt="" srcset="">
                  <p>微信公众号</p>
                </div>
              </li>
            </ul>
          </el-col>
        </el-row>
      </div>
    </el-row>
    <el-row class="p-footer-bottom max-w1280">
      <div class="friendly_links">
      </div>
      <div class="desc_inner">
        Copyright © 2025 深圳市合科泰电子有限公司. All Rights Reserved. Designed by Wanhu 粤ICP备2021089018号
      </div>
    </el-row>
  </el-footer>
</template>
<script setup lang="ts">
const user = useUserStore();
const isCn = ref(false);
let open = ref({
  feedback: false,
});
function cancel() {
  Object.keys(open.value).forEach(
    (key) => (open.value[key as keyof typeof open.value] = false)
  );
}
function getUrl() {
  let hostUrl = window.location.host;
  if (
    hostUrl.indexOf("ushopfy.cn") > -1 ||
    hostUrl.indexOf("192.168.0.") > -1 ||
    hostUrl.indexOf("fatmoreshop.com") > -1
  ) {
    isCn.value = true;
  }
}
onBeforeMount(() => {
  getUrl();
});
</script>
<style scoped lang="scss">
.p-footer {
  background: #252525;
  height: 100%;
  position: relative;
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 0px 18px rgba(0, 0, 0, 0.1);
  padding: 0;
}
.p-footer-link {
  margin-top: 38px;
  padding: 0 20px;
  width: 90%;
  .el-row {
    justify-content: space-between;
  }
}
.desc_t {
  img {
    border-radius: 5px;
  }
}
.desc_a {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  margin-top: 15px;
  color: #cccccc;
  P {
    line-height: 20px;
    & + p {
      margin-top: 4px;
    }
    &+h4{
      margin-top: 12px;
    }
  }
  h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 10px;
  }
}
.li-t {
  height: 25px;
  font-size: 14px;
  font-weight: bold;
  line-height: 22px;
  margin-bottom: 31px;
  margin-top: 12px;
  color: #ffffff;
}
.li-a {
  height: 22px;
  font-size: 14px;
  line-height: 22px;
  margin-bottom: 8px;
  color: #cccccc;
  &.footer-ico {
    height: auto;
    text-align: center;
    display: flex;
    justify-content: space-between;
    img {
      width: 80px;
      height: 80px;
      margin-bottom: 5px;
    }
  }
  a {
    position: relative;
    &:hover {
      color: $mainColor;
      &::before {
        position: absolute;
        content: "";
        width: 100%;
        height: 1px;
        background: $mainColor;
        left: 0;
        bottom: 0;
      }
    }
  }
}
.module_img {
  width: 28px;
  height: 28px;
  vertical-align: top;
  opacity: 1;
  margin-left: 12px;
}
.p-footer-ico {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  height: 60px;
  align-items: flex-end;
  margin-bottom: 23px;
}
.p-footer-bottom {
  margin-top: 15px;
  display: block;
  .friendly_links {
    color: #cccccc;
    font-size: 14px;
    padding: 1px 0;
    border-bottom: 1px solid #515151;
    a {
      height: 22px;
      margin: 0 10px;
      position: relative;
      &:hover {
        color: $mainColor;
        &::before {
          position: absolute;
          content: "";
          width: 100%;
          height: 1px;
          background: $mainColor;
          left: 0;
          bottom: 0;
        }
      }
      &:first-child {
        margin-left: 0;
      }
    }
  }
  .desc_inner {
    color: #cccccc;
    line-height: 60px;
    text-align: center;
  }
}
.desc_inner-wrap {
  display: flex;
  .desc_inner {
    margin-left: 30px;
    position: relative;
    &:hover {
      color: $mainColor;
      &::before {
        position: absolute;
        content: "";
        width: 100%;
        height: 1px;
        background: $mainColor;
        left: 0;
        bottom: 0;
      }
    }
  }
}
</style>
