2024-01-24 14:13:45 +08:00
|
|
|
|
<!-- 使用 type="home" 属性设置首页,其他页面不需要设置,默认为page;推荐使用json5,更强大,且允许注释 -->
|
|
|
|
|
<route lang="json5" type="home">
|
2024-01-04 09:53:17 +08:00
|
|
|
|
{
|
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
|
|
|
|
},
|
2024-01-04 09:53:17 +08:00
|
|
|
|
}
|
|
|
|
|
</route>
|
2023-12-21 15:52:49 +08:00
|
|
|
|
<template>
|
2024-01-24 14:32:51 +08:00
|
|
|
|
<view
|
2024-03-03 15:28:22 +08:00
|
|
|
|
class="bg-white overflow-hidden pt-2 px-4"
|
2024-01-24 14:32:51 +08:00
|
|
|
|
:style="{ marginTop: safeAreaInsets?.top + 'px' }"
|
|
|
|
|
>
|
2024-01-28 18:58:05 +08:00
|
|
|
|
<view class="mt-12">
|
2024-02-11 03:50:24 +08:00
|
|
|
|
<image src="/static/logo.svg" alt="" class="w-28 h-28 block mx-auto" />
|
2023-12-22 15:12:44 +08:00
|
|
|
|
</view>
|
2024-02-11 03:50:24 +08:00
|
|
|
|
<view class="text-center text-4xl main-title-color mt-4">unibest</view>
|
2024-01-25 08:31:22 +08:00
|
|
|
|
<view class="text-center text-2xl mt-2 mb-8">最好用的 uniapp 开发模板</view>
|
2024-03-25 15:25:47 +08:00
|
|
|
|
<view class="text-justify max-w-100 m-auto text-4 indent mb-2">{{ description }}</view>
|
2024-03-23 18:11:18 +08:00
|
|
|
|
<view class="mt-8 text-center">
|
2024-03-03 19:07:16 +08:00
|
|
|
|
<text class="text-green-400">在线文档:</text>
|
|
|
|
|
<!-- #ifndef H5 -->
|
|
|
|
|
https://codercup.github.io/unibest-docs/
|
|
|
|
|
<!-- #endif -->
|
|
|
|
|
<!-- #ifdef H5 -->
|
|
|
|
|
<a href="https://codercup.github.io/unibest-docs/" target="_blank">
|
|
|
|
|
https://codercup.github.io/unibest-docs/
|
|
|
|
|
</a>
|
|
|
|
|
<!-- #endif -->
|
|
|
|
|
</view>
|
2024-03-23 18:11:18 +08:00
|
|
|
|
<view class="mt-4 text-center">
|
2024-03-03 19:07:16 +08:00
|
|
|
|
<text class="text-green-400">在线预览:</text>
|
|
|
|
|
<!-- #ifndef H5 -->
|
|
|
|
|
https://codercup.github.io/unibest/
|
|
|
|
|
<!-- #endif -->
|
|
|
|
|
<!-- #ifdef H5 -->
|
|
|
|
|
<a href="https://codercup.github.io/unibest/" target="_blank">
|
|
|
|
|
https://codercup.github.io/unibest/
|
|
|
|
|
</a>
|
|
|
|
|
<!-- #endif -->
|
|
|
|
|
</view>
|
2023-12-21 15:52:49 +08:00
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
2024-01-24 10:58:03 +08:00
|
|
|
|
<script lang="ts" setup>
|
2024-01-29 18:53:57 +08:00
|
|
|
|
// 获取屏幕边界到安全区域距离
|
2024-01-24 14:32:51 +08:00
|
|
|
|
const { safeAreaInsets } = uni.getSystemInfoSync()
|
2024-01-30 09:55:42 +08:00
|
|
|
|
|
|
|
|
|
const author = ref('菲鸽')
|
2024-01-30 16:17:12 +00:00
|
|
|
|
const description = ref(
|
2024-03-03 19:07:16 +08:00
|
|
|
|
'unibest 是一个集成了多种工具和技术的 uniapp 开发模板,由 uniapp + Vue3 + Ts + Vite4 + UnoCss + UniUI + VSCode 构建,模板具有代码提示、自动格式化、统一配置、代码片段等功能,并内置了许多常用的基本组件和基本功能,让你编写 uniapp 拥有 best 体验。',
|
2024-01-30 16:17:12 +00:00
|
|
|
|
)
|
2024-01-30 09:55:42 +08:00
|
|
|
|
|
|
|
|
|
onLoad(() => {
|
|
|
|
|
console.log(author)
|
|
|
|
|
})
|
2024-01-24 10:58:03 +08:00
|
|
|
|
</script>
|
2024-01-23 19:47:31 +08:00
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.main-title-color {
|
|
|
|
|
color: #d14328;
|
|
|
|
|
}
|
|
|
|
|
</style>
|