unibest/src/pages/about/about.vue

61 lines
1.3 KiB
Vue
Raw Normal View History

2024-03-01 17:32:03 +08:00
<route lang="json5">
{
style: {
navigationBarTitleText: '关于',
navigationStyle: 'custom', // 开启自定义导航栏
2024-03-01 17:32:03 +08:00
},
}
</route>
<script lang="ts" setup>
2024-05-15 10:06:51 +08:00
import RequestComp from './components/request.vue'
import UploadComp from './components/upload.vue'
2024-03-01 17:32:03 +08:00
// 获取屏幕边界到安全区域距离
const { safeAreaInsets } = uni.getSystemInfoSync()
2025-06-20 12:12:21 +08:00
function toSubPage() {
uni.navigateTo({
url: '/pages-sub/demo/index',
})
}
// 奇怪:同样的代码放在 vue 里面不会校验到错误,放在 .ts 文件里面会校验到错误
// const testOxlint = (name: string) => {
// console.log('oxlint')
// }
// testOxlint('oxlint')
2024-03-01 17:32:03 +08:00
</script>
2025-06-20 12:12:21 +08:00
<template>
<view>
<fg-navbar>关于</fg-navbar>
<view
class="overflow-hidden bg-white px-4 pt-2"
:style="{ marginTop: `${safeAreaInsets?.top}px` }"
>
<view class="mt-8 text-center text-3xl">
鸽友们好我是
<text class="text-red-500">
菲鸽
</text>
</view>
<!-- <button @click="toSubPage()">去分包</button> -->
<view class="test-css">
测试 scss 样式
</view>
<RequestComp />
<UploadComp />
</view>
</view>
</template>
<style lang="scss" scoped>
2024-05-02 12:14:02 +08:00
.test-css {
2025-05-19 17:13:53 +08:00
// 16rpx=>0.5rem
padding-bottom: 16rpx;
2024-05-02 12:14:02 +08:00
// mt-4=>1rem=>16px;
margin-top: 16px;
2025-05-19 17:13:53 +08:00
text-align: center;
}
</style>