first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
<template lang="pug">
#app
van-nav-bar(:title='navTitle',
fixed
left-text='返回',
right-text='按钮',
left-arrow='')
router-view
van-tabbar(v-model='active' @change="onChange")
van-tabbar-item(v-for="(item,index) in TabBar"
:icon='item.icon'
:to="item.href"
:key="index") {{item.title}}
</template>
<script>
export default {
data() {
return {
active: 0,
navTitle: '首页',
TabBar: [
{ title: '首页', icon: 'home-o', href: '/' },
{ title: '分类', icon: 'search', href: '/class' },
{ title: '购物车', icon: 'friends-o', href: '/car' },
{ title: '我的', icon: 'setting-o', href: '/me' },
]
}
},
methods: {
onChange(index) {
this.navTitle = this.TabBar[index].title
this.active = index
}
}
}
</script>
<style lang="less">
.content {
margin-top: 46px;
}
</style>