index.wxss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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. page {
  28. background-color: #fff;
  29. }
  30. .cart-bottom {
  31. width: 100%;
  32. height: 100rpx;
  33. position: fixed;
  34. bottom: 0px;
  35. left: 0;
  36. border-top: 2rpx solid #eee;
  37. background-color: #fff;
  38. }
  39. .cart-bottom .check-box {
  40. float: left;
  41. height: 100rpx;
  42. line-height: 100rpx;
  43. padding-left: 45rpx;
  44. }
  45. .cart-bottom .deleteGoods {
  46. float: left;
  47. height: 100rpx;
  48. line-height: 110rpx;
  49. padding-left: 10rpx;
  50. color: #666;
  51. }
  52. .cart-bottom .cart-bottom-text {
  53. padding-right: 240rpx;
  54. color: #323233;
  55. text-align: right;
  56. font-size: 24rpx;
  57. float: right;
  58. height: 100rpx;
  59. line-height: 100rpx;
  60. }
  61. .cart-bottom .cart-bottom-text view {
  62. display: inline-block;
  63. }
  64. .cart-bottom .cart-bottom-text view:last-child {
  65. color: #ee0a24;
  66. }
  67. .cart-bottom .cart-bottom-text view:last-child text {
  68. color: #ee0a24;
  69. }
  70. .cart-bottom .cart-bottom-text view:last-child text:last-child {
  71. font-size: 34rpx;
  72. padding-left: 5rpx;
  73. }
  74. .cart-bottom .btn {
  75. width: 200rpx;
  76. height: 80rpx;
  77. line-height: 80rpx;
  78. border: none;
  79. position: absolute;
  80. display: inline-block;
  81. margin: 0;
  82. padding: 0;
  83. font-size: 30rpx;
  84. text-align: center;
  85. border-radius: 50rpx;
  86. cursor: pointer;
  87. transition: opacity .2s;
  88. top: 10rpx;
  89. right: 20rpx;
  90. color: #fff;
  91. background-color: #ee0a24;
  92. background: linear-gradient(90deg, #fa955a, #ee0a24);
  93. }
  94. .wrap {
  95. width: 100%;
  96. background: #fafafa;
  97. }
  98. .list-box {
  99. display: flex;
  100. flex-wrap: wrap;
  101. flex-direction: column;
  102. background: #fafafa;
  103. }
  104. .list-box .list-item {
  105. width: 88%;
  106. height: 180rpx;
  107. margin: 0 auto;
  108. background-color: #fff;
  109. margin-bottom: 20rpx;
  110. border-radius: 10rpx;
  111. font-size: 28rpx;
  112. padding: 20rpx 20rpx;
  113. position: relative;
  114. }
  115. .list-box .list-item:first-child {
  116. margin-top: 20rpx;
  117. }
  118. .list-box .list-item .left-pic {
  119. position: absolute;
  120. left: 0;
  121. top: 0;
  122. z-index: 999;
  123. width: 240rpx;
  124. height: 220rpx;
  125. }
  126. .list-box .list-item .left-pic .item-check {
  127. float: left;
  128. width: 25rpx;
  129. height: 25px;
  130. position: relative;
  131. margin-top: 80rpx;
  132. margin-left: 15rpx;
  133. }
  134. .list-box .list-item .left-pic .pic {
  135. float: right;
  136. margin-top: 30rpx;
  137. width: 160rpx;
  138. }
  139. .list-box .list-item .left-pic .pic image {
  140. width: 160rpx;
  141. height: 160rpx;
  142. }
  143. .list-box .list-item .goods {
  144. float: right;
  145. padding-left: 240rpx;
  146. font-size: 28rpx;
  147. color: #333;
  148. }
  149. .list-box .list-item .goods .t {
  150. width: 100%;
  151. min-height: 50rpx;
  152. max-height: 80rpx;
  153. display: -webkit-box;
  154. overflow: hidden;
  155. -webkit-line-clamp: 2;
  156. -webkit-box-orient: vertical;
  157. }
  158. .list-box .list-item .goods .m {
  159. color: #666;
  160. font-size: 26rpx;
  161. display: -webkit-box;
  162. overflow: hidden;
  163. -webkit-line-clamp: 1;
  164. -webkit-box-orient: vertical;
  165. }
  166. .list-box .list-item .goods .b {
  167. height: 60rpx;
  168. padding-top: 8rpx;
  169. }
  170. .list-box .list-item .goods .b view:first-child {
  171. float: left;
  172. line-height: 60rpx;
  173. color: red;
  174. font-size: 34rpx;
  175. }
  176. .list-box .list-item .goods .b view:last-child {
  177. float: right;
  178. }