cart.wxss 5.5 KB

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