|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<van-tabbar v-model="active">
|
|
|
- <van-tabbar-item>
|
|
|
+ <van-tabbar-item to="/index">
|
|
|
<span>首页</span>
|
|
|
<img
|
|
|
slot="icon"
|
|
@@ -10,7 +10,12 @@
|
|
|
style="width: 30px; height: 30px"
|
|
|
>
|
|
|
</van-tabbar-item>
|
|
|
- <van-tabbar-item>
|
|
|
+ <van-tabbar-item to="/presentRegister">
|
|
|
+ <img src="../assets/add_button.png"
|
|
|
+ class="add_button"
|
|
|
+ />
|
|
|
+ </van-tabbar-item>
|
|
|
+ <van-tabbar-item to="/me">
|
|
|
<span>我的</span>
|
|
|
<img
|
|
|
slot="icon"
|
|
@@ -20,14 +25,12 @@
|
|
|
>
|
|
|
</van-tabbar-item>
|
|
|
</van-tabbar>
|
|
|
- <div>
|
|
|
-
|
|
|
</div>
|
|
|
- </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { Tabbar, TabbarItem } from 'vant';
|
|
|
+
|
|
|
export default {
|
|
|
name: "TabBar",
|
|
|
components: {
|
|
@@ -35,7 +38,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- active: 0,
|
|
|
+ active: this.activeI,
|
|
|
icon: {
|
|
|
index_normal: require('../assets/index_icon_active.png'),
|
|
|
index_active: require('../assets/index_icon_active.png'),
|
|
@@ -48,5 +51,11 @@
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
-
|
|
|
+.add_button {
|
|
|
+ position: relative;
|
|
|
+ margin-bottom: 45px;
|
|
|
+ width: 50px;
|
|
|
+ height: 50px;
|
|
|
+ z-index: 1;
|
|
|
+}
|
|
|
</style>
|