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: {
|
|
|
|
|
navigationStyle: 'custom',
|
|
|
|
|
navigationBarTitleText: '首页',
|
|
|
|
|
},
|
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
|
|
|
|
|
class="bg-white h-full overflow-hidden pt-2 px-4"
|
|
|
|
|
:style="{ marginTop: safeAreaInsets?.top + 'px' }"
|
|
|
|
|
>
|
2024-01-15 17:36:11 +08:00
|
|
|
|
<view class="mt-8">
|
2024-01-23 19:47:31 +08:00
|
|
|
|
<image src="/static/logo.svg" alt="" class="w-40 h-40 block mx-auto" />
|
2023-12-22 15:12:44 +08:00
|
|
|
|
</view>
|
2024-01-23 19:47:31 +08:00
|
|
|
|
<view class="text-center text-4xl main-title-color mt-4">unibest</view>
|
2024-01-24 15:08:35 +08:00
|
|
|
|
<view class="text-center text-2xl mt-2 mb-8">最好用的 uniapp 开发框架</view>
|
2024-01-24 15:10:59 +08:00
|
|
|
|
<view class="text-justify text-xl">
|
2024-01-24 10:58:03 +08:00
|
|
|
|
unibest 是由 uniapp + Vue3 + Ts + Vite4 + UnoCss + UniUI 驱动的跨端快速启动模板,使用 VS Code
|
2024-01-23 19:47:31 +08:00
|
|
|
|
开发,具有代码提示、自动格式化、统一配置、代码片段等功能,同时内置了大量平时开发常用的基本组件,开箱即用,让你编写
|
|
|
|
|
uniapp 拥有 best 体验。</view
|
|
|
|
|
>
|
2024-01-24 13:55:06 +08:00
|
|
|
|
<view class="text-blue mt-8 text-center text-xl">
|
|
|
|
|
<text class="font-800">详细示例 </text>参考 hello-unibest
|
|
|
|
|
</view>
|
2024-01-24 14:32:51 +08:00
|
|
|
|
<view class="m-4"> https://github.com/codercup/hello-unibest </view>
|
|
|
|
|
<button @click="onCopy">复制 hello-unibest github地址</button>
|
2023-12-21 15:52:49 +08:00
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
2024-01-24 10:58:03 +08:00
|
|
|
|
<script lang="ts" setup>
|
2024-01-24 14:32:51 +08:00
|
|
|
|
// 获取屏幕边界到安全区域距离
|
|
|
|
|
const { safeAreaInsets } = uni.getSystemInfoSync()
|
|
|
|
|
|
2024-01-24 10:58:03 +08:00
|
|
|
|
const onCopy = () => {
|
|
|
|
|
uni.setClipboardData({
|
|
|
|
|
data: 'https://github.com/codercup/hello-unibest',
|
|
|
|
|
fail: (fail) => {
|
|
|
|
|
console.error('fail', fail)
|
|
|
|
|
},
|
|
|
|
|
success: (success) => {
|
|
|
|
|
console.log('success', success)
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
</script>
|
2024-01-23 19:47:31 +08:00
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.main-title-color {
|
2024-01-24 15:08:35 +08:00
|
|
|
|
/* color: #2c8d39; */
|
2024-01-23 19:47:31 +08:00
|
|
|
|
color: #d14328;
|
|
|
|
|
}
|
|
|
|
|
</style>
|