stage1: remove old demo pages, align tabbar to FIRE pages
- delete pages/index, pages/me, pages/about (unibest demo leftovers) - update nativeTabbarList to point to checkin/progress (in case fallback needed) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,13 +0,0 @@
|
|||||||
<script lang="ts" setup>
|
|
||||||
definePage({
|
|
||||||
style: {
|
|
||||||
navigationBarTitleText: '关于',
|
|
||||||
},
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<view class="mt-10 text-center text-green-500">
|
|
||||||
关于页面
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
<script lang="ts" setup>
|
|
||||||
defineOptions({
|
|
||||||
name: 'Home',
|
|
||||||
})
|
|
||||||
definePage({
|
|
||||||
style: {
|
|
||||||
// 'custom' 表示开启自定义导航栏,默认 'default'
|
|
||||||
'navigationStyle': 'custom',
|
|
||||||
'navigationBarTitleText': '首页',
|
|
||||||
'mp-alipay': {
|
|
||||||
defaultTitle: '首页',
|
|
||||||
transparentTitle: 'always', // 可选值 auto/always/none
|
|
||||||
titlePenetrate: 'YES',
|
|
||||||
titleBarColor: '#ffffff',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
const description = ref(
|
|
||||||
'unibest 是一个集成了多种工具和技术的 uniapp 开发模板,由 uniapp + Vue3 + Ts + Vite5 + UnoCss + VSCode 构建,模板具有代码提示、自动格式化、统一配置、代码片段等功能,并内置了许多常用的基本组件和基本功能,让你编写 uniapp 拥有 best 体验。',
|
|
||||||
)
|
|
||||||
console.log('index/index 首页打印了')
|
|
||||||
|
|
||||||
onLoad(() => {
|
|
||||||
console.log('测试 uni API 自动引入: onLoad')
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<view class="bg-white px-4 pt-safe">
|
|
||||||
<view class="mt-10">
|
|
||||||
<image src="/static/logo.svg" alt="" class="mx-auto block h-28 w-28" />
|
|
||||||
</view>
|
|
||||||
<view class="mt-4 text-center text-4xl text-[#d14328]">
|
|
||||||
unibest
|
|
||||||
</view>
|
|
||||||
<view class="mb-8 mt-2 text-center text-2xl">
|
|
||||||
最好用的 uniapp 开发模板
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="m-auto mb-2 max-w-100 text-justify indent text-4">
|
|
||||||
{{ description }}
|
|
||||||
</view>
|
|
||||||
<view class="mt-4 text-center">
|
|
||||||
作者:
|
|
||||||
<text class="text-green-500">
|
|
||||||
菲鸽
|
|
||||||
</text>
|
|
||||||
</view>
|
|
||||||
<view class="mt-4 text-center">
|
|
||||||
官网地址:
|
|
||||||
<text class="text-green-500">
|
|
||||||
https://unibest.tech
|
|
||||||
</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
<script lang="ts" setup>
|
|
||||||
definePage({
|
|
||||||
style: {
|
|
||||||
'mp-alipay': {
|
|
||||||
defaultTitle: '我的',
|
|
||||||
// transparentTitle: 'always', // 可选值 auto/always/none
|
|
||||||
// titlePenetrate: 'YES',
|
|
||||||
titleBarColor: '#ffffff',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<view class="mt-10 text-center text-green-500">
|
|
||||||
我的页面
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
@@ -27,14 +27,14 @@ export const nativeTabbarList: NativeTabBarItem[] = [
|
|||||||
{
|
{
|
||||||
iconPath: 'static/tabbar/home.png',
|
iconPath: 'static/tabbar/home.png',
|
||||||
selectedIconPath: 'static/tabbar/homeHL.png',
|
selectedIconPath: 'static/tabbar/homeHL.png',
|
||||||
pagePath: 'pages/index/index',
|
pagePath: 'pages/checkin/checkin',
|
||||||
text: '首页',
|
text: '打卡',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
iconPath: 'static/tabbar/personal.png',
|
iconPath: 'static/tabbar/personal.png',
|
||||||
selectedIconPath: 'static/tabbar/personalHL.png',
|
selectedIconPath: 'static/tabbar/personalHL.png',
|
||||||
pagePath: 'pages/me/me',
|
pagePath: 'pages/progress/progress',
|
||||||
text: '个人',
|
text: '进度',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user