about.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <route lang="json5">
  2. {
  3. style: {
  4. navigationBarTitleText: '关于',
  5. },
  6. }
  7. </route>
  8. <template>
  9. <view
  10. class="bg-white overflow-hidden pt-2 px-4"
  11. :style="{ marginTop: safeAreaInsets?.top + 'px' }"
  12. >
  13. <view class="text-center text-3xl mt-4 test-css">关于页面</view>
  14. <view class="text-center text-3xl mt-8">
  15. 鸽友们好,我是
  16. <text class="text-red-500">菲鸽</text>
  17. </view>
  18. <view class="text-center mt-8 text-#fff">
  19. <wd-button type="primary" @click="gotoPage('request')">去请求页</wd-button>
  20. <wd-button type="primary" @click="gotoPage('request2')" class="ml-2">
  21. 去请求页2 (状态一体)
  22. </wd-button>
  23. </view>
  24. <view class="text-center mt-8 text-#fff">
  25. <wd-button type="primary" @click="gotoPage('upload')">上传demo</wd-button>
  26. <wd-button type="primary" @click="gotoPage('upload2')" class="ml-2">
  27. 上传demo2(状态一体)
  28. </wd-button>
  29. </view>
  30. <view class="text-center mt-8">
  31. <text mr-2>iconfont:</text>
  32. <text class="gap-2 text-red">
  33. <i class="iconfont icon-my" />
  34. <i class="iconfont icon-chat" />
  35. <i class="iconfont icon-package" />
  36. </text>
  37. </view>
  38. </view>
  39. </template>
  40. <script lang="ts" setup>
  41. // 获取屏幕边界到安全区域距离
  42. const { safeAreaInsets } = uni.getSystemInfoSync()
  43. const gotoPage = (page: string) => {
  44. uni.navigateTo({
  45. url: `/pages/index/${page}`,
  46. })
  47. }
  48. </script>
  49. <style lang="scss" scoped>
  50. .test-css {
  51. // mt-4=>1rem=>16px;
  52. margin-top: 16px;
  53. }
  54. </style>