底部导航

This commit is contained in:
liu
2026-07-01 21:54:00 +08:00
parent 0ee14678b6
commit d909d376f9
17 changed files with 544 additions and 3 deletions
+3
View File
@@ -5,6 +5,7 @@ import { Search, Swiper, SwiperItem, Grid, GridItem, Tabs, Tab, Image as VantIma
import ArticleCard from '@/components/ArticleCard'
import { banners, navItems, articles } from '@/mock/articles'
import type { ArticleCategory } from '@/types/article'
import CustomTabBar from "@/custom-tab-bar";
import './index.less'
/** 获取状态栏和导航栏高度 */
@@ -163,6 +164,8 @@ export default function Index() {
{/* 底部安全距离 */}
<View className='bottom-safe' />
</ScrollView>
<CustomTabBar />
</View>
)
}
+4
View File
@@ -0,0 +1,4 @@
export default definePageConfig({
navigationBarTitleText: '消息',
navigationStyle: 'custom',
})
+29
View File
@@ -0,0 +1,29 @@
.messages-page {
min-height: 100vh;
background: #f7f8fa;
.page-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding-top: 300px;
.placeholder-icon {
font-size: 96px;
margin-bottom: 24px;
}
.placeholder-text {
font-size: 36px;
font-weight: 500;
color: #323233;
margin-bottom: 12px;
}
.placeholder-desc {
font-size: 28px;
color: #969799;
}
}
}
+16
View File
@@ -0,0 +1,16 @@
import { View, Text } from '@tarojs/components'
import CustomTabBar from "@/custom-tab-bar"
import './index.less'
export default function Messages() {
return (
<View className='messages-page'>
<View className='page-placeholder'>
<Text className='placeholder-icon'>💬</Text>
<Text className='placeholder-text'></Text>
<Text className='placeholder-desc'>线</Text>
</View>
<CustomTabBar />
</View>
)
}
+4
View File
@@ -0,0 +1,4 @@
export default definePageConfig({
navigationBarTitleText: '我的',
navigationStyle: 'custom',
})
+29
View File
@@ -0,0 +1,29 @@
.profile-page {
min-height: 100vh;
background: #f7f8fa;
.page-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding-top: 300px;
.placeholder-icon {
font-size: 96px;
margin-bottom: 24px;
}
.placeholder-text {
font-size: 36px;
font-weight: 500;
color: #323233;
margin-bottom: 12px;
}
.placeholder-desc {
font-size: 28px;
color: #969799;
}
}
}
+16
View File
@@ -0,0 +1,16 @@
import { View, Text } from '@tarojs/components'
import CustomTabBar from "@/custom-tab-bar"
import './index.less'
export default function Profile() {
return (
<View className='profile-page'>
<View className='page-placeholder'>
<Text className='placeholder-icon'>👤</Text>
<Text className='placeholder-text'></Text>
<Text className='placeholder-desc'>线</Text>
</View>
<CustomTabBar />
</View>
)
}
+5
View File
@@ -0,0 +1,5 @@
export default definePageConfig({
navigationBarTitleText: '校园任务',
navigationStyle: 'custom',
"usingComponents": {}
})
+29
View File
@@ -0,0 +1,29 @@
.tasks-page {
min-height: 100vh;
background: #f7f8fa;
.page-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding-top: 300px;
.placeholder-icon {
font-size: 96px;
margin-bottom: 24px;
}
.placeholder-text {
font-size: 36px;
font-weight: 500;
color: #323233;
margin-bottom: 12px;
}
.placeholder-desc {
font-size: 28px;
color: #969799;
}
}
}
+16
View File
@@ -0,0 +1,16 @@
import { View, Text } from '@tarojs/components'
import CustomTabBar from "@/custom-tab-bar"
import './index.less'
export default function Tasks() {
return (
<View className='tasks-page'>
<View className='page-placeholder'>
<Text className='placeholder-icon'>📋</Text>
<Text className='placeholder-text'></Text>
<Text className='placeholder-desc'>线</Text>
</View>
<CustomTabBar />
</View>
)
}