微信小店联盟带货小程序

order.wxss 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. /* pages/distribution/order.wxss */
  2. .container {
  3. min-height: 100vh;
  4. background: #f8f8f8;
  5. }
  6. /* 标签栏样式 */
  7. .tabs {
  8. display: flex;
  9. background: #fff;
  10. padding: 0 20rpx;
  11. position: sticky;
  12. top: 0;
  13. z-index: 100;
  14. border-bottom: 1rpx solid #eee;
  15. }
  16. .tab {
  17. flex: 1;
  18. height: 80rpx;
  19. display: flex;
  20. align-items: center;
  21. justify-content: center;
  22. font-size: 28rpx;
  23. color: #666;
  24. position: relative;
  25. }
  26. .tab.active {
  27. color: #ff4d4f;
  28. font-weight: 500;
  29. }
  30. .tab.active::after {
  31. content: '';
  32. position: absolute;
  33. bottom: 0;
  34. left: 50%;
  35. transform: translateX(-50%);
  36. width: 40rpx;
  37. height: 4rpx;
  38. background: #ff4d4f;
  39. border-radius: 2rpx;
  40. }
  41. /* 订单列表样式 */
  42. .order-list {
  43. height: calc(100vh - 80rpx);
  44. padding: 20rpx;
  45. box-sizing: border-box;
  46. }
  47. .order-item {
  48. background: #fff;
  49. border-radius: 12rpx;
  50. padding: 20rpx;
  51. margin-bottom: 20rpx;
  52. }
  53. .order-header {
  54. display: flex;
  55. justify-content: space-between;
  56. align-items: center;
  57. padding-bottom: 20rpx;
  58. border-bottom: 1rpx solid #f5f5f5;
  59. }
  60. .order-time {
  61. font-size: 24rpx;
  62. color: #999;
  63. }
  64. .order-status {
  65. font-size: 24rpx;
  66. color: #ff4d4f;
  67. }
  68. .order-status.completed {
  69. color: #52c41a;
  70. }
  71. /* 商品信息样式 */
  72. .goods-info {
  73. display: flex;
  74. padding: 20rpx 0;
  75. border-bottom: 1rpx solid #f5f5f5;
  76. }
  77. .goods-image {
  78. width: 160rpx;
  79. height: 160rpx;
  80. border-radius: 8rpx;
  81. margin-right: 20rpx;
  82. }
  83. .goods-detail {
  84. flex: 1;
  85. display: flex;
  86. flex-direction: column;
  87. justify-content: space-between;
  88. }
  89. .goods-name {
  90. font-size: 28rpx;
  91. color: #333;
  92. margin-bottom: 10rpx;
  93. }
  94. .goods-price {
  95. display: flex;
  96. align-items: center;
  97. justify-content: space-between;
  98. }
  99. .price {
  100. font-size: 32rpx;
  101. color: #ff4d4f;
  102. font-weight: 500;
  103. }
  104. .quantity {
  105. font-size: 24rpx;
  106. color: #999;
  107. }
  108. /* 订单底部样式 */
  109. .order-footer {
  110. display: flex;
  111. justify-content: space-between;
  112. padding-top: 20rpx;
  113. }
  114. .commission-info,
  115. .total-info {
  116. display: flex;
  117. align-items: center;
  118. }
  119. .label {
  120. font-size: 24rpx;
  121. color: #666;
  122. margin-right: 10rpx;
  123. }
  124. .amount {
  125. font-size: 28rpx;
  126. color: #ff4d4f;
  127. font-weight: 500;
  128. }
  129. /* 加载更多样式 */
  130. .loading {
  131. text-align: center;
  132. padding: 20rpx 0;
  133. }
  134. .loading-text {
  135. font-size: 24rpx;
  136. color: #999;
  137. }
  138. /* 空状态样式 */
  139. .empty {
  140. display: flex;
  141. flex-direction: column;
  142. align-items: center;
  143. justify-content: center;
  144. padding: 100rpx 0;
  145. }
  146. .empty-icon {
  147. width: 200rpx;
  148. height: 200rpx;
  149. margin-bottom: 20rpx;
  150. }
  151. .empty-text {
  152. font-size: 28rpx;
  153. color: #999;
  154. }