physics.uvue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <script setup lang='ts'>
  2. import { ref } from 'vue'
  3. import { router } from '@/.cool'
  4. import { user } from '@/.cool'
  5. const visible = ref(false)
  6. function handleView(url) {
  7. router.push({ path: url })
  8. }
  9. function openPopup() {
  10. visible.value = true
  11. }
  12. </script>
  13. <template>
  14. <view class="content">
  15. <view @tap="handleView('/pages/catalog/index')" class=" box">
  16. <image class=" w-full h-full " mode="heightFix" src="https://oss.xiaoxiongcode.com/static/home/681.png"
  17. lazy-load />
  18. <!-- <image class="absolute top-2 right-2 z-[2] h-[14vh]" mode="heightFix"
  19. src="https://oss.xiaoxiongcode.com/static/home/682.png" /> -->
  20. <!-- <image class="absolute bottom-5 left-5 z-[2] h-[40vh]" mode="heightFix" src="https://oss.xiaoxiongcode.com/static/home/3.gif" />
  21. <image class="absolute bottom-[14vh] right-[12vw] z-[2] h-[20vh]" mode="heightFix" src="https://oss.xiaoxiongcode.com/static/home/play.png" /> -->
  22. </view>
  23. <view @tap="handleView('/pages/test/index')" class=" box">
  24. <image class=" w-full h-full " mode="heightFix" src="https://oss.xiaoxiongcode.com/static/home/682.png"
  25. lazy-load />
  26. <!-- <image class="relative mx-auto mt-2 z-[2] h-[14vh] w-[28vw]" mode="aspectFit" src="https://oss.xiaoxiongcode.com/static/home/6421.png" /> -->
  27. </view>
  28. </view>
  29. </template>
  30. <style lang="scss" scoped>
  31. .content {
  32. @apply w-[90vw] mx-auto flex flex-row items-center justify-between;
  33. height: calc(97vh - 85px);
  34. .box {
  35. @apply h-[32vw] relative;
  36. overflow: visible;
  37. // border-radius: 30px;
  38. // border: 1vh solid #fff;
  39. }
  40. }
  41. </style>