about.uvue 958 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <cl-page>
  3. <view class="p-3">
  4. <view class="flex flex-col items-center justify-center py-10">
  5. <view class="p-3 bg-primary-500 rounded-xl">
  6. <cl-image src="/static/logo.png" :height="80" :width="80"></cl-image>
  7. </view>
  8. <cl-text :pt="{ className: 'mt-3 mb-1' }">{{ config.name }}</cl-text>
  9. <cl-text
  10. color="info"
  11. :pt="{
  12. className: '!text-xs'
  13. }"
  14. >version {{ config.version }}</cl-text
  15. >
  16. </view>
  17. <cl-list>
  18. <cl-list-item
  19. :label="t('访问官网')"
  20. arrow
  21. hoverable
  22. @tap="toWebSite"
  23. ></cl-list-item>
  24. </cl-list>
  25. </view>
  26. </cl-page>
  27. </template>
  28. <script setup lang="ts">
  29. import { config } from "@/config";
  30. import { $t, t } from "@/locale";
  31. import { openWeb } from "@/uni_modules/cool-open-web";
  32. onReady(() => {
  33. uni.setNavigationBarTitle({
  34. title: $t("关于{name}", { name: config.name })
  35. });
  36. });
  37. function toWebSite() {
  38. openWeb(config.website);
  39. }
  40. </script>