home copy.uvue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <script lang="ts" setup>
  2. function handlePage(url) {
  3. uni.navigateTo({
  4. url
  5. })
  6. }
  7. </script>
  8. <template>
  9. <cl-page>
  10. <img src="https://oss.xiaoxiongcode.com/static/home/11.png" alt="" class="w-full h-full object-cover" />
  11. <view class="content">
  12. <view class="relative w-[25vw] " @tap="handlePage('/pages/catalog/index')">
  13. <img src="https://oss.xiaoxiongcode.com/static/home/13.png" alt="" class="w-full object-cover" />
  14. <view class="absolute top-0 left-0 w-full h-full flex flex-col items-center justify-center text-white pb-3">
  15. <view class="text-2xl font-bold">全部课程</view>
  16. <view class="text-[11px] px-2 py-1 rounded-full bg-[#55B58A] text-white font-bold mt-2">点击这里查看上过课程</view>
  17. </view>
  18. </view>
  19. <view class="relative w-[50vw] ">
  20. <cl-row>
  21. <cl-col :span="12" :pt="{ className: '!p-3' }">
  22. <view class="relative w-full ">
  23. <cl-image src="https://oss.xiaoxiongcode.com/static/home/14.png" mode="widthFix" width="100%"
  24. height="auto" />
  25. <view class="absolute top-4 left-5">
  26. <view class="text-2xl font-bold">虚拟实验</view>
  27. </view>
  28. <view class="absolute bottom-5 right-3 w-[16vw]">
  29. <cl-image src="https://oss.xiaoxiongcode.com/static/home/17.png" mode="widthFix" width="100%"
  30. height="auto" />
  31. </view>
  32. </view>
  33. </cl-col>
  34. <cl-col :span="12" :pt="{ className: '!p-3' }">
  35. <view class="relative w-full ">
  36. <cl-image src="https://oss.xiaoxiongcode.com/static/home/15.png" mode="widthFix" width="100%"
  37. height="auto" />
  38. <view class="absolute top-4 left-5">
  39. <view class="text-2xl font-bold">学习报告</view>
  40. </view>
  41. <view class="absolute bottom-1 right-3 w-[15vw]">
  42. <cl-image src="https://oss.xiaoxiongcode.com/static/home/18.png" mode="widthFix" width="100%"
  43. height="auto" />
  44. </view>
  45. </view>
  46. </cl-col>
  47. <cl-col :span="12" :pt="{ className: '!p-3' }" @tap="handlePage('/pages/card/index')">
  48. <view class="relative w-full ">
  49. <cl-image src="https://oss.xiaoxiongcode.com/static/home/16.png" mode="widthFix" width="100%"
  50. height="auto" />
  51. <view class="absolute top-4 left-5">
  52. <view class="text-2xl font-bold">我的收获</view>
  53. </view>
  54. <view class="absolute bottom-2 right-2 w-[20vw]">
  55. <cl-image src="https://oss.xiaoxiongcode.com/static/home/19.png" mode="widthFix" width="100%"
  56. height="auto" />
  57. </view>
  58. </view>
  59. </cl-col>
  60. </cl-row>
  61. </view>
  62. </view>
  63. </cl-page>
  64. </template>
  65. <style lang="scss" scoped>
  66. .content {
  67. @apply absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-white w-[80vw] flex flex-row items-center justify-between gap-4;
  68. }
  69. </style>