prod.wxss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889
  1. page {
  2. background: #f4f4f4;
  3. height: 100%;
  4. }
  5. .container {
  6. height: auto;
  7. padding-bottom: 150rpx;
  8. }
  9. swiper {
  10. height: 750rpx;
  11. width: 100%;
  12. border-bottom: 2rpx solid #f8f8f8;
  13. }
  14. swiper image {
  15. height: 750rpx;
  16. width: 100%;
  17. }
  18. /** 商品信息 */
  19. .prod-info {
  20. padding: 30rpx 30rpx 0 30rpx;
  21. position: relative;
  22. background: #fff;
  23. }
  24. .tit-wrap {
  25. position: relative;
  26. line-height: 40rpx;
  27. padding-right: 104rpx;
  28. }
  29. .prod-tit {
  30. font-size: 32rpx;
  31. color: #333;
  32. padding-right: 20rpx;
  33. }
  34. .tit-wrap .col {
  35. position: absolute;
  36. top: 0;
  37. right: 0;
  38. width: 80rpx;
  39. color: #666;
  40. font-size: 20rpx;
  41. padding-left: 20rpx;
  42. text-align: center;
  43. }
  44. .tit-wrap .col image {
  45. display: block;
  46. margin: auto;
  47. width: 40rpx;
  48. height: 40rpx;
  49. }
  50. .tit-wrap .col::after {
  51. content: "";
  52. display: block;
  53. width: 1px;
  54. height: auto;
  55. background: #f1f1f1;
  56. position: absolute;
  57. top: 0;
  58. bottom: 5px;
  59. left: 0;
  60. }
  61. .sales-p {
  62. background: #fff;
  63. line-height: 40rpx;
  64. color: #999;
  65. font-size: 24rpx;
  66. margin-top: 6rpx;
  67. margin-right: 104rpx;
  68. }
  69. .prod-price {
  70. font-size: 30rpx;
  71. height: 100rpx;
  72. line-height: 100rpx;
  73. }
  74. .price {
  75. color: #eb2444;
  76. font-size: 24rpx;
  77. font-weight: 600;
  78. margin-right: 50rpx;
  79. }
  80. .price-num {
  81. font-size: 46rpx;
  82. font-weight: 400;
  83. }
  84. .sales {
  85. color: #999;
  86. }
  87. .share-icon {
  88. position: absolute;
  89. right: 50rpx;
  90. top: 50rpx;
  91. background: none;
  92. line-height: 40rpx;
  93. border: none;
  94. outline: none;
  95. box-shadow: 0;
  96. padding: 0;
  97. }
  98. .share-icon::after {
  99. border: none;
  100. }
  101. .share-icon image {
  102. width: 60rpx;
  103. height: 60rpx;
  104. }
  105. .share-text {
  106. font-size: 26rpx;
  107. color: #999;
  108. line-height: 30rpx;
  109. }
  110. /** end 商品信息 */
  111. /**优惠券*/
  112. .coupon {
  113. padding: 28rpx 100rpx 14rpx 100rpx;
  114. background: #fff;
  115. position: relative;
  116. margin-top: 20rpx;
  117. }
  118. .coupon .coupon-tit {
  119. position: absolute;
  120. display: inline-block;
  121. width: 60rpx;
  122. left: 20rpx;
  123. font-size: 22rpx;
  124. top: 28rpx;
  125. line-height: 36rpx;
  126. color: #999;
  127. }
  128. .coupon-con .item {
  129. position: relative;
  130. display: inline-block;
  131. vertical-align: top;
  132. padding: 0 18rpx;
  133. background: #eb2444;
  134. height: 36rpx;
  135. line-height: 36rpx;
  136. color: #fff;
  137. font-size: 22rpx;
  138. margin: 0 16rpx 16rpx 0;
  139. font-family: arial;
  140. }
  141. .coupon-con .item:before, .coupon-con .item:after {
  142. content: "";
  143. display: block;
  144. width: 0;
  145. height: 0;
  146. position: absolute;
  147. top: 0;
  148. border: 18rpx solid transparent;
  149. }
  150. .coupon-con .item:before {
  151. left: 0;
  152. border-left: 4rpx solid #fff;
  153. }
  154. .coupon-con .item:after {
  155. right: 0;
  156. border-right: 4rpx solid #fff;
  157. }
  158. .coupon .num {
  159. position: absolute;
  160. right: 80rpx;
  161. width: 80rpx;
  162. top: 28rpx;
  163. text-align: right;
  164. font-size: 24rpx;
  165. color: #999;
  166. line-height: 36rpx;
  167. white-space: nowrap;
  168. overflow: hidden;
  169. text-overflow: ellipsis;
  170. font-family: arial;
  171. }
  172. .more {
  173. position: absolute;
  174. right: 20rpx;
  175. width: 60rpx;
  176. top: 10rpx;
  177. text-align: right;
  178. font-size: 40rpx;
  179. color: #999;
  180. letter-spacing: 1px;
  181. }
  182. /* 已选 */
  183. .sku {
  184. padding: 20rpx;
  185. background: #fff;
  186. margin-top: 20rpx;
  187. position: relative;
  188. line-height: 48rpx;
  189. }
  190. .sku-tit {
  191. position: absolute;
  192. display: inline-block;
  193. width: 60rpx;
  194. left: 20rpx;
  195. font-size: 22rpx;
  196. top: 20rpx;
  197. color: #999;
  198. }
  199. .sku-con {
  200. margin: 0 80rpx;
  201. white-space: nowrap;
  202. text-overflow: ellipsis;
  203. overflow: hidden;
  204. font-size: 28rpx;
  205. font-weight: bold;
  206. }
  207. /** 评价*/
  208. .cmt-wrap {
  209. background: #fff;
  210. margin-top: 20rpx;
  211. position: relative;
  212. line-height: 48rpx;
  213. }
  214. .cmt-tit {
  215. font-size: 32rpx;
  216. position: relative;
  217. border-bottom: 1px solid #ddd;
  218. padding: 20rpx;
  219. }
  220. .cmt-t {
  221. width: 300rpx;
  222. }
  223. .cmt-good {
  224. color: #eb2444;
  225. font-size: 24rpx;
  226. }
  227. .cmt-count {
  228. position: absolute;
  229. right: 20rpx;
  230. top: 20rpx;
  231. font-size: 24rpx;
  232. color: #666;
  233. }
  234. .cmt-more {
  235. width: 20rpx;
  236. height: 20rpx;
  237. border-top: 2rpx solid #999;
  238. border-right: 2rpx solid #999;
  239. transform: rotate(45deg);
  240. margin-left: 10rpx;
  241. display: inline-block;
  242. }
  243. .cmt-cont {
  244. padding: 0 20rpx;
  245. }
  246. .cmt-tag {
  247. position: relative;
  248. padding: 14px 3px 0 0;
  249. margin: 0;
  250. }
  251. .cmt-tag text {
  252. margin: 0 10px 10px 0;
  253. background: #fdf0f0;
  254. display: inline-block;
  255. padding: 0 10px;
  256. height: 25px;
  257. border-radius: 3px;
  258. line-height: 25px;
  259. font-size: 12px;
  260. font-family: -apple-system, Helvetica, sans-serif;
  261. color: #666;
  262. }
  263. .cmt-tag text.selected {
  264. color: #fff;
  265. background: #e93b3d;
  266. }
  267. .cmt-item {
  268. position: relative;
  269. padding: 10px 0;
  270. }
  271. .cmt-item::after {
  272. content: "";
  273. height: 0;
  274. display: block;
  275. border-bottom: 1px solid #ddd;
  276. position: absolute;
  277. left: 0;
  278. right: 0;
  279. bottom: 0;
  280. right: -10px;
  281. border-bottom-color: #e5e5e5;
  282. }
  283. .cmt-user {
  284. line-height: 25px;
  285. margin-bottom: 8px;
  286. font-size: 12px;
  287. }
  288. .cmt-user-info {
  289. display: flex;
  290. align-items: center;
  291. width: 400rpx;
  292. }
  293. .cmt-user .user-img {
  294. width: 25px;
  295. height: 25px;
  296. border-radius: 50%;
  297. vertical-align: middle;
  298. }
  299. .cmt-user .nickname {
  300. margin-left: 10px;
  301. display: inline-block;
  302. color: #333;
  303. max-width: 8.2em;
  304. height: 25px;
  305. line-height: 27px;
  306. }
  307. .cmt-user .stars {
  308. display: flex;
  309. margin-left: 3px;
  310. }
  311. .cmt-user .stars image {
  312. width: 35rpx;
  313. height: 35rpx;
  314. }
  315. .cmt-user .date {
  316. float: right;
  317. color: #999;
  318. margin-left: -60px;
  319. }
  320. .cmt-cnt {
  321. overflow: hidden;
  322. text-overflow: ellipsis;
  323. display: -webkit-box;
  324. -webkit-line-clamp: 3;
  325. -webkit-box-orient: vertical;
  326. position: relative;
  327. line-height: 1.5;
  328. font-size: 14px;
  329. margin: 5px 0;
  330. word-break: break-all;
  331. max-height: 126px;
  332. }
  333. .cmt-attr {
  334. height: 85px;
  335. width: 100%;
  336. white-space: nowrap;
  337. }
  338. .cmt-attr .img-wrap {
  339. width: 85px;
  340. height: 85px;
  341. display: inline-block;
  342. }
  343. .cmt-attr image {
  344. display: inline-block;
  345. width: 80px;
  346. height: 80px;
  347. margin-right: 5px;
  348. margin-bottom: 5px;
  349. border-radius: 2px;
  350. background: #f3f3f3;
  351. }
  352. .cmt-more-v {
  353. text-align: center;
  354. background-color: #fff;
  355. font-size: 12px;
  356. }
  357. .cmt-more-v text {
  358. height: 25px;
  359. line-height: 25px;
  360. font-size: 12px;
  361. text-align: center;
  362. color: #333;
  363. padding: 0px 10px;
  364. margin: 10px 0;
  365. border: 1px solid #ccc;
  366. border-radius: 40px;
  367. display: inline-block;
  368. }
  369. /** 评价弹窗 */
  370. .cmt-popup {
  371. position: fixed;
  372. top: 0;
  373. bottom: 0;
  374. left: 0;
  375. right: 0;
  376. z-index: 998;
  377. background-color: #fff;
  378. padding-bottom: 98rpx;
  379. }
  380. .cmt-popup .cmt-cont {
  381. height: calc(100% - 80rpx);
  382. overflow: auto;
  383. }
  384. .cmt-popup .cmt-cnt {
  385. -webkit-line-clamp: 20;
  386. max-height: 500px;
  387. }
  388. .cmt-reply {
  389. font-size: 14px;
  390. border-top: 1px dashed #ddd;
  391. padding: 5px 0;
  392. }
  393. .cmt-reply .reply-tit {
  394. color: #eb2444;
  395. }
  396. .cmt-popup .load-more {
  397. font-size: 14px;
  398. padding: 20px;
  399. text-align: center;
  400. margin-bottom: 10px;
  401. }
  402. .cmt-popup .load-more text {
  403. border: 1px solid #ddd;
  404. padding: 5px 10px;
  405. border-radius: 10px;
  406. color: #666;
  407. }
  408. /** 商品详情 */
  409. .prod-detail {
  410. background: #fff;
  411. margin-top: 20rpx;
  412. position: relative;
  413. line-height: 48rpx;
  414. }
  415. .det-tit {
  416. width: 300rpx;
  417. }
  418. .detail-tit {
  419. font-size: 32rpx;
  420. position: relative;
  421. border-bottom: 1px solid #ddd;
  422. padding: 20rpx;
  423. }
  424. .prod-detail image {
  425. width: 750rpx !important;
  426. display: block;
  427. }
  428. rich-text image {
  429. width: 100% !important;
  430. }
  431. img {
  432. width: 100% !important;
  433. display: block;
  434. }
  435. /** end 商品详情 */
  436. /** 底部按钮 */
  437. .cart-footer {
  438. position: fixed;
  439. bottom: 0;
  440. left: 0;
  441. width: 100%;
  442. display: flex;
  443. flex-direction: row nowrap;
  444. height: 98rpx;
  445. z-index: 999;
  446. box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
  447. }
  448. .cart-footer .btn {
  449. position: relative;
  450. display: flex;
  451. flex-grow: 1;
  452. justify-content: center;
  453. align-items: center;
  454. width: 0;
  455. background-color: #fff;
  456. font-size: 28rpx;
  457. flex-flow: column;
  458. }
  459. .cart-footer .btn.icon {
  460. flex-grow: 0;
  461. flex-shrink: 0;
  462. width: 125rpx;
  463. font-size: 20rpx;
  464. color: #666;
  465. }
  466. .cart-footer .btn.icon image {
  467. width: 50rpx;
  468. height: 50rpx;
  469. }
  470. .cart-footer .btn.cart {
  471. background: #584e61;
  472. color: #fff;
  473. }
  474. .cart-footer .btn.buy {
  475. background: #eb2444;
  476. color: #fff;
  477. }
  478. .cart-footer.gray .btn.cart, .cart-footer.gray .btn.buy{
  479. background: #ddd;
  480. }
  481. .cart-footer .btn .badge {
  482. position: absolute;
  483. top: 20rpx;
  484. left: 62rpx;
  485. display: inline-block;
  486. width: 28rpx;
  487. height: 28rpx;
  488. border-radius: 14rpx;
  489. background-color: #eb2444;
  490. text-align: center;
  491. line-height: 28rpx;
  492. font-size: 18rpx;
  493. color: #fff;
  494. }
  495. .cart-footer .btn .badge-1 {
  496. width: 36rpx;
  497. }
  498. .cart-footer .btn .badge-2 {
  499. width: 48rpx;
  500. left: 52rpx;
  501. }
  502. /** end 底部按钮 */
  503. /** 优惠券弹窗 **/
  504. .popup-hide {
  505. position: fixed;
  506. top: 0;
  507. bottom: 0;
  508. left: 0;
  509. right: 0;
  510. z-index: 999;
  511. background-color: rgba(0, 0, 0, 0.3);
  512. }
  513. .popup-box {
  514. position: absolute;
  515. bottom: 0;
  516. width: 100%;
  517. min-height: 375px;
  518. max-height: 475px;
  519. overflow: hidden;
  520. background-color: #fff;
  521. }
  522. .popup-tit {
  523. position: relative;
  524. height: 46px;
  525. line-height: 46px;
  526. padding-left: 10px;
  527. font-size: 16px;
  528. color: #333;
  529. background-color: #f7f7f7;
  530. }
  531. .close {
  532. color: #aaa;
  533. border-radius: 12px;
  534. line-height: 20px;
  535. text-align: center;
  536. height: 20px;
  537. width: 20px;
  538. font-size: 18px;
  539. padding: 1px;
  540. top: 10px;
  541. right: 10px;
  542. position: absolute;
  543. }
  544. .close::before {
  545. content: "\2716";
  546. }
  547. .popup-cnt {
  548. max-height: 429px;
  549. overflow: auto;
  550. padding: 0 10px;
  551. }
  552. /** 规格弹窗**/
  553. .pup-sku {
  554. position: fixed;
  555. top: 0;
  556. bottom: 0;
  557. left: 0;
  558. right: 0;
  559. z-index: 999;
  560. background-color: rgba(0, 0, 0, 0.3);
  561. }
  562. .pup-sku-main {
  563. position: absolute;
  564. bottom: 0;
  565. width: 100%;
  566. min-height: 375px;
  567. max-height: 475px;
  568. background-color: #fff;
  569. }
  570. .pup-sku-header {
  571. position: relative;
  572. line-height: 46px;
  573. padding-left: 10px;
  574. font-size: 16px;
  575. color: #333;
  576. height: 70px;
  577. padding: 0 0 10px 110px;
  578. background-color: #fff;
  579. }
  580. .pup-sku-img {
  581. position: absolute;
  582. left: 10px;
  583. top: -20px;
  584. border-radius: 2px;
  585. width: 90px;
  586. height: 90px;
  587. border: 0 none;
  588. vertical-align: top;
  589. }
  590. .pup-sku-price {
  591. display: inline-block;
  592. height: 40px;
  593. line-height: 40px;
  594. color: #e4393c;
  595. font-size: 10px;
  596. }
  597. .pup-sku-price-int {
  598. font-size: 16px;
  599. }
  600. .pup-sku-prop {
  601. word-break: break-all;
  602. font-size: 12px;
  603. color: #333;
  604. line-height: 1.4em;
  605. padding-right: 10px;
  606. overflow: hidden;
  607. text-overflow: ellipsis;
  608. display: -webkit-box;
  609. -webkit-line-clamp: 2;
  610. -webkit-box-orient: vertical;
  611. }
  612. .pup-sku-prop text {
  613. color: #999;
  614. margin-right: 5px;
  615. }
  616. .pup-sku-body {
  617. box-sizing: border-box;
  618. max-height: 379px;
  619. padding-bottom: 100px;
  620. overflow: auto;
  621. }
  622. .pup-sku-area .sku-kind {
  623. font-size: 12px;
  624. color: #999;
  625. margin: 0 10px;
  626. height: 40px;
  627. line-height: 40px;
  628. }
  629. .pup-sku-area .sku-choose {
  630. overflow: hidden;
  631. margin-bottom: 3px;
  632. }
  633. .sku-choose-item {
  634. display: inline-block;
  635. padding: 0 10px;
  636. min-width: 20px;
  637. max-width: 270px;
  638. overflow: hidden;
  639. height: 30px;
  640. line-height: 30px;
  641. text-align: center;
  642. margin-left: 10px;
  643. margin-bottom: 10px;
  644. border-radius: 4px;
  645. color: #333;
  646. background-color: #f7f7f7;
  647. font-size: 14px;
  648. border:1px solid #aaa;
  649. }
  650. .sku-choose-item.active {
  651. background-color: #eb2444;
  652. border:1px solid #eb2444 !important;
  653. color: #fff;
  654. }
  655. .sku-choose-item.dashed {
  656. border:1px dashed #aaa;
  657. }
  658. .pup-sku-count {
  659. padding: 0 10px 13px;
  660. font-size: 12px;
  661. }
  662. .pup-sku-count .count-name {
  663. color: #999;
  664. height: 31px;
  665. line-height: 31px;
  666. width: 100rpx;
  667. }
  668. .pup-sku-count .num-wrap {
  669. position: relative;
  670. z-index: 0;
  671. width: 110px;
  672. float: right;
  673. vertical-align: middle;
  674. display: flex;
  675. }
  676. .num-wrap .minus, .num-wrap .plus {
  677. position: relative;
  678. max-width: 30px;
  679. min-width: 30px;
  680. height: 30px;
  681. line-height: 30px;
  682. background: #f7f7f7;
  683. text-align: center;
  684. }
  685. .num-wrap .minus {
  686. border-top-left-radius: 3px;
  687. border-bottom-left-radius: 3px;
  688. }
  689. .num-wrap .plus {
  690. border-top-right-radius: 3px;
  691. border-bottom-right-radius: 3px;
  692. }
  693. .num-wrap .row {
  694. border-radius: 20px;
  695. position: absolute;
  696. top: 50%;
  697. left: 50%;
  698. margin-left: -7px;
  699. margin-top: -1px;
  700. width: 14px;
  701. height: 2px;
  702. background-color: #ccc;
  703. }
  704. .num-wrap .col {
  705. border-radius: 20px;
  706. position: absolute;
  707. top: 50%;
  708. left: 50%;
  709. margin-left: -1px;
  710. margin-top: -7px;
  711. width: 2px;
  712. height: 14px;
  713. background-color: #999;
  714. }
  715. .pup-sku-count .text-wrap {
  716. position: relative;
  717. width: 45px;
  718. z-index: 0;
  719. margin: 0 1px;
  720. }
  721. .pup-sku-count .text-wrap input {
  722. height: 30px;
  723. width: 100%;
  724. color: #333;
  725. background: #fff;
  726. font-size: 12px;
  727. text-align: center;
  728. border: none;
  729. background: #f7f7f7;
  730. }
  731. .pup-sku-footer {
  732. position: fixed;
  733. bottom: 0;
  734. left: 0;
  735. width: 100%;
  736. display: flex;
  737. flex-direction: row nowrap;
  738. height: 98rpx;
  739. z-index: 999;
  740. box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
  741. }
  742. .pup-sku-footer .btn {
  743. position: relative;
  744. display: flex;
  745. flex-grow: 1;
  746. justify-content: center;
  747. align-items: center;
  748. width: 0;
  749. background-color: #fff;
  750. font-size: 28rpx;
  751. flex-flow: column;
  752. }
  753. .pup-sku-footer .btn.cart {
  754. background: #584e61;
  755. color: #fff;
  756. }
  757. .pup-sku-footer .btn.buy {
  758. background: #eb2444;
  759. color: #fff;
  760. }
  761. .pup-sku-footer.gray .btn.cart, .pup-sku-footer.gray .btn.buy{
  762. background: #ddd;
  763. }