index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. <template style="background-color: red">
  2. <div
  3. style="
  4. height: 100vh;
  5. background: linear-gradient(216deg, #fe854c 0%, #ff9a5a 100%);
  6. box-sizing: border-box;
  7. overflow: scroll;
  8. "
  9. >
  10. <div
  11. class="first2"
  12. :style="{
  13. background: 'url(https://file.rongcyl.cn/festatic/bkm/first2/bg.png)',
  14. height: 'calc(100vh - 160rpx)',
  15. 'background-repeat': 'no-repeat',
  16. 'background-position': 'center center',
  17. 'background-size': 'contain',
  18. 'padding-top': safeAreaTop,
  19. 'box-sizing': 'border-box',
  20. overflow: 'scroll',
  21. 'padding-bottom': '160rpx',
  22. }"
  23. >
  24. <div class="text-white bold text-center mt-2">FIRST赏详情</div>
  25. <div class="card relative">
  26. <div class="flex pt-3 px-3">
  27. <img
  28. src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/card.png"
  29. style="width: 168rpx; height: 169rpx; border-radius: 8px"
  30. />
  31. <div class="flex-1 pl-2">
  32. <div class="" style="font-weight: 900">宝可梦日版PSA10变装皮来咯</div>
  33. <div class="flex justify-between">
  34. <div>
  35. <span class="bold" style="color: #ff2c43; font-size: 24rpx">¥</span>
  36. <span class="bold" style="color: #ff2c43; font-size: 38rpx">9</span>
  37. <span class="bold" style="color: #ff2c43; font-size: 28rpx">.9</span>
  38. <span style="color: #4e504f; font-size: 14px">/张明信片</span>
  39. </div>
  40. <div class="pt-2">
  41. <img
  42. src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/first2/rule.png"
  43. style="width: 134rpx; height: 48rpx"
  44. />
  45. </div>
  46. </div>
  47. <div class="flex justify-between">
  48. <div>
  49. <img
  50. src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/item.png"
  51. style="width: 40rpx; height: 40rpx; border-radius: 50%; display: inline-block; border: 1px solid #fff"
  52. />
  53. <img
  54. src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/item.png"
  55. class="relative right-2"
  56. style="width: 40rpx; height: 40rpx; border-radius: 50%; display: inline-block; border: 1px solid #fff"
  57. />
  58. <img
  59. src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/item.png"
  60. class="relative right-4"
  61. style="width: 40rpx; height: 40rpx; border-radius: 50%; display: inline-block; border: 1px solid #fff"
  62. />
  63. <img
  64. src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/item.png"
  65. class="relative right-6"
  66. style="width: 40rpx; height: 40rpx; border-radius: 50%; display: inline-block; border: 1px solid #fff"
  67. />
  68. <img
  69. src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/item.png"
  70. class="relative right-8"
  71. style="width: 40rpx; height: 40rpx; border-radius: 50%; display: inline-block; border: 1px solid #fff"
  72. />
  73. </div>
  74. <div class="flex items-center">
  75. <img
  76. src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/first2/hot.png"
  77. class="relative right-2"
  78. style="width: 32rpx; height: 32rpx; display: inline-block"
  79. />
  80. <span style="color: #fc5b20" class="fs11">2025</span>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <div
  86. class="absolute left-0 right-0 bottom-6 mx-auto"
  87. style="
  88. width: 670rpx;
  89. height: 128rpx;
  90. background: url(https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/first2/notice_c.png) no-repeat
  91. center center;
  92. background-size: cover;
  93. "
  94. >
  95. <img
  96. src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/first2/notice.png"
  97. class="absolute top-2 left-2"
  98. style="width: 106rpx; height: 28rpx"
  99. />
  100. <div class="text-white fs12 mt-6 px-2">
  101. 购买须知购买须知购买须知购买须知购买须知购买须知购买须知购买须知购买须知购买须知购买须知购买须知。
  102. </div>
  103. </div>
  104. <div
  105. class="absolute left-0 right-0 bottom-1 mx-auto"
  106. style="
  107. width: 690rpx;
  108. height: 12px;
  109. background: #4f5150;
  110. box-shadow: inset 0px 4px 4px 0px rgba(0, 0, 0, 0.8);
  111. border-radius: 22px 22px 22px 22px;
  112. opacity: 1;
  113. "
  114. >
  115. <div
  116. class="absolute top-1 mx-auto"
  117. style="
  118. left: 10rpx;
  119. right: 10rpx;
  120. width: 670rpx;
  121. height: 890rpx;
  122. background: linear-gradient(180deg, #ccd3d9 0%, #ffffff 5%);
  123. border-radius: 0px 0px 0px 0px;
  124. opacity: 1;
  125. "
  126. >
  127. <div class="flex justify-around mt-4">
  128. <img
  129. src="https://file.rongcyl.cn/festatic/bkm/first2/tab1.png"
  130. v-if="tabIndex !== 1"
  131. @click="tabIndex = 1"
  132. style="width: 126rpx; height: 32rpx"
  133. />
  134. <img
  135. v-if="tabIndex == 1"
  136. src="https://file.rongcyl.cn/festatic/bkm/first2/tab1a.png"
  137. @click="tabIndex = 1"
  138. style="width: 126rpx; height: 32rpx"
  139. />
  140. <img
  141. v-if="tabIndex !== 2"
  142. src="https://file.rongcyl.cn/festatic/bkm/first2/tab2.png"
  143. @click="tabIndex = 2"
  144. style="width: 126rpx; height: 32rpx"
  145. />
  146. <img
  147. v-if="tabIndex == 2"
  148. src="https://file.rongcyl.cn/festatic/bkm/first2/tab2a.png"
  149. @click="tabIndex = 2"
  150. style="width: 126rpx; height: 32rpx"
  151. />
  152. <img
  153. v-if="tabIndex != 3"
  154. src="https://file.rongcyl.cn/festatic/bkm/first2/tab3.png"
  155. @click="tabIndex = 3"
  156. style="width: 126rpx; height: 32rpx"
  157. />
  158. <img
  159. v-if="tabIndex == 3"
  160. src="https://file.rongcyl.cn/festatic/bkm/first2/tab3a.png"
  161. @click="tabIndex = 3"
  162. style="width: 126rpx; height: 32rpx"
  163. />
  164. </div>
  165. <div class="flex flex-wrap justify-between" style="padding: 20rpx 16rpx" v-if="tabIndex == 1">
  166. <div class="flex items-center justify-center c1">
  167. <img src="https://file.rongcyl.cn/festatic/bkm/first2/0.png" style="width: 24rpx; height: 24rpx" />
  168. </div>
  169. <div class="flex items-center justify-center c1">
  170. <img src="https://file.rongcyl.cn/festatic/bkm/first2/5.png" style="width: 24rpx; height: 24rpx" />
  171. </div>
  172. <div class="flex items-center justify-center c1">
  173. <img src="https://file.rongcyl.cn/festatic/bkm/first2/999.png" style="width: 75rpx; height: 24rpx" />
  174. </div>
  175. <div class="flex items-center justify-center c1">
  176. <img src="https://file.rongcyl.cn/festatic/bkm/first2/999.png" style="width: 75rpx; height: 24rpx" />
  177. </div>
  178. <div class="flex items-center justify-center c1">
  179. <!-- <img src="https://file.rongcyl.cn/festatic/bkm/first2/0.png" style="width: 24rpx; height: 24rpx" /> -->
  180. </div>
  181. <div class="flex items-center justify-center c1">
  182. <img src="https://file.rongcyl.cn/festatic/bkm/first2/999.png" style="width: 75rpx; height: 24rpx" />
  183. </div>
  184. <!-- 2 -->
  185. <div class="flex items-center justify-center c1">
  186. <img src="https://file.rongcyl.cn/festatic/bkm/first2/1.png" style="width: 24rpx; height: 24rpx" />
  187. </div>
  188. <div class="flex items-center justify-center c1">
  189. <img src="https://file.rongcyl.cn/festatic/bkm/first2/6.png" style="width: 24rpx; height: 24rpx" />
  190. </div>
  191. <div class="flex items-center justify-center c1">
  192. <img src="https://file.rongcyl.cn/festatic/bkm/first2/999.png" style="width: 75rpx; height: 24rpx" />
  193. </div>
  194. <div class="flex items-center justify-center c1">
  195. <img src="https://file.rongcyl.cn/festatic/bkm/first2/999.png" style="width: 75rpx; height: 24rpx" />
  196. </div>
  197. <div class="flex items-center justify-center c1">
  198. <img src="https://file.rongcyl.cn/festatic/bkm/first2/gift_a.png" style="width: 60rpx; height: 72rpx" />
  199. </div>
  200. <div class="flex items-center justify-center c1">
  201. <img src="https://file.rongcyl.cn/festatic/bkm/first2/999.png" style="width: 75rpx; height: 24rpx" />
  202. </div>
  203. <!-- 3 -->
  204. <div class="flex items-center justify-center c1">
  205. <img src="https://file.rongcyl.cn/festatic/bkm/first2/2.png" style="width: 24rpx; height: 24rpx" />
  206. </div>
  207. <div class="flex items-center justify-center c1">
  208. <img src="https://file.rongcyl.cn/festatic/bkm/first2/7.png" style="width: 24rpx; height: 24rpx" />
  209. </div>
  210. <div class="flex items-center justify-center c1">
  211. <img src="https://file.rongcyl.cn/festatic/bkm/first2/999.png" style="width: 75rpx; height: 24rpx" />
  212. </div>
  213. <div class="flex items-center justify-center c1">
  214. <img src="https://file.rongcyl.cn/festatic/bkm/first2/999.png" style="width: 75rpx; height: 24rpx" />
  215. </div>
  216. <div class="flex items-center justify-center c2">
  217. <img src="https://file.rongcyl.cn/festatic/bkm/first2/gift.png" style="width: 76rpx; height: 76rpx" />
  218. </div>
  219. <div class="flex items-center justify-center c1">
  220. <img src="https://file.rongcyl.cn/festatic/bkm/first2/999.png" style="width: 75rpx; height: 24rpx" />
  221. </div>
  222. <!-- 4 -->
  223. <div class="flex items-center justify-center c1">
  224. <img src="https://file.rongcyl.cn/festatic/bkm/first2/3.png" style="width: 24rpx; height: 24rpx" />
  225. </div>
  226. <div class="flex items-center justify-center c1">
  227. <img src="https://file.rongcyl.cn/festatic/bkm/first2/8.png" style="width: 24rpx; height: 24rpx" />
  228. </div>
  229. <div class="flex items-center justify-center c1">
  230. <img src="https://file.rongcyl.cn/festatic/bkm/first2/999.png" style="width: 75rpx; height: 24rpx" />
  231. </div>
  232. <div class="flex items-center justify-center c1">
  233. <img src="https://file.rongcyl.cn/festatic/bkm/first2/999.png" style="width: 75rpx; height: 24rpx" />
  234. </div>
  235. <div class="flex items-center justify-center c2">
  236. <img src="https://file.rongcyl.cn/festatic/bkm/first2/lock.png" style="width: 60rpx; height: 60rpx" />
  237. </div>
  238. <div class="flex items-center justify-center c1">
  239. <img src="https://file.rongcyl.cn/festatic/bkm/first2/999.png" style="width: 75rpx; height: 24rpx" />
  240. </div>
  241. <!-- 5 -->
  242. <div class="flex items-center justify-center c1">
  243. <img src="https://file.rongcyl.cn/festatic/bkm/first2/4.png" style="width: 24rpx; height: 24rpx" />
  244. </div>
  245. <div class="flex items-center justify-center c1">
  246. <img src="https://file.rongcyl.cn/festatic/bkm/first2/9.png" style="width: 24rpx; height: 24rpx" />
  247. </div>
  248. <div class="flex items-center justify-center c1">
  249. <img src="https://file.rongcyl.cn/festatic/bkm/first2/999.png" style="width: 75rpx; height: 24rpx" />
  250. </div>
  251. <div class="flex items-center justify-center c1">
  252. <img src="https://file.rongcyl.cn/festatic/bkm/first2/999.png" style="width: 75rpx; height: 24rpx" />
  253. </div>
  254. <div class="flex items-center justify-center c1">
  255. <img src="https://file.rongcyl.cn/festatic/bkm/first2/999.png" style="width: 75rpx; height: 24rpx" />
  256. </div>
  257. <div class="flex items-center justify-center c1">
  258. <img src="https://file.rongcyl.cn/festatic/bkm/first2/999.png" style="width: 75rpx; height: 24rpx" />
  259. </div>
  260. </div>
  261. <div class="pt-4" v-if="tabIndex == 2">
  262. <Title title="LAST" />
  263. <div class="flex pl-3 pt-3 mb-3" style="background-color: #f6f0e9">
  264. <div
  265. v-for="item in 3"
  266. class="mr-2"
  267. style="width: 168rpx; background-color: #f9f6f2; border-radius: 4px; margin-bottom: 10px"
  268. >
  269. <img
  270. src="https://file.rongcyl.cn/festatic/bkm/card.png"
  271. style="width: 144rpx; height: 144rpx; border-radius: 5px; margin: auto"
  272. />
  273. <div class="fs13 pl-2">冲四层闯…</div>
  274. <div style="color: #ea6636" class="pl-2">
  275. <span class="fs11">参考价</span>
  276. <span class="fs14 bold">990.5</span>
  277. </div>
  278. </div>
  279. </div>
  280. <Title title="FIRST" />
  281. <div class="flex pl-3 pt-3 mb-3" style="background-color: #f6f0e9">
  282. <div
  283. v-for="item in 3"
  284. class="mr-2"
  285. style="width: 168rpx; background-color: #f9f6f2; border-radius: 4px; margin-bottom: 10px"
  286. >
  287. <img
  288. src="https://file.rongcyl.cn/festatic/bkm/card.png"
  289. style="width: 144rpx; height: 144rpx; border-radius: 5px; margin: auto"
  290. />
  291. <div class="fs13 pl-2">冲四层闯…</div>
  292. <div style="color: #ea6636" class="pl-2">
  293. <span class="fs11">参考价</span>
  294. <span class="fs14 bold">990.5</span>
  295. </div>
  296. </div>
  297. </div>
  298. </div>
  299. <div class="flex flex-wrap justify-between" style="padding: 20rpx 16rpx" v-if="tabIndex == 3">3</div>
  300. <img
  301. src="https://file.rongcyl.cn/festatic/bkm/first2/dots.png"
  302. class="absolute mx-auto inline-block left-0 right-0"
  303. style="width: 612rpx; height: 24rpx; bottom: -12rpx"
  304. />
  305. </div>
  306. </div>
  307. </div>
  308. <div class="fixed right-2 bottom-20" style="height: 460rpx">
  309. <img
  310. src="https://file.rongcyl.cn/festatic/bkm/first2/fu.png"
  311. style="width: 88rpx; height: 88rpx; margin-bottom: 24rpx"
  312. />
  313. <img
  314. src="https://file.rongcyl.cn/festatic/bkm/first2/bag.png"
  315. style="width: 88rpx; height: 88rpx; margin-bottom: 24rpx"
  316. />
  317. <img
  318. src="https://file.rongcyl.cn/festatic/bkm/first2/refresh.png"
  319. style="width: 88rpx; height: 88rpx; margin-bottom: 24rpx"
  320. />
  321. <img
  322. src="https://file.rongcyl.cn/festatic/bkm/first2/share.png"
  323. style="width: 88rpx; height: 88rpx; margin-bottom: 24rpx"
  324. />
  325. </div>
  326. <div class="buy items-center">
  327. <div class="pica ml-2" style="margin-top: -38rpx">
  328. <img src="https://file.rongcyl.cn/festatic/bkm/first2/pica.png" class="w-full h-full" />
  329. </div>
  330. <div class="flex-1 text-white fs12 ml12 relative bottom-3 pl-3">
  331. <span class="inline-block">已选99个 合计:</span>
  332. <span class="inline-block" style="color: #ea6636">
  333. <span class="bold">¥</span>
  334. <span class="fs18 bold">999.5</span>
  335. </span>
  336. </div>
  337. <img src="https://file.rongcyl.cn/festatic/bkm/first2/bug.png" class="b_btn relative bottom-3 right-2" />
  338. </div>
  339. </div>
  340. </div>
  341. </template>
  342. <script>
  343. import Title from './title.vue'
  344. export default {
  345. data() {
  346. return {
  347. safeAreaTop: '0px',
  348. tabIndex: 1,
  349. }
  350. },
  351. components: { Title },
  352. mounted() {
  353. this.getSafeAreaTop()
  354. },
  355. methods: {
  356. getSafeAreaTop() {
  357. wx.getSystemInfo({
  358. success: res => {
  359. this.safeAreaTop = res.safeArea.top + 'px'
  360. },
  361. })
  362. },
  363. },
  364. }
  365. </script>
  366. <style scoped lang="scss">
  367. .first2 {
  368. padding-top: v-bind(safeAreaBottom);
  369. color: v-bind(color);
  370. .card {
  371. width: 710rpx;
  372. margin: auto;
  373. background-color: #fff;
  374. border-radius: 10px;
  375. height: 400rpx;
  376. margin-top: 18px;
  377. }
  378. .c1 {
  379. background-image: url(https://file.rongcyl.cn/festatic/bkm/first2/ca.png);
  380. width: 96rpx;
  381. height: 128rpx;
  382. background-repeat: no-repeat;
  383. background-position: center center;
  384. background-size: contain;
  385. margin-bottom: 14rpx;
  386. }
  387. .c2 {
  388. background-image: url(https://file.rongcyl.cn/festatic/bkm/first2/cg.png);
  389. width: 96rpx;
  390. height: 128rpx;
  391. background-repeat: no-repeat;
  392. background-position: center center;
  393. background-size: contain;
  394. margin-bottom: 14rpx;
  395. }
  396. .buy {
  397. position: fixed;
  398. left: 0;
  399. right: 0;
  400. bottom: 0;
  401. width: 750rpx;
  402. height: 160rpx;
  403. background: #000000;
  404. opacity: 1;
  405. display: flex;
  406. .pica {
  407. width: 88rpx;
  408. height: 88rpx;
  409. }
  410. .b_btn {
  411. width: 232rpx;
  412. height: 76rpx;
  413. }
  414. }
  415. }
  416. </style>