physics.uvue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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="w-[57vw] box">
  16. <image class="absolute top-0 left-0 z-[1] w-full h-full " mode="aspectFill" src="https://oss.xiaoxiongcode.com/static/home/641.png" />
  17. <image class="absolute top-2 right-2 z-[2] h-[14vh]" mode="heightFix" src="https://oss.xiaoxiongcode.com/static/home/645.png" />
  18. <image class="absolute bottom-5 left-5 z-[2] h-[40vh]" mode="heightFix" src="https://oss.xiaoxiongcode.com/static/home/3.gif" />
  19. <image class="absolute bottom-[14vh] right-[12vw] z-[2] h-[20vh]" mode="heightFix" src="https://oss.xiaoxiongcode.com/static/home/play.png" />
  20. </view>
  21. <view @tap="handleView('/pages/test/index')" class="w-[30vw] box">
  22. <image class="absolute top-0 left-0 z-[1] w-full h-full " mode="aspectFill" src="https://oss.xiaoxiongcode.com/static/home/644.png" />
  23. <image class="relative mx-auto mt-2 z-[2] h-[14vh] w-[28vw]" mode="aspectFit" src="https://oss.xiaoxiongcode.com/static/home/642.png" />
  24. </view>
  25. </view>
  26. </template>
  27. <style lang="scss" scoped>
  28. .content {
  29. @apply w-[90vw] mx-auto flex flex-row items-center justify-between gap-4 ;
  30. height: calc(97vh - 85px);
  31. .box{
  32. @apply h-[70vh] relative max-h-[40vw];
  33. overflow: hidden;
  34. border-radius: 30px;
  35. border: 1vh solid #fff;
  36. }
  37. }
  38. </style>