liveh5-nuxt/app/components/AppFooter.vue
xingyy 873fb1aa32 feat(profile): 添加用户个人中心页面
- 设计并实现用户个人中心页面布局
- 添加用户信息展示区域
- 实现我的拍品列表展示
- 优化页面样式,添加背景图和样式调整
2025-01-13 10:55:10 +08:00

37 lines
964 B
Vue

<script setup>
import { useAppFooterRouteNames as names } from '~/config/index.js'
import MyIcon from "~/components/icons/MyIcon.vue";
import HomeIcon from "~/components/icons/HomeIcon.vue";
const route = useRoute()
const active = ref(0)
const show = computed(() => {
if (route.name && names.includes(route.name))
return true
return false
})
const initData=()=>{
active.value=route.path==='/'?0:1
}
initData()
</script>
<template>
<div>
<van-tabbar v-if="show" v-model="active" route placeholder fixed>
<van-tabbar-item replace to="/">
<span>{{ $t('tabbar.home') }}</span>
<template #icon>
<HomeIcon :active="active===0"></HomeIcon>
</template>
</van-tabbar-item>
<van-tabbar-item replace to="/profile">
<span>{{ $t('tabbar.profile') }}</span>
<template #icon>
<MyIcon :active="active===1"></MyIcon>
</template>
</van-tabbar-item>
</van-tabbar>
</div>
</template>