about.vue 959 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <route lang="json5">
  2. {
  3. layout: 'tabbar',
  4. style: {
  5. navigationBarTitleText: '关于',
  6. },
  7. }
  8. </route>
  9. <script lang="ts" setup>
  10. import RequestComp from './components/request.vue'
  11. import UploadComp from './components/upload.vue'
  12. // 获取屏幕边界到安全区域距离
  13. const { safeAreaInsets } = uni.getSystemInfoSync()
  14. // 奇怪:同样的代码放在 vue 里面不会校验到错误,放在 .ts 文件里面会校验到错误
  15. // const testOxlint = (name: string) => {
  16. // console.log('oxlint')
  17. // }
  18. // testOxlint('oxlint')
  19. console.log('about')
  20. </script>
  21. <template>
  22. <view>
  23. <view class="mt-8 text-center text-3xl">
  24. 鸽友们好,我是
  25. <text class="text-red-500">
  26. 菲鸽
  27. </text>
  28. </view>
  29. <RequestComp />
  30. <UploadComp />
  31. </view>
  32. </template>
  33. <style lang="scss" scoped>
  34. .test-css {
  35. // 16rpx=>0.5rem
  36. padding-bottom: 16rpx;
  37. // mt-4=>1rem=>16px;
  38. margin-top: 16px;
  39. text-align: center;
  40. }
  41. </style>