select-goods.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. @import '../../../../themes/t.cell.scss';
  2. @import '../../../../themes/page.scss';
  3. /* module/order/pages/select-goods/select-goods.wxss */
  4. .page-scroll__container {
  5. flex: 0 1 auto;
  6. height: var(--page-container-safeHeight, 100vh);
  7. background: #f7f8fa;
  8. padding-bottom: 120rpx;
  9. }
  10. .goods-list {
  11. background: transparent;
  12. margin-bottom: 20rpx;
  13. }
  14. .category-title {
  15. padding: 28rpx 32rpx 20rpx;
  16. font-size: 30rpx;
  17. font-weight: 600;
  18. color: #333;
  19. background: #fff;
  20. position: sticky;
  21. top: 0;
  22. z-index: 10;
  23. // border-bottom: 1rpx solid #f0f0f0;
  24. }
  25. .goods-item {
  26. display: flex;
  27. align-items: center;
  28. padding: 32rpx;
  29. // margin: 0 20rpx 20rpx;
  30. background: #fff;
  31. border-radius: 16rpx;
  32. box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
  33. transition: all 0.3s ease;
  34. padding-bottom: 10px;
  35. &:active {
  36. transform: scale(0.98);
  37. box-shadow: 0 1rpx 8rpx rgba(0, 0, 0, 0.06);
  38. }
  39. }
  40. .goods-checkbox {
  41. margin-right: 24rpx;
  42. margin-top: 8rpx;
  43. flex-shrink: 0;
  44. }
  45. .goods-image {
  46. width: 180rpx;
  47. height: 180rpx;
  48. border-radius: 12rpx;
  49. background: #f5f5f5;
  50. margin-right: 24rpx;
  51. flex-shrink: 0;
  52. border: 1rpx solid #f0f0f0;
  53. }
  54. .goods-info {
  55. flex: 1;
  56. display: flex;
  57. flex-direction: column;
  58. min-width: 0;
  59. justify-content: space-between;
  60. min-height: 180rpx;
  61. }
  62. .goods-name-row {
  63. display: flex;
  64. align-items: center;
  65. margin-bottom: 12rpx;
  66. flex-wrap: wrap;
  67. }
  68. .goods-name {
  69. font-size: 32rpx;
  70. font-weight: 600;
  71. color: #333;
  72. flex: 1;
  73. min-width: 0;
  74. line-height: 1.4;
  75. display: -webkit-box;
  76. -webkit-box-orient: vertical;
  77. -webkit-line-clamp: 2;
  78. line-clamp: 2;
  79. overflow: hidden;
  80. text-overflow: ellipsis;
  81. }
  82. .goods-badge {
  83. display: inline-flex;
  84. align-items: center;
  85. justify-content: center;
  86. min-width: 36rpx;
  87. height: 36rpx;
  88. padding: 0 10rpx;
  89. background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  90. color: #333;
  91. font-size: 22rpx;
  92. font-weight: 600;
  93. border-radius: 18rpx;
  94. margin-left: 12rpx;
  95. box-shadow: 0 2rpx 4rpx rgba(255, 215, 0, 0.3);
  96. }
  97. .goods-desc {
  98. font-size: 26rpx;
  99. color: #999;
  100. margin-bottom: 20rpx;
  101. line-height: 1.4;
  102. }
  103. .goods-price-row {
  104. display: flex;
  105. align-items: center;
  106. justify-content: space-between;
  107. margin-top: auto;
  108. }
  109. .goods-price {
  110. font-size: 36rpx;
  111. font-weight: 700;
  112. color: #ff4444;
  113. letter-spacing: -0.5rpx;
  114. }
  115. .quantity-selector {
  116. display: flex;
  117. align-items: center;
  118. border: 2rpx solid #e8e8e8;
  119. border-radius: 12rpx;
  120. overflow: hidden;
  121. background: #fff;
  122. box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.04);
  123. }
  124. .quantity-btn {
  125. width: 64rpx;
  126. height: 64rpx;
  127. display: flex;
  128. align-items: center;
  129. justify-content: center;
  130. background: #f8f8f8;
  131. font-size: 36rpx;
  132. font-weight: 500;
  133. color: #333;
  134. user-select: none;
  135. transition: all 0.2s ease;
  136. position: relative;
  137. &.minus {
  138. border-right: 1rpx solid #e8e8e8;
  139. }
  140. &.plus {
  141. border-left: 1rpx solid #e8e8e8;
  142. }
  143. &:active:not(.disabled) {
  144. background: #1d6ff6;
  145. color: #fff;
  146. transform: scale(0.95);
  147. }
  148. &.disabled {
  149. opacity: 0.4;
  150. background: #f5f5f5;
  151. color: #ccc;
  152. cursor: not-allowed;
  153. }
  154. }
  155. .quantity-input {
  156. width: 90rpx;
  157. height: 64rpx;
  158. text-align: center;
  159. font-size: 30rpx;
  160. font-weight: 500;
  161. color: #333;
  162. background: #fff;
  163. border: none;
  164. padding: 0;
  165. &[disabled] {
  166. background: #f8f8f8;
  167. color: #999;
  168. opacity: 0.6;
  169. }
  170. }
  171. .quantity-text {
  172. font-size: 30rpx;
  173. font-weight: 500;
  174. color: #666;
  175. padding: 0 16rpx;
  176. }
  177. .footer-placeholder {
  178. height: 120rpx;
  179. }
  180. .footer-bar {
  181. position: fixed;
  182. bottom: 0;
  183. left: 0;
  184. right: 0;
  185. width: 100%;
  186. min-height: 100rpx;
  187. background: #fff;
  188. display: flex;
  189. align-items: center;
  190. padding: 10rpx 10rpx 0 0;
  191. box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.08);
  192. z-index: 100;
  193. box-sizing: border-box;
  194. border-top: 1rpx solid #f0f0f0;
  195. }
  196. .footer-left {
  197. flex-shrink: 0;
  198. margin-right: 32rpx;
  199. }
  200. .footer-center {
  201. flex: 1;
  202. display: flex;
  203. align-items: baseline;
  204. font-size: 28rpx;
  205. color: #333;
  206. line-height: 1.4;
  207. }
  208. .footer-text {
  209. color: #666;
  210. font-size: 26rpx;
  211. }
  212. .footer-price {
  213. color: #ff4444;
  214. font-weight: 700;
  215. font-size: 36rpx;
  216. margin-left: 8rpx;
  217. letter-spacing: -0.5rpx;
  218. }
  219. .footer-right {
  220. flex-shrink: 0;
  221. margin-left: 24rpx;
  222. }
  223. .checkout-btn {
  224. min-width: 160rpx;
  225. height: 76rpx;
  226. line-height: 76rpx;
  227. text-align: center;
  228. background: linear-gradient(135deg, #1d6ff6 0%, #4a90ff 100%);
  229. color: #fff;
  230. font-size: 30rpx;
  231. font-weight: 600;
  232. border-radius: 38rpx;
  233. box-shadow: 0 4rpx 12rpx rgba(29, 111, 246, 0.3);
  234. transition: all 0.3s ease;
  235. &:active {
  236. opacity: 0.9;
  237. transform: scale(0.98);
  238. box-shadow: 0 2rpx 8rpx rgba(29, 111, 246, 0.4);
  239. }
  240. }
  241. .t-checkbox--block {
  242. padding: 0!important;
  243. }