shop.wxss 16 KB

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