convertProdDet.wxss 12 KB

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