2025-07-09 12:34:30 +08:00
|
|
|
|
<template>
|
2025-07-29 14:51:28 +08:00
|
|
|
|
<div class="homepage">
|
|
|
|
|
<!-- 固定顶部导航栏 -->
|
|
|
|
|
<NavBar class="nav-bar" />
|
|
|
|
|
<div class="images">
|
|
|
|
|
<h1>轮播图区域</h1>
|
2025-07-09 12:34:30 +08:00
|
|
|
|
</div>
|
2025-07-29 14:51:28 +08:00
|
|
|
|
<div class="info">
|
|
|
|
|
<h1>信息展示区,包含店名,营业时间,状态,地址,电话图标,微信图标</h1>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="new">
|
|
|
|
|
<h1>新品展示</h1>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="navigation">
|
|
|
|
|
<h1>暂定导航组件</h1>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 固定底部TabBar -->
|
|
|
|
|
<TabBar class="tab-bar" />
|
2025-07-09 12:34:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2025-07-29 14:51:28 +08:00
|
|
|
|
import TabBar from '@/components/TabBar.vue';
|
|
|
|
|
import NavBar from '@/components/NavBar.vue';
|
2025-07-09 12:34:30 +08:00
|
|
|
|
export default {
|
|
|
|
|
name: 'HomePage',
|
|
|
|
|
components: {
|
2025-07-29 14:51:28 +08:00
|
|
|
|
TabBar,
|
|
|
|
|
NavBar
|
2025-07-09 12:34:30 +08:00
|
|
|
|
},
|
|
|
|
|
props: {},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2025-07-29 14:51:28 +08:00
|
|
|
|
|
2025-07-09 12:34:30 +08:00
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
watch: {},
|
|
|
|
|
computed: {},
|
|
|
|
|
methods: {},
|
2025-07-29 14:51:28 +08:00
|
|
|
|
created() { },
|
|
|
|
|
mounted() { }
|
2025-07-09 12:34:30 +08:00
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.homepage {
|
|
|
|
|
width: 100vw;
|
2025-07-29 14:51:28 +08:00
|
|
|
|
height: 100vh;
|
2025-07-09 12:34:30 +08:00
|
|
|
|
overflow: auto;
|
2025-07-29 14:51:28 +08:00
|
|
|
|
.images {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 25vh;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.info {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 20vh;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.new {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.navigation {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-07-09 12:34:30 +08:00
|
|
|
|
}
|
|
|
|
|
</style>
|