cart.wxss 5.6 KB

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