This commit is contained in:
yuyongdong 2024-09-03 13:20:20 +08:00
parent d9c4d4fd43
commit 05c94a914d
3 changed files with 36 additions and 0 deletions

View File

@ -213,6 +213,11 @@ const navList = reactive([
name: "CLAIM",
path: "/claim",
},
{
id: 8,
name: "STAKING",
path: "/staking",
},
]);
function click(event) {
router.push(event.key);
@ -257,6 +262,9 @@ function handNavCurent(nav) {
} else if(nav.id == 7) {
// window.open(`${location.origin}${nav.path}`, "_blank")
router.push(nav.path);
} else if(nav.id == 8) {
// window.open(`${location.origin}${nav.path}`, "_blank")
router.push(nav.path);
}
// if (nav.id == 1 || nav.id == 2 || nav.id == 3) {
// window.open(nav.path, "_blank");

View File

@ -9,6 +9,7 @@ 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 StakingView from "../views/StakingView.vue";
const routes = [
{
path: "/",
@ -101,6 +102,15 @@ const routes = [
canonical: "https://.counterfire.games",
},
},
{
path: "/staking",
name: "staking",
component: StakingView,
meta: {
title: "staking",
canonical: "https://.counterfire.games",
},
},
{
path: "/privacy",
name: "Privacy",

18
src/views/StakingView.vue Normal file
View File

@ -0,0 +1,18 @@
<template>
<div class="staking">
staking
</div>
</template>
<script setup>
import { ref } from "vue"
</script>
<style lang="scss" scoped>
.staking {
padding-top: 84px;
background: #16141b;
color: #fff;
}
</style>