| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <template>
- <div class="systemJc">
- <div class="systemJc-box" v-for="(item, index) in systemJcList" :key="index" @click="getDetail(index)">
- <div class="system-label">{{ item.label }}</div>
- </div>
- </div>
- </template>
- <script setup lang="ts">
- import { ref, reactive } from 'vue';
- import {useRouter } from 'vue-router'
- let router = useRouter(); //路由
- let systemJcList = reactive([{ label: '智能灌浆系统' }, { label: '智能注氮系统' }]);
- function getDetail(index) {
- switch (index) {
- case 0:
- router.push({
- path: '/fire/fire-zhuj',
- });
- break;
- case 1:
- router.push({
- path: '/fire/fire-zhud',
- });
- break;
- }
- }
- </script>
- <style lang="less" scoped>
- .systemJc {
- display: flex;
- position: relative;
- align-items: center;
- justify-content: space-around;
- width: 100%;
- height: 100%;
- .systemJc-box {
- position: relative;
- width: 168px;
- height: 100%;
- background: url('../../../../../assets/images/fire/firehome/zu-14578.png') no-repeat center;
- background-size: 100% 100%;
- cursor: pointer;
- .system-label {
- position: absolute;
- top: 14px;
- left: 50%;
- transform: translate(-50%, 0);
- color: #fff;
- font-size: 12px;
- }
- }
- }
- </style>
|