微信小店联盟带货小程序

list.wxss 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. /* pages/order/list.wxss */
  2. .container {
  3. min-height: 100vh;
  4. background: #f7f9fe;
  5. padding-bottom: env(safe-area-inset-bottom);
  6. }
  7. /* 标签栏样式 */
  8. .tab-bar {
  9. position: fixed;
  10. top: 0;
  11. left: 0;
  12. right: 0;
  13. height: 100rpx;
  14. background: rgba(255, 255, 255, 0.98);
  15. display: flex;
  16. align-items: center;
  17. z-index: 100;
  18. padding: 0 24rpx;
  19. backdrop-filter: blur(10px);
  20. }
  21. .tab-item {
  22. flex: 1;
  23. height: 72rpx;
  24. display: flex;
  25. align-items: center;
  26. justify-content: center;
  27. font-size: 28rpx;
  28. color: #8c8c8c;
  29. position: relative;
  30. margin: 0 8rpx;
  31. border-radius: 36rpx;
  32. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  33. }
  34. .tab-item.active {
  35. color: #fff;
  36. font-weight: 600;
  37. background: linear-gradient(135deg, #ff4d4f, #ff7875);
  38. box-shadow: 0 6rpx 16rpx rgba(255, 77, 79, 0.3);
  39. transform: translateY(-2rpx);
  40. }
  41. /* 订单列表样式 */
  42. .order-list {
  43. margin-top: 116rpx;
  44. height: calc(100vh - 116rpx);
  45. box-sizing: border-box;
  46. padding: 24rpx;
  47. }
  48. .order-item {
  49. background: #fff;
  50. border-radius: 24rpx;
  51. margin-bottom: 24rpx;
  52. padding: 30rpx;
  53. box-shadow: 0 8rpx 24rpx rgba(140, 149, 159, 0.1);
  54. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  55. border: 2rpx solid rgba(255, 77, 79, 0.1);
  56. }
  57. .order-header {
  58. display: flex;
  59. justify-content: space-between;
  60. align-items: center;
  61. padding-bottom: 24rpx;
  62. margin-bottom: 24rpx;
  63. position: relative;
  64. }
  65. .order-header::after {
  66. content: '';
  67. position: absolute;
  68. bottom: 0;
  69. left: -30rpx;
  70. right: -30rpx;
  71. height: 2rpx;
  72. background: linear-gradient(90deg,
  73. transparent,
  74. rgba(255, 77, 79, 0.1) 20%,
  75. rgba(255, 77, 79, 0.1) 80%,
  76. transparent
  77. );
  78. }
  79. .order-time {
  80. font-size: 26rpx;
  81. color: #8c8c8c;
  82. display: flex;
  83. align-items: center;
  84. background: rgba(255, 77, 79, 0.08);
  85. padding: 6rpx 16rpx;
  86. border-radius: 20rpx;
  87. }
  88. .order-status {
  89. font-size: 28rpx;
  90. font-weight: 600;
  91. padding: 6rpx 20rpx;
  92. border-radius: 20rpx;
  93. }
  94. .order-status.pending {
  95. color: #f59e0b;
  96. background: rgba(245, 158, 11, 0.1);
  97. }
  98. .order-status.settled {
  99. color: #10b981;
  100. background: rgba(16, 185, 129, 0.1);
  101. }
  102. .order-status.invalid {
  103. color: #6b7280;
  104. background: rgba(107, 114, 128, 0.1);
  105. }
  106. .goods-list {
  107. padding: 12rpx 0;
  108. }
  109. .goods-item {
  110. display: flex;
  111. margin-bottom: 24rpx;
  112. background: #f8faff;
  113. padding: 24rpx;
  114. border-radius: 20rpx;
  115. position: relative;
  116. overflow: hidden;
  117. }
  118. .goods-item::before {
  119. content: '';
  120. position: absolute;
  121. top: 0;
  122. left: 0;
  123. width: 6rpx;
  124. height: 100%;
  125. background: linear-gradient(135deg, #ff4d4f, #ff7875);
  126. border-radius: 0 3rpx 3rpx 0;
  127. }
  128. .goods-image {
  129. width: 180rpx;
  130. height: 180rpx;
  131. border-radius: 16rpx;
  132. margin-right: 24rpx;
  133. box-shadow: 0 8rpx 24rpx rgba(140, 149, 159, 0.15);
  134. }
  135. .goods-info {
  136. flex: 1;
  137. display: flex;
  138. flex-direction: column;
  139. justify-content: space-between;
  140. }
  141. .goods-name {
  142. font-size: 30rpx;
  143. color: #1f2937;
  144. font-weight: 600;
  145. margin-bottom: 16rpx;
  146. display: -webkit-box;
  147. -webkit-box-orient: vertical;
  148. -webkit-line-clamp: 2;
  149. overflow: hidden;
  150. line-height: 1.4;
  151. }
  152. .goods-price-count {
  153. display: flex;
  154. justify-content: space-between;
  155. align-items: center;
  156. }
  157. .goods-price {
  158. font-size: 36rpx;
  159. background: linear-gradient(135deg, #ff4d4f, #ff7875);
  160. -webkit-background-clip: text;
  161. color: transparent;
  162. font-weight: 600;
  163. }
  164. .goods-count {
  165. font-size: 26rpx;
  166. color: #6b7280;
  167. background: rgba(255, 77, 79, 0.08);
  168. padding: 6rpx 16rpx;
  169. border-radius: 20rpx;
  170. }
  171. .order-footer {
  172. padding-top: 24rpx;
  173. margin-top: 24rpx;
  174. position: relative;
  175. }
  176. .order-footer::before {
  177. content: '';
  178. position: absolute;
  179. top: 0;
  180. left: -30rpx;
  181. right: -30rpx;
  182. height: 2rpx;
  183. background: linear-gradient(90deg,
  184. transparent,
  185. rgba(255, 77, 79, 0.1) 20%,
  186. rgba(255, 77, 79, 0.1) 80%,
  187. transparent
  188. );
  189. }
  190. .commission-info {
  191. display: flex;
  192. align-items: center;
  193. margin-bottom: 16rpx;
  194. background: rgba(255, 77, 79, 0.04);
  195. padding: 16rpx 24rpx;
  196. border-radius: 16rpx;
  197. }
  198. .commission-info .label {
  199. font-size: 28rpx;
  200. color: #6b7280;
  201. }
  202. .commission-info .commission {
  203. font-size: 36rpx;
  204. background: linear-gradient(135deg, #ff4d4f, #ff7875);
  205. -webkit-background-clip: text;
  206. color: transparent;
  207. font-weight: 600;
  208. margin: 0 12rpx;
  209. }
  210. .commission-info .rate {
  211. font-size: 26rpx;
  212. color: #ff4d4f;
  213. background: rgba(255, 77, 79, 0.1);
  214. padding: 4rpx 12rpx;
  215. border-radius: 12rpx;
  216. }
  217. .settlement-info, .invalid-reason {
  218. font-size: 26rpx;
  219. color: #6b7280;
  220. display: flex;
  221. align-items: center;
  222. gap: 12rpx;
  223. padding: 12rpx 0;
  224. }
  225. .settlement-info .label, .invalid-reason .label {
  226. color: #8c8c8c;
  227. }
  228. /* 加载更多和空状态 */
  229. .loading, .no-more {
  230. text-align: center;
  231. padding: 30rpx;
  232. color: #8c8c8c;
  233. font-size: 26rpx;
  234. }
  235. .empty {
  236. display: flex;
  237. flex-direction: column;
  238. align-items: center;
  239. justify-content: center;
  240. padding: 120rpx 0;
  241. color: #8c8c8c;
  242. font-size: 28rpx;
  243. text-align: center;
  244. line-height: 1.6;
  245. }
  246. .empty-icon {
  247. width: 240rpx;
  248. height: 240rpx;
  249. margin-bottom: 30rpx;
  250. opacity: 0.8;
  251. }
  252. /* 深色模式 */
  253. @media (prefers-color-scheme: dark) {
  254. .container {
  255. background: #111827;
  256. }
  257. .tab-bar {
  258. background: rgba(17, 24, 39, 0.98);
  259. }
  260. .tab-item {
  261. color: #9ca3af;
  262. }
  263. .tab-item.active {
  264. background: linear-gradient(135deg, #ff4d4f, #ff7875);
  265. }
  266. .order-item {
  267. background: #1f2937;
  268. border-color: rgba(255, 77, 79, 0.2);
  269. }
  270. .goods-item {
  271. background: #374151;
  272. }
  273. .order-time {
  274. background: rgba(255, 77, 79, 0.15);
  275. }
  276. .goods-count {
  277. background: rgba(255, 77, 79, 0.15);
  278. }
  279. .commission-info {
  280. background: rgba(255, 77, 79, 0.1);
  281. }
  282. .commission-info .label {
  283. color: #9ca3af;
  284. }
  285. .settlement-info, .invalid-reason {
  286. color: #9ca3af;
  287. }
  288. .settlement-info .label, .invalid-reason .label {
  289. color: #6b7280;
  290. }
  291. }