Compare commits
2 Commits
bb108d7ef7
...
5defd0e4d0
Author | SHA1 | Date | |
---|---|---|---|
5defd0e4d0 | |||
ae3b14cd89 |
BIN
src/assets/image/header/logo.png
Normal file
BIN
src/assets/image/header/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
@ -5,14 +5,15 @@
|
|||||||
:class="{ 'header-scrolled': isScrolled }"
|
:class="{ 'header-scrolled': isScrolled }"
|
||||||
>
|
>
|
||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
<div class="logo">
|
<div class="logo" @click="handleToHome">
|
||||||
<NImage width="108" height="33" :src="FiEELogo" preview-disabled />
|
<NImage width="160" height="50" :src="FiEELogo" preview-disabled />
|
||||||
</div>
|
</div>
|
||||||
<div class="header-menu">
|
<div class="header-menu">
|
||||||
<NMenu
|
<NMenu
|
||||||
mode="horizontal"
|
mode="horizontal"
|
||||||
:options="menuOptions"
|
:options="menuOptions"
|
||||||
:inverted="isScrolled"
|
:inverted="isScrolled"
|
||||||
|
v-model:value="selectedKey"
|
||||||
@update:value="handleMenuSelect"
|
@update:value="handleMenuSelect"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -21,15 +22,21 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import FiEELogo from "@/assets/images/header/logo.png";
|
import FiEELogo from '@/assets/image/header/logo.png'
|
||||||
import { ref, onMounted, onUnmounted } from "vue";
|
import { ref, onMounted, onUnmounted } from 'vue'
|
||||||
import { NMenu, NLayoutHeader, NImage } from "naive-ui";
|
import { NMenu, NLayoutHeader, NImage } from 'naive-ui'
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from 'vue-i18n'
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from 'vue-router'
|
||||||
const { t } = useI18n();
|
import { useHeaderMenuConfig } from '@/config/headerMenuConfig'
|
||||||
const router = useRouter();
|
|
||||||
|
|
||||||
const isScrolled = ref(false);
|
const { t } = useI18n()
|
||||||
|
const router = useRouter()
|
||||||
|
|
||||||
|
// 使用统一的菜单配置
|
||||||
|
const menuOptions = useHeaderMenuConfig()
|
||||||
|
const selectedKey = ref(null)
|
||||||
|
|
||||||
|
const isScrolled = ref(false)
|
||||||
|
|
||||||
// 递归查找菜单项
|
// 递归查找菜单项
|
||||||
function findMenuOptionByKey(options, key) {
|
function findMenuOptionByKey(options, key) {
|
||||||
@ -51,107 +58,6 @@ const handleMenuSelect = (key) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// 菜单配置
|
|
||||||
const menuOptions = [
|
|
||||||
{
|
|
||||||
label: t("header_menu.corporate_information.title"),
|
|
||||||
key: "corporate_information",
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
label: t("header_menu.corporate_information.company_overview"),
|
|
||||||
key: "company_overview",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.corporate_information.business_introduction"),
|
|
||||||
key: "business_introduction",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.corporate_information.management"),
|
|
||||||
key: "management",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.corporate_information.board_of_directors"),
|
|
||||||
key: "board_of_directors",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.corporate_information.committee_appointments"),
|
|
||||||
key: "committee_appointments",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.corporate_information.governance"),
|
|
||||||
key: "governance",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.corporate_information.corporate_video"),
|
|
||||||
key: "corporate_video",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.financial_information.title"),
|
|
||||||
key: "financial_information",
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
label: t("header_menu.financial_information.sec_filings"),
|
|
||||||
key: "sec_filings",
|
|
||||||
href: "/secfilings",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.financial_information.quarterly_results"),
|
|
||||||
key: "quarterly_results",
|
|
||||||
href: "/quarterlyresults",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.stock_information.title"),
|
|
||||||
key: "stock_information",
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
label: t("header_menu.stock_information.stock_quote"),
|
|
||||||
key: "stock_quote",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.stock_information.historic_stock_price"),
|
|
||||||
key: "historic_stock_price",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.stock_information.investment_calculator"),
|
|
||||||
key: "investment_calculator",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.news_releases.title"),
|
|
||||||
key: "news_releases",
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
label: t("header_menu.news_releases.press_releases"),
|
|
||||||
key: "press_releases",
|
|
||||||
href: "/new-releases",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.news_releases.events_calendar"),
|
|
||||||
key: "events_calendar",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.investor_resources.title"),
|
|
||||||
key: "investor_resources",
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
label: t("header_menu.investor_resources.ir_contacts"),
|
|
||||||
key: "ir_contacts",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.investor_resources.email_alerts"),
|
|
||||||
key: "email_alerts",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
// 监听滚动事件
|
// 监听滚动事件
|
||||||
const handleScroll = () => {
|
const handleScroll = () => {
|
||||||
//滚动距离大于100px时,处理对应的header样式
|
//滚动距离大于100px时,处理对应的header样式
|
||||||
@ -163,13 +69,20 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
window.removeEventListener("scroll", handleScroll);
|
window.removeEventListener('scroll', handleScroll)
|
||||||
});
|
})
|
||||||
|
|
||||||
|
//点击回到首页
|
||||||
|
const handleToHome = () => {
|
||||||
|
router.push('/')
|
||||||
|
selectedKey.value = null // 重置菜单选中状态
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.custom-header {
|
.custom-header {
|
||||||
--header-height: 80px;
|
--header-height: 80px;
|
||||||
|
--primary-color: #8B59F7;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -181,14 +94,15 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
&.header-scrolled {
|
&.header-scrolled {
|
||||||
background: rgba(255, 255, 255, 0.95);
|
background: rgba(255, 255, 255, 0.95);
|
||||||
|
backdrop-filter: blur(8px);
|
||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-container {
|
.header-container {
|
||||||
max-width: 1200px;
|
max-width: 1700px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 0 20px;
|
padding: 0 40px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -197,9 +111,115 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
margin-right: 100px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
transform: scale(1.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
transform: scale(0.98);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-menu {
|
.header-menu {
|
||||||
display: block;
|
display: block;
|
||||||
|
flex: 1;
|
||||||
|
|
||||||
|
:deep(.n-menu) {
|
||||||
|
background: transparent;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.n-menu-item) {
|
||||||
|
position: relative;
|
||||||
|
margin: 0 20px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 16px;
|
||||||
|
min-width: 120px;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 50%;
|
||||||
|
width: 0;
|
||||||
|
height: 2px;
|
||||||
|
background: var(--primary-color);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
opacity: 0;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
&::after {
|
||||||
|
width: 80px;
|
||||||
|
height: 3px;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 选中状态的样式
|
||||||
|
&.n-menu-item--selected {
|
||||||
|
&::after {
|
||||||
|
width: 40px;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 子菜单样式
|
||||||
|
:deep(.n-submenu) {
|
||||||
|
.n-submenu-children {
|
||||||
|
backdrop-filter: blur(16px);
|
||||||
|
background: rgba(255, 255, 255, 0.9);
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 8px 0;
|
||||||
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
||||||
|
transform-origin: top;
|
||||||
|
animation: dropDown 0.3s ease;
|
||||||
|
|
||||||
|
.n-menu-item {
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: var(--primary-color);
|
||||||
|
transform: translateX(-100%);
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
opacity: 0.1;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
&::before {
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes dropDown {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(-10px) scale(0.95);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0) scale(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -5,16 +5,19 @@
|
|||||||
:class="{ 'header-scrolled': isScrolled }"
|
:class="{ 'header-scrolled': isScrolled }"
|
||||||
>
|
>
|
||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
<div class="logo">
|
<div class="logo" @click="handleToHome">
|
||||||
<NImage
|
<NImage
|
||||||
style="width: 108px; height: 33px; max-width: 100%"
|
style="width: 108px; height: 33px; max-width: 100%"
|
||||||
:src="FiEELogo"
|
:src="FiEELogo"
|
||||||
preview-disabled
|
preview-disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="menu-btn" @click="toggleMenu">
|
<div class="menu-btn" :class="{ 'menu-open': showMenu }" @click="toggleMenu">
|
||||||
<n-icon size="28">
|
<n-icon size="28" class="menu-icon menu-icon-menu">
|
||||||
<menu-outline />
|
<menu-sharp />
|
||||||
|
</n-icon>
|
||||||
|
<n-icon size="28" class="menu-icon menu-icon-close">
|
||||||
|
<close-sharp />
|
||||||
</n-icon>
|
</n-icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -27,6 +30,7 @@
|
|||||||
:inverted="isScrolled"
|
:inverted="isScrolled"
|
||||||
class="mobile-menu"
|
class="mobile-menu"
|
||||||
accordion
|
accordion
|
||||||
|
v-model:value="selectedKey"
|
||||||
@update:value="handleMenuSelect"
|
@update:value="handleMenuSelect"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -34,17 +38,20 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import FiEELogo from "@/assets/images/header/logo.png";
|
import FiEELogo from '@/assets/image/header/logo.png'
|
||||||
import { ref, onMounted, onUnmounted } from "vue";
|
import { ref, onMounted, onUnmounted } from 'vue'
|
||||||
import { NMenu, NLayoutHeader, NImage, NIcon } from "naive-ui";
|
import { NMenu, NLayoutHeader, NImage, NIcon } from 'naive-ui'
|
||||||
import { MenuOutline } from "@vicons/ionicons5";
|
import { MenuSharp, CloseSharp } from '@vicons/ionicons5'
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from 'vue-i18n'
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from 'vue-router'
|
||||||
const { t } = useI18n();
|
import { useHeaderMenuConfig } from '@/config/headerMenuConfig'
|
||||||
const router = useRouter();
|
|
||||||
|
|
||||||
const isScrolled = ref(false);
|
const { t } = useI18n()
|
||||||
const showMenu = ref(false);
|
const router = useRouter()
|
||||||
|
|
||||||
|
const isScrolled = ref(false)
|
||||||
|
const showMenu = ref(false)
|
||||||
|
const selectedKey = ref(null)
|
||||||
|
|
||||||
const toggleMenu = () => {
|
const toggleMenu = () => {
|
||||||
showMenu.value = !showMenu.value;
|
showMenu.value = !showMenu.value;
|
||||||
@ -74,106 +81,8 @@ const handleMenuSelect = (key) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// 菜单配置
|
// 使用统一的菜单配置
|
||||||
const menuOptions = [
|
const menuOptions = useHeaderMenuConfig()
|
||||||
{
|
|
||||||
label: t("header_menu.corporate_information.title"),
|
|
||||||
key: "corporate_information",
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
label: t("header_menu.corporate_information.company_overview"),
|
|
||||||
key: "company_overview",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.corporate_information.business_introduction"),
|
|
||||||
key: "business_introduction",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.corporate_information.management"),
|
|
||||||
key: "management",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.corporate_information.board_of_directors"),
|
|
||||||
key: "board_of_directors",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.corporate_information.committee_appointments"),
|
|
||||||
key: "committee_appointments",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.corporate_information.governance"),
|
|
||||||
key: "governance",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.corporate_information.corporate_video"),
|
|
||||||
key: "corporate_video",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.financial_information.title"),
|
|
||||||
key: "financial_information",
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
label: t("header_menu.financial_information.sec_filings"),
|
|
||||||
key: "sec_filings",
|
|
||||||
href: "/secfilings",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.financial_information.quarterly_results"),
|
|
||||||
key: "quarterly_results",
|
|
||||||
href: "/quarterlyresults",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.stock_information.title"),
|
|
||||||
key: "stock_information",
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
label: t("header_menu.stock_information.stock_quote"),
|
|
||||||
key: "stock_quote",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.stock_information.historic_stock_price"),
|
|
||||||
key: "historic_stock_price",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.stock_information.investment_calculator"),
|
|
||||||
key: "investment_calculator",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.news_releases.title"),
|
|
||||||
key: "news_releases",
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
label: t("header_menu.news_releases.press_releases"),
|
|
||||||
key: "press_releases",
|
|
||||||
href: "/new-releases",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.news_releases.events_calendar"),
|
|
||||||
key: "events_calendar",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.investor_resources.title"),
|
|
||||||
key: "investor_resources",
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
label: t("header_menu.investor_resources.ir_contacts"),
|
|
||||||
key: "ir_contacts",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: t("header_menu.investor_resources.email_alerts"),
|
|
||||||
key: "email_alerts",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
// 监听滚动事件
|
// 监听滚动事件
|
||||||
const handleScroll = () => {
|
const handleScroll = () => {
|
||||||
@ -186,8 +95,15 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
window.removeEventListener("scroll", handleScroll);
|
window.removeEventListener('scroll', handleScroll)
|
||||||
});
|
})
|
||||||
|
|
||||||
|
//点击回到首页
|
||||||
|
const handleToHome = () => {
|
||||||
|
router.push('/')
|
||||||
|
selectedKey.value = null // 重置菜单选中状态
|
||||||
|
showMenu.value = false // 在移动端同时关闭菜单
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@ -235,17 +151,40 @@ onUnmounted(() => {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: #465564;
|
|
||||||
font-size: 75px;
|
font-size: 75px;
|
||||||
padding: 40px 70px;
|
padding: 40px 70px;
|
||||||
border-radius: 30px;
|
border-radius: 30px;
|
||||||
background: #f7f8fa;
|
background: transparent;
|
||||||
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
|
|
||||||
user-select: none;
|
user-select: none;
|
||||||
transition: background 0.2s;
|
transition: background 0.2s;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.menu-icon {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(-50%, -50%) rotate(0deg);
|
||||||
|
opacity: 1;
|
||||||
|
transition:
|
||||||
|
opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
|
||||||
|
transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.menu-icon-close {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translate(-50%, -50%) rotate(-90deg) scale(0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.menu-open {
|
||||||
|
.menu-icon-menu {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translate(-50%, -50%) rotate(90deg) scale(0.8);
|
||||||
|
}
|
||||||
|
.menu-icon-close {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translate(-50%, -50%) rotate(0deg) scale(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.menu-btn:active {
|
|
||||||
background: #ececec;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-menu-wrapper {
|
.mobile-menu-wrapper {
|
||||||
@ -259,6 +198,9 @@ onUnmounted(() => {
|
|||||||
padding: 40px 0 80px 0;
|
padding: 40px 0 80px 0;
|
||||||
max-height: 1500px;
|
max-height: 1500px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
:deep(.n-menu-item) {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.fade-slide-enter-active,
|
.fade-slide-enter-active,
|
||||||
|
105
src/config/headerMenuConfig.js
Normal file
105
src/config/headerMenuConfig.js
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
|
export const useHeaderMenuConfig = () => {
|
||||||
|
const { t } = useI18n()
|
||||||
|
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
label: t('header_menu.corporate_information.title'),
|
||||||
|
key: 'corporate_information',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: t('header_menu.corporate_information.company_overview'),
|
||||||
|
key: 'company_overview',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: t('header_menu.corporate_information.business_introduction'),
|
||||||
|
key: 'business_introduction',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: t('header_menu.corporate_information.management'),
|
||||||
|
key: 'management',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: t('header_menu.corporate_information.board_of_directors'),
|
||||||
|
key: 'board_of_directors',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: t('header_menu.corporate_information.committee_appointments'),
|
||||||
|
key: 'committee_appointments',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: t('header_menu.corporate_information.governance'),
|
||||||
|
key: 'governance',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: t('header_menu.corporate_information.corporate_video'),
|
||||||
|
key: 'corporate_video',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: t('header_menu.financial_information.title'),
|
||||||
|
key: 'financial_information',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: t('header_menu.financial_information.sec_filings'),
|
||||||
|
key: 'sec_filings',
|
||||||
|
href: "/secfilings",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: t('header_menu.financial_information.quarterly_results'),
|
||||||
|
key: 'quarterly_results',
|
||||||
|
href: "/quarterlyresults",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: t('header_menu.stock_information.title'),
|
||||||
|
key: 'stock_information',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: t('header_menu.stock_information.stock_quote'),
|
||||||
|
key: 'stock_quote',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: t('header_menu.stock_information.historic_stock_price'),
|
||||||
|
key: 'historic_stock_price',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: t('header_menu.stock_information.investment_calculator'),
|
||||||
|
key: 'investment_calculator',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: t('header_menu.news_releases.title'),
|
||||||
|
key: 'news_releases',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: t('header_menu.news_releases.press_releases'),
|
||||||
|
key: 'press_releases',
|
||||||
|
href: '/press-releases',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: t('header_menu.news_releases.events_calendar'),
|
||||||
|
key: 'events_calendar',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: t('header_menu.investor_resources.title'),
|
||||||
|
key: 'investor_resources',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: t('header_menu.investor_resources.ir_contacts'),
|
||||||
|
key: 'ir_contacts',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: t('header_menu.investor_resources.email_alerts'),
|
||||||
|
key: 'email_alerts',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
@ -1,12 +1,12 @@
|
|||||||
// router/index.js
|
// router/index.js
|
||||||
import { createRouter, createWebHistory } from 'vue-router';
|
import { createRouter, createWebHistory } from 'vue-router'
|
||||||
import { setupRouterGuards } from './router-guards';
|
import { setupRouterGuards } from './router-guards'
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
name: 'home',
|
name: 'index',
|
||||||
component: () => import('@/views/home/index.vue'),
|
component: () => import('@/views/index/index.vue'),
|
||||||
// beforeEnter: (to, from, next) => {
|
// beforeEnter: (to, from, next) => {
|
||||||
|
|
||||||
// localStorage.clear()
|
// localStorage.clear()
|
||||||
@ -14,21 +14,28 @@ const routes = [
|
|||||||
// }
|
// }
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'new-releases',
|
path: 'home',
|
||||||
name: 'new-releases',
|
name: 'home',
|
||||||
component: () => import('@/views/new-releases/index.vue')
|
component: () => import('@/views/home/index.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'press-releases',
|
||||||
|
name: 'press-releases',
|
||||||
|
component: () => import('@/views/press-releases/index.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/quarterlyresults',
|
path: '/quarterlyresults',
|
||||||
name: 'QuarterlyResults',
|
name: 'QuarterlyResults',
|
||||||
component: () => import('@/views/financialinformation/quarterlyresults/index.vue'),
|
component: () =>
|
||||||
|
import('@/views/financialinformation/quarterlyresults/index.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/secfilings',
|
path: '/secfilings',
|
||||||
name: 'SecFilings',
|
name: 'SecFilings',
|
||||||
component: () => import('@/views/financialinformation/secfilings/index.vue'),
|
component: () =>
|
||||||
|
import('@/views/financialinformation/secfilings/index.vue'),
|
||||||
},
|
},
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/contacts',
|
path: '/contacts',
|
||||||
@ -60,18 +67,17 @@ const routes = [
|
|||||||
// name: 'Investorhandbook',
|
// name: 'Investorhandbook',
|
||||||
// component: () => import('@/views/investorhandbook/index.vue'),
|
// component: () => import('@/views/investorhandbook/index.vue'),
|
||||||
// },
|
// },
|
||||||
|
]
|
||||||
];
|
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(),
|
history: createWebHistory(),
|
||||||
routes
|
routes,
|
||||||
});
|
})
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
if (to.meta?.title) {
|
if (to.meta?.title) {
|
||||||
document.title = to.meta.title;
|
document.title = to.meta.title
|
||||||
}
|
}
|
||||||
next()
|
next()
|
||||||
});
|
})
|
||||||
setupRouterGuards(router);
|
setupRouterGuards(router)
|
||||||
export default router;
|
export default router
|
||||||
|
@ -7,15 +7,10 @@ import customFooter from '@/components/customFooter/index.vue'
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<!-- <header className="header">
|
<header className="header">
|
||||||
1920
|
1920
|
||||||
</header> -->
|
</header>
|
||||||
<!-- <main ref="main"></main> -->
|
<main ref="main"></main>
|
||||||
<customHeader />
|
|
||||||
<div style="margin: 80px 0;">
|
|
||||||
<router-view />
|
|
||||||
</div>
|
|
||||||
<customFooter />
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
@ -7,16 +7,10 @@ import customFooter from '@/components/customFooter/index.vue'
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<!-- <header className="header">
|
<header className="header">
|
||||||
375
|
375
|
||||||
</header> -->
|
</header>
|
||||||
<!-- <main ref="main"></main> -->
|
<main ref="main"></main>
|
||||||
|
|
||||||
<customHeader />
|
|
||||||
<div style="margin: 80px 0;">
|
|
||||||
<router-view />
|
|
||||||
</div>
|
|
||||||
<customFooter />
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
22
src/views/index/index.vue
Normal file
22
src/views/index/index.vue
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<script setup>
|
||||||
|
import size1920 from '@/views/index/size1920/index.vue'
|
||||||
|
import size375 from '@/views/index/size375/index.vue'
|
||||||
|
import { computed } from 'vue'
|
||||||
|
import { useWindowSize } from '@vueuse/core'
|
||||||
|
|
||||||
|
const { width } = useWindowSize()
|
||||||
|
const viewComponent = computed(() => {
|
||||||
|
const viewWidth = width.value
|
||||||
|
if (viewWidth <= 450) {
|
||||||
|
return size375
|
||||||
|
} else if (viewWidth <= 1920 || viewWidth > 1920) {
|
||||||
|
return size1920
|
||||||
|
}
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<component :is="viewComponent" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped lang="scss"></style>
|
21
src/views/index/size1920/index.vue
Normal file
21
src/views/index/size1920/index.vue
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<script setup>
|
||||||
|
import { NCarousel, NDivider, NMarquee, NPopselect } from 'naive-ui'
|
||||||
|
import { onUnmounted, ref, watch, onMounted, computed } from 'vue'
|
||||||
|
|
||||||
|
import customHeader from '@/components/customHeader/index.vue'
|
||||||
|
import customFooter from '@/components/customFooter/index.vue'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<customHeader></customHeader>
|
||||||
|
<div style="margin: 80px 0;">
|
||||||
|
<router-view />
|
||||||
|
</div>
|
||||||
|
<customFooter></customFooter>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
main {
|
||||||
|
padding: var(--header-height, 80px) 0 0;
|
||||||
|
}
|
||||||
|
</style>
|
26
src/views/index/size375/index.vue
Normal file
26
src/views/index/size375/index.vue
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<script setup>
|
||||||
|
import { NCarousel, NDivider, NMarquee, NPopselect } from 'naive-ui'
|
||||||
|
import { onUnmounted, ref, watch, onMounted, computed } from 'vue'
|
||||||
|
|
||||||
|
import customHeader from '@/components/customHeader/index.vue'
|
||||||
|
import customFooter from '@/components/customFooter/index.vue'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<!-- <header className="header">
|
||||||
|
375
|
||||||
|
</header> -->
|
||||||
|
<!-- <main ref="main"></main> -->
|
||||||
|
|
||||||
|
<customHeader />
|
||||||
|
<div style="margin: 80px 0;">
|
||||||
|
<router-view />
|
||||||
|
</div>
|
||||||
|
<customFooter />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
main {
|
||||||
|
padding: var(--header-height, 80px) 0 0;
|
||||||
|
}
|
||||||
|
</style>
|
23
src/views/press-releases/index.vue
Normal file
23
src/views/press-releases/index.vue
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<template>
|
||||||
|
<div class="new-releases-page">
|
||||||
|
<component :is="viewComponent" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script setup>
|
||||||
|
import size1920 from '@/views/press-releases/size1920/index.vue'
|
||||||
|
import size375 from '@/views/press-releases/size375/index.vue'
|
||||||
|
import { computed } from 'vue'
|
||||||
|
import { useWindowSize } from '@vueuse/core'
|
||||||
|
|
||||||
|
const { width } = useWindowSize()
|
||||||
|
const viewComponent = computed(() => {
|
||||||
|
const viewWidth = width.value
|
||||||
|
if (viewWidth <= 450) {
|
||||||
|
return size375
|
||||||
|
} else if (viewWidth <= 1920 || viewWidth > 1920) {
|
||||||
|
return size1920
|
||||||
|
}
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss"></style>
|
10
src/views/press-releases/size1920/index.vue
Normal file
10
src/views/press-releases/size1920/index.vue
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<template>
|
||||||
|
<div class="new-releases-page">
|
||||||
|
<customDefaultPage></customDefaultPage>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script setup>
|
||||||
|
import customDefaultPage from '@/components/customDefaultPage/index.vue'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss"></style>
|
10
src/views/press-releases/size375/index.vue
Normal file
10
src/views/press-releases/size375/index.vue
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<template>
|
||||||
|
<div class="new-releases-page">
|
||||||
|
<customDefaultPage></customDefaultPage>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script setup>
|
||||||
|
import customDefaultPage from '@/components/customDefaultPage/index.vue'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss"></style>
|
Loading…
Reference in New Issue
Block a user