fiee-official-website/src/components/customFooter/size1920/index.vue

69 lines
1.8 KiB
Vue
Raw Normal View History

<template>
<!-- 通用页脚 -->
<div class="custom-footer">
<div class="custom-footer-box">
<span>&copy; 2025 FiEE, Inc. All Rights Reserved.</span>
<div class="footer-links">
<span @click="handleLink('privacyPolicy')">Privacy Policy</span>
<span @click="handleLink('termsOfUse')">Terms of use</span>
<span @click="handleLink('siteMap')">Site Map</span>
</div>
</div>
</div>
</template>
<script setup>
2025-05-30 12:31:01 +00:00
import { useRouter } from "vue-router";
const router = useRouter();
import privacyPolicy from "@/assets/file/footer/FiEE, Inc. _ Privacy policy.pdf";
import termsOfUse from "@/assets/file/footer/FiEE, Inc. _ Terms of Use.pdf";
import siteMap from "@/assets/file/footer/FiEE, Inc. _ Site Map.pdf";
//点击跳转到对应的链接页面
const handleLink = (link) => {
2025-05-30 12:31:01 +00:00
if (link === "privacyPolicy") {
window.open(privacyPolicy, "_blank");
} else if (link === "termsOfUse") {
window.open(termsOfUse, "_blank");
} else if (link === "siteMap") {
window.open(siteMap, "_blank");
}
};
</script>
<style scoped lang="scss">
.custom-footer {
width: 100%;
background: #f7f8fa;
border-top: 1px solid #ececec;
z-index: 100;
.custom-footer-box {
max-width: 1700px;
margin: 0 auto;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
letter-spacing: 1px;
color: #888;
// font-size: 15px;
font-size: 1.05rem;
padding: 1rem 40px;
text-align: center;
}
.footer-links {
margin: 0.4rem 0 0;
span {
border-right: 1px solid #d2d2d7;
padding: 0 10px;
cursor: pointer;
}
span:nth-last-child(1) {
border: 0;
}
}
}
</style>