hot-activity-item.vue 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <script lang="ts" setup>
  2. import TiltedButton from './tilted-button.vue'
  3. </script>
  4. <template>
  5. <view class="relative w-full box-border">
  6. <!-- <view class="absolute w-full h-full pt-2 pb-6 box-border">
  7. <view class="bg-black w-full h-full rounded-2xl"></view>
  8. </view> -->
  9. <view class="relative h-full mx--2.5 mb--6 mt--1 box-border">
  10. <wd-img
  11. :width="'100%'"
  12. :height="'100%'"
  13. src="/static/svgs/vector.svg"
  14. mode="widthFix"
  15. ></wd-img>
  16. </view>
  17. <view class="absolute left-0 right-0 top-1 bottom-6 z-1 p-3.5">
  18. <view class="w-full h-full flex flex-col justify-between">
  19. <wd-img
  20. custom-class="ms-1.5"
  21. src="/static/svgs/unnamed.svg"
  22. width="105px"
  23. mode="widthFix"
  24. ></wd-img>
  25. <!-- <view class="flex"></view> -->
  26. <div class="w-[321px] h-[88px] relative">
  27. <div class="w-[94px] h-3 left-[185px] top-[64px] absolute">
  28. <div
  29. class="left-0 top-0 absolute text-black/40 text-sm font-normal font-['PingFang_SC'] leading-[34px]"
  30. >
  31. 07.15 08.10
  32. </div>
  33. </div>
  34. <wd-img
  35. custom-class="w-[110px] h-[88px] left-0 top-0 absolute rounded-[10px] overflow-hidden vertical-bottom"
  36. src="https://via.placeholder.com/110x88"
  37. mode="scaleToFill"
  38. />
  39. <div
  40. class="w-[202px] left-[119px] top-0 absolute text-black text-base font-normal font-['PingFang_SC'] leading-relaxed"
  41. >
  42. 活动预告 | 日本研学·东京艺术大学设计游学
  43. </div>
  44. <div
  45. class="left-[119px] top-[64px] absolute text-black/40 text-sm font-normal font-['PingFang_SC'] leading-[34px]"
  46. >
  47. 游学时间:
  48. </div>
  49. </div>
  50. <view class="flex items-center justify-between mb-1.5">
  51. <view
  52. class="flex items-center text-black/40 text-sm font-normal font-['PingFang_SC'] leading-[34px]"
  53. >
  54. 距结束还剩
  55. <view
  56. class="w-4 h-4 bg-black/90 rounded flex-col justify-center items-center gap-2.5 inline-flex mx-1.5"
  57. >
  58. <view
  59. class="text-white text-[10px] font-normal font-['PingFang_SC'] leading-[10.18px]"
  60. >
  61. 05
  62. </view>
  63. </view>
  64. <div
  65. class="w-4 h-4 bg-black/90 rounded flex-col justify-center items-center gap-2.5 inline-flex mx-1.5"
  66. >
  67. <div
  68. class="text-white text-[10px] font-normal font-['PingFang_SC'] leading-[10.18px]"
  69. >
  70. 05
  71. </div>
  72. </div>
  73. <div
  74. class="w-4 h-4 bg-black/90 rounded flex-col justify-center items-center gap-2.5 inline-flex mx-1.5"
  75. >
  76. <div
  77. class="text-white text-[10px] font-normal font-['PingFang_SC'] leading-[10.18px]"
  78. >
  79. 05
  80. </div>
  81. </div>
  82. </view>
  83. <tilted-button>立即报名</tilted-button>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </template>