cart.css 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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. .like-title[data-v-68f2157a] {
  28. display: flex;
  29. align-items: center;
  30. justify-content: center;
  31. padding: 0.9375rem 0;
  32. }
  33. .like-title uni-image[data-v-68f2157a] {
  34. width: 1.15625rem;
  35. height: 1.15625rem;
  36. margin-right: 0.625rem;
  37. }
  38. .like-title .text[data-v-68f2157a] {
  39. font-size: 1.125rem;
  40. font-family: PingFang SC;
  41. font-weight: bold;
  42. color: #111111;
  43. line-height: 1;
  44. }
  45. .like-list[data-v-68f2157a] {
  46. display: flex;
  47. flex-wrap: wrap;
  48. }
  49. .like-list .item[data-v-68f2157a] {
  50. margin-right: 0.625rem;
  51. margin-bottom: 0.625rem;
  52. width: 10.78125rem;
  53. background: #FFFFFF;
  54. box-shadow: 0px 0px 0.3125rem 0.125rem rgba(199, 199, 199, 0.22);
  55. border-radius: 0.625rem;
  56. overflow: hidden;
  57. }
  58. .like-list .item[data-v-68f2157a]:nth-child(2n) {
  59. margin-right: 0;
  60. }
  61. .like-list .item .img-box[data-v-68f2157a] {
  62. width: 100%;
  63. height: 10.4375rem;
  64. }
  65. .like-list .item .img-box uni-image[data-v-68f2157a] {
  66. width: 100%;
  67. height: 100%;
  68. }
  69. .like-list .item .info-box[data-v-68f2157a] {
  70. box-sizing: border-box;
  71. height: 5.6875rem;
  72. padding: 0.625rem 0.625rem 0.9375rem;
  73. display: flex;
  74. flex-direction: column;
  75. justify-content: space-between;
  76. }
  77. .like-list .item .info-box .title[data-v-68f2157a] {
  78. font-size: 0.8125rem;
  79. font-family: PingFang SC;
  80. font-weight: 500;
  81. color: #111111;
  82. line-height: 1.25rem;
  83. }
  84. .like-list .item .info-box .price-box[data-v-68f2157a] {
  85. display: flex;
  86. align-items: flex-end;
  87. }
  88. .like-list .item .info-box .price-box .now[data-v-68f2157a] {
  89. display: flex;
  90. align-items: flex-end;
  91. margin-right: 0.625rem;
  92. }
  93. .like-list .item .info-box .price-box .now .unit[data-v-68f2157a] {
  94. font-size: 0.75rem;
  95. font-family: PingFang SC;
  96. font-weight: 500;
  97. color: #FF6633;
  98. line-height: 1.2;
  99. margin-right: 0.125rem;
  100. }
  101. .like-list .item .info-box .price-box .now .num[data-v-68f2157a] {
  102. font-size: 1.125rem;
  103. font-family: PingFang SC;
  104. font-weight: bold;
  105. color: #FF6633;
  106. line-height: 1;
  107. }
  108. .like-list .item .info-box .price-box .old[data-v-68f2157a] {
  109. font-size: 0.8125rem;
  110. font-family: PingFang SC;
  111. font-weight: 500;
  112. text-decoration: line-through;
  113. color: #BBBBBB;
  114. line-height: 1.1;
  115. }
  116. /**
  117. * 这里是uni-app内置的常用样式变量
  118. *
  119. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  120. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  121. *
  122. */
  123. /**
  124. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  125. *
  126. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  127. */
  128. /* 颜色变量 */
  129. /* 行为相关颜色 */
  130. /* 文字基本颜色 */
  131. /* 背景颜色 */
  132. /* 边框颜色 */
  133. /* 尺寸变量 */
  134. /* 文字尺寸 */
  135. /* 图片尺寸 */
  136. /* Border Radius */
  137. /* 水平间距 */
  138. /* 垂直间距 */
  139. /* 透明度 */
  140. /* 文章场景相关 */
  141. /*自定义主题色 */
  142. body {
  143. height: 100%;
  144. }
  145. .content {
  146. height: 100%;
  147. padding: 0.625rem;
  148. }
  149. .content .shopbox {
  150. background: #FFFFFF;
  151. border-radius: 0.5rem;
  152. margin-bottom: 0.625rem;
  153. }
  154. .content .shopbox-name {
  155. padding: 0.9375rem 0.9375rem 0 0.9375rem;
  156. font-family: PingFang SC, PingFang SC;
  157. font-weight: 400;
  158. font-size: 0.9375rem;
  159. color: #111;
  160. overflow: hidden;
  161. white-space: nowrap;
  162. text-overflow: ellipsis;
  163. }
  164. .content .goods-list .item {
  165. box-sizing: border-box;
  166. height: 6.90625rem;
  167. background: #FFFFFF;
  168. border-radius: 0.5rem;
  169. margin-bottom: 0.625rem;
  170. padding: 0.9375rem;
  171. display: flex;
  172. align-items: center;
  173. }
  174. .content .goods-list .item:last-child {
  175. margin-bottom: 0;
  176. }
  177. .content .goods-list .item .goods-img {
  178. width: 5rem;
  179. height: 5rem;
  180. background: #FFFFFF;
  181. margin-right: 0.9375rem;
  182. flex-shrink: 0;
  183. }
  184. .content .goods-list .item .info-box {
  185. height: 5rem;
  186. display: flex;
  187. flex-direction: column;
  188. justify-content: space-between;
  189. width: calc(100% - 7.96875rem);
  190. }
  191. .content .goods-list .item .info-box .title-box {
  192. width: 100%;
  193. display: flex;
  194. align-items: center;
  195. }
  196. .content .goods-list .item .info-box .title-box .tag {
  197. padding: 0 0.1875rem;
  198. height: 0.9375rem;
  199. line-height: 0.9375rem;
  200. font-size: 0.6875rem;
  201. font-family: PingFang SC;
  202. font-weight: bold;
  203. color: #FFFFFF;
  204. background: linear-gradient(90deg, #66b2ef 0%, #0bb3f2 100%);
  205. border-radius: 0.125rem;
  206. margin-right: 0.3125rem;
  207. flex-shrink: 0;
  208. }
  209. .content .goods-list .item .info-box .title-box .title {
  210. flex: 1;
  211. font-size: 0.875rem;
  212. font-family: PingFang SC;
  213. font-weight: 500;
  214. color: #111111;
  215. line-height: 1;
  216. }
  217. .content .goods-list .item .info-box .intro {
  218. font-size: 0.75rem;
  219. font-family: PingFang SC;
  220. font-weight: 500;
  221. color: #999999;
  222. margin-top: 0.6875rem;
  223. line-height: 1;
  224. }
  225. .content .goods-list .item .info-box .price-num {
  226. display: flex;
  227. align-items: center;
  228. justify-content: space-between;
  229. }
  230. .content .goods-list .item .info-box .price-num .price {
  231. display: flex;
  232. align-items: flex-end;
  233. }
  234. .content .goods-list .item .info-box .price-num .price .unit {
  235. font-size: 0.75rem;
  236. font-family: PingFang SC;
  237. font-weight: 500;
  238. color: #FF6633;
  239. line-height: 1.2;
  240. margin-right: 0.125rem;
  241. }
  242. .content .goods-list .item .info-box .price-num .price .text {
  243. font-size: 1rem;
  244. font-family: PingFang SC;
  245. font-weight: bold;
  246. color: #FF6633;
  247. line-height: 1;
  248. }
  249. .content .goods-list .item .info-box .price-num .num-box {
  250. display: flex;
  251. align-items: center;
  252. }
  253. .content .goods-list .item .info-box .price-num .num-box .img-box {
  254. width: 1.875rem;
  255. height: 1.875rem;
  256. border: 1px solid #dddddd;
  257. display: flex;
  258. align-items: center;
  259. justify-content: center;
  260. }
  261. .content .goods-list .item .info-box .price-num .num-box .img-box uni-image {
  262. width: 0.78125rem;
  263. height: 0.78125rem;
  264. }
  265. .content .goods-list .item .info-box .price-num .num-box uni-input {
  266. width: 1.875rem;
  267. height: 1.875rem;
  268. line-height: 1.875rem;
  269. font-size: 0.875rem;
  270. font-family: PingFang SC;
  271. font-weight: 500;
  272. color: #111111;
  273. border-top: 1px solid #dddddd;
  274. border-bottom: 1px solid #dddddd;
  275. text-align: center;
  276. }
  277. .content .like-product {
  278. padding-bottom: 3.75rem;
  279. }
  280. .content .btn-foot {
  281. box-sizing: border-box;
  282. width: 100%;
  283. height: 3.78125rem;
  284. background: #FFFFFF;
  285. padding: 0.5rem 0.9375rem 0.5rem 1.875rem;
  286. display: flex;
  287. align-items: center;
  288. justify-content: space-between;
  289. position: fixed;
  290. left: 0;
  291. bottom: 0;
  292. z-index: 99;
  293. }
  294. .content .btn-foot .left {
  295. display: flex;
  296. align-items: center;
  297. }
  298. .content .btn-foot .left .text {
  299. margin-left: 0.4375rem;
  300. font-size: 0.875rem;
  301. font-family: PingFang SC;
  302. font-weight: 500;
  303. color: #666666;
  304. line-height: 1;
  305. }
  306. .content .btn-foot .right {
  307. display: flex;
  308. align-items: center;
  309. }
  310. .content .btn-foot .right .total {
  311. display: flex;
  312. align-items: flex-end;
  313. margin-right: 1.125rem;
  314. }
  315. .content .btn-foot .right .total .label {
  316. font-size: 0.8125rem;
  317. font-family: PingFang SC;
  318. font-weight: 500;
  319. color: #999999;
  320. line-height: 1.5;
  321. }
  322. .content .btn-foot .right .total .price {
  323. display: flex;
  324. align-items: flex-end;
  325. }
  326. .content .btn-foot .right .total .price .unit {
  327. font-size: 1rem;
  328. font-family: PingFang SC;
  329. font-weight: bold;
  330. color: #FF6633;
  331. line-height: 1.2;
  332. margin-right: 0.3125rem;
  333. }
  334. .content .btn-foot .right .total .price .num {
  335. font-size: 0.9375rem;
  336. font-family: PingFang SC;
  337. font-weight: bold;
  338. color: #FF6633;
  339. line-height: 1;
  340. }
  341. .content .btn-foot .right .btn {
  342. width: 6.25rem;
  343. height: 2.75rem;
  344. line-height: 2.75rem;
  345. text-align: center;
  346. font-size: 0.9375rem;
  347. font-family: PingFang SC;
  348. font-weight: bold;
  349. color: #FFFFFF;
  350. background: #0bb3f2;
  351. border-radius: 1.375rem;
  352. }