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 .item {
  35. box-sizing: border-box;
  36. height: 221rpx;
  37. background: #FFFFFF;
  38. border-radius: 16rpx;
  39. margin-bottom: 20rpx;
  40. padding: 30rpx;
  41. display: flex;
  42. align-items: center;
  43. }
  44. .content .goods-list .item:last-child {
  45. margin-bottom: 0;
  46. }
  47. .content .goods-list .item .goods-img {
  48. width: 160rpx;
  49. height: 160rpx;
  50. background: #FFFFFF;
  51. margin-right: 30rpx;
  52. flex-shrink: 0;
  53. }
  54. .content .goods-list .item .info-box {
  55. height: 160rpx;
  56. display: flex;
  57. flex-direction: column;
  58. justify-content: space-between;
  59. width: calc(100% - 255rpx);
  60. }
  61. .content .goods-list .item .info-box .title-box {
  62. width: 100%;
  63. display: flex;
  64. align-items: center;
  65. }
  66. .content .goods-list .item .info-box .title-box .tag {
  67. padding: 0 6rpx;
  68. height: 30rpx;
  69. line-height: 30rpx;
  70. font-size: 22rpx;
  71. font-family: PingFang SC;
  72. font-weight: bold;
  73. color: #FFFFFF;
  74. background: linear-gradient(90deg, #2BC7B9 0%, #2BC7A4 100%);
  75. border-radius: 4rpx;
  76. margin-right: 10rpx;
  77. flex-shrink: 0;
  78. }
  79. .content .goods-list .item .info-box .title-box .title {
  80. flex: 1;
  81. font-size: 28rpx;
  82. font-family: PingFang SC;
  83. font-weight: 500;
  84. color: #111111;
  85. line-height: 1;
  86. }
  87. .content .goods-list .item .info-box .intro {
  88. font-size: 24rpx;
  89. font-family: PingFang SC;
  90. font-weight: 500;
  91. color: #999999;
  92. margin-top: 22rpx;
  93. line-height: 1;
  94. }
  95. .content .goods-list .item .info-box .price-num {
  96. display: flex;
  97. align-items: center;
  98. justify-content: space-between;
  99. }
  100. .content .goods-list .item .info-box .price-num .price {
  101. display: flex;
  102. align-items: flex-end;
  103. }
  104. .content .goods-list .item .info-box .price-num .price .unit {
  105. font-size: 24rpx;
  106. font-family: PingFang SC;
  107. font-weight: 500;
  108. color: #FF6633;
  109. line-height: 1.2;
  110. margin-right: 4rpx;
  111. }
  112. .content .goods-list .item .info-box .price-num .price .text {
  113. font-size: 32rpx;
  114. font-family: PingFang SC;
  115. font-weight: bold;
  116. color: #FF6633;
  117. line-height: 1;
  118. }
  119. .content .goods-list .item .info-box .price-num .num-box {
  120. display: flex;
  121. align-items: center;
  122. }
  123. .content .goods-list .item .info-box .price-num .num-box .img-box {
  124. width: 60rpx;
  125. height: 60rpx;
  126. border: 1px solid #dddddd;
  127. display: flex;
  128. align-items: center;
  129. justify-content: center;
  130. }
  131. .content .goods-list .item .info-box .price-num .num-box .img-box image {
  132. width: 25rpx;
  133. height: 25rpx;
  134. }
  135. .content .goods-list .item .info-box .price-num .num-box input {
  136. width: 60rpx;
  137. height: 60rpx;
  138. line-height: 60rpx;
  139. font-size: 28rpx;
  140. font-family: PingFang SC;
  141. font-weight: 500;
  142. color: #111111;
  143. border-top: 1px solid #dddddd;
  144. border-bottom: 1px solid #dddddd;
  145. text-align: center;
  146. }
  147. .content .like-product {
  148. padding-bottom: 120rpx;
  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. }