index.vue 4.6 KB

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