文章目录
0.目录和package.json依赖
目录:
依赖:
"dependencies": {
"axios": "^1.1.3",
"core-js": "^3.6.5",
"element-ui": "^2.15.10",
"save": "^2.9.0",
"store": "^2.0.12",
"swiper": "^5.4.5",
"vue": "^2.6.11",
"vue-router": "^3.2.0",
"vuex": "^3.6.2"
},
1.src/assets/iconfont(文件夹)
2.src/components/tabbar.vue
<template>
<footer>
<ul>
<router-link to="/Film" custom v-slot="{navigate,isActive}">
<li @click="navigate" :class="isActive?'myactive':''">
<i class="iconfont icon-dianying">热映电影</i>
</li>
</router-link>
<router-link to="/Cinema" custom v-slot="{navigate,isActive}">
<li @click="navigate" :class="isActive?'myactive':''">
<i class="iconfont icon-yingyuan">附近影院</i>
</li>
</router-link>
<router-link to="/Center" custom v-slot="{navigate,isActive}">
<li @click="navigate" :class="isActive?'myactive':''">
<i class="iconfont icon-yingyuan">个人中心</i>
</li>
</router-link>
</ul>
</footer>
</template>
<script>
export default {
};
</script>
<style lang="scss" scoped>
footer{
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 2.722222rem;
background