unibest/src/pages/index/index.vue

44 lines
1.5 KiB
Vue
Raw Normal View History

<!-- 使用 type="home" 属性设置首页其他页面不需要设置默认为page推荐使用json5更强大且允许注释 -->
<route lang="json5" type="home">
{
2024-01-24 13:55:06 +08:00
style: {
2024-01-29 18:59:17 +08:00
navigationStyle: 'custom',
navigationBarTitleText: '首页',
2024-01-24 13:55:06 +08:00
},
}
</route>
2023-12-21 15:52:49 +08:00
<template>
<view
class="bg-white h-full overflow-hidden pt-2 px-4"
:style="{ marginTop: safeAreaInsets?.top + 'px' }"
>
2024-01-28 18:58:05 +08:00
<view class="mt-12">
<image src="/static/logo.svg" alt="" class="w-26 h-26 block mx-auto" />
2023-12-22 15:12:44 +08:00
</view>
<view class="text-center text-4xl main-title-color mt-3">unibest</view>
<view class="text-center text-2xl mt-2 mb-8">最好用的 uniapp 开发模板</view>
<view class="text-justify max-w-100 m-auto text-4 indent mb-2">{{ description }} </view>
2024-01-31 18:47:38 +08:00
<view class="text-blue mt-8 text-center text-sm"> 详细示例 参考 hello-unibest 项目 </view>
2023-12-21 15:52:49 +08:00
</view>
</template>
<script lang="ts" setup>
2024-01-29 18:53:57 +08:00
// 获取屏幕边界到安全区域距离
const { safeAreaInsets } = uni.getSystemInfoSync()
2024-01-30 09:55:42 +08:00
const author = ref('菲鸽')
const description = ref(
'unibest 是由 uniapp + Vue3 + Ts + Vite4 + UnoCss + UniUI 驱动的跨端快速启动模板,使用 VS Code 开发,具有代码提示、自动格式化、统一配置、代码片段等功能,同时内置了大量平时开发常用的基本组件,开箱即用,让你编写 uniapp 拥有 best 体验。',
)
2024-01-30 09:55:42 +08:00
onLoad(() => {
console.log(author)
})
</script>
2024-01-23 19:47:31 +08:00
<style>
.main-title-color {
color: #d14328;
}
</style>