likeProduct.wxss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. .like-title {
  28. display: flex;
  29. align-items: center;
  30. justify-content: center;
  31. padding: 30rpx 0;
  32. }
  33. .like-title image {
  34. width: 37rpx;
  35. height: 37rpx;
  36. margin-right: 20rpx;
  37. }
  38. .like-title .text {
  39. font-size: 36rpx;
  40. font-family: PingFang SC;
  41. font-weight: bold;
  42. color: #111111;
  43. line-height: 1;
  44. }
  45. .like-list {
  46. display: flex;
  47. flex-wrap: wrap;
  48. }
  49. .like-list .item {
  50. margin-right: 20rpx;
  51. margin-bottom: 20rpx;
  52. width: 345rpx;
  53. background: #FFFFFF;
  54. box-shadow: 0px 0px 10rpx 4rpx rgba(199, 199, 199, 0.22);
  55. border-radius: 20rpx;
  56. overflow: hidden;
  57. }
  58. .like-list .item:nth-child(2n) {
  59. margin-right: 0;
  60. }
  61. .like-list .item .img-box {
  62. width: 100%;
  63. height: 334rpx;
  64. }
  65. .like-list .item .img-box image {
  66. width: 100%;
  67. height: 100%;
  68. }
  69. .like-list .item .info-box {
  70. box-sizing: border-box;
  71. height: 182rpx;
  72. padding: 20rpx 20rpx 30rpx;
  73. display: flex;
  74. flex-direction: column;
  75. justify-content: space-between;
  76. }
  77. .like-list .item .info-box .title {
  78. font-size: 26rpx;
  79. font-family: PingFang SC;
  80. font-weight: 500;
  81. color: #111111;
  82. line-height: 40rpx;
  83. }
  84. .like-list .item .info-box .price-box {
  85. display: flex;
  86. align-items: flex-end;
  87. }
  88. .like-list .item .info-box .price-box .now {
  89. display: flex;
  90. align-items: flex-end;
  91. margin-right: 20rpx;
  92. }
  93. .like-list .item .info-box .price-box .now .unit {
  94. font-size: 24rpx;
  95. font-family: PingFang SC;
  96. font-weight: 500;
  97. color: #FF6633;
  98. line-height: 1.2;
  99. margin-right: 4rpx;
  100. }
  101. .like-list .item .info-box .price-box .now .num {
  102. font-size: 36rpx;
  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 {
  109. font-size: 26rpx;
  110. font-family: PingFang SC;
  111. font-weight: 500;
  112. text-decoration: line-through;
  113. color: #BBBBBB;
  114. line-height: 1.1;
  115. }