shop.wxss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. /* 页面左右间距 */
  28. /* 文字尺寸 */
  29. /*文字颜色*/
  30. /* 边框颜色 */
  31. /* 图片加载中颜色 */
  32. /* 行为相关颜色 */
  33. page {
  34. /* background: $page-color-base; */
  35. padding-bottom: 160rpx;
  36. }
  37. .icon-you {
  38. font-size: 30rpx;
  39. color: #888;
  40. }
  41. .carousel {
  42. height: 722rpx;
  43. position: relative;
  44. }
  45. .carousel swiper {
  46. height: 100%;
  47. }
  48. .carousel .image-wrapper {
  49. width: 100%;
  50. height: 100%;
  51. }
  52. .carousel .swiper-item {
  53. display: -webkit-box;
  54. display: -webkit-flex;
  55. display: flex;
  56. -webkit-box-pack: center;
  57. -webkit-justify-content: center;
  58. justify-content: center;
  59. -webkit-align-content: center;
  60. align-content: center;
  61. height: 750rpx;
  62. overflow: hidden;
  63. }
  64. .carousel .swiper-item image {
  65. width: 100%;
  66. height: 100%;
  67. }
  68. .titleLayout {
  69. display: -webkit-box;
  70. display: -webkit-flex;
  71. display: flex;
  72. -webkit-box-pack: justify;
  73. -webkit-justify-content: space-between;
  74. justify-content: space-between;
  75. padding-bottom: 20rpx;
  76. }
  77. /* 标题简介 */
  78. .introduce-section {
  79. background: #fff;
  80. padding: 20rpx 30rpx;
  81. }
  82. .introduce-section .title {
  83. font-size: 36rpx;
  84. color: #303133;
  85. height: 50rpx;
  86. line-height: 50rpx;
  87. width: 70%;
  88. white-space: nowrap;
  89. overflow: hidden;
  90. text-overflow: ellipsis;
  91. }
  92. .introduce-section .titleRight {
  93. border-left: 1px solid #F5F5F5;
  94. padding-left: 32rpx;
  95. }
  96. .introduce-section .price-box {
  97. display: -webkit-box;
  98. display: -webkit-flex;
  99. display: flex;
  100. -webkit-box-align: baseline;
  101. -webkit-align-items: baseline;
  102. align-items: baseline;
  103. height: 64rpx;
  104. padding: 10rpx 0;
  105. font-size: 26rpx;
  106. color: #fa436a;
  107. }
  108. .introduce-section .price {
  109. font-size: 34rpx;
  110. }
  111. .introduce-section .m-price {
  112. margin: 0 12rpx;
  113. color: #909399;
  114. text-decoration: line-through;
  115. }
  116. .introduce-section .coupon-tip {
  117. -webkit-box-align: center;
  118. -webkit-align-items: center;
  119. align-items: center;
  120. padding: 4rpx 10rpx;
  121. background: #fa436a;
  122. font-size: 24rpx;
  123. color: #fff;
  124. border-radius: 6rpx;
  125. line-height: 1;
  126. -webkit-transform: translateY(-4rpx);
  127. transform: translateY(-4rpx);
  128. }
  129. .introduce-section .bot-row {
  130. display: -webkit-box;
  131. display: -webkit-flex;
  132. display: flex;
  133. -webkit-box-align: center;
  134. -webkit-align-items: center;
  135. align-items: center;
  136. height: 50rpx;
  137. font-size: 24rpx;
  138. color: #909399;
  139. }
  140. .introduce-section .bot-row text {
  141. -webkit-box-flex: 1;
  142. -webkit-flex: 1;
  143. flex: 1;
  144. }
  145. /* 分享 */
  146. .share-section {
  147. display: -webkit-box;
  148. display: -webkit-flex;
  149. display: flex;
  150. -webkit-box-align: center;
  151. -webkit-align-items: center;
  152. align-items: center;
  153. color: #606266;
  154. background: -webkit-linear-gradient(left, #fdf5f6, #fbebf6);
  155. background: linear-gradient(left, #fdf5f6, #fbebf6);
  156. padding: 12rpx 30rpx;
  157. }
  158. .share-section .share-icon {
  159. display: -webkit-box;
  160. display: -webkit-flex;
  161. display: flex;
  162. -webkit-box-align: center;
  163. -webkit-align-items: center;
  164. align-items: center;
  165. width: 70rpx;
  166. height: 30rpx;
  167. line-height: 1;
  168. border: 1px solid #fa436a;
  169. border-radius: 4rpx;
  170. position: relative;
  171. overflow: hidden;
  172. font-size: 22rpx;
  173. color: #fa436a;
  174. }
  175. .share-section .share-icon:after {
  176. content: '';
  177. width: 50rpx;
  178. height: 50rpx;
  179. border-radius: 50%;
  180. left: -20rpx;
  181. top: -12rpx;
  182. position: absolute;
  183. background: #fa436a;
  184. }
  185. .share-section .icon-xingxing {
  186. position: relative;
  187. z-index: 1;
  188. font-size: 24rpx;
  189. margin-left: 2rpx;
  190. margin-right: 10rpx;
  191. color: #fff;
  192. line-height: 1;
  193. }
  194. .share-section .tit {
  195. font-size: 28rpx;
  196. margin-left: 10rpx;
  197. }
  198. .share-section .icon-bangzhu1 {
  199. padding: 10rpx;
  200. font-size: 30rpx;
  201. line-height: 1;
  202. }
  203. .share-section .share-btn {
  204. -webkit-box-flex: 1;
  205. -webkit-flex: 1;
  206. flex: 1;
  207. text-align: right;
  208. font-size: 24rpx;
  209. color: #fa436a;
  210. }
  211. .share-section .icon-you {
  212. font-size: 24rpx;
  213. margin-left: 4rpx;
  214. color: #fa436a;
  215. }
  216. .c-list {
  217. font-size: 26rpx;
  218. color: #606266;
  219. background: #fff;
  220. border-top: 20rpx solid #F5F5F5;
  221. border-bottom: 20rpx solid #F5F5F5;
  222. }
  223. .c-list .c-row {
  224. display: -webkit-box;
  225. display: -webkit-flex;
  226. display: flex;
  227. -webkit-box-align: center;
  228. -webkit-align-items: center;
  229. align-items: center;
  230. padding: 20rpx 30rpx;
  231. position: relative;
  232. }
  233. .c-list .tit {
  234. width: 140rpx;
  235. }
  236. .c-list .con {
  237. -webkit-box-flex: 1;
  238. -webkit-flex: 1;
  239. flex: 1;
  240. color: #303133;
  241. }
  242. .c-list .con .selected-text {
  243. margin-right: 10rpx;
  244. }
  245. .c-list .bz-list {
  246. height: 40rpx;
  247. font-size: 26rpx;
  248. color: #303133;
  249. }
  250. .c-list .bz-list text {
  251. display: inline-block;
  252. margin-right: 30rpx;
  253. }
  254. .c-list .con-list {
  255. -webkit-box-flex: 1;
  256. -webkit-flex: 1;
  257. flex: 1;
  258. display: -webkit-box;
  259. display: -webkit-flex;
  260. display: flex;
  261. -webkit-box-orient: vertical;
  262. -webkit-box-direction: normal;
  263. -webkit-flex-direction: column;
  264. flex-direction: column;
  265. color: #303133;
  266. line-height: 40rpx;
  267. }
  268. .c-list .red {
  269. color: #fa436a;
  270. }
  271. /* 评价 */
  272. .eva-section {
  273. display: -webkit-box;
  274. display: -webkit-flex;
  275. display: flex;
  276. -webkit-box-orient: vertical;
  277. -webkit-box-direction: normal;
  278. -webkit-flex-direction: column;
  279. flex-direction: column;
  280. padding: 20rpx 30rpx;
  281. background: #fff;
  282. margin-top: 16rpx;
  283. }
  284. .eva-section .e-header {
  285. display: -webkit-box;
  286. display: -webkit-flex;
  287. display: flex;
  288. -webkit-box-align: center;
  289. -webkit-align-items: center;
  290. align-items: center;
  291. height: 70rpx;
  292. font-size: 26rpx;
  293. color: #909399;
  294. }
  295. .eva-section .e-header .tit {
  296. font-size: 30rpx;
  297. color: #303133;
  298. margin-right: 4rpx;
  299. }
  300. .eva-section .e-header .tip {
  301. -webkit-box-flex: 1;
  302. -webkit-flex: 1;
  303. flex: 1;
  304. text-align: right;
  305. }
  306. .eva-section .e-header .icon-you {
  307. margin-left: 10rpx;
  308. }
  309. .eva-box {
  310. display: -webkit-box;
  311. display: -webkit-flex;
  312. display: flex;
  313. padding: 20rpx 0;
  314. }
  315. .eva-box .portrait {
  316. -webkit-flex-shrink: 0;
  317. flex-shrink: 0;
  318. width: 80rpx;
  319. height: 80rpx;
  320. border-radius: 100px;
  321. }
  322. .eva-box .right {
  323. -webkit-box-flex: 1;
  324. -webkit-flex: 1;
  325. flex: 1;
  326. display: -webkit-box;
  327. display: -webkit-flex;
  328. display: flex;
  329. -webkit-box-orient: vertical;
  330. -webkit-box-direction: normal;
  331. -webkit-flex-direction: column;
  332. flex-direction: column;
  333. font-size: 28rpx;
  334. color: #606266;
  335. padding-left: 26rpx;
  336. }
  337. .eva-box .right .con {
  338. font-size: 28rpx;
  339. color: #303133;
  340. padding: 20rpx 0;
  341. }
  342. .eva-box .right .bot {
  343. display: -webkit-box;
  344. display: -webkit-flex;
  345. display: flex;
  346. -webkit-box-pack: justify;
  347. -webkit-justify-content: space-between;
  348. justify-content: space-between;
  349. font-size: 24rpx;
  350. color: #909399;
  351. }
  352. /* 详情 */
  353. .detail-desc {
  354. background: #fff;
  355. margin-top: 16rpx;
  356. }
  357. .detail-desc .d-header {
  358. display: -webkit-box;
  359. display: -webkit-flex;
  360. display: flex;
  361. -webkit-box-pack: center;
  362. -webkit-justify-content: center;
  363. justify-content: center;
  364. -webkit-box-align: center;
  365. -webkit-align-items: center;
  366. align-items: center;
  367. height: 80rpx;
  368. font-size: 30rpx;
  369. color: #303133;
  370. position: relative;
  371. }
  372. .detail-desc .d-header text {
  373. padding: 0 20rpx;
  374. background: #fff;
  375. position: relative;
  376. z-index: 1;
  377. }
  378. .detail-desc .d-header:after {
  379. position: absolute;
  380. left: 50%;
  381. top: 50%;
  382. -webkit-transform: translateX(-50%);
  383. transform: translateX(-50%);
  384. width: 300rpx;
  385. height: 0;
  386. content: '';
  387. border-bottom: 1px solid #ccc;
  388. }
  389. /* 规格选择弹窗 */
  390. .attr-content {
  391. padding: 10rpx 30rpx;
  392. }
  393. .attr-content .a-t {
  394. display: -webkit-box;
  395. display: -webkit-flex;
  396. display: flex;
  397. }
  398. .attr-content .a-t image {
  399. width: 170rpx;
  400. height: 170rpx;
  401. -webkit-flex-shrink: 0;
  402. flex-shrink: 0;
  403. margin-top: -40rpx;
  404. border-radius: 8rpx;
  405. }
  406. .attr-content .a-t .right {
  407. display: -webkit-box;
  408. display: -webkit-flex;
  409. display: flex;
  410. -webkit-box-orient: vertical;
  411. -webkit-box-direction: normal;
  412. -webkit-flex-direction: column;
  413. flex-direction: column;
  414. padding-left: 24rpx;
  415. font-size: 26rpx;
  416. color: #606266;
  417. line-height: 42rpx;
  418. -webkit-justify-content: space-around;
  419. justify-content: space-around;
  420. }
  421. .attr-content .a-t .right .price {
  422. font-size: 32rpx;
  423. color: #fa436a;
  424. margin-bottom: 10rpx;
  425. }
  426. .attr-content .a-t .right .selected-text {
  427. margin-right: 10rpx;
  428. }
  429. .attr-content .attr-list {
  430. display: -webkit-box;
  431. display: -webkit-flex;
  432. display: flex;
  433. -webkit-box-orient: vertical;
  434. -webkit-box-direction: normal;
  435. -webkit-flex-direction: column;
  436. flex-direction: column;
  437. font-size: 30rpx;
  438. color: #606266;
  439. padding-top: 30rpx;
  440. padding-left: 10rpx;
  441. }
  442. .attr-content .item-list {
  443. padding: 20rpx 0 0;
  444. display: -webkit-box;
  445. display: -webkit-flex;
  446. display: flex;
  447. -webkit-flex-wrap: wrap;
  448. flex-wrap: wrap;
  449. }
  450. .attr-content .item-list text {
  451. display: -webkit-box;
  452. display: -webkit-flex;
  453. display: flex;
  454. -webkit-box-align: center;
  455. -webkit-align-items: center;
  456. align-items: center;
  457. -webkit-box-pack: center;
  458. -webkit-justify-content: center;
  459. justify-content: center;
  460. background: #eee;
  461. margin-right: 20rpx;
  462. margin-bottom: 20rpx;
  463. border-radius: 100rpx;
  464. min-width: 60rpx;
  465. height: 60rpx;
  466. padding: 0 20rpx;
  467. font-size: 28rpx;
  468. color: #303133;
  469. }
  470. .attr-content .item-list .selected {
  471. background: #fbebee;
  472. color: #fa436a;
  473. }
  474. /* 弹出层 */
  475. .popup {
  476. position: fixed;
  477. left: 0;
  478. top: 0;
  479. right: 0;
  480. bottom: 100rpx;
  481. z-index: 99;
  482. }
  483. .popup.show {
  484. display: block;
  485. }
  486. .popup.show .mask {
  487. -webkit-animation: showPopup 0.2s linear both;
  488. animation: showPopup 0.2s linear both;
  489. }
  490. .popup.show .layer {
  491. -webkit-animation: showLayer 0.2s linear both;
  492. animation: showLayer 0.2s linear both;
  493. }
  494. .popup.hide .mask {
  495. -webkit-animation: hidePopup 0.2s linear both;
  496. animation: hidePopup 0.2s linear both;
  497. }
  498. .popup.hide .layer {
  499. -webkit-animation: hideLayer 0.2s linear both;
  500. animation: hideLayer 0.2s linear both;
  501. }
  502. .popup.none {
  503. display: none;
  504. }
  505. .popup .mask {
  506. position: fixed;
  507. top: 0;
  508. width: 100%;
  509. height: 90%;
  510. z-index: 1;
  511. background-color: rgba(0, 0, 0, 0.4);
  512. }
  513. .popup .layer {
  514. position: fixed;
  515. z-index: 99;
  516. bottom: 100rpx;
  517. width: 100%;
  518. min-height: 40vh;
  519. border-radius: 10rpx 10rpx 0 0;
  520. background-color: #fff;
  521. }
  522. .popup .layer .btn {
  523. height: 66rpx;
  524. line-height: 66rpx;
  525. border-radius: 100rpx;
  526. background: #fa436a;
  527. font-size: 30rpx;
  528. color: #fff;
  529. margin: 30rpx auto 20rpx;
  530. }
  531. @-webkit-keyframes showPopup {
  532. 0% {
  533. opacity: 0;
  534. }
  535. 100% {
  536. opacity: 1;
  537. }
  538. }
  539. @keyframes showPopup {
  540. 0% {
  541. opacity: 0;
  542. }
  543. 100% {
  544. opacity: 1;
  545. }
  546. }
  547. @-webkit-keyframes hidePopup {
  548. 0% {
  549. opacity: 1;
  550. }
  551. 90% {
  552. opacity: 0;
  553. }
  554. }
  555. @keyframes hidePopup {
  556. 0% {
  557. opacity: 1;
  558. }
  559. 90% {
  560. opacity: 0;
  561. }
  562. }
  563. @-webkit-keyframes showLayer {
  564. 0% {
  565. -webkit-transform: translateY(120%);
  566. transform: translateY(120%);
  567. }
  568. 100% {
  569. -webkit-transform: translateY(0%);
  570. transform: translateY(0%);
  571. }
  572. }
  573. @keyframes showLayer {
  574. 0% {
  575. -webkit-transform: translateY(120%);
  576. transform: translateY(120%);
  577. }
  578. 100% {
  579. -webkit-transform: translateY(0%);
  580. transform: translateY(0%);
  581. }
  582. }
  583. @-webkit-keyframes hideLayer {
  584. 0% {
  585. -webkit-transform: translateY(0);
  586. transform: translateY(0);
  587. }
  588. 100% {
  589. -webkit-transform: translateY(120%);
  590. transform: translateY(120%);
  591. }
  592. }
  593. @keyframes hideLayer {
  594. 0% {
  595. -webkit-transform: translateY(0);
  596. transform: translateY(0);
  597. }
  598. 100% {
  599. -webkit-transform: translateY(120%);
  600. transform: translateY(120%);
  601. }
  602. }
  603. .van-sticky {
  604. /* z-index: 0!important; */
  605. }
  606. /* 底部操作菜单 */
  607. .page-bottom {
  608. position: fixed;
  609. left: 0;
  610. bottom: 0;
  611. display: -webkit-box;
  612. display: -webkit-flex;
  613. display: flex;
  614. -webkit-box-pack: center;
  615. -webkit-justify-content: center;
  616. justify-content: center;
  617. -webkit-box-align: center;
  618. -webkit-align-items: center;
  619. align-items: center;
  620. width: 100%;
  621. height: 100rpx;
  622. z-index: 99;
  623. background: rgba(255, 255, 255, 0.9);
  624. }
  625. .page-bottom .p-b-btn {
  626. display: -webkit-box;
  627. display: -webkit-flex;
  628. display: flex;
  629. -webkit-box-orient: vertical;
  630. -webkit-box-direction: normal;
  631. -webkit-flex-direction: column;
  632. flex-direction: column;
  633. -webkit-box-align: center;
  634. -webkit-align-items: center;
  635. align-items: center;
  636. -webkit-box-pack: center;
  637. -webkit-justify-content: center;
  638. justify-content: center;
  639. font-size: 24rpx;
  640. color: #606266;
  641. width: 96rpx;
  642. height: 80rpx;
  643. }
  644. .page-bottom .p-b-btn .yticon {
  645. font-size: 40rpx;
  646. line-height: 48rpx;
  647. color: #909399;
  648. }
  649. .page-bottom .p-b-btn.active, .page-bottom .p-b-btn.active .yticon {
  650. color: #fa436a;
  651. }
  652. .page-bottom .p-b-btn .icon-fenxiang2 {
  653. font-size: 42rpx;
  654. -webkit-transform: translateY(-2rpx);
  655. transform: translateY(-2rpx);
  656. }
  657. .page-bottom .p-b-btn .icon-shoucang {
  658. font-size: 46rpx;
  659. }
  660. .page-bottom .action-btn-group {
  661. display: -webkit-box;
  662. display: -webkit-flex;
  663. display: flex;
  664. height: 76rpx;
  665. border-radius: 100px;
  666. overflow: hidden;
  667. box-shadow: 0 20rpx 40rpx -16rpx #fa436a;
  668. box-shadow: 1px 2px 5px rgba(219, 63, 96, 0.4);
  669. background: -webkit-linear-gradient(left, #ffac30, #fa436a, #F56C6C);
  670. background: linear-gradient(to right, #ffac30, #fa436a, #F56C6C);
  671. margin-left: 20rpx;
  672. position: relative;
  673. }
  674. .page-bottom .action-btn-group:after {
  675. content: '';
  676. position: absolute;
  677. top: 50%;
  678. right: 50%;
  679. -webkit-transform: translateY(-50%);
  680. transform: translateY(-50%);
  681. height: 28rpx;
  682. width: 0;
  683. border-right: 1px solid rgba(255, 255, 255, 0.5);
  684. }
  685. .page-bottom .action-btn-group .action-btn {
  686. display: -webkit-box;
  687. display: -webkit-flex;
  688. display: flex;
  689. -webkit-box-align: center;
  690. -webkit-align-items: center;
  691. align-items: center;
  692. -webkit-box-pack: center;
  693. -webkit-justify-content: center;
  694. justify-content: center;
  695. width: 180rpx;
  696. height: 100%;
  697. font-size: 28rpx;
  698. padding: 0;
  699. border-radius: 0;
  700. background: transparent;
  701. }