微信小店联盟带货小程序

index.wxss 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. .container {
  2. padding: 24rpx;
  3. background: #f6f6fa;
  4. min-height: 100vh;
  5. }
  6. .loading {
  7. text-align: center;
  8. padding: 30rpx;
  9. color: #999999;
  10. }
  11. /* 收入统计样式 */
  12. .income-stats {
  13. background: #ffffff;
  14. border-radius: 16rpx;
  15. padding: 32rpx;
  16. margin-bottom: 24rpx;
  17. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.02);
  18. }
  19. .stats-header {
  20. display: flex;
  21. justify-content: space-between;
  22. align-items: center;
  23. margin-bottom: 32rpx;
  24. color: #333333;
  25. font-size: 32rpx;
  26. font-weight: 500;
  27. }
  28. .unit-text {
  29. font-size: 24rpx;
  30. color: #999999;
  31. font-weight: normal;
  32. }
  33. /* 调整总收入样式 */
  34. .total-income {
  35. text-align: center;
  36. padding: 32rpx 0;
  37. margin-bottom: 32rpx;
  38. border-bottom: 1rpx solid #f6f6fa;
  39. }
  40. .total-income .label {
  41. font-size: 28rpx;
  42. color: #666666;
  43. margin-bottom: 16rpx;
  44. }
  45. .total-income .amount {
  46. font-size: 48rpx;
  47. color: #ff4d4f;
  48. font-weight: bold;
  49. }
  50. .stats-grid {
  51. display: grid;
  52. grid-template-columns: repeat(2, 1fr);
  53. gap: 24rpx;
  54. margin-top: 24rpx;
  55. }
  56. .stats-item {
  57. padding: 24rpx;
  58. background: #f9f9f9;
  59. border-radius: 12rpx;
  60. }
  61. .stats-item .label {
  62. font-size: 26rpx;
  63. color: #666666;
  64. margin-bottom: 8rpx;
  65. }
  66. .stats-item .amount-wrap {
  67. display: flex;
  68. align-items: center;
  69. margin-bottom: 8rpx;
  70. }
  71. .stats-item .amount {
  72. font-size: 36rpx;
  73. color: #333333;
  74. font-weight: 500;
  75. }
  76. .stats-item .trend-arrow {
  77. display: inline-block;
  78. margin-left: 8rpx;
  79. width: 0;
  80. height: 0;
  81. border-style: solid;
  82. }
  83. .stats-item .trend-arrow.up {
  84. border-width: 0 12rpx 16rpx 12rpx;
  85. border-color: transparent transparent #ff4d4f transparent;
  86. }
  87. .stats-item .trend-arrow.down {
  88. border-width: 16rpx 12rpx 0 12rpx;
  89. border-color: #52c41a transparent transparent transparent;
  90. }
  91. .stats-item .trend-arrow.equal {
  92. width: auto;
  93. height: auto;
  94. border: none;
  95. color: #999999;
  96. font-size: 24rpx;
  97. }
  98. .stats-item .trend-arrow.equal::before {
  99. content: '-';
  100. }
  101. .stats-item .sub-amount {
  102. font-size: 24rpx;
  103. color: #999999;
  104. margin-top: 4rpx;
  105. }
  106. /* 收入对比样式 */
  107. .income-compare {
  108. width: 100%;
  109. text-align: left;
  110. }
  111. .compare-main {
  112. margin-bottom: 12rpx;
  113. padding-bottom: 12rpx;
  114. border-bottom: 1rpx solid rgba(0, 0, 0, 0.05);
  115. }
  116. .compare-main .label {
  117. font-size: 26rpx;
  118. color: #666666;
  119. margin-bottom: 8rpx;
  120. }
  121. .compare-main .amount {
  122. font-size: 36rpx;
  123. color: #ff4d4f;
  124. font-weight: bold;
  125. }
  126. .compare-sub {
  127. display: flex;
  128. align-items: center;
  129. justify-content: space-between;
  130. }
  131. .compare-sub .label {
  132. font-size: 24rpx;
  133. color: #999999;
  134. }
  135. .compare-sub .amount {
  136. font-size: 26rpx;
  137. color: #666666;
  138. margin: 0 12rpx;
  139. }
  140. /* 收入明细样式 */
  141. .income-list {
  142. background: #ffffff;
  143. border-radius: 16rpx;
  144. padding: 32rpx;
  145. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.02);
  146. }
  147. .list-header {
  148. font-size: 32rpx;
  149. color: #333333;
  150. font-weight: 500;
  151. margin-bottom: 24rpx;
  152. }
  153. .income-item {
  154. padding: 24rpx 0;
  155. border-bottom: 1rpx solid #f6f6fa;
  156. }
  157. .income-item:last-child {
  158. border-bottom: none;
  159. }
  160. .item-main {
  161. display: flex;
  162. justify-content: space-between;
  163. align-items: center;
  164. margin-bottom: 12rpx;
  165. }
  166. .item-type {
  167. font-size: 28rpx;
  168. color: #333333;
  169. font-weight: 500;
  170. }
  171. .item-amount {
  172. font-size: 32rpx;
  173. color: #ff4d4f;
  174. font-weight: 500;
  175. }
  176. .item-sub {
  177. display: flex;
  178. justify-content: space-between;
  179. align-items: center;
  180. }
  181. .item-time {
  182. font-size: 24rpx;
  183. color: #999999;
  184. }
  185. .item-status {
  186. font-size: 24rpx;
  187. color: #666666;
  188. }
  189. .item-note {
  190. font-size: 24rpx;
  191. color: #999999;
  192. margin-top: 8rpx;
  193. }
  194. /* 深色模式样式 */
  195. .dark-mode {
  196. background: #1f1f1f;
  197. }
  198. .dark-mode .income-stats,
  199. .dark-mode .income-list {
  200. background: #2c2c2c;
  201. }
  202. .dark-mode .stats-header,
  203. .dark-mode .total-income .amount,
  204. .dark-mode .stats-item .amount,
  205. .dark-mode .item-type {
  206. color: #fff;
  207. }
  208. .dark-mode .unit-text,
  209. .dark-mode .total-income .label,
  210. .dark-mode .stats-item .label,
  211. .dark-mode .item-sub,
  212. .dark-mode .item-note {
  213. color: #888;
  214. }
  215. .dark-mode .stats-item {
  216. background: #363636;
  217. }
  218. .dark-mode .income-item {
  219. border-bottom-color: #363636;
  220. }
  221. .no-more, .empty {
  222. text-align: center;
  223. padding: 30rpx;
  224. color: #999;
  225. font-size: 26rpx;
  226. }
  227. .withdraw-btn {
  228. margin-top: 32rpx;
  229. background: #ff4d4f;
  230. color: #ffffff;
  231. border: none;
  232. border-radius: 12rpx;
  233. font-size: 30rpx;
  234. padding: 20rpx 0;
  235. transition: all 0.3s ease;
  236. }
  237. .withdraw-btn:active {
  238. opacity: 0.9;
  239. transform: scale(0.98);
  240. }
  241. .withdraw-btn::after {
  242. display: none;
  243. }
  244. .compare-info {
  245. font-size: 24rpx;
  246. color: #999999;
  247. display: flex;
  248. align-items: center;
  249. gap: 8rpx;
  250. }
  251. .stats-row {
  252. display: flex;
  253. align-items: center;
  254. gap: 12rpx;
  255. margin: 24rpx 0;
  256. }
  257. .stats-row .stats-item {
  258. flex: 1;
  259. margin: 0;
  260. }
  261. .formula-text {
  262. font-size: 32rpx;
  263. color: #999;
  264. margin: 0 4rpx;
  265. padding-top: 20rpx; /* 为了与金额数字对齐 */
  266. }
  267. .stats-grid {
  268. display: grid;
  269. grid-template-columns: repeat(2, 1fr);
  270. gap: 24rpx;
  271. margin-top: 24rpx;
  272. }
  273. .stats-item {
  274. padding: 24rpx;
  275. background: #f9f9f9;
  276. border-radius: 12rpx;
  277. }
  278. .stats-item .label {
  279. font-size: 26rpx;
  280. color: #666666;
  281. margin-bottom: 8rpx;
  282. }
  283. .amount-wrap {
  284. display: flex;
  285. align-items: center;
  286. margin-bottom: 8rpx;
  287. }
  288. .amount {
  289. font-size: 36rpx;
  290. color: #333333;
  291. font-weight: 500;
  292. }