prod.wxss 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972
  1. page {
  2. background: #f4f4f4;
  3. height: 100%;
  4. }
  5. image {
  6. width: 100%;
  7. height: 100%;
  8. }
  9. .container {
  10. height: auto;
  11. padding-bottom: 110rpx;
  12. }
  13. .swiper-con {
  14. position: relative;
  15. }
  16. .swiper {
  17. height: 750rpx;
  18. width: 100%;
  19. }
  20. .swiper image {
  21. height: 750rpx;
  22. width: 100%;
  23. }
  24. .video-container {
  25. position: relative;
  26. display: flex;
  27. flex-direction: column;
  28. width: 100%;
  29. height: 750rpx;
  30. justify-content: center;
  31. align-items: center;
  32. background: #000;
  33. z-index: 10;
  34. }
  35. .video-container video {
  36. display: block;
  37. width: 100%;
  38. }
  39. .play-btn {
  40. position: absolute;
  41. left: 50%;
  42. bottom: 8%;
  43. padding: 2rpx;
  44. background: rgba(255, 255, 255, 0.75);
  45. border-radius: 50rpx;
  46. color: #000;
  47. font-size: 24rpx;
  48. text-align: center;
  49. transform: translateX(-50%);
  50. display: flex;
  51. justify-content: space-between;
  52. align-items: center;
  53. z-index: 5;
  54. }
  55. .play-icon {
  56. width: 50rpx;
  57. height: 50rpx;
  58. }
  59. .play-text {
  60. padding-right: 10rpx;
  61. margin: 0 10rpx;
  62. }
  63. .video-stop {
  64. padding: 2rpx 8rpx;
  65. }
  66. .video-index {
  67. z-index: 15;
  68. }
  69. .content{
  70. padding: 24rpx;
  71. background: #F6F6F6;
  72. /* background: linear-gradient( 180deg, #FFFFFF 0%, #F6F6F6 100%); */
  73. border-radius: 32rpx 32rpx 0rpx 0rpx;
  74. margin-top: -20rpx;
  75. position: relative;
  76. z-index: 2;
  77. }
  78. /** 商品信息 */
  79. .prod-info {
  80. padding: 20rpx;
  81. position: relative;
  82. background: #fff;
  83. border-radius: 16rpx;
  84. }
  85. .tit-wrap {
  86. position: relative;
  87. line-height: 32rpx;
  88. /* padding-right: 104rpx; */
  89. text-align: justify;
  90. }
  91. .prod-tit {
  92. line-height: 46rpx;
  93. font-size: 32rpx;
  94. color: #222222;
  95. padding-right: 20rpx;
  96. font-weight: bold;
  97. }
  98. .tit-wrap .col {
  99. position: absolute;
  100. top: -90rpx;
  101. right: 0;
  102. width: 80rpx;
  103. color: #666;
  104. font-size: 24rpx;
  105. padding-left: 20rpx;
  106. text-align: center;
  107. }
  108. .tit-wrap .col image {
  109. display: block;
  110. margin: auto;
  111. width: 40rpx;
  112. height: 40rpx;
  113. }
  114. .tit-wrap .col::after {
  115. content: "";
  116. display: block;
  117. width: 1px;
  118. height: auto;
  119. background: #f1f1f1;
  120. position: absolute;
  121. top: 0;
  122. bottom: 5px;
  123. left: 0;
  124. }
  125. .sales-p {
  126. background: #fff;
  127. line-height: 40rpx;
  128. color: #999;
  129. font-size: 28rpx;
  130. margin-top: 6rpx;
  131. margin-right: 104rpx;
  132. text-align: justify;
  133. }
  134. .prod-price {
  135. font-size: 30rpx;
  136. height: 100rpx;
  137. line-height: 100rpx;
  138. }
  139. .price {
  140. color: #e43130;
  141. font-size: 26rpx;
  142. font-weight: 600;
  143. margin-right: 30rpx;
  144. font-size: 48rpx;
  145. }
  146. .price-num {
  147. font-size: 48rpx;
  148. font-weight: 600;
  149. /* font-weight: 400; */
  150. }
  151. .sales {
  152. color: #999;
  153. }
  154. .share-icon {
  155. position: absolute;
  156. right: 50rpx;
  157. top: 50rpx;
  158. background: none;
  159. line-height: 40rpx;
  160. border: none;
  161. outline: none;
  162. box-shadow: 0;
  163. padding: 0;
  164. }
  165. .share-icon::after {
  166. border: none;
  167. }
  168. .share-icon image {
  169. width: 60rpx;
  170. height: 60rpx;
  171. }
  172. .share-text {
  173. font-size: 26rpx;
  174. color: #999;
  175. line-height: 30rpx;
  176. }
  177. /* 积分商品价格 */
  178. .integral-prod-price {
  179. display: inline-block;
  180. padding: 10rpx 0 40rpx;
  181. color: #e43130;
  182. font-size: 30rpx;
  183. }
  184. /** end 商品信息 */
  185. /* 商品促销活动(优惠 */
  186. .discount {
  187. background: #fff;
  188. position: relative;
  189. margin-top: 20rpx;
  190. padding: 28rpx 100rpx;
  191. }
  192. .discount-con {
  193. display: flex;
  194. flex-direction: column;
  195. }
  196. .discount-item {
  197. display: flex;
  198. }
  199. .popup-discount {
  200. margin: 30rpx 0;
  201. }
  202. .popup-discount .discount-item {
  203. margin-bottom: 10rpx;
  204. padding-bottom: 8rpx;
  205. }
  206. .popup-discount .discount-item:last-child {
  207. padding-bottom: 8rpx;
  208. }
  209. .discount-tag {
  210. color: #e43130;
  211. font-size: 20rpx;
  212. border-radius: 4rpx;
  213. border: 2rpx solid #e43130;
  214. margin-right: 10rpx;
  215. padding: 0 6rpx;
  216. align-self: center;
  217. }
  218. .discount-content {
  219. font-size: 24rpx;
  220. flex: 1;
  221. display: -webkit-box;
  222. -webkit-box-orient: vertical;
  223. -webkit-line-clamp: 1;
  224. overflow: hidden;
  225. text-overflow: ellipsis;
  226. }
  227. /* 商品促销活动(优惠-end*/
  228. /**优惠券*/
  229. .coupon {
  230. padding: 28rpx 100rpx 14rpx 100rpx;
  231. background: #fff;
  232. position: relative;
  233. margin-top: 20rpx;
  234. }
  235. .discount .coupon-tit,
  236. .coupon .coupon-tit {
  237. position: absolute;
  238. display: inline-block;
  239. width: 60rpx;
  240. left: 20rpx;
  241. font-size: 24rpx;
  242. top: 28rpx;
  243. line-height: 36rpx;
  244. color: #999;
  245. }
  246. .coupon-con .item {
  247. position: relative;
  248. display: inline-block;
  249. vertical-align: top;
  250. padding: 0 18rpx;
  251. background: #e43130;
  252. height: 36rpx;
  253. line-height: 36rpx;
  254. color: #fff;
  255. font-size: 22rpx;
  256. margin: 0 16rpx 16rpx 0;
  257. font-family: arial;
  258. }
  259. .coupon-con .item:before,
  260. .coupon-con .item:after {
  261. content: "";
  262. display: block;
  263. width: 0;
  264. height: 0;
  265. position: absolute;
  266. top: 0;
  267. border: 18rpx solid transparent;
  268. }
  269. .coupon-con .item:before {
  270. left: 0;
  271. border-left: 4rpx solid #fff;
  272. }
  273. .coupon-con .item:after {
  274. right: 0;
  275. border-right: 4rpx solid #fff;
  276. }
  277. .coupon .num {
  278. position: absolute;
  279. right: 80rpx;
  280. width: 80rpx;
  281. top: 28rpx;
  282. text-align: right;
  283. font-size: 24rpx;
  284. color: #999;
  285. line-height: 36rpx;
  286. white-space: nowrap;
  287. overflow: hidden;
  288. text-overflow: ellipsis;
  289. font-family: arial;
  290. }
  291. .more {
  292. position: absolute;
  293. right: 20rpx;
  294. width: 60rpx;
  295. top: 10rpx;
  296. text-align: right;
  297. font-size: 40rpx;
  298. color: #999;
  299. letter-spacing: 1px;
  300. }
  301. /* 已选 */
  302. .sku {
  303. padding: 20rpx;
  304. background: #fff;
  305. margin-top: 20rpx;
  306. position: relative;
  307. line-height: 48rpx;
  308. }
  309. .sku-tit {
  310. position: absolute;
  311. display: inline-block;
  312. width: 60rpx;
  313. left: 20rpx;
  314. font-size: 24rpx;
  315. top: 20rpx;
  316. color: #999;
  317. }
  318. .sku-con {
  319. margin: 0 80rpx;
  320. white-space: nowrap;
  321. text-overflow: ellipsis;
  322. overflow: hidden;
  323. font-size: 28rpx;
  324. font-weight: bold;
  325. }
  326. /** 评价*/
  327. .cmt-wrap {
  328. background: #fff;
  329. margin-top: 20rpx;
  330. position: relative;
  331. line-height: 48rpx;
  332. }
  333. .cmt-tit {
  334. font-size: 32rpx;
  335. position: relative;
  336. border-bottom: 1px solid #ddd;
  337. padding: 20rpx;
  338. display: flex;
  339. justify-content: space-between;
  340. }
  341. .cmt-t {
  342. width: 300rpx;
  343. font-size: 32rpx;
  344. color: #222222;
  345. font-weight: bold;
  346. }
  347. .cmt-good {
  348. color: #FF4D3A;
  349. font-size: 24rpx;
  350. }
  351. .cmt-count {
  352. position: absolute;
  353. right: 20rpx;
  354. top: 20rpx;
  355. font-size: 24rpx;
  356. color: #666;
  357. }
  358. .cmt-more {
  359. width: 10rpx;
  360. height: 10rpx;
  361. border-top: 2rpx solid #FF4D3A;
  362. border-right: 2rpx solid #FF4D3A;
  363. transform: rotate(45deg);
  364. margin-left: 10rpx;
  365. display: inline-block;
  366. }
  367. .cmt-cont {
  368. padding: 0 20rpx;
  369. }
  370. .cmt-tag {
  371. position: relative;
  372. padding: 14px 3px 0 0;
  373. margin: 0;
  374. border-radius: 8rpx;
  375. }
  376. .cmt-tag text {
  377. margin: 0 6px 10px 0;
  378. background: #F0F0F0;
  379. display: inline-block;
  380. padding: 0 10px;
  381. height: 25px;
  382. border-radius: 3px;
  383. line-height: 25px;
  384. font-size: 12px;
  385. font-family: -apple-system, Helvetica, sans-serif;
  386. color: #666;
  387. }
  388. .cmt-tag text.selected {
  389. color: #fff;
  390. background: #006CE8;
  391. }
  392. .cmt-item {
  393. position: relative;
  394. padding: 10px 0;
  395. }
  396. .cmt-item::after {
  397. content: "";
  398. height: 0;
  399. display: block;
  400. border-bottom: 1px solid #ddd;
  401. position: absolute;
  402. left: 0;
  403. right: 0;
  404. bottom: 0;
  405. border-bottom-color: #e5e5e5;
  406. }
  407. .cmt-user {
  408. line-height: 25px;
  409. margin-bottom: 8px;
  410. font-size: 12px;
  411. }
  412. .cmt-user-info {
  413. display: flex;
  414. align-items: center;
  415. width: 400rpx;
  416. }
  417. .cmt-user .user-img {
  418. width: 25px;
  419. height: 25px;
  420. border-radius: 50%;
  421. vertical-align: middle;
  422. }
  423. .cmt-user .nickname {
  424. margin-left: 10px;
  425. display: inline-block;
  426. color: #333;
  427. max-width: 8.2em;
  428. height: 25px;
  429. line-height: 27px;
  430. }
  431. .cmt-user .stars {
  432. display: flex;
  433. margin-left: 3px;
  434. }
  435. .cmt-user .stars image {
  436. width: 35rpx;
  437. height: 35rpx;
  438. }
  439. .cmt-user .date {
  440. float: right;
  441. color: #999;
  442. margin-left: -60px;
  443. }
  444. .cmt-cnt {
  445. overflow: hidden;
  446. text-overflow: ellipsis;
  447. display: -webkit-box;
  448. -webkit-line-clamp: 3;
  449. -webkit-box-orient: vertical;
  450. position: relative;
  451. line-height: 1.5;
  452. font-size: 14px;
  453. margin: 5px 0;
  454. word-break: break-all;
  455. max-height: 126px;
  456. }
  457. .cmt-attr {
  458. height: 85px;
  459. width: 100%;
  460. white-space: nowrap;
  461. }
  462. .cmt-attr .img-wrap {
  463. width: 85px;
  464. height: 85px;
  465. display: inline-block;
  466. }
  467. .cmt-attr image {
  468. display: inline-block;
  469. width: 80px;
  470. height: 80px;
  471. margin-right: 5px;
  472. margin-bottom: 5px;
  473. border-radius: 2px;
  474. background: #f3f3f3;
  475. }
  476. .cmt-more-v {
  477. text-align: center;
  478. background-color: #fff;
  479. font-size: 12px;
  480. }
  481. .cmt-more-v text {
  482. height: 25px;
  483. line-height: 25px;
  484. font-size: 12px;
  485. text-align: center;
  486. color: #333;
  487. padding: 0px 10px;
  488. margin: 10px 0;
  489. border: 1px solid #ccc;
  490. border-radius: 40px;
  491. display: inline-block;
  492. }
  493. /** 评价弹窗 */
  494. .cmt-popup {
  495. position: fixed;
  496. top: 0;
  497. bottom: 0;
  498. left: 0;
  499. right: 0;
  500. z-index: 5;
  501. background-color: #fff;
  502. padding-bottom: 98rpx;
  503. }
  504. .cmt-popup .cmt-cont {
  505. height: calc(100% - 80rpx);
  506. overflow: auto;
  507. }
  508. .cmt-popup .cmt-cnt {
  509. -webkit-line-clamp: 20;
  510. max-height: 500px;
  511. }
  512. .cmt-reply {
  513. font-size: 14px;
  514. border-top: 1px dashed #ddd;
  515. padding: 5px 0;
  516. }
  517. .cmt-reply .reply-tit {
  518. color: #e43130;
  519. }
  520. .cmt-reply .reply-content {
  521. word-wrap: break-word;
  522. }
  523. .cmt-popup .load-more {
  524. font-size: 14px;
  525. padding: 20px;
  526. text-align: center;
  527. margin-bottom: 10px;
  528. }
  529. .cmt-popup .load-more text {
  530. border: 1px solid #ddd;
  531. padding: 5px 10px;
  532. border-radius: 10px;
  533. color: #666;
  534. }
  535. /** 店铺 */
  536. .shop-box {
  537. margin: 20rpx 0;
  538. background: #fff;
  539. padding: 20rpx;
  540. }
  541. /* .shopbox-head {
  542. padding-bottom: 24rpx;
  543. } */
  544. .shop-logo {
  545. display: inline-block;
  546. width: 80rpx;
  547. height: 80rpx;
  548. background: #fff;
  549. margin-right: 20rpx;
  550. vertical-align: middle;
  551. }
  552. .shop-logo image{
  553. border-radius: 16rpx;
  554. }
  555. .shop-name,
  556. .self-operate {
  557. display: inline-block;
  558. vertical-align: middle;
  559. }
  560. .shop-name {
  561. font-size: 30rpx;
  562. font-weight: bold;
  563. }
  564. .self-operate {
  565. width: 112rpx;
  566. height: 36rpx;
  567. background: #FF4D3A;
  568. border-radius: 8rpx 8rpx 8rpx 8rpx;
  569. font-size: 24rpx;
  570. color: #FFFFFF;
  571. text-align: center;
  572. /* padding: 5rpx 15rpx; */
  573. margin-left: 15rpx;
  574. }
  575. .swiper-box{
  576. padding: 20rpx;
  577. background: #fff;
  578. margin-top: 20rpx;
  579. border-radius: 16rpx;
  580. }
  581. .swiper-box .tab-box{
  582. display: flex;
  583. }
  584. .swiper-box .tab-box .tab{
  585. font-size: 32rpx;
  586. color: #222222;
  587. padding-bottom: 18rpx;
  588. margin-right: 48rpx;
  589. }
  590. .swiper-box .tab-box .tab.active{
  591. position: relative;
  592. font-weight: bold;
  593. font-size: 32rpx;
  594. color: #222222;
  595. }
  596. .swiper-box .tab-box .tab.active::after{
  597. content: '';
  598. display: block;
  599. position: absolute;
  600. left: calc(50% - 20rpx);
  601. bottom: 0;
  602. width: 40rpx;
  603. height: 8rpx;
  604. background: #006CE8;
  605. border-radius: 8rpx 8rpx 8rpx 8rpx;
  606. }
  607. /* 粉丝&商品 */
  608. .shop-situation {
  609. margin: 25rpx 0;
  610. }
  611. .situation-item {
  612. display: inline-block;
  613. width: 49%;
  614. border-right: 1rpx solid #e4e4e4;
  615. text-align: center;
  616. }
  617. .situation-item:last-child {
  618. border: none;
  619. }
  620. .situation-item-num {
  621. font-size: 32rpx;
  622. line-height: 2em;
  623. }
  624. .situation-item-txt {
  625. font-size: 23rpx;
  626. color: #999;
  627. }
  628. /* 收藏店铺&进入店铺 */
  629. .handle-shop-item {
  630. display: inline-block;
  631. width: 48%;
  632. margin-right: 20rpx;
  633. border: 1rpx solid #e4e4e4;
  634. border-radius: 8rpx;
  635. padding: 10rpx 0;
  636. text-align: center;
  637. }
  638. .handle-shop-item:last-child {
  639. margin: 0;
  640. }
  641. .handle-shop-icon {
  642. display: inline-block;
  643. width: 40rpx;
  644. height: 40rpx;
  645. margin-right: 10rpx;
  646. }
  647. .handle-shop-icon>image {
  648. width: 100%;
  649. height: 100%;
  650. vertical-align: middle;
  651. }
  652. .handle-txt {
  653. font-size: 28rpx;
  654. vertical-align: middle;
  655. }
  656. /** 商品详情 */
  657. .prod-detail {
  658. background: #fff;
  659. margin-top: 20rpx;
  660. position: relative;
  661. line-height: 48rpx;
  662. overflow: hidden;
  663. padding: 20rpx 0;
  664. }
  665. rich-text {
  666. width: 100% !important;
  667. }
  668. .det-tit {
  669. width: 300rpx;
  670. }
  671. .detail-tit {
  672. font-size: 32rpx;
  673. position: relative;
  674. border-bottom: 1px solid #ddd;
  675. padding: 20rpx;
  676. }
  677. .prod-detail image {
  678. width: 750rpx !important;
  679. display: block;
  680. }
  681. rich-text image {
  682. width: 100% !important;
  683. }
  684. img {
  685. width: 100% !important;
  686. display: block;
  687. }
  688. /** end 商品详情 */
  689. /** 底部按钮 */
  690. .cart-footer {
  691. position: fixed;
  692. bottom: 0;
  693. left: 0;
  694. width: 100%;
  695. display: flex;
  696. align-items: center;
  697. flex-direction: row nowrap;
  698. height: 110rpx;
  699. z-index: 3;
  700. box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
  701. background: #fff;
  702. }
  703. .cart-footer .btn {
  704. position: relative;
  705. display: flex;
  706. flex-grow: 1;
  707. justify-content: center;
  708. align-items: center;
  709. width: 0;
  710. background-color: #fff;
  711. font-size: 28rpx;
  712. flex-flow: column;
  713. }
  714. .cart-footer .btn.icon {
  715. flex-grow: 0;
  716. flex-shrink: 0;
  717. width: 90rpx;
  718. font-size: 23rpx;
  719. color: #666;
  720. }
  721. .cart-footer .btn.icon image {
  722. width: 54rpx;
  723. height: 54rpx;
  724. }
  725. .cart-footer .btn.cart {
  726. border: 2rpx solid #ddd;
  727. font-weight: bold;
  728. font-size: 28rpx;
  729. color: #006CE8;
  730. margin: 0 12rpx;
  731. text-align: center;
  732. }
  733. .cart-footer .btn.buy {
  734. background: #006CE8;
  735. color: #fff;
  736. margin-right: 12rpx;
  737. font-size: 28rpx;
  738. text-align: center;
  739. }
  740. .cart-radius {
  741. border-radius: 60rpx;
  742. height: 2.8em;
  743. line-height: 2.8em;
  744. }
  745. .cart-footer.gray .btn.cart,
  746. .cart-footer.gray .btn.buy {
  747. display: block;
  748. background: #ddd;
  749. }
  750. .cart-footer .btn .badge {
  751. position: absolute;
  752. top: 3rpx;
  753. left: 55rpx;
  754. display: inline-block;
  755. width: 28rpx;
  756. height: 28rpx;
  757. border-radius: 14rpx;
  758. background-color: #e43130;
  759. text-align: center;
  760. line-height: 28rpx;
  761. font-size: 18rpx;
  762. color: #fff;
  763. }
  764. /* .cart-footer .btn .badge-1 {
  765. width: 36rpx;
  766. } */
  767. .cart-footer .btn .badge-2 {
  768. width: 48rpx;
  769. left: 52rpx;
  770. }
  771. /** end 底部按钮 */
  772. .contact-btn-box{
  773. position: relative;
  774. }
  775. .contact-btn{
  776. position: absolute;
  777. top: 0;
  778. left: 6rpx;
  779. height: 90rpx;
  780. width: 80rpx;
  781. text-align: center;
  782. background-color: transparent;
  783. }
  784. .contact-btn::after{
  785. border: none;
  786. }
  787. /* 积分 底部按钮 */
  788. .ex-integral-foot {
  789. position: fixed;
  790. bottom: 0;
  791. left: 0;
  792. width: 100%;
  793. display: flex;
  794. flex-direction: row nowrap;
  795. color: #fff;
  796. z-index: 4;
  797. box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
  798. }
  799. .ex-integral-btn {
  800. box-sizing: border-box;
  801. width: 100%;
  802. margin: 20rpx;
  803. padding: 1em 0;
  804. background: #e43130;
  805. color: #fff;
  806. text-align: center;
  807. font-size: 30rpx;
  808. line-height: 1em;
  809. border-radius: 8rpx;
  810. }
  811. /** 【拼团】底部按钮 */
  812. .foot-box {
  813. margin-top: 100rpx;
  814. }
  815. .footer {
  816. position: fixed;
  817. bottom: 0;
  818. width: 100%;
  819. box-sizing: border-box;
  820. height: 100rpx;
  821. background: #fff;
  822. /* box-shadow: 10rpx 0 10rpx 0 #f0f0f0; */
  823. display: flex;
  824. align-items: center;
  825. }
  826. .foot-btn {
  827. position: relative;
  828. display: inline-block;
  829. width: 100rpx;
  830. font-size: 23rpx;
  831. color: #666;
  832. text-align: center;
  833. padding-top: 6rpx;
  834. background: #fff;
  835. }
  836. .foot-btn>image {
  837. display: block;
  838. width: 54rpx;
  839. height: 54rpx;
  840. margin: 0 auto;
  841. }
  842. .buy-btn {
  843. display: inline-block;
  844. font-size: 30rpx;
  845. /* height: 100rpx;
  846. line-height: 105rpx; */
  847. vertical-align: top;
  848. width: 34.3%;
  849. color: #fff;
  850. text-align: center;
  851. }
  852. .alone-buy {
  853. background: #fd7d46;
  854. margin: 0 12rpx;
  855. }
  856. .group-buy {
  857. background: #e43130;
  858. margin-right: 12rpx;
  859. }
  860. /* 购物车数量显示 */
  861. .badge {
  862. position: absolute;
  863. top: 10rpx;
  864. left: 50rpx;
  865. display: inline-block;
  866. width: 28rpx;
  867. height: 28rpx;
  868. border-radius: 14rpx;
  869. background-color: #e43130;
  870. text-align: center;
  871. line-height: 28rpx;
  872. font-size: 18rpx;
  873. color: #fff;
  874. }
  875. /* .badge-1 {
  876. width: 36rpx;
  877. } */
  878. .badge-2 {
  879. width: 48rpx;
  880. left: 52rpx;
  881. }
  882. /** end 底部按钮 */
  883. /** 优惠券弹窗 **/
  884. .popup-hide {
  885. position: fixed;
  886. top: 0;
  887. bottom: 0;
  888. left: 0;
  889. right: 0;
  890. z-index: 5;
  891. background-color: rgba(0, 0, 0, 0.3);
  892. }
  893. .popup-box {
  894. position: absolute;
  895. bottom: 0;
  896. width: 100%;
  897. min-height: 375px;
  898. max-height: 475px;
  899. overflow: hidden;
  900. background-color: #fff;
  901. }
  902. .popup-tit {
  903. position: relative;
  904. height: 46px;
  905. line-height: 46px;
  906. padding-left: 10px;
  907. font-size: 16px;
  908. color: #333;
  909. background-color: #f7f7f7;
  910. }
  911. .close {
  912. color: #aaa;
  913. border-radius: 12px;
  914. line-height: 20px;
  915. text-align: center;
  916. height: 20px;
  917. width: 20px;
  918. font-size: 18px;
  919. padding: 1px;
  920. top: 16rpx;
  921. right: 10px;
  922. position: absolute;
  923. }
  924. .close::before {
  925. content: "\2716";
  926. }
  927. .popup-cnt {
  928. max-height: 429px;
  929. overflow: auto;
  930. padding: 0 10px;
  931. }
  932. /** 规格弹窗**/
  933. .pup-sku {
  934. position: fixed;
  935. top: 0;
  936. bottom: 0;
  937. left: 0;
  938. right: 0;
  939. z-index: 6;
  940. background-color: rgba(0, 0, 0, 0.3);
  941. }
  942. .pup-sku-main {
  943. position: absolute;
  944. bottom: 0;
  945. width: 100%;
  946. min-height: 375px;
  947. max-height: 475px;
  948. background-color: #fff;
  949. }
  950. .pup-sku-header {
  951. position: relative;
  952. font-size: 16px;
  953. color: #333;
  954. padding: 20rpx 20rpx;
  955. background-color: #fff;
  956. border-bottom: 1rpx solid #f2f2f2;
  957. padding-top: 35rpx;
  958. }
  959. .pup-sku-img {
  960. display: inline-block;
  961. width: 27%;
  962. height: 180rpx;
  963. vertical-align: middle;
  964. border-radius: 10rpx;
  965. }
  966. .pup-sku-img image {
  967. display: block;
  968. width: 180rpx;
  969. height: 100%;
  970. }
  971. .pup-sku-prod {
  972. display: inline-block;
  973. width: 70%;
  974. vertical-align: middle;
  975. padding-left: 10rpx;
  976. }
  977. .prod-title {
  978. font-size: 28rpx;
  979. display: -webkit-box;
  980. -webkit-line-clamp: 1;
  981. /*设定显示行数*/
  982. -webkit-box-orient: vertical;
  983. word-break: break-all;
  984. overflow: hidden;
  985. text-overflow: ellipsis;
  986. max-width: 100%;
  987. margin: 15rpx 0;
  988. }
  989. .pup-sku-price {
  990. display: inline-block;
  991. height: 1.5em;
  992. line-height: 1.5em;
  993. color: #e43130;
  994. font-size: 26rpx;
  995. }
  996. .group-sku-pri {
  997. display: flex;
  998. align-items: center;
  999. }
  1000. .pup-sku-price-int {
  1001. font-size: 38rpx;
  1002. }
  1003. .pup-sku-prop {
  1004. display: block;
  1005. font-size: 26rpx;
  1006. color: #333;
  1007. line-height: 1.4em;
  1008. padding-right: 10px;
  1009. margin-top: 16rpx;
  1010. display: -webkit-box;
  1011. -webkit-line-clamp: 1;
  1012. /*设定显示行数*/
  1013. -webkit-box-orient: vertical;
  1014. word-break: break-all;
  1015. overflow: hidden;
  1016. text-overflow: ellipsis;
  1017. }
  1018. .pup-sku-prop text:first-child {
  1019. color: #999;
  1020. }
  1021. .pup-sku-body {
  1022. box-sizing: border-box;
  1023. padding-bottom: 100px;
  1024. overflow: auto;
  1025. }
  1026. .pup-sku-area {
  1027. max-height: 480rpx;
  1028. overflow-y: scroll;
  1029. }
  1030. .pup-sku-area .sku-kind {
  1031. font-size: 12px;
  1032. margin: 0 10px;
  1033. height: 40px;
  1034. line-height: 40px;
  1035. color: #000;
  1036. font-weight: bold;
  1037. }
  1038. .pup-sku-area .sku-choose {
  1039. overflow: hidden;
  1040. margin-bottom: 3px;
  1041. }
  1042. .sku-choose-item {
  1043. display: inline-block;
  1044. min-width: 100rpx;
  1045. max-width: 540rpx;
  1046. padding: 0 16rpx;
  1047. overflow: hidden;
  1048. height: 50rpx;
  1049. line-height: 50rpx;
  1050. text-align: center;
  1051. margin-left: 10px;
  1052. margin-bottom: 10px;
  1053. border-radius: 30rpx;
  1054. color: #333;
  1055. background-color: #f7f7f7;
  1056. font-size: 14px;
  1057. border: 1px solid #aaa;
  1058. }
  1059. .sku-choose-item.active {
  1060. background-color: #006CE8;
  1061. color: #fff;
  1062. border: 1px solid #006CE8 !important;
  1063. }
  1064. .sku-choose-item.gray {
  1065. background-color: #f9f9f9;
  1066. color: #ddd;
  1067. }
  1068. .sku-choose-item.dashed {
  1069. border: 1px dashed #ccc;
  1070. }
  1071. .pup-sku-count {
  1072. padding: 0 20rpx;
  1073. font-size: 24rpx;
  1074. margin: 10rpx 0;
  1075. }
  1076. .pup-sku-count .count-name {
  1077. height: 31px;
  1078. line-height: 31px;
  1079. width: 100rpx;
  1080. color: #000;
  1081. font-weight: bold;
  1082. }
  1083. .pup-sku-count .num-wrap {
  1084. position: relative;
  1085. z-index: 0;
  1086. width: 110px;
  1087. float: right;
  1088. vertical-align: middle;
  1089. display: flex;
  1090. }
  1091. .num-wrap .minus,
  1092. .num-wrap .plus {
  1093. position: relative;
  1094. max-width: 30px;
  1095. min-width: 30px;
  1096. height: 30px;
  1097. line-height: 30px;
  1098. background: #f7f7f7;
  1099. text-align: center;
  1100. }
  1101. .num-wrap .minus {
  1102. border-top-left-radius: 3px;
  1103. border-bottom-left-radius: 3px;
  1104. }
  1105. .num-wrap .plus {
  1106. border-top-right-radius: 3px;
  1107. border-bottom-right-radius: 3px;
  1108. }
  1109. .num-wrap .row {
  1110. border-radius: 20px;
  1111. position: absolute;
  1112. top: 50%;
  1113. left: 50%;
  1114. margin-left: -7px;
  1115. margin-top: -1px;
  1116. width: 14px;
  1117. height: 2px;
  1118. background-color: #ccc;
  1119. }
  1120. .num-wrap .col {
  1121. border-radius: 20px;
  1122. position: absolute;
  1123. top: 50%;
  1124. left: 50%;
  1125. margin-left: -1px;
  1126. margin-top: -7px;
  1127. width: 2px;
  1128. height: 14px;
  1129. background-color: #999;
  1130. }
  1131. .pup-sku-count .text-wrap {
  1132. position: relative;
  1133. width: 45px;
  1134. z-index: 0;
  1135. margin: 0 1px;
  1136. }
  1137. .pup-sku-count .text-wrap input {
  1138. height: 30px;
  1139. width: 100%;
  1140. color: #333;
  1141. background: #fff;
  1142. font-size: 12px;
  1143. text-align: center;
  1144. border: none;
  1145. background: #f7f7f7;
  1146. }
  1147. .pup-sku-footer {
  1148. position: fixed;
  1149. bottom: 0;
  1150. left: 0;
  1151. width: 100%;
  1152. display: flex;
  1153. flex-direction: row nowrap;
  1154. height: 110rpx;
  1155. z-index: 6;
  1156. justify-content: center;
  1157. /* box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05); */
  1158. }
  1159. .pup-sku-footer.gray .btn,
  1160. .pup-sku-footer.gray .btn,
  1161. .pup-sku-footer .btn {
  1162. position: relative;
  1163. display: flex;
  1164. flex-grow: 1;
  1165. justify-content: center;
  1166. align-items: center;
  1167. background-color: #fff;
  1168. font-size: 30rpx;
  1169. flex-flow: column;
  1170. border-radius: 60rpx;
  1171. height: 2.8em;
  1172. width: 45%;
  1173. margin: 0 15rpx;
  1174. }
  1175. .pup-sku-footer .btn.cart {
  1176. border: 2rpx solid #ddd;
  1177. color: #006CE8;
  1178. }
  1179. .pup-sku-footer .btn.buy {
  1180. background: #006CE8;
  1181. color: #fff;
  1182. }
  1183. .pup-sku-footer.gray .btn.cart {
  1184. background: #ddd;
  1185. }
  1186. .pup-sku-footer.gray .btn.buy {
  1187. background: #ddd;
  1188. }
  1189. /* 悬浮按钮 */
  1190. .suspension-box {
  1191. position: fixed;
  1192. top: 920rpx;
  1193. right: 40rpx;
  1194. z-index: 2;
  1195. }
  1196. .scroll-top {
  1197. top: 780rpx;
  1198. }
  1199. .suspension-btn {
  1200. display: flex;
  1201. justify-content: center;
  1202. align-items: center;
  1203. text-align: center;
  1204. width: 80rpx;
  1205. height: 80rpx;
  1206. border-radius: 50%;
  1207. background: #fff;
  1208. border: 1rpx solid #ccc;
  1209. margin-top: 30rpx;
  1210. }
  1211. button.btn-type {
  1212. background: #fff;
  1213. padding: 0;
  1214. margin: 0;
  1215. margin-top: 30rpx;
  1216. }
  1217. button.btn-type::after {
  1218. border: 0;
  1219. }
  1220. .suspension-btn image {
  1221. display: block;
  1222. width: 40rpx;
  1223. height: 40rpx;
  1224. }
  1225. /* 赚字浮层 */
  1226. .promo-con .earn {
  1227. background: rgba(230, 55, 58, 0.9);
  1228. box-shadow: 1px 2px 6px rgba(78, 78, 78, 0.4);
  1229. color: #fff;
  1230. border-radius: 50%;
  1231. width: 80rpx;
  1232. height: 80rpx;
  1233. font-size: 32rpx;
  1234. margin: auto;
  1235. text-align: center;
  1236. line-height: 80rpx;
  1237. }
  1238. /* /悬浮按钮 */
  1239. /*分享弹窗 */
  1240. .promo-share {
  1241. position: fixed;
  1242. top: 0;
  1243. left: 0;
  1244. background: rgba(0, 0, 0, 0.7);
  1245. width: 100%;
  1246. height: 100%;
  1247. z-index: 99;
  1248. }
  1249. .promo-tit {
  1250. padding-top: 40rpx;
  1251. font-size: 24rpx;
  1252. text-align: center;
  1253. margin-left: 80rpx;
  1254. }
  1255. .promo-main {
  1256. background: #fff;
  1257. position: absolute;
  1258. bottom: 0rpx;
  1259. width: 100%;
  1260. height: 500rpx;
  1261. z-index: 99;
  1262. }
  1263. .promo-icons-close image {
  1264. width: 45rpx;
  1265. height: 45rpx;
  1266. /* border-radius: 55%; */
  1267. float: right;
  1268. padding-right: 20rpx;
  1269. padding-top: 20rpx;
  1270. }
  1271. .promo-desc {
  1272. margin-left: 73rpx;
  1273. width: 600rpx;
  1274. text-align: center;
  1275. }
  1276. .promo-desc text {
  1277. padding: 20rpx;
  1278. font-size: 20rpx;
  1279. color: #999;
  1280. line-height: 34rpx;
  1281. display: inline-block;
  1282. }
  1283. .promo-icons {
  1284. font-size: 20rpx;
  1285. color: #666;
  1286. display: flex;
  1287. justify-content: space-around;
  1288. padding: 10rpx 150rpx;
  1289. }
  1290. .promo-icons image {
  1291. width: 75rpx;
  1292. height: 75rpx;
  1293. border-radius: 50%;
  1294. }
  1295. .promo-img1 {
  1296. display: flex;
  1297. flex-flow: column;
  1298. align-items: center;
  1299. line-height: 75rpx;
  1300. font-size: 22rpx;
  1301. background: none;
  1302. border: 0;
  1303. margin: 0;
  1304. padding: 0;
  1305. }
  1306. .promo-img1::after {
  1307. border: 0;
  1308. }
  1309. .promo-btn {
  1310. font-size: 28rpx;
  1311. width: 90%;
  1312. height: 80rpx;
  1313. border: 1px #e5e5e5 solid;
  1314. text-align: center;
  1315. line-height: 80rpx;
  1316. margin-left: 40rpx;
  1317. }
  1318. /** 二维码弹窗 */
  1319. .code-popup {
  1320. position: fixed;
  1321. top: 0;
  1322. left: 0;
  1323. background: rgba(0, 0, 0, 0.7);
  1324. width: 100%;
  1325. height: 100%;
  1326. z-index: 9;
  1327. }
  1328. .code-main {
  1329. margin: auto;
  1330. left: 0;
  1331. right: 0;
  1332. top: 0;
  1333. bottom: 0;
  1334. position: fixed;
  1335. width: 500rpx;
  1336. height: 700rpx;
  1337. }
  1338. .close-png {
  1339. width: 50rpx;
  1340. height: 50rpx;
  1341. margin-top: -10rpx;
  1342. }
  1343. .code-v {
  1344. padding: 20rpx;
  1345. border-radius: 6rpx;
  1346. background: #fff;
  1347. }
  1348. .wx-code {
  1349. width: 460rpx;
  1350. height: 460rpx;
  1351. }
  1352. .close-v {
  1353. text-align: right;
  1354. height: 60rpx;
  1355. }
  1356. .code-txt {
  1357. margin-top: 20rpx;
  1358. text-align: center;
  1359. color: #fff;
  1360. font-size: 28rpx;
  1361. background: #3a86b9;
  1362. border-radius: 6rpx;
  1363. height: 80rpx;
  1364. line-height: 80rpx;
  1365. }
  1366. /** 二维码弹窗 end */
  1367. /* 倒计时栏 */
  1368. .countdown-box {
  1369. width: 100%;
  1370. height: 85rpx;
  1371. line-height: 85rpx;
  1372. /* background: #e92121; */
  1373. background: #e43130;
  1374. color: #fff;
  1375. padding: 0 30rpx;
  1376. box-sizing: border-box;
  1377. }
  1378. .second-kill {
  1379. font-size: 33rpx;
  1380. }
  1381. .countdown-content {
  1382. float: right;
  1383. font-size: 28rpx;
  1384. height: 85rpx;
  1385. line-height: 85rpx;
  1386. text-align: left;
  1387. display: flex;
  1388. justify-content: space-between;
  1389. align-items: center;
  1390. }
  1391. .countdown-tips {
  1392. font-size: 24rpx;
  1393. opacity: 0.8;
  1394. margin-right: 10rpx;
  1395. }
  1396. .countdown-time {
  1397. font-size: 24rpx;
  1398. padding-top: 5rpx;
  1399. }
  1400. /* 价格 */
  1401. .goods-price {
  1402. padding: 15rpx 0;
  1403. border-bottom: 1px solid #f3f3f3;
  1404. }
  1405. .current-price {
  1406. display: flex;
  1407. align-items: center;
  1408. color: #e43130;
  1409. font-size: 34rpx;
  1410. /* margin-right: 15rpx; */
  1411. vertical-align: middle;
  1412. }
  1413. .original {
  1414. font-size: 26rpx;
  1415. color: #888888;
  1416. margin-top: 15rpx;
  1417. }
  1418. .original-price {
  1419. font-size: 26rpx;
  1420. text-decoration: line-through;
  1421. color: #999999;
  1422. margin-left: 10rpx;
  1423. }
  1424. /* 拼团价格 */
  1425. .condition {
  1426. font-size: 24rpx;
  1427. border: 1rpx solid red;
  1428. padding: 2rpx 10rpx;
  1429. vertical-align: middle;
  1430. }
  1431. /* 拼团详情 */
  1432. .spell-infor {
  1433. border-top: 20rpx solid #f7f7f7;
  1434. font-size: 28rpx;
  1435. padding: 20rpx;
  1436. background: #fff;
  1437. }
  1438. .spell-infor-title {
  1439. font-size: 26rxp;
  1440. }
  1441. .spell-infor-content {
  1442. position: relative;
  1443. padding-top: 20rpx;
  1444. padding-bottom: 20rpx;
  1445. border-bottom: 1rpx solid #f2f2f2;
  1446. }
  1447. .head-img {
  1448. display: inline-block;
  1449. width: 70rpx;
  1450. height: 70rpx;
  1451. margin-right: 15rpx;
  1452. vertical-align: bottom;
  1453. border-radius: 50%;
  1454. }
  1455. .head-img>image {
  1456. border-radius: 50%;
  1457. }
  1458. .spell-msg {
  1459. display: inline-block;
  1460. vertical-align: top;
  1461. font-size: 24rpx;
  1462. }
  1463. .spell-text {
  1464. padding-top: 10rpx;
  1465. color: #aaa;
  1466. }
  1467. .red-font {
  1468. color: #e43130;
  1469. }
  1470. .join-group {
  1471. position: absolute;
  1472. right: 10rpx;
  1473. bottom: 30rpx;
  1474. color: #e43130;
  1475. border: 1rpx solid #e43130;
  1476. padding: 10rpx 15rpx;
  1477. font-size: 24rpx;
  1478. }
  1479. .rules {
  1480. position: relative;
  1481. font-size: 24rpx;
  1482. padding-top: 20rpx;
  1483. }
  1484. .rules-text02 {
  1485. float: right;
  1486. font-size: 23rpx;
  1487. color: #aaa;
  1488. padding-right: 30rpx;
  1489. }
  1490. .right-arrow {
  1491. position: absolute;
  1492. right: 5rpx;
  1493. top: 20rpx;
  1494. display: inline-block;
  1495. width: 20rpx;
  1496. height: 20rpx;
  1497. }
  1498. .act-price-con {
  1499. border: 1px solid #e4393c;
  1500. margin-left: 20rpx;
  1501. padding: 2rpx 5rpx;
  1502. border-radius: 3rpx;
  1503. }
  1504. /* 列表为空 */
  1505. .empty {
  1506. margin-top: 100rpx;
  1507. text-align: cneter;
  1508. }
  1509. .empty-icon {
  1510. display: block;
  1511. width: 80rpx;
  1512. height: 80rpx;
  1513. margin: 0 auto;
  1514. margin-bottom: 20rpx;
  1515. }
  1516. .empty-icon>image {
  1517. width: 100%;
  1518. height: 100%;
  1519. }
  1520. .empty-text {
  1521. font-size: 28rpx;
  1522. text-align: center;
  1523. color: #999;
  1524. line-height: 2em;
  1525. }
  1526. .text-block{
  1527. display: flex;
  1528. align-items: center;
  1529. justify-content: center;
  1530. margin-top: 28rpx;
  1531. margin-bottom: 20rpx;
  1532. }
  1533. .text-block .icon{
  1534. width: 26rpx;
  1535. height: 26rpx;
  1536. }
  1537. .text-block .title{
  1538. font-weight: bold;
  1539. font-size: 36rpx;
  1540. color: #006CE8;
  1541. padding: 0 12rpx;
  1542. }
  1543. .prod-content {
  1544. text-align: justify;
  1545. display: flex;
  1546. justify-content: space-between;
  1547. }
  1548. .left,
  1549. .right {
  1550. display: inline-block;
  1551. vertical-align: top;
  1552. width: 344rpx;
  1553. }
  1554. .swiper-prod{
  1555. margin-top: 24rpx;
  1556. min-height: 424rpx;
  1557. }
  1558. .swiper-prod.h844{
  1559. min-height: 844rpx;
  1560. }
  1561. .swiper-prod .wx-swiper-dots {
  1562. position: absolute; /* 绝对定位,基于swiper容器 */
  1563. bottom: 0; /* 距离底部20px(垂直位置核心) */
  1564. }
  1565. .swiper-prod .swiper-item{
  1566. display: grid;
  1567. /* 列规则:5列等宽(1fr 代表"剩余空间等份分配") */
  1568. grid-template-columns: repeat(3, 1fr);
  1569. /* 行列间距:10rpx(小程序常用 rpx 适配多端) */
  1570. gap: 20rpx;
  1571. /* 容器内边距:避免网格贴边 */
  1572. align-items: start;
  1573. }
  1574. .swiper-prod .item{
  1575. width: 204rpx;
  1576. border: 2rpx solid #F0F0F0;
  1577. border-radius: 16rpx;
  1578. }
  1579. .swiper-prod .item .item-img{
  1580. width: 100%;
  1581. vertical-align: bottom;
  1582. }
  1583. .swiper-prod .item .item-title{
  1584. font-weight: bold;
  1585. font-size: 24rpx;
  1586. color: #222222;
  1587. text-overflow: ellipsis;
  1588. display: -webkit-box;
  1589. -webkit-box-orient: vertical;
  1590. -webkit-line-clamp: 2;
  1591. overflow: hidden;
  1592. padding: 0 20rpx;
  1593. margin-top: 20rpx;
  1594. }
  1595. .swiper-prod .item .price-box{
  1596. display: flex;
  1597. align-items: center;
  1598. justify-content: space-between;
  1599. margin-right: 8rpx;
  1600. margin-top: 20rpx;
  1601. padding: 0 20rpx;
  1602. }
  1603. .swiper-prod .item .price-box .name-price{
  1604. font-weight: bold;
  1605. font-size: 32rpx;
  1606. color: #FF4D3A;
  1607. }
  1608. .prod-content .item {
  1609. background-color: #fff;
  1610. /* margin-top: 20rpx; */
  1611. margin-bottom: 14rpx;
  1612. display: inline-block;
  1613. width: 344rpx;
  1614. border-radius: 16rpx;
  1615. overflow: hidden;
  1616. padding-bottom: 16rpx;
  1617. position: relative;
  1618. }
  1619. .prod-content .item .sell-out-box{
  1620. position: absolute;
  1621. top: 0;
  1622. left: 0;
  1623. border-radius: 16rpx;
  1624. width: 344rpx;
  1625. height: 100%;
  1626. background: rgba(255,255,255,0.6);
  1627. display: flex;
  1628. align-items: center;
  1629. justify-content: center;
  1630. }
  1631. .prod-content .item .sell-out-text{
  1632. width: 156rpx;
  1633. height: 156rpx;
  1634. line-height: 156rpx;
  1635. border-radius: 50%;
  1636. text-align: center;
  1637. background: rgba(0,0,0,0.6);
  1638. font-size: 28rpx;
  1639. color: #FFFFFF;
  1640. }
  1641. .prod-content .heart {
  1642. display: flex;
  1643. align-items: center;
  1644. justify-content: space-between;
  1645. margin-right: 8rpx;
  1646. margin-top: 20rpx;
  1647. }
  1648. .prod-content .name-price {
  1649. display: flex;
  1650. align-items: center;
  1651. font-weight: 800;
  1652. font-size: 36rpx;
  1653. color: #FF4D3A;
  1654. }
  1655. .prod-content .item-img {
  1656. width: 100%;
  1657. vertical-align: bottom;
  1658. }
  1659. .prod-content .item-title {
  1660. font-weight: bold;
  1661. font-size: 28rpx;
  1662. text-overflow: ellipsis;
  1663. display: -webkit-box;
  1664. -webkit-box-orient: vertical;
  1665. -webkit-line-clamp: 2;
  1666. overflow: hidden;
  1667. font-family: 'PingFang SC-Medium';
  1668. color: #1e1e1e;
  1669. padding: 0 20rpx;
  1670. /* height: 40rpx; */
  1671. line-height: 40rpx;
  1672. /* background-color: turquoise; */
  1673. }
  1674. .prod-content .item .name {
  1675. padding: 0 15rpx;
  1676. margin-top: 20rpx;
  1677. padding-bottom: 10rpx;
  1678. align-items: center;
  1679. font-size: 22rpx;
  1680. font-family: 'PingFang SC-Medium';
  1681. }
  1682. .prod-content .item-title-box {
  1683. display: flex;
  1684. position: relative;
  1685. z-index: 2;
  1686. }
  1687. .tips {
  1688. height: 60rpx;
  1689. line-height: 60rpx;
  1690. text-align: center;
  1691. font-size: 24rpx;
  1692. color: #AAAAAA;
  1693. }
  1694. .loading-box{
  1695. text-align: center;
  1696. line-height: 80rpx;
  1697. height: 80rpx;
  1698. }