about.uvue 853 B

123456789101112131415161718192021222324252627282930313233343536373839
  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-4 bg-white rounded-2xl">
  6. <cl-image src="/static/logo.png" :height="60" :width="60"></cl-image>
  7. </view>
  8. <cl-text :size="16" :pt="{ className: 'mt-4 mb-1 font-bold' }">{{
  9. config.name
  10. }}</cl-text>
  11. </view>
  12. <cl-list>
  13. <cl-list-item
  14. :label="t('访问官网')"
  15. arrow
  16. hoverable
  17. @tap="toWebSite"
  18. ></cl-list-item>
  19. </cl-list>
  20. </view>
  21. </cl-page>
  22. </template>
  23. <script setup lang="ts">
  24. import { config } from "@/config";
  25. import { $t, t } from "@/.cool";
  26. import { openWeb } from "@/uni_modules/cool-open-web";
  27. onReady(() => {
  28. uni.setNavigationBarTitle({
  29. title: $t("关于{name}", { name: config.name })
  30. });
  31. });
  32. function toWebSite() {
  33. openWeb(config.website);
  34. }
  35. </script>