vehicle-monitor/src/views/welcome/components/welcome-footer/index.vue

65 lines
1.3 KiB
Vue
Raw Normal View History

2025-02-28 22:57:26 +08:00
<script lang="ts" setup>
import { useRouter } from 'vue-router';
const router = useRouter();
const list = [
{ icon: 'material-symbols:home-and-garden', name: '园区', target: '/' },
2025-03-01 23:10:44 +08:00
{ icon: 'fa:building', name: '园区', target: '/' },
{ icon: 'fa-solid:chart-line', name: '经营', target: '/manage-forms' },
{ icon: 'ri:community-fill', name: '园区', target: '/' },
];
2025-02-28 22:57:26 +08:00
</script>
<template>
<footer class="flex-y-around">
<ul class="flex-x-between">
2025-03-01 23:10:44 +08:00
<li v-for="(item, index) in list" :key="index" @click="router.push(item.target)">
<i :class="`i-${item.icon}`" />
<span class="hover">{{ item.name }}</span>
2025-02-28 22:57:26 +08:00
</li>
</ul>
</footer>
</template>
<style lang="scss" scoped>
footer {
margin: 190px 0 0 0;
ul {
width: 431px;
height: 90px;
li {
display: flex;
flex-direction: column;
flex-wrap: wrap;
align-items: center;
justify-content: center;
width: 90px;
height: 90px;
color: #7cc1ff;
2025-03-01 20:52:06 +08:00
background: url('@/assets/images/bg/bg-main-2.png') no-repeat center;
background-size: cover;
i {
width: 26px;
height: 26px;
font-size: 26px;
}
2025-03-01 20:52:06 +08:00
img {
width: 26px;
height: 26px;
}
2025-02-28 22:57:26 +08:00
span {
margin: 4px 0 0 0;
2025-03-01 20:52:06 +08:00
font-size: 13px;
cursor: pointer;
2025-02-28 22:57:26 +08:00
}
}
}
}
</style>