微信小店联盟带货小程序

commission.wxss 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. /* pages/distribution/commission.wxss */
  2. .container {
  3. min-height: 100vh;
  4. background: #f8f8f8;
  5. }
  6. /* 佣金概览卡片 */
  7. .overview-card {
  8. margin: 20rpx;
  9. padding: 30rpx;
  10. background: linear-gradient(135deg, #ff4d4f, #ff7875);
  11. border-radius: 16rpx;
  12. color: #fff;
  13. box-shadow: 0 4rpx 12rpx rgba(255, 77, 79, 0.2);
  14. }
  15. .total-section {
  16. text-align: center;
  17. margin-bottom: 30rpx;
  18. }
  19. .total-section .label {
  20. font-size: 28rpx;
  21. opacity: 0.9;
  22. margin-bottom: 10rpx;
  23. }
  24. .total-section .amount {
  25. font-size: 60rpx;
  26. font-weight: 600;
  27. }
  28. .stats-row {
  29. display: flex;
  30. justify-content: space-between;
  31. padding-top: 20rpx;
  32. border-top: 1rpx solid rgba(255, 255, 255, 0.2);
  33. }
  34. .stat-item {
  35. flex: 1;
  36. text-align: center;
  37. }
  38. .stat-item .value {
  39. display: block;
  40. font-size: 32rpx;
  41. font-weight: 500;
  42. margin-bottom: 8rpx;
  43. }
  44. .stat-item .label {
  45. font-size: 24rpx;
  46. opacity: 0.9;
  47. }
  48. /* 标签页样式 */
  49. .tabs {
  50. display: flex;
  51. background: #fff;
  52. padding: 0 20rpx;
  53. position: sticky;
  54. top: 0;
  55. z-index: 100;
  56. }
  57. .tab {
  58. flex: 1;
  59. height: 80rpx;
  60. display: flex;
  61. align-items: center;
  62. justify-content: center;
  63. font-size: 28rpx;
  64. color: #666;
  65. position: relative;
  66. }
  67. .tab.active {
  68. color: #ff4d4f;
  69. font-weight: 500;
  70. }
  71. .tab.active::after {
  72. content: '';
  73. position: absolute;
  74. bottom: 0;
  75. left: 50%;
  76. transform: translateX(-50%);
  77. width: 40rpx;
  78. height: 4rpx;
  79. background: #ff4d4f;
  80. border-radius: 2rpx;
  81. }
  82. /* 佣金明细列表 */
  83. .commission-list {
  84. padding: 20rpx;
  85. }
  86. .commission-item {
  87. background: #fff;
  88. border-radius: 12rpx;
  89. padding: 20rpx;
  90. margin-bottom: 20rpx;
  91. }
  92. .commission-info {
  93. display: flex;
  94. justify-content: space-between;
  95. align-items: flex-start;
  96. margin-bottom: 16rpx;
  97. }
  98. .main-info {
  99. flex: 1;
  100. margin-right: 20rpx;
  101. }
  102. .title {
  103. font-size: 28rpx;
  104. color: #333;
  105. margin-bottom: 8rpx;
  106. }
  107. .time {
  108. font-size: 24rpx;
  109. color: #999;
  110. }
  111. .amount {
  112. font-size: 32rpx;
  113. color: #ff4d4f;
  114. font-weight: 500;
  115. }
  116. .amount.pending {
  117. color: #faad14;
  118. }
  119. .detail-info {
  120. background: #f8f8f8;
  121. padding: 16rpx;
  122. border-radius: 8rpx;
  123. }
  124. .detail-item {
  125. display: flex;
  126. font-size: 24rpx;
  127. margin-bottom: 8rpx;
  128. }
  129. .detail-item:last-child {
  130. margin-bottom: 0;
  131. }
  132. .detail-item .label {
  133. color: #666;
  134. width: 140rpx;
  135. }
  136. .detail-item .value {
  137. color: #333;
  138. flex: 1;
  139. }
  140. .pending-text {
  141. color: #faad14;
  142. }
  143. .settled-text {
  144. color: #52c41a;
  145. }
  146. /* 加载更多样式 */
  147. .loading {
  148. text-align: center;
  149. padding: 20rpx 0;
  150. }
  151. .loading-text {
  152. font-size: 24rpx;
  153. color: #999;
  154. }
  155. /* 空状态样式 */
  156. .empty {
  157. display: flex;
  158. flex-direction: column;
  159. align-items: center;
  160. justify-content: center;
  161. padding: 100rpx 0;
  162. }
  163. .empty-icon {
  164. width: 200rpx;
  165. height: 200rpx;
  166. margin-bottom: 20rpx;
  167. }
  168. .empty-text {
  169. font-size: 28rpx;
  170. color: #999;
  171. }