微信小店联盟带货小程序

index.wxss 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. /* pages/distribution/index.wxss */
  2. .container {
  3. min-height: 100vh;
  4. background: #f5f5f5;
  5. padding-bottom: 40rpx;
  6. }
  7. /* 头部样式 */
  8. .header {
  9. background: linear-gradient(135deg, #FF4D4F, #FF7875);
  10. padding: 40rpx 30rpx;
  11. color: #fff;
  12. }
  13. .user-info {
  14. display: flex;
  15. align-items: center;
  16. margin-bottom: 30rpx;
  17. }
  18. .avatar-wrap {
  19. position: relative;
  20. margin-right: 20rpx;
  21. width: 120rpx;
  22. height: 120rpx;
  23. }
  24. .avatar {
  25. width: 120rpx;
  26. height: 120rpx;
  27. border-radius: 50%;
  28. border: 4rpx solid rgba(255, 255, 255, 0.3);
  29. background-color: #f5f5f5;
  30. object-fit: cover;
  31. }
  32. .level {
  33. position: absolute;
  34. bottom: -6rpx;
  35. left: 50%;
  36. transform: translateX(-50%);
  37. background: #FFD700;
  38. color: #333;
  39. font-size: 20rpx;
  40. padding: 4rpx 12rpx;
  41. border-radius: 20rpx;
  42. z-index: 1;
  43. white-space: nowrap;
  44. }
  45. .info .nickname {
  46. font-size: 32rpx;
  47. font-weight: bold;
  48. margin-bottom: 10rpx;
  49. }
  50. .info .id {
  51. font-size: 24rpx;
  52. opacity: 0.8;
  53. }
  54. .level-progress {
  55. background: rgba(255, 255, 255, 0.1);
  56. border-radius: 12rpx;
  57. padding: 20rpx;
  58. }
  59. .progress-info {
  60. display: flex;
  61. justify-content: space-between;
  62. font-size: 24rpx;
  63. margin-bottom: 15rpx;
  64. }
  65. .progress-bar {
  66. height: 6rpx;
  67. background: rgba(255, 255, 255, 0.2);
  68. border-radius: 3rpx;
  69. }
  70. .progress {
  71. height: 100%;
  72. background: #FFD700;
  73. border-radius: 3rpx;
  74. transition: width 0.3s;
  75. }
  76. /* 收益面板 */
  77. .earnings-panel {
  78. background: #fff;
  79. margin: 20rpx;
  80. border-radius: 12rpx;
  81. padding: 30rpx;
  82. }
  83. .total-earnings {
  84. text-align: center;
  85. margin-bottom: 30rpx;
  86. }
  87. .total-earnings .amount {
  88. font-size: 48rpx;
  89. color: #ff4d4f;
  90. font-weight: bold;
  91. margin-bottom: 10rpx;
  92. }
  93. .total-earnings .label {
  94. font-size: 24rpx;
  95. color: #666;
  96. }
  97. .earnings-grid {
  98. display: flex;
  99. justify-content: space-between;
  100. }
  101. .earnings-grid .grid-item {
  102. flex: 1;
  103. text-align: center;
  104. }
  105. .earnings-grid .amount {
  106. font-size: 32rpx;
  107. color: #333;
  108. font-weight: bold;
  109. margin-bottom: 10rpx;
  110. }
  111. .earnings-grid .label {
  112. font-size: 24rpx;
  113. color: #666;
  114. }
  115. /* 推广数据面板 */
  116. .promotion-panel {
  117. background: #fff;
  118. border-radius: 16rpx;
  119. margin: 20rpx;
  120. padding: 30rpx;
  121. }
  122. .panel-title {
  123. font-size: 32rpx;
  124. color: #333;
  125. font-weight: 500;
  126. margin-bottom: 30rpx;
  127. }
  128. .promotion-grid {
  129. display: flex;
  130. flex-direction: column;
  131. gap: 20rpx;
  132. }
  133. .grid-row {
  134. display: flex;
  135. gap: 20rpx;
  136. }
  137. .grid-item {
  138. flex: 1;
  139. background: #f8f8f8;
  140. border-radius: 12rpx;
  141. padding: 24rpx;
  142. display: flex;
  143. flex-direction: column;
  144. gap: 12rpx;
  145. }
  146. .item-main {
  147. display: flex;
  148. align-items: center;
  149. gap: 8rpx;
  150. }
  151. .amount {
  152. font-size: 36rpx;
  153. color: #333;
  154. font-weight: 600;
  155. }
  156. .amount.highlight {
  157. font-size: 44rpx;
  158. }
  159. .compare-line {
  160. display: flex;
  161. align-items: center;
  162. gap: 8rpx;
  163. }
  164. .trend {
  165. display: inline-flex;
  166. align-items: center;
  167. font-size: 24rpx;
  168. padding: 4rpx 8rpx;
  169. border-radius: 8rpx;
  170. white-space: nowrap;
  171. }
  172. .trend.up {
  173. color: #ff4d4f;
  174. background: rgba(255, 77, 79, 0.1);
  175. }
  176. .trend.down {
  177. color: #52c41a;
  178. background: rgba(82, 196, 26, 0.1);
  179. }
  180. .trend-icon {
  181. display: inline-block;
  182. width: 0;
  183. height: 0;
  184. border: 6rpx solid transparent;
  185. margin-right: 4rpx;
  186. }
  187. .trend.up .trend-icon {
  188. border-bottom: 8rpx solid #ff4d4f;
  189. margin-top: -4rpx;
  190. }
  191. .trend.down .trend-icon {
  192. border-top: 8rpx solid #52c41a;
  193. margin-bottom: -4rpx;
  194. }
  195. .label {
  196. font-size: 26rpx;
  197. color: #666;
  198. line-height: 1.4;
  199. }
  200. .compare {
  201. font-size: 22rpx;
  202. color: #999;
  203. line-height: 1.2;
  204. }
  205. /* 深色模式 */
  206. @media (prefers-color-scheme: dark) {
  207. .promotion-panel {
  208. background: #2a2a2a;
  209. }
  210. .panel-title {
  211. color: #fff;
  212. }
  213. .grid-item {
  214. background: #1f1f1f;
  215. }
  216. .amount {
  217. color: #fff;
  218. }
  219. .label {
  220. color: #999;
  221. }
  222. .compare {
  223. color: #666;
  224. }
  225. }
  226. /* 图表区域 */
  227. .chart-tabs {
  228. display: flex;
  229. justify-content: space-around;
  230. padding: 20rpx 0;
  231. border-bottom: 2rpx solid #f5f5f5;
  232. margin-top: 30rpx;
  233. }
  234. .tab-item {
  235. font-size: 28rpx;
  236. color: #666;
  237. padding: 10rpx 20rpx;
  238. position: relative;
  239. }
  240. .tab-item.active {
  241. color: #ff4d4f;
  242. font-weight: 500;
  243. }
  244. .tab-item.active::after {
  245. content: '';
  246. position: absolute;
  247. bottom: -12rpx;
  248. left: 50%;
  249. transform: translateX(-50%);
  250. width: 40rpx;
  251. height: 4rpx;
  252. background: #ff4d4f;
  253. border-radius: 2rpx;
  254. }
  255. .chart-container {
  256. width: 100%;
  257. height: 400rpx;
  258. margin-top: 20rpx;
  259. }
  260. ec-canvas {
  261. width: 100%;
  262. height: 100%;
  263. }
  264. /* 推广工具 */
  265. .tools-panel {
  266. background: #fff;
  267. margin: 20rpx;
  268. border-radius: 12rpx;
  269. padding: 30rpx;
  270. }
  271. .tools-grid {
  272. display: grid;
  273. grid-template-columns: repeat(4, 1fr);
  274. gap: 20rpx;
  275. }
  276. .tool-item {
  277. display: flex;
  278. flex-direction: column;
  279. align-items: center;
  280. }
  281. .tool-icon {
  282. width: 80rpx;
  283. height: 80rpx;
  284. margin-bottom: 10rpx;
  285. }
  286. .tool-item text {
  287. font-size: 24rpx;
  288. color: #666;
  289. }
  290. /* 等级说明 */
  291. .level-panel {
  292. background: #fff;
  293. margin: 20rpx;
  294. border-radius: 12rpx;
  295. padding: 30rpx;
  296. }
  297. .panel-header {
  298. display: flex;
  299. justify-content: space-between;
  300. align-items: center;
  301. margin-bottom: 30rpx;
  302. }
  303. .panel-header .title {
  304. font-size: 30rpx;
  305. color: #333;
  306. font-weight: bold;
  307. }
  308. .panel-header .more {
  309. display: flex;
  310. align-items: center;
  311. font-size: 24rpx;
  312. color: #999;
  313. }
  314. .more .icon-right {
  315. font-size: 24rpx;
  316. margin-left: 4rpx;
  317. }
  318. .level-list .level-item {
  319. background: #f8f8f8;
  320. border-radius: 8rpx;
  321. padding: 20rpx;
  322. margin-bottom: 20rpx;
  323. }
  324. .level-item.current {
  325. background: #FFF7F7;
  326. border: 1rpx solid #ffccc7;
  327. }
  328. .level-name {
  329. display: flex;
  330. align-items: center;
  331. margin-bottom: 10rpx;
  332. }
  333. .level-name .name {
  334. font-size: 28rpx;
  335. color: #333;
  336. font-weight: bold;
  337. }
  338. .level-name .tag {
  339. font-size: 20rpx;
  340. color: #ff4d4f;
  341. border: 1rpx solid #ff4d4f;
  342. padding: 2rpx 10rpx;
  343. border-radius: 20rpx;
  344. margin-left: 10rpx;
  345. }
  346. .level-info {
  347. font-size: 24rpx;
  348. color: #666;
  349. margin-bottom: 10rpx;
  350. }
  351. .level-info .divider {
  352. margin: 0 10rpx;
  353. color: #ddd;
  354. }
  355. .requirement {
  356. font-size: 24rpx;
  357. color: #999;
  358. }