| | |
| | | <template> |
| | | <div class="navigation"> |
| | | <div class="navigation-content"> |
| | | <div class="navigation-contents" v-show="!simBtn"> |
| | | <div |
| | | class="navigation-item bg1" |
| | | :class="{ 'bg1-active': currentIndexs == 1 }" |
| | | @click="handleClickHome(1)" |
| | | > |
| | | 综合展示 |
| | | </div> |
| | | <div |
| | | class="navigation-item bg2" |
| | | :class="{ 'bg2-active': currentIndexs == 2 }" |
| | | @click="handleClickHome(2)" |
| | | style="margin-left: 15%" |
| | | > |
| | | 模拟仿真 |
| | | </div> |
| | | </div> |
| | | <div class="navigation-content" v-show="simBtn"> |
| | | <div |
| | | class="navigation-item bg1" |
| | | :class="{ 'bg1-active': currentIndex == 1 }" |
| | |
| | | :class="{ 'bg3-active': currentIndex == 3 }" |
| | | @click="handleClick(3)" |
| | | > |
| | | 模拟仿真 |
| | | 仿真推演 |
| | | </div> |
| | | <div |
| | | class="navigation-item bg4" |
| | | :class="{ 'bg4-active': currentIndex == 4 }" |
| | | @click="handleClick(4)" |
| | | > |
| | | 模拟评估 |
| | | 模拟评价 |
| | | </div> |
| | | </div> |
| | | <div class="navigation-bg"></div> |
| | |
| | | import { useRouter } from "vue-router"; |
| | | import { useSimStore } from "@/store/simulation"; |
| | | import { ref } from "vue"; |
| | | |
| | | const simBtn = ref(false); |
| | | const currentIndexs = ref(1); |
| | | |
| | | const router = useRouter(); |
| | | const simStore = useSimStore(); |
| | |
| | | const routes = ["", "/yhgl", "/zhjc", "/mnfz", "/mnpg"]; |
| | | router.push(routes[index]); |
| | | }; |
| | | const handleClickHome = (index) => { |
| | | if (index === 1) { |
| | | router.push("/"); |
| | | } else { |
| | | simBtn.value = true; |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |