select-goods.scss 4.7 KB

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