vanFooter.vue 1.48 KB
Newer Older
乐宝呗666's avatar
乐宝呗666 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
<template>
	<van-tabbar v-model="isActive" route @change="onChange">
		<van-tabbar-item replace to="/member">
			会员
			<!-- <img v-if="index == 0"  alt=""> -->
			<!-- <img v-else src="../../assets/img/apply.png" alt=""> -->
		</van-tabbar-item>
		<van-tabbar-item replace>
			商圈
			<!-- <img v-if="index == 1"  alt=""> -->
			<!-- <img v-else src="../../assets/img/agree.png" alt=""> -->
		</van-tabbar-item>
		<!-- <van-tabbar-item replace to="/property"> -->
		<van-tabbar-item replace>
			物业
			<!-- <img v-if="index == 2" alt=""> -->
			<!-- <img v-else src="../../assets/img/excel.png" alt="">-->
			</van-tabbar-item>
		<!-- <van-tabbar-item replace to="/goon"> -->
			<van-tabbar-item replace>
			出行
			<!-- <img v-if="index == 3"  alt=""> -->
			<!-- <img v-else src="../../assets/img/mine.png" alt=""> -->
			</van-tabbar-item>
			<van-tabbar-item replace to="/mine">
				我的
				<!-- <img v-if="index == 3"  alt=""> -->
				<!-- <img v-else src="../../assets/img/mine.png" alt=""> -->
				</van-tabbar-item>
	</van-tabbar>
</template>

<script>
	export default {
		props: {
			index: {
				type: Number,
				default: 0
			}
		},
		data() {
			return {
				isActive: this.index,
			}
		},
		methods: {
			// tabClick(e) {}
			onChange(index) {
				if (index == 1 || index == 2 || index == 3) {
					this.$toast({
						className: 'toast',
						message: '建设中,敬请期待~'
					})
				}
			}
		}
	}
</script>

<style>
	.van-tabbar img {
		width: 40px;
		height: 40px;
	}
</style>