index.vue 5.5 KB

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