cart.wxss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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. page {
  28. height: 100%;
  29. }
  30. .content {
  31. height: 100%;
  32. padding: 20rpx;
  33. }
  34. .content .goods-list {
  35. padding-bottom: 120rpx;
  36. }
  37. .content .goods-list .item {
  38. box-sizing: border-box;
  39. height: 221rpx;
  40. background: #FFFFFF;
  41. border-radius: 16rpx;
  42. margin-bottom: 20rpx;
  43. padding: 30rpx;
  44. display: flex;
  45. align-items: center;
  46. }
  47. .content .goods-list .item:last-child {
  48. margin-bottom: 0;
  49. }
  50. .content .goods-list .item .goods-img {
  51. width: 160rpx;
  52. height: 160rpx;
  53. background: #FFFFFF;
  54. margin-right: 30rpx;
  55. flex-shrink: 0;
  56. }
  57. .content .goods-list .item .info-box {
  58. height: 160rpx;
  59. display: flex;
  60. flex-direction: column;
  61. justify-content: space-between;
  62. width: calc(100% - 255rpx);
  63. }
  64. .content .goods-list .item .info-box .title-box {
  65. width: 100%;
  66. display: flex;
  67. align-items: center;
  68. }
  69. .content .goods-list .item .info-box .title-box .tag {
  70. padding: 0 6rpx;
  71. height: 30rpx;
  72. line-height: 30rpx;
  73. font-size: 22rpx;
  74. font-family: PingFang SC;
  75. font-weight: bold;
  76. color: #FFFFFF;
  77. background: linear-gradient(90deg, #2BC7B9 0%, #2BC7A4 100%);
  78. border-radius: 4rpx;
  79. margin-right: 10rpx;
  80. flex-shrink: 0;
  81. }
  82. .content .goods-list .item .info-box .title-box .title {
  83. flex: 1;
  84. font-size: 28rpx;
  85. font-family: PingFang SC;
  86. font-weight: 500;
  87. color: #111111;
  88. line-height: 1;
  89. }
  90. .content .goods-list .item .info-box .intro {
  91. font-size: 24rpx;
  92. font-family: PingFang SC;
  93. font-weight: 500;
  94. color: #999999;
  95. margin-top: 22rpx;
  96. line-height: 1;
  97. }
  98. .content .goods-list .item .info-box .price-num {
  99. display: flex;
  100. align-items: center;
  101. justify-content: space-between;
  102. }
  103. .content .goods-list .item .info-box .price-num .price {
  104. display: flex;
  105. align-items: flex-end;
  106. }
  107. .content .goods-list .item .info-box .price-num .price .unit {
  108. font-size: 24rpx;
  109. font-family: PingFang SC;
  110. font-weight: 500;
  111. color: #FF6633;
  112. line-height: 1.2;
  113. margin-right: 4rpx;
  114. }
  115. .content .goods-list .item .info-box .price-num .price .text {
  116. font-size: 32rpx;
  117. font-family: PingFang SC;
  118. font-weight: bold;
  119. color: #FF6633;
  120. line-height: 1;
  121. }
  122. .content .goods-list .item .info-box .price-num .num-box {
  123. display: flex;
  124. align-items: center;
  125. }
  126. .content .goods-list .item .info-box .price-num .num-box .img-box {
  127. width: 60rpx;
  128. height: 60rpx;
  129. border: 1px solid #dddddd;
  130. display: flex;
  131. align-items: center;
  132. justify-content: center;
  133. }
  134. .content .goods-list .item .info-box .price-num .num-box .img-box image {
  135. width: 25rpx;
  136. height: 25rpx;
  137. }
  138. .content .goods-list .item .info-box .price-num .num-box input {
  139. width: 60rpx;
  140. height: 60rpx;
  141. line-height: 60rpx;
  142. font-size: 28rpx;
  143. font-family: PingFang SC;
  144. font-weight: 500;
  145. color: #111111;
  146. border-top: 1px solid #dddddd;
  147. border-bottom: 1px solid #dddddd;
  148. text-align: center;
  149. }
  150. .content .btn-foot {
  151. box-sizing: border-box;
  152. width: 100%;
  153. height: 121rpx;
  154. background: #FFFFFF;
  155. padding: 16rpx 30rpx 16rpx 60rpx;
  156. display: flex;
  157. align-items: center;
  158. justify-content: space-between;
  159. position: fixed;
  160. left: 0;
  161. bottom: 0;
  162. z-index: 99;
  163. }
  164. .content .btn-foot .left {
  165. display: flex;
  166. align-items: center;
  167. }
  168. .content .btn-foot .left .text {
  169. margin-left: 14rpx;
  170. font-size: 28rpx;
  171. font-family: PingFang SC;
  172. font-weight: 500;
  173. color: #666666;
  174. line-height: 1;
  175. }
  176. .content .btn-foot .right {
  177. display: flex;
  178. align-items: center;
  179. }
  180. .content .btn-foot .right .total {
  181. display: flex;
  182. align-items: flex-end;
  183. margin-right: 36rpx;
  184. }
  185. .content .btn-foot .right .total .label {
  186. font-size: 26rpx;
  187. font-family: PingFang SC;
  188. font-weight: 500;
  189. color: #999999;
  190. line-height: 1.5;
  191. }
  192. .content .btn-foot .right .total .price {
  193. display: flex;
  194. align-items: flex-end;
  195. }
  196. .content .btn-foot .right .total .price .unit {
  197. font-size: 32rpx;
  198. font-family: PingFang SC;
  199. font-weight: bold;
  200. color: #FF6633;
  201. line-height: 1.2;
  202. margin-right: 10rpx;
  203. }
  204. .content .btn-foot .right .total .price .num {
  205. font-size: 30rpx;
  206. font-family: PingFang SC;
  207. font-weight: bold;
  208. color: #FF6633;
  209. line-height: 1;
  210. }
  211. .content .btn-foot .right .btn {
  212. width: 200rpx;
  213. height: 88rpx;
  214. line-height: 88rpx;
  215. text-align: center;
  216. font-size: 30rpx;
  217. font-family: PingFang SC;
  218. font-weight: bold;
  219. color: #FFFFFF;
  220. background: #2BC7B9;
  221. border-radius: 44rpx;
  222. }