shop.wxss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  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. width: 100%;
  357. }
  358. .detail-desc .d-header {
  359. display: -webkit-box;
  360. display: -webkit-flex;
  361. display: flex;
  362. -webkit-box-pack: center;
  363. -webkit-justify-content: center;
  364. justify-content: center;
  365. -webkit-box-align: center;
  366. -webkit-align-items: center;
  367. align-items: center;
  368. height: 80rpx;
  369. font-size: 30rpx;
  370. color: #303133;
  371. position: relative;
  372. }
  373. .detail-desc .d-header text {
  374. padding: 0 20rpx;
  375. background: #fff;
  376. position: relative;
  377. z-index: 1;
  378. }
  379. .detail-desc .d-header:after {
  380. position: absolute;
  381. left: 50%;
  382. top: 50%;
  383. -webkit-transform: translateX(-50%);
  384. transform: translateX(-50%);
  385. width: 300rpx;
  386. height: 0;
  387. content: '';
  388. border-bottom: 1px solid #ccc;
  389. }
  390. /* 规格选择弹窗 */
  391. .attr-content {
  392. padding: 10rpx 30rpx;
  393. }
  394. .attr-content .a-t {
  395. display: -webkit-box;
  396. display: -webkit-flex;
  397. display: flex;
  398. }
  399. .attr-content .a-t image {
  400. width: 170rpx;
  401. height: 170rpx;
  402. -webkit-flex-shrink: 0;
  403. flex-shrink: 0;
  404. margin-top: -40rpx;
  405. border-radius: 8rpx;
  406. }
  407. .attr-content .a-t .right {
  408. display: -webkit-box;
  409. display: -webkit-flex;
  410. display: flex;
  411. -webkit-box-orient: vertical;
  412. -webkit-box-direction: normal;
  413. -webkit-flex-direction: column;
  414. flex-direction: column;
  415. padding-left: 24rpx;
  416. font-size: 26rpx;
  417. color: #606266;
  418. line-height: 42rpx;
  419. -webkit-justify-content: space-around;
  420. justify-content: space-around;
  421. }
  422. .attr-content .a-t .right .price {
  423. font-size: 32rpx;
  424. color: #fa436a;
  425. margin-bottom: 10rpx;
  426. }
  427. .attr-content .a-t .right .selected-text {
  428. margin-right: 10rpx;
  429. }
  430. .attr-content .attr-list {
  431. display: -webkit-box;
  432. display: -webkit-flex;
  433. display: flex;
  434. -webkit-box-orient: vertical;
  435. -webkit-box-direction: normal;
  436. -webkit-flex-direction: column;
  437. flex-direction: column;
  438. font-size: 30rpx;
  439. color: #606266;
  440. padding-top: 30rpx;
  441. padding-left: 10rpx;
  442. }
  443. .attr-content .item-list {
  444. padding: 20rpx 0 0;
  445. display: -webkit-box;
  446. display: -webkit-flex;
  447. display: flex;
  448. -webkit-flex-wrap: wrap;
  449. flex-wrap: wrap;
  450. }
  451. .attr-content .item-list text {
  452. display: -webkit-box;
  453. display: -webkit-flex;
  454. display: flex;
  455. -webkit-box-align: center;
  456. -webkit-align-items: center;
  457. align-items: center;
  458. -webkit-box-pack: center;
  459. -webkit-justify-content: center;
  460. justify-content: center;
  461. background: #eee;
  462. margin-right: 20rpx;
  463. margin-bottom: 20rpx;
  464. border-radius: 100rpx;
  465. min-width: 60rpx;
  466. height: 60rpx;
  467. padding: 0 20rpx;
  468. font-size: 28rpx;
  469. color: #303133;
  470. }
  471. .attr-content .item-list .selected {
  472. background: #fbebee;
  473. color: #fa436a;
  474. }
  475. /* 弹出层 */
  476. .popup {
  477. position: fixed;
  478. left: 0;
  479. top: 0;
  480. right: 0;
  481. bottom: 100rpx;
  482. z-index: 99;
  483. }
  484. .popup.show {
  485. display: block;
  486. }
  487. .popup.show .mask {
  488. -webkit-animation: showPopup 0.2s linear both;
  489. animation: showPopup 0.2s linear both;
  490. }
  491. .popup.show .layer {
  492. -webkit-animation: showLayer 0.2s linear both;
  493. animation: showLayer 0.2s linear both;
  494. }
  495. .popup.hide .mask {
  496. -webkit-animation: hidePopup 0.2s linear both;
  497. animation: hidePopup 0.2s linear both;
  498. }
  499. .popup.hide .layer {
  500. -webkit-animation: hideLayer 0.2s linear both;
  501. animation: hideLayer 0.2s linear both;
  502. }
  503. .popup.none {
  504. display: none;
  505. }
  506. .popup .mask {
  507. position: fixed;
  508. top: 0;
  509. width: 100%;
  510. height: 90%;
  511. z-index: 1;
  512. background-color: rgba(0, 0, 0, 0.4);
  513. }
  514. .popup .layer {
  515. position: fixed;
  516. z-index: 99;
  517. bottom: 100rpx;
  518. width: 100%;
  519. min-height: 40vh;
  520. border-radius: 10rpx 10rpx 0 0;
  521. background-color: #fff;
  522. }
  523. .popup .layer .btn {
  524. height: 66rpx;
  525. line-height: 66rpx;
  526. border-radius: 100rpx;
  527. background: #fa436a;
  528. font-size: 30rpx;
  529. color: #fff;
  530. margin: 30rpx auto 20rpx;
  531. }
  532. @-webkit-keyframes showPopup {
  533. 0% {
  534. opacity: 0;
  535. }
  536. 100% {
  537. opacity: 1;
  538. }
  539. }
  540. @keyframes showPopup {
  541. 0% {
  542. opacity: 0;
  543. }
  544. 100% {
  545. opacity: 1;
  546. }
  547. }
  548. @-webkit-keyframes hidePopup {
  549. 0% {
  550. opacity: 1;
  551. }
  552. 90% {
  553. opacity: 0;
  554. }
  555. }
  556. @keyframes hidePopup {
  557. 0% {
  558. opacity: 1;
  559. }
  560. 90% {
  561. opacity: 0;
  562. }
  563. }
  564. @-webkit-keyframes showLayer {
  565. 0% {
  566. -webkit-transform: translateY(120%);
  567. transform: translateY(120%);
  568. }
  569. 100% {
  570. -webkit-transform: translateY(0%);
  571. transform: translateY(0%);
  572. }
  573. }
  574. @keyframes showLayer {
  575. 0% {
  576. -webkit-transform: translateY(120%);
  577. transform: translateY(120%);
  578. }
  579. 100% {
  580. -webkit-transform: translateY(0%);
  581. transform: translateY(0%);
  582. }
  583. }
  584. @-webkit-keyframes hideLayer {
  585. 0% {
  586. -webkit-transform: translateY(0);
  587. transform: translateY(0);
  588. }
  589. 100% {
  590. -webkit-transform: translateY(120%);
  591. transform: translateY(120%);
  592. }
  593. }
  594. @keyframes hideLayer {
  595. 0% {
  596. -webkit-transform: translateY(0);
  597. transform: translateY(0);
  598. }
  599. 100% {
  600. -webkit-transform: translateY(120%);
  601. transform: translateY(120%);
  602. }
  603. }
  604. .van-sticky {
  605. /* z-index: 0!important; */
  606. }
  607. /* 详情固定 */
  608. .activeColor {
  609. /* background: #fff!important; */
  610. position: fixed;
  611. background-color: #fff;
  612. top: 0rpx;
  613. z-index: 99;
  614. margin-top: 0;
  615. }
  616. /* 底部操作菜单 */
  617. .page-bottom {
  618. position: fixed;
  619. left: 0;
  620. bottom: 0;
  621. display: -webkit-box;
  622. display: -webkit-flex;
  623. display: flex;
  624. -webkit-box-pack: center;
  625. -webkit-justify-content: center;
  626. justify-content: center;
  627. -webkit-box-align: center;
  628. -webkit-align-items: center;
  629. align-items: center;
  630. width: 100%;
  631. height: 100rpx;
  632. z-index: 99;
  633. background: rgba(255, 255, 255, 0.9);
  634. }
  635. .page-bottom .p-b-btn {
  636. display: -webkit-box;
  637. display: -webkit-flex;
  638. display: flex;
  639. -webkit-box-orient: vertical;
  640. -webkit-box-direction: normal;
  641. -webkit-flex-direction: column;
  642. flex-direction: column;
  643. -webkit-box-align: center;
  644. -webkit-align-items: center;
  645. align-items: center;
  646. -webkit-box-pack: center;
  647. -webkit-justify-content: center;
  648. justify-content: center;
  649. font-size: 24rpx;
  650. color: #606266;
  651. width: 96rpx;
  652. height: 80rpx;
  653. }
  654. .page-bottom .p-b-btn .yticon {
  655. font-size: 40rpx;
  656. line-height: 48rpx;
  657. color: #909399;
  658. }
  659. .page-bottom .p-b-btn.active, .page-bottom .p-b-btn.active .yticon {
  660. color: #fa436a;
  661. }
  662. .page-bottom .p-b-btn .icon-fenxiang2 {
  663. font-size: 42rpx;
  664. -webkit-transform: translateY(-2rpx);
  665. transform: translateY(-2rpx);
  666. }
  667. .page-bottom .p-b-btn .icon-shoucang {
  668. font-size: 46rpx;
  669. }
  670. .page-bottom .action-btn-group {
  671. display: -webkit-box;
  672. display: -webkit-flex;
  673. display: flex;
  674. height: 76rpx;
  675. border-radius: 100px;
  676. overflow: hidden;
  677. box-shadow: 0 20rpx 40rpx -16rpx #fa436a;
  678. box-shadow: 1px 2px 5px rgba(219, 63, 96, 0.4);
  679. background: -webkit-linear-gradient(left, #ffac30, #fa436a, #F56C6C);
  680. background: linear-gradient(to right, #ffac30, #fa436a, #F56C6C);
  681. margin-left: 20rpx;
  682. position: relative;
  683. }
  684. .page-bottom .action-btn-group:after {
  685. content: '';
  686. position: absolute;
  687. top: 50%;
  688. right: 50%;
  689. -webkit-transform: translateY(-50%);
  690. transform: translateY(-50%);
  691. height: 28rpx;
  692. width: 0;
  693. border-right: 1px solid rgba(255, 255, 255, 0.5);
  694. }
  695. .page-bottom .action-btn-group .action-btn {
  696. display: -webkit-box;
  697. display: -webkit-flex;
  698. display: flex;
  699. -webkit-box-align: center;
  700. -webkit-align-items: center;
  701. align-items: center;
  702. -webkit-box-pack: center;
  703. -webkit-justify-content: center;
  704. justify-content: center;
  705. width: 180rpx;
  706. height: 100%;
  707. font-size: 28rpx;
  708. padding: 0;
  709. border-radius: 0;
  710. background: transparent;
  711. }