index.wxss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743
  1. .special {
  2. min-height: 100vh;
  3. }
  4. .topic-img {
  5. width: 100%;
  6. }
  7. .like {
  8. padding-bottom: 100rpx;
  9. }
  10. .like-list {
  11. position: relative;
  12. padding: 20rpx;
  13. display: flex;
  14. justify-content: space-between;
  15. flex-wrap: wrap;
  16. z-index: 0;
  17. }
  18. .new-comers-item {
  19. background-color: #fff;
  20. width: 345rpx;
  21. box-sizing: border-box;
  22. padding: 30rpx;
  23. border-radius: 10px;
  24. font-size: 28rpx;
  25. margin-bottom: 20rpx;
  26. }
  27. .new-comers-item .new-img {
  28. width: 285rpx;
  29. height: 285rpx;
  30. margin-bottom: 20rpx;
  31. }
  32. .new-comers-item .title {
  33. overflow: hidden;
  34. text-overflow: ellipsis;
  35. white-space: nowrap;
  36. }
  37. .new-comers-item .new-bot {
  38. display: flex;
  39. align-items: center;
  40. justify-content: space-between;
  41. margin-top: 10rpx;
  42. }
  43. .new-comers-item .new-bot .market-price {
  44. text-decoration: line-through;
  45. color: #999;
  46. font-size: 20rpx;
  47. }
  48. .new-comers-item .add-cart {
  49. height: 48rpx;
  50. line-height: 48rpx;
  51. padding: 0 20rpx;
  52. color: #fff;
  53. border-radius: 22rpx;
  54. margin: 0;
  55. background: linear-gradient(270deg, #ff5041 0%, #ff695c 100%);
  56. font-size: 24rpx;
  57. }
  58. .new-comers-item .add-cart.disabled {
  59. background: #ccc;
  60. }
  61. .new-comers-item .price {
  62. font-size: 30rpx;
  63. color: #ff5041;
  64. font-weight: bold;
  65. }
  66. .new-comers-item {
  67. position: relative;
  68. }
  69. .new-comers-item .act-end {
  70. position: absolute;
  71. height: 60rpx;
  72. border-radius: 10rpx;
  73. background: rgba(0, 0, 0, 0.5);
  74. color: #fff;
  75. font-size: 28rpx;
  76. text-align: center;
  77. line-height: 60rpx;
  78. left: 50%;
  79. top: 120rpx;
  80. padding: 0 12rpx;
  81. transform: translateX(-50%);
  82. }
  83. .none-rush-list {
  84. display: flex;
  85. flex-direction: column;
  86. align-items: center;
  87. justify-content: center;
  88. padding-bottom: 140rpx;
  89. padding-top: 140rpx;
  90. }
  91. .none-rush-list .img-block {
  92. width: 240rpx;
  93. height: 240rpx;
  94. margin-bottom: 30rpx;
  95. }
  96. .none-rush-list .h1 {
  97. font-size: 32rpx;
  98. line-height: 32rpx;
  99. color: #444;
  100. margin-bottom: 20rpx;
  101. }
  102. .none-rush-list .h2 {
  103. font-size: 24rpx;
  104. line-height: 24rpx;
  105. color: #aaa;
  106. }
  107. .item {
  108. position: relative;
  109. z-index: 999;
  110. }
  111. /* 数量加减 */
  112. .like-list .index-input-number {
  113. position: absolute;
  114. right: 20rpx;
  115. bottom: 0;
  116. display: flex;
  117. justify-content: center;
  118. align-items: center;
  119. }
  120. .like-list .index-input-number .i-input-number-view {
  121. width: 80rpx;
  122. height: 80rpx;
  123. display: flex;
  124. justify-content: center;
  125. align-items: center;
  126. }
  127. .like-list .index-input-number .i-input-number-view .img {
  128. width: 40rpx;
  129. height: 40rpx;
  130. }
  131. .like-list .index-input-number .i-input-number-minus {
  132. justify-content: flex-end;
  133. }
  134. .like-list .index-input-number .i-input-number-plus {
  135. justify-content: flex-start;
  136. }
  137. .like-list .index-input-number .input-number-text {
  138. height: 88rpx;
  139. line-height: 88rpx;
  140. font-size: 24rpx;
  141. color: #333;
  142. width: 58rpx;
  143. }
  144. /* 大图 */
  145. .i-btn {
  146. text-align: center;
  147. vertical-align: middle;
  148. touch-action: manipulation;
  149. cursor: pointer;
  150. background-image: none;
  151. white-space: nowrap;
  152. user-select: none;
  153. font-size: 28rpx;
  154. border: 0 !important;
  155. position: relative;
  156. text-decoration: none;
  157. height: 88rpx;
  158. line-height: 88rpx;
  159. background: none;
  160. color: #495060;
  161. border-radius: 0;
  162. margin: 0;
  163. box-shadow: none;
  164. }
  165. .i-btn::after {
  166. border: none;
  167. }
  168. .spu {
  169. width: 100%;
  170. display: block;
  171. margin-top: 20rpx;
  172. }
  173. .spu .img-class {
  174. width: 710rpx;
  175. height: 400rpx;
  176. border-radius: 10rpx 10rpx 0 0;
  177. image-rendering: crisp-edges;
  178. }
  179. .spu .mask {
  180. background: rgba(255, 255, 255, 0.5);
  181. width: 710rpx;
  182. height: 400rpx;
  183. position: absolute;
  184. left: 0;
  185. top: 0;
  186. }
  187. .spu .act-end {
  188. position: absolute;
  189. height: 60rpx;
  190. border-radius: 10rpx;
  191. background: rgba(0, 0, 0, 0.5);
  192. color: #fff;
  193. font-size: 28rpx;
  194. text-align: center;
  195. line-height: 60rpx;
  196. left: 50%;
  197. top: 170rpx;
  198. padding: 0 12rpx;
  199. transform: translateX(-50%);
  200. }
  201. .spu .spu-content {
  202. background: #fff;
  203. width: 710rpx;
  204. border-radius: 20rpx;
  205. overflow: hidden;
  206. position: relative;
  207. box-shadow: 0 0 40rpx rgba(0, 0, 0, 0.05);
  208. margin: 0 auto 20rpx;
  209. display: flex;
  210. flex-direction: column;
  211. box-sizing: border-box;
  212. }
  213. .spu .spu-content.disabled {
  214. opacity: 0.6;
  215. }
  216. .spu .spu-content .item-top {
  217. width: 100%;
  218. height: 400rpx;
  219. position: relative;
  220. }
  221. .spu .spu-content .item-bottom {
  222. box-sizing: border-box;
  223. padding: 20rpx;
  224. display: flex;
  225. flex-direction: column;
  226. justify-content: space-between;
  227. }
  228. .spu .spu-content .item-bottom .spu-title {
  229. color: #222;
  230. font-size: 30rpx;
  231. height: 32rpx;
  232. width: 100%;
  233. margin-bottom: 12rpx;
  234. margin-top: 10rpx;
  235. font-weight: 500;
  236. position: relative;
  237. }
  238. .spu .spu-content .item-bottom .spu-title .span {
  239. width: 100%;
  240. height: 40rpx;
  241. position: absolute;
  242. left: 0;
  243. top: -4rpx;
  244. line-height: 40rpx;
  245. overflow: hidden;
  246. text-overflow: ellipsis;
  247. white-space: nowrap;
  248. }
  249. .spu .spu-content .item-bottom .spu-tag {
  250. padding-left: 196rpx;
  251. margin-bottom: 20rpx;
  252. display: flex;
  253. height: 28rpx;
  254. }
  255. .spu .spu-content .item-bottom .spu-desc {
  256. font-size: 26rpx;
  257. line-height: 26rpx;
  258. color: #999;
  259. position: relative;
  260. width: 100%;
  261. height: 26rpx;
  262. margin-bottom: 12rpx;
  263. }
  264. .spu .spu-content .item-bottom .spu-desc em {
  265. width: 100%;
  266. height: 32rpx;
  267. position: absolute;
  268. left: 0;
  269. top: -2rpx;
  270. line-height: 32rpx;
  271. overflow: hidden;
  272. text-overflow: ellipsis;
  273. white-space: nowrap;
  274. }
  275. .spu .spu-content .item-bottom .spu-price {
  276. display: flex;
  277. align-items: flex-end;
  278. font-size: 26rpx;
  279. line-height: 26rpx;
  280. overflow: hidden;
  281. margin-bottom: 10rpx;
  282. margin-top: 10rpx;
  283. }
  284. .spu .spu-content .item-bottom .spu-price .sale-price {
  285. color: #ff5344;
  286. margin-right: 12rpx;
  287. }
  288. .spu .spu-content .item-bottom .spu-price .sale-price .span {
  289. font-size: 46rpx;
  290. line-height: 42rpx;
  291. margin: 0;
  292. font-weight: bold;
  293. }
  294. .spu .spu-content .item-bottom .spu-price .market-price {
  295. text-decoration: line-through;
  296. color: #999;
  297. margin-right: 20rpx;
  298. }
  299. .spu .spu-content .item-bottom .spu-count {
  300. font-size: 24rpx;
  301. line-height: 24rpx;
  302. color: #999;
  303. }
  304. .spu .spu-content .add-cart, .spu .spu-content .add-cart-disabled {
  305. width: 160rpx;
  306. height: 60rpx;
  307. padding: 0;
  308. margin: 0;
  309. position: absolute;
  310. right: 28rpx;
  311. bottom: 20rpx;
  312. display: flex;
  313. align-items: center;
  314. justify-content: center;
  315. background: #ff5344;
  316. color: #fff;
  317. border-radius: 30rpx;
  318. }
  319. .spu .spu-content .add-cart-disabled {
  320. background: #ccc;
  321. }
  322. .spu .spu-content .add-cart.disabled {
  323. background: #ccc;
  324. }
  325. .spu .item-top .spu-active {
  326. position: absolute;
  327. left: 0;
  328. bottom: 0;
  329. z-index: 9;
  330. display: flex;
  331. flex-direction: column-reverse;
  332. align-items: flex-start;
  333. }
  334. .spu .item-top .spu-active .tag {
  335. background: linear-gradient(to right, #ff5041, #ff994b);
  336. border-radius: 0 25rpx 25rpx 0;
  337. padding: 0 15rpx;
  338. height: 50rpx;
  339. font-size: 26rpx;
  340. line-height: 50rpx;
  341. color: #fff;
  342. display: inline-block;
  343. align-items: center;
  344. justify-content: center;
  345. width: auto;
  346. max-width: 220rpx;
  347. overflow: hidden;
  348. text-overflow: ellipsis;
  349. white-space: nowrap;
  350. }
  351. .spu .item-top .spu-active .tag-green {
  352. background: linear-gradient(to left, #46c8d0, #29ba9a);
  353. }
  354. .spu .spu-content .time-tip {
  355. position: absolute;
  356. background: #ff5344;
  357. left: 0;
  358. bottom: 0;
  359. width: 250rpx;
  360. height: 40rpx;
  361. border-radius: 0 8rpx 0 0;
  362. }
  363. .spu .spu-content .time-tip.notip {
  364. display: none;
  365. }
  366. /* 标签 */
  367. .spu .item-tag {
  368. position: absolute;
  369. left: 22rpx;
  370. top: 0;
  371. width: 54rpx;
  372. height: 62rpx;
  373. z-index: 1;
  374. color: #fff;
  375. text-align: center;
  376. }
  377. .item-tag-bg {
  378. position: absolute;
  379. left: 0;
  380. top: 0;
  381. width: 54rpx;
  382. height: 62rpx;
  383. z-index: 0;
  384. }
  385. .spu .item-tag .tag-name {
  386. position: relative;
  387. padding-top: 6rpx;
  388. font-size: 20rpx;
  389. line-height: 1;
  390. font-weight: 600;
  391. z-index: 1;
  392. }
  393. .spu .item-tag .tag-name.two-word {
  394. font-size: 22rpx;
  395. padding-top: 14rpx;
  396. }
  397. .spu .index-input-number {
  398. position: absolute;
  399. right: 0;
  400. bottom: 10rpx;
  401. display: flex;
  402. justify-content: center;
  403. align-items: center;
  404. }
  405. .spu .index-input-number .i-input-number-view {
  406. width: 80rpx;
  407. height: 80rpx;
  408. display: flex;
  409. justify-content: center;
  410. align-items: center;
  411. }
  412. .spu .index-input-number .i-input-number-view .img {
  413. width: 40rpx;
  414. height: 40rpx;
  415. }
  416. .spu .index-input-number .i-input-number-minus {
  417. justify-content: flex-end;
  418. }
  419. .spu .index-input-number .i-input-number-plus {
  420. justify-content: flex-start;
  421. }
  422. .spu .index-input-number .input-number-text {
  423. height: 88rpx;
  424. line-height: 88rpx;
  425. font-size: 24rpx;
  426. color: #333;
  427. width: 58rpx;
  428. }
  429. .fixed-share {
  430. display: inline-block;
  431. bottom: 320rpx;
  432. left: 30rpx;
  433. width: 80rpx;
  434. height: 80rpx;
  435. position: fixed;
  436. background: rgba(0, 0, 0, 0.5);
  437. border-radius: 50%;
  438. text-align: center;
  439. color: #fff;
  440. box-sizing: border-box;
  441. font-size: 20rpx;
  442. padding: 10rpx;
  443. line-height: 1.2;
  444. z-index: 100;
  445. }
  446. .fixed-share image {
  447. width: 50%;
  448. height: 50%;
  449. }
  450. /* 标签 */
  451. .new-comers-item .item-tag {
  452. position: absolute;
  453. left: 30rpx;
  454. top: 30rpx;
  455. width: 54rpx;
  456. height: 62rpx;
  457. z-index: 1;
  458. color: #fff;
  459. text-align: center;
  460. }
  461. .item-tag-bg {
  462. position: absolute;
  463. left: 0;
  464. top: 0;
  465. width: 54rpx;
  466. height: 62rpx;
  467. z-index: 0;
  468. }
  469. .new-comers-item .item-tag .tag-name {
  470. position: relative;
  471. padding-top: 6rpx;
  472. font-size: 20rpx;
  473. line-height: 1;
  474. font-weight: 600;
  475. z-index: 1;
  476. }
  477. .new-comers-item .item-tag .tag-name.two-word {
  478. font-size: 22rpx;
  479. padding-top: 14rpx;
  480. }
  481. /* 小图满减 */
  482. .like-list .spu-active {
  483. position: absolute;
  484. left: 30rpx;
  485. top: 280rpx;
  486. z-index: 9;
  487. display: flex;
  488. flex-direction: column-reverse;
  489. align-items: flex-start;
  490. }
  491. .like-list .spu-active .tag {
  492. background: linear-gradient(to right, #ff5041, #ff994b);
  493. border-radius: 0 14rpx 14rpx 0;
  494. padding: 0 12rpx;
  495. height: 30rpx;
  496. font-size: 22rpx;
  497. line-height: 30rpx;
  498. color: #fff;
  499. display: inline-block;
  500. align-items: center;
  501. justify-content: center;
  502. width: auto;
  503. max-width: 180rpx;
  504. overflow: hidden;
  505. text-overflow: ellipsis;
  506. white-space: nowrap;
  507. }
  508. .like-list .spu-active .tag-green {
  509. background: linear-gradient(to left, #46c8d0, #29ba9a);
  510. }
  511. .col-3 {
  512. display: flex;
  513. flex-wrap: wrap;
  514. padding: 20rpx 0;
  515. border-radius: 10rpx;
  516. overflow: hidden;
  517. background-color: #fff;
  518. border-radius: 0;
  519. overflow-x: hidden;
  520. max-width: 100%;
  521. }
  522. .col-3 .w250 {
  523. width: 236rpx;
  524. overflow: hidden;
  525. position: relative;
  526. padding: 0 3rpx;
  527. box-sizing: border-box;
  528. margin: 0 7rpx 20rpx;
  529. }
  530. .w250 .new-img {
  531. width: 236rpx;
  532. height: 236rpx;
  533. margin-bottom: 20rpx;
  534. overflow: hidden;
  535. }
  536. .w250 .title {
  537. overflow: hidden;
  538. text-overflow: ellipsis;
  539. white-space: nowrap;
  540. }
  541. .w250 .new-bot {
  542. display: flex;
  543. justify-content: space-between;
  544. align-items: center;
  545. margin-top: 10rpx;
  546. }
  547. .w250 .add-cart {
  548. width: 44rpx;
  549. height: 44rpx;
  550. padding: 0;
  551. margin: 0;
  552. }
  553. .w250 .price {
  554. color: #ff5041;
  555. }
  556. .w250 .act-end {
  557. position: absolute;
  558. height: 60rpx;
  559. border-radius: 10rpx;
  560. background: rgba(0, 0, 0, 0.5);
  561. color: #fff;
  562. font-size: 28rpx;
  563. text-align: center;
  564. line-height: 60rpx;
  565. left: 50%;
  566. top: 80rpx;
  567. padding: 0 12rpx;
  568. transform: translateX(-50%);
  569. }
  570. .col-3 .w250 .vip {
  571. position: absolute;
  572. left: 10rpx;
  573. top: 20rpx;
  574. }
  575. .col-3 .w250 .item-tag {
  576. position: absolute;
  577. right: 0;
  578. top: 0;
  579. width: 54rpx;
  580. height: 62rpx;
  581. z-index: 1;
  582. color: #fff;
  583. text-align: center;
  584. }
  585. .col-3 .w250 .item-tag-bg {
  586. position: absolute;
  587. left: 0;
  588. top: 0;
  589. width: 54rpx;
  590. height: 62rpx;
  591. z-index: 0;
  592. }
  593. .col-3 .w250 .item-tag .tag-name {
  594. position: relative;
  595. padding-top: 6rpx;
  596. font-size: 20rpx;
  597. line-height: 1;
  598. font-weight: 600;
  599. z-index: 1;
  600. }
  601. .col-3 .w250 .item-tag .tag-name.two-word {
  602. font-size: 22rpx;
  603. padding-top: 14rpx;
  604. }
  605. .col-3 .w250 .spu-active {
  606. position: absolute;
  607. left: 0;
  608. top: 200rpx;
  609. z-index: 9;
  610. display: flex;
  611. flex-direction: column-reverse;
  612. align-items: flex-start;
  613. }
  614. .col-3 .w250 .spu-active .tag {
  615. background: linear-gradient(to right, #ff5041, #ff994b);
  616. border-radius: 0 14rpx 14rpx 0;
  617. padding: 0 12rpx;
  618. height: 30rpx;
  619. font-size: 22rpx;
  620. line-height: 30rpx;
  621. color: #fff;
  622. display: inline-block;
  623. align-items: center;
  624. justify-content: center;
  625. width: auto;
  626. max-width: 180rpx;
  627. overflow: hidden;
  628. text-overflow: ellipsis;
  629. white-space: nowrap;
  630. }
  631. .col-3 .w250 .spu-active .tag-green {
  632. background: linear-gradient(to left, #46c8d0, #29ba9a);
  633. }
  634. .col-3 .w250 .spu-play {
  635. position: absolute;
  636. left: 50%;
  637. top: 20%;
  638. width: 100rpx;
  639. height: 100rpx;
  640. margin-left: -50rpx;
  641. }
  642. .col-3 .w250 .spu-play .img {
  643. width: 100%;
  644. height: 100%;
  645. }
  646. .col-3 .w250 .addbtn {
  647. width: 44rpx;
  648. height: 44rpx;
  649. }