index.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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" @click="$navigateTo('/pages/first2/index')">
  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" />
  61. <div class="mt-1">冲四层闯关...</div>
  62. <div class="flex justify-between" style="font-size: 13px; margin-top: 12rpx">
  63. <div
  64. style="
  65. border-radius: 3px;
  66. height: 20px;
  67. line-height: 20px;
  68. text-align: center;
  69. background: #fc5b20;
  70. color: #fff;
  71. padding: 0 8rpx;
  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: 12rpx">
  82. <span class="fs14">¥</span>
  83. <span class="bold fs16">990</span>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="p">
  88. <img src="https://file.rongcyl.cn/festatic/bkm/p.png" />
  89. <div class="absolute text-white bottom-2 fs11 text-center left-0 right-0">3333</div>
  90. </div>
  91. </div>
  92. <div
  93. class="fixed left-0 right-0 bottom-0 pb-1 bg-black flex justify-around items-center fs13"
  94. style="color: #b4c9da; height: 80px"
  95. >
  96. <div class="text-center">
  97. <img src="https://file.rongcyl.cn/festatic/bkm/index2tabs/home.png" class="w-7 h-7" />
  98. <div style="color: #fc5b20">首页</div>
  99. </div>
  100. <div class="text-center">
  101. <img src="https://file.rongcyl.cn/festatic/bkm/index2tabs/shop.png" class="w-7 h-7" />
  102. <div>商城</div>
  103. </div>
  104. <div class="text-center">
  105. <img src="https://file.rongcyl.cn/festatic/bkm/index2tabs/cc.png" class="w-8 h-8" />
  106. <div>抽卡机</div>
  107. </div>
  108. <div class="text-center">
  109. <img src="https://file.rongcyl.cn/festatic/bkm/index2tabs/bag.png" class="w-7 h-7" />
  110. <div>背包</div>
  111. </div>
  112. <div class="text-center">
  113. <img src="https://file.rongcyl.cn/festatic/bkm/index2tabs/mine.png" class="w-7 h-7" />
  114. <div>我的</div>
  115. </div>
  116. </div>
  117. </div>
  118. </template>
  119. <script>
  120. export default {
  121. data() {
  122. return {
  123. arr: 4,
  124. click: 3,
  125. }
  126. },
  127. methods: {},
  128. }
  129. </script>
  130. <style scoped lang="scss">
  131. .area {
  132. width: 168px;
  133. height: 88px;
  134. }
  135. .c {
  136. width: 82px;
  137. height: 47px;
  138. }
  139. .center {
  140. width: 38px;
  141. height: 98px;
  142. }
  143. .clicks {
  144. height: 98px;
  145. background-image: linear-gradient(to bottom, #ffaea6, #ff654c);
  146. img {
  147. height: 82px;
  148. width: 82px;
  149. }
  150. }
  151. .more {
  152. width: 28px;
  153. height: 98px;
  154. }
  155. .p {
  156. position: fixed;
  157. bottom: 120px;
  158. right: 20px;
  159. img {
  160. width: 50px;
  161. height: 50px;
  162. }
  163. }
  164. .tabs {
  165. display: flex;
  166. justify-content: space-around;
  167. .tab {
  168. font-size: 16px;
  169. font-weight: 400;
  170. color: #fff;
  171. padding: 10px 0;
  172. &.active {
  173. font-weight: 600;
  174. border-bottom: 2px solid #fc5b20;
  175. color: #fc5b20;
  176. }
  177. }
  178. }
  179. .cards {
  180. margin-top: 20px;
  181. display: flex;
  182. justify-content: space-between;
  183. padding: 0 20rpx;
  184. flex-wrap: wrap;
  185. .card {
  186. box-sizing: border-box;
  187. width: 344rpx;
  188. // height: 500rpx;
  189. background: #fff;
  190. border-radius: 10px;
  191. margin-bottom: 20rpx;
  192. padding: 20rpx;
  193. padding-bottom: 12rpx;
  194. img {
  195. width: 308rpx;
  196. height: 308rpx;
  197. border-radius: 8px;
  198. }
  199. }
  200. }
  201. </style>