diff --git a/src/components/layout/NavBar.vue b/src/components/layout/NavBar.vue index b3699c1..eb71e65 100644 --- a/src/components/layout/NavBar.vue +++ b/src/components/layout/NavBar.vue @@ -20,13 +20,16 @@ class="link-content" > + {{ item.label }} + {{ item.label }} + @@ -213,6 +216,21 @@ const navList = reactive([ name: "CLAIM", path: "/claim", }, + { + id: 8, + name: "STAKING", + path: "/staking", + submenu: [ + { + label: "CEC Staking", + path: "/staking", + }, + { + label: "esCEC Staking", + path: "/esCecStaking", + } + ] + }, ]); function click(event) { router.push(event.key); @@ -232,7 +250,7 @@ const handlHome = () => { }; function handNavCurent(nav) { - // console.log(nav) + console.log(nav) // return activeIndex.value = nav.id; // if (nav.id == 1) { @@ -257,6 +275,11 @@ function handNavCurent(nav) { } else if(nav.id == 7) { // window.open(`${location.origin}${nav.path}`, "_blank") router.push(nav.path); + // } else if(nav.id == 8) { + // itemPathLink() + // window.open(`${location.origin}${nav.path}`, "_blank") + // router.push(nav.path); + // console.log(nav.submenu.length) } // if (nav.id == 1 || nav.id == 2 || nav.id == 3) { // window.open(nav.path, "_blank"); @@ -266,6 +289,9 @@ function handNavCurent(nav) { // router.push(nav.path); // } } +const itemPathLink = (path) => { + router.push(path) +} function openThirdPartyLink(url) { window.open(url, "_blank"); } diff --git a/src/components/staking/index.vue b/src/components/staking/index.vue index 43989c9..44b9395 100644 --- a/src/components/staking/index.vue +++ b/src/components/staking/index.vue @@ -1,7 +1,7 @@ - + headers content @@ -22,6 +22,8 @@ import { ref } from "vue" width: 100%; height: 120px; background: #2d2738; + padding: 20px; + border-radius: 15px; } } \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 38740b3..20f956c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,6 +9,8 @@ import PrivacyView from '../views/PrivacyView.vue'; import TermsView from '../views/TermsView.vue'; import CecActivityView from '../views/CecActivityView.vue'; import ClaimView from '../views/ClaimView.vue'; +import CecStakingView from "../views/cecStakingView.vue"; +import EsCecStakingView from "../views/esCecStakingView.vue"; const routes = [ { path: "/", @@ -101,6 +103,24 @@ const routes = [ canonical: "https://.counterfire.games", }, }, + { + path: "/staking", + name: "staking", + component: CecStakingView, + meta: { + title: "staking", + canonical: "https://.counterfire.games", + }, + }, + { + path: "/esCecStaking", + name: "esCecStaking", + component: EsCecStakingView, + meta: { + title: "esCecStaking", + canonical: "https://.counterfire.games", + }, + }, { path: "/privacy", name: "Privacy", diff --git a/src/views/cecStakingView.vue b/src/views/cecStakingView.vue new file mode 100644 index 0000000..8d8221a --- /dev/null +++ b/src/views/cecStakingView.vue @@ -0,0 +1,19 @@ + + 1111111111111111111111 + + + + + + + \ No newline at end of file diff --git a/src/views/StakingView.vue b/src/views/esCecStakingView.vue similarity index 100% rename from src/views/StakingView.vue rename to src/views/esCecStakingView.vue