cart.wxss 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. /**
  2. * 这里是uni-app内置的常用样式变量
  3. *
  4. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  5. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  6. *
  7. */
  8. /**
  9. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  10. *
  11. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  12. */
  13. /* 颜色变量 */
  14. /* 行为相关颜色 */
  15. /* 文字基本颜色 */
  16. /* 背景颜色 */
  17. /* 边框颜色 */
  18. /* 尺寸变量 */
  19. /* 文字尺寸 */
  20. /* 图片尺寸 */
  21. /* Border Radius */
  22. /* 水平间距 */
  23. /* 垂直间距 */
  24. /* 透明度 */
  25. /* 文章场景相关 */
  26. /*自定义主题色 */
  27. page {
  28. height: 100%;
  29. }
  30. .content {
  31. height: 100%;
  32. padding: 20rpx;
  33. }
  34. .content .shopbox {
  35. background: #FFFFFF;
  36. border-radius: 16rpx;
  37. margin-bottom: 20rpx;
  38. }
  39. .content .shopbox-name {
  40. padding: 30rpx 30rpx 0 30rpx;
  41. font-family: PingFang SC, PingFang SC;
  42. font-weight: 400;
  43. font-size: 30rpx;
  44. color: #111;
  45. overflow: hidden;
  46. white-space: nowrap;
  47. text-overflow: ellipsis;
  48. }
  49. .content .goods-list .item {
  50. box-sizing: border-box;
  51. height: 221rpx;
  52. background: #FFFFFF;
  53. border-radius: 16rpx;
  54. margin-bottom: 20rpx;
  55. padding: 30rpx;
  56. display: flex;
  57. align-items: center;
  58. }
  59. .content .goods-list .item:last-child {
  60. margin-bottom: 0;
  61. }
  62. .content .goods-list .item .goods-img {
  63. width: 160rpx;
  64. height: 160rpx;
  65. background: #FFFFFF;
  66. margin-right: 30rpx;
  67. flex-shrink: 0;
  68. }
  69. .content .goods-list .item .info-box {
  70. height: 160rpx;
  71. display: flex;
  72. flex-direction: column;
  73. justify-content: space-between;
  74. width: calc(100% - 255rpx);
  75. }
  76. .content .goods-list .item .info-box .title-box {
  77. width: 100%;
  78. display: flex;
  79. align-items: center;
  80. }
  81. .content .goods-list .item .info-box .title-box .tag {
  82. padding: 0 6rpx;
  83. height: 30rpx;
  84. line-height: 30rpx;
  85. font-size: 22rpx;
  86. font-family: PingFang SC;
  87. font-weight: bold;
  88. color: #FFFFFF;
  89. background: linear-gradient(90deg, #66b2ef 0%, #0bb3f2 100%);
  90. border-radius: 4rpx;
  91. margin-right: 10rpx;
  92. flex-shrink: 0;
  93. }
  94. .content .goods-list .item .info-box .title-box .title {
  95. flex: 1;
  96. font-size: 28rpx;
  97. font-family: PingFang SC;
  98. font-weight: 500;
  99. color: #111111;
  100. line-height: 1;
  101. }
  102. .content .goods-list .item .info-box .intro {
  103. font-size: 24rpx;
  104. font-family: PingFang SC;
  105. font-weight: 500;
  106. color: #999999;
  107. margin-top: 22rpx;
  108. line-height: 1;
  109. }
  110. .content .goods-list .item .info-box .price-num {
  111. display: flex;
  112. align-items: center;
  113. justify-content: space-between;
  114. }
  115. .content .goods-list .item .info-box .price-num .price {
  116. display: flex;
  117. align-items: flex-end;
  118. }
  119. .content .goods-list .item .info-box .price-num .price .unit {
  120. font-size: 24rpx;
  121. font-family: PingFang SC;
  122. font-weight: 500;
  123. color: #FF6633;
  124. line-height: 1.2;
  125. margin-right: 4rpx;
  126. }
  127. .content .goods-list .item .info-box .price-num .price .text {
  128. font-size: 32rpx;
  129. font-family: PingFang SC;
  130. font-weight: bold;
  131. color: #FF6633;
  132. line-height: 1;
  133. }
  134. .content .goods-list .item .info-box .price-num .num-box {
  135. display: flex;
  136. align-items: center;
  137. }
  138. .content .goods-list .item .info-box .price-num .num-box .img-box {
  139. width: 60rpx;
  140. height: 60rpx;
  141. border: 1px solid #dddddd;
  142. display: flex;
  143. align-items: center;
  144. justify-content: center;
  145. }
  146. .content .goods-list .item .info-box .price-num .num-box .img-box image {
  147. width: 25rpx;
  148. height: 25rpx;
  149. }
  150. .content .goods-list .item .info-box .price-num .num-box input {
  151. width: 60rpx;
  152. height: 60rpx;
  153. line-height: 60rpx;
  154. font-size: 28rpx;
  155. font-family: PingFang SC;
  156. font-weight: 500;
  157. color: #111111;
  158. border-top: 1px solid #dddddd;
  159. border-bottom: 1px solid #dddddd;
  160. text-align: center;
  161. }
  162. .content .like-product {
  163. padding-bottom: 120rpx;
  164. }
  165. .content .btn-foot {
  166. box-sizing: border-box;
  167. width: 100%;
  168. height: 121rpx;
  169. background: #FFFFFF;
  170. padding: 16rpx 30rpx 16rpx 60rpx;
  171. display: flex;
  172. align-items: center;
  173. justify-content: space-between;
  174. position: fixed;
  175. left: 0;
  176. bottom: 0;
  177. z-index: 99;
  178. }
  179. .content .btn-foot .left {
  180. display: flex;
  181. align-items: center;
  182. }
  183. .content .btn-foot .left .text {
  184. margin-left: 14rpx;
  185. font-size: 28rpx;
  186. font-family: PingFang SC;
  187. font-weight: 500;
  188. color: #666666;
  189. line-height: 1;
  190. }
  191. .content .btn-foot .right {
  192. display: flex;
  193. align-items: center;
  194. }
  195. .content .btn-foot .right .total {
  196. display: flex;
  197. align-items: flex-end;
  198. margin-right: 36rpx;
  199. }
  200. .content .btn-foot .right .total .label {
  201. font-size: 26rpx;
  202. font-family: PingFang SC;
  203. font-weight: 500;
  204. color: #999999;
  205. line-height: 1.5;
  206. }
  207. .content .btn-foot .right .total .price {
  208. display: flex;
  209. align-items: flex-end;
  210. }
  211. .content .btn-foot .right .total .price .unit {
  212. font-size: 32rpx;
  213. font-family: PingFang SC;
  214. font-weight: bold;
  215. color: #FF6633;
  216. line-height: 1.2;
  217. margin-right: 10rpx;
  218. }
  219. .content .btn-foot .right .total .price .num {
  220. font-size: 30rpx;
  221. font-family: PingFang SC;
  222. font-weight: bold;
  223. color: #FF6633;
  224. line-height: 1;
  225. }
  226. .content .btn-foot .right .btn {
  227. width: 200rpx;
  228. height: 88rpx;
  229. line-height: 88rpx;
  230. text-align: center;
  231. font-size: 30rpx;
  232. font-family: PingFang SC;
  233. font-weight: bold;
  234. color: #FFFFFF;
  235. background: #0bb3f2;
  236. border-radius: 44rpx;
  237. }