index.wxss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. .link {
  2. width: 100%;
  3. height: 100%;
  4. display: flex;
  5. }
  6. .left {
  7. width: 220rpx;
  8. /* 这里的高度可以写也可以不写,效果还是可以实现的,不过最好还是写上吧 */
  9. height: calc(100vh - 120rpx);
  10. background-color: #e5f3f3;
  11. text-align: center;
  12. color: #333;
  13. overflow-y: auto;
  14. }
  15. .left .item {
  16. line-height: 50px;
  17. font-size: 34rpx;
  18. }
  19. .active {
  20. background: linear-gradient(to right, #46a9a4, #ffffff);
  21. }
  22. .right {
  23. height: calc(100vh - 120rpx);
  24. background-color: #f8f8f8;
  25. padding: 0 20rpx;
  26. margin-bottom: 100rpx;
  27. }
  28. .right-cont {
  29. padding-bottom: 30rpx;
  30. border-bottom: 1rpx solid #ccc;
  31. }
  32. .title {
  33. font-size: 36rpx;
  34. color: #333;
  35. padding-top: 60rpx;
  36. padding-bottom: 20rpx;
  37. }
  38. .content {
  39. padding: 0 5rpx 0 10rpx;
  40. }
  41. .list-item {
  42. font-size: 32rpx;
  43. color: #333;
  44. line-height: 50rpx;
  45. }
  46. .list-item .box {
  47. display: flex;
  48. margin-top: 20rpx;
  49. }
  50. .list-item .box .image {
  51. width: 200rpx;
  52. height: 200rpx;
  53. border-radius: 20rpx;
  54. margin-right: 20rpx;
  55. }
  56. .list-item .box .details .name {
  57. font-size: 30rpx;
  58. font-weight: 600;
  59. }
  60. .list-item .box .details .tags {
  61. display: flex;
  62. justify-content: flex-start;
  63. margin-top: 14rpx;
  64. }
  65. .list-item .box .details .tags .tag {
  66. background-color: #46a9a4;
  67. font-size: 24rpx;
  68. padding: 10rpx 20rpx;
  69. text-align: center;
  70. }
  71. .list-item .box .details .price {
  72. font-size: 30rpx;
  73. font-weight: 600;
  74. color: red;
  75. margin-top: 14rpx;
  76. }
  77. .list-item .box .details .count-box {
  78. display: flex;
  79. align-items: center;
  80. justify-content: flex-end;
  81. display: flex;
  82. align-items: center;
  83. justify-content: flex-end;
  84. margin-top: 14px;
  85. width: 300rpx;
  86. }
  87. .list-item .box .details .count-box .discount {
  88. width: 60rpx;
  89. height: 60rpx;
  90. }
  91. .list-item .box .details .count-box .count {
  92. font-size: 30rpx;
  93. font-weight: 600;
  94. margin: 0 10rpx;
  95. width: 54rpx;
  96. text-align: center;
  97. }
  98. .list-item .box .details .count-box .addcount {
  99. width: 60rpx;
  100. height: 60rpx;
  101. }
  102. .order_cart {
  103. position: fixed;
  104. bottom: 3%;
  105. left: 5%;
  106. width: 90%;
  107. height: 100rpx;
  108. background-color: rgba(28, 28, 28, 0.8);
  109. border-radius: 48rpx;
  110. padding: 0 36rpx;
  111. display: flex;
  112. align-items: center;
  113. justify-content: space-between;
  114. }
  115. .order_cart .cart {
  116. width: 66rpx;
  117. height: 66rpx;
  118. }
  119. .order_cart .cart {
  120. width: 66rpx;
  121. height: 66rpx;
  122. }
  123. .order_cart .total_price {
  124. color: red;
  125. font-size: 36rpx;
  126. font-weight: 600;
  127. }
  128. .order_cart .count {
  129. position: absolute;
  130. color: #fff;
  131. padding: 10rxp;
  132. min-width: 36rpx;
  133. height: 36rpx;
  134. background: red;
  135. text-align: center;
  136. line-height: 36rpx;
  137. border-radius: 36%;
  138. top: 10rpx;
  139. left: 76rpx;
  140. }
  141. .order_cart .submit {
  142. background: #46a9a4;
  143. color: #ffffff;
  144. width: 170rpx;
  145. height: 72rpx;
  146. text-align: center;
  147. line-height: 72rpx;
  148. border-radius: 34rpx;
  149. }