index.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <template>
  2. <div style="background-image: url(https://file.rongcyl.cn/festatic/bkm/task.png)">
  3. <img src="https://mall.rongtongh.cn/storage/imgv2/raffle/1.jpg" class="w-full" />
  4. <div
  5. style="
  6. background: rgba(0, 0, 0, 0.85);
  7. background-image: url(https://file.rongcyl.cn/festatic/bkm/box.png);
  8. background-size: cover;
  9. "
  10. >
  11. <div class="flex justify-between">
  12. <img src="https://file.rongcyl.cn/festatic/bkm/activity.png" class="area" />
  13. <img src="https://file.rongcyl.cn/festatic/bkm/task.png" class="area" />
  14. <img src="https://file.rongcyl.cn/festatic/bkm/invite.png" class="area" />
  15. </div>
  16. <div class="flex justify-between m-2 co">
  17. <img src="https://file.rongcyl.cn/festatic/bkm/center.png" class="center" />
  18. <div class="clicks flex-1">
  19. <div>
  20. <img src="https://file.rongcyl.cn/festatic/bkm/click.png" class="m-2 inline-block" />
  21. <img src="https://file.rongcyl.cn/festatic/bkm/click.png" class="m-2 inline-block" />
  22. <img src="https://file.rongcyl.cn/festatic/bkm/click.png" class="m-2 inline-block" />
  23. </div>
  24. </div>
  25. <img src="https://file.rongcyl.cn/festatic/bkm/more.png" class="more" />
  26. </div>
  27. <div class="flex justify-between m-2">
  28. <img src="https://file.rongcyl.cn/festatic/bkm/c1.png" class="c" />
  29. <img src="https://file.rongcyl.cn/festatic/bkm/c2.png" class="c" />
  30. <img src="https://file.rongcyl.cn/festatic/bkm/c3.png" class="c" />
  31. <img src="https://file.rongcyl.cn/festatic/bkm/c4.png" class="c" />
  32. </div>
  33. <div class="tabs">
  34. <div class="tab active">全部</div>
  35. <div class="tab">FIRST赏</div>
  36. <div class="tab">LAST赏</div>
  37. <div class="tab">全套赏</div>
  38. <div class="tab">无限赏</div>
  39. </div>
  40. <div class="cards">
  41. <div class="card relative" v-for="i in arr">
  42. <img
  43. src="https://file.rongcyl.cn/festatic/bkm/tag.png"
  44. class="absolute top-0 left-0"
  45. style="width: 62px; height: 24px"
  46. />
  47. <img src="https://file.rongcyl.cn/festatic/bkm/card.png" />
  48. <div class="mt-1">冲四层闯关be be be</div>
  49. <div class="flex justify-between" style="font-size: 13px; margin-top: 6px">
  50. <div
  51. style="
  52. border-radius: 3px;
  53. height: 24px;
  54. line-height: 24px;
  55. text-align: center;
  56. background: #fc5b20;
  57. color: #fff;
  58. padding: 0 5px;
  59. "
  60. >
  61. 创意热销
  62. </div>
  63. <div>
  64. <span style="font-size: 14px; margin-right: 4px; color: #fc5b20" class="fontPFSCS">999</span>
  65. <span style="color: #666666">销量</span>
  66. </div>
  67. </div>
  68. <div style="color: #fc5b20; margin-top: 10px; font-size: 20px" class="fontPFSCS">¥990</div>
  69. </div>
  70. </div>
  71. <img src="https://file.rongcyl.cn/festatic/bkm/p.png" class="p" />
  72. </div>
  73. </div>
  74. </template>
  75. <script>
  76. export default {
  77. data() {
  78. return {
  79. arr: 4,
  80. }
  81. },
  82. methods: {},
  83. }
  84. </script>
  85. <style scoped lang="scss">
  86. .area {
  87. width: 168px;
  88. height: 88px;
  89. }
  90. .c {
  91. width: 82px;
  92. height: 47px;
  93. }
  94. .center {
  95. width: 38px;
  96. height: 98px;
  97. }
  98. .clicks {
  99. height: 98px;
  100. background-image: linear-gradient(to bottom, #ffaea6, #ff654c);
  101. img {
  102. height: 82px;
  103. width: 82px;
  104. }
  105. }
  106. .more {
  107. width: 28px;
  108. height: 98px;
  109. }
  110. .p {
  111. width: 50px;
  112. height: 50px;
  113. position: fixed;
  114. bottom: 120px;
  115. right: 20px;
  116. }
  117. .tabs {
  118. display: flex;
  119. justify-content: space-around;
  120. .tab {
  121. font-size: 16px;
  122. font-weight: 400;
  123. color: #fff;
  124. padding: 10px 0;
  125. &.active {
  126. font-weight: 600;
  127. border-bottom: 2px solid #fc5b20;
  128. color: #fc5b20;
  129. }
  130. }
  131. }
  132. .cards {
  133. margin-top: 20px;
  134. display: flex;
  135. justify-content: space-between;
  136. padding: 0 10px;
  137. flex-wrap: wrap;
  138. .card {
  139. box-sizing: border-box;
  140. width: 48%;
  141. height: 270px;
  142. background: #fff;
  143. border-radius: 10px;
  144. margin-bottom: 10px;
  145. padding: 10px;
  146. img {
  147. width: 160px;
  148. height: 160px;
  149. border-radius: 8px;
  150. }
  151. }
  152. }
  153. </style>