index.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <view class="content">
  3. <image class="logo" src="/static/logo.png"/>
  4. <view class="text-area">
  5. <text class="title">{{ title }}</text>
  6. </view>
  7. <uv-button type="primary" text="确定"></uv-button>
  8. <uv-calendars insert @change="change"/>
  9. <uv-image src="https://cdn.uviewui.com/uview/album/1.jpg" mode="widthFix"></uv-image>
  10. <uv-qrcode ref="qrcode" size="300px" value="https://h5.uvui.cn"></uv-qrcode>
  11. <uv-switch v-model="open" loading></uv-switch>
  12. <tab-bar></tab-bar>
  13. </view>
  14. </template>
  15. <script setup lang="ts">
  16. import {ref} from 'vue'
  17. import TabBar from "@/components/tab-bar";
  18. const title = ref('Hello')
  19. const open = ref(false)
  20. const change = () => {
  21. console.log("change")
  22. }
  23. </script>
  24. <style>
  25. .content {
  26. display: flex;
  27. flex-direction: column;
  28. align-items: center;
  29. justify-content: center;
  30. }
  31. .logo {
  32. height: 200rpx;
  33. width: 200rpx;
  34. margin-top: 200rpx;
  35. margin-left: auto;
  36. margin-right: auto;
  37. margin-bottom: 50rpx;
  38. }
  39. .text-area {
  40. display: flex;
  41. justify-content: center;
  42. }
  43. .title {
  44. font-size: 36rpx;
  45. color: #8f8f94;
  46. }
  47. </style>