微信小店联盟带货小程序

index.wxss 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. .container {
  2. min-height: 100vh;
  3. background: #f7f7f7;
  4. padding: 30rpx 24rpx;
  5. box-sizing: border-box;
  6. }
  7. /* 顶部邀请卡片 */
  8. .invite-card {
  9. background: linear-gradient(135deg, #ff4d4f, #ff7875);
  10. border-radius: 24rpx;
  11. padding: 40rpx 30rpx;
  12. color: #fff;
  13. box-shadow: 0 8rpx 24rpx rgba(255, 77, 79, 0.2);
  14. margin-bottom: 24rpx;
  15. }
  16. .card-header {
  17. margin-bottom: 40rpx;
  18. }
  19. .header-title {
  20. margin-bottom: 30rpx;
  21. }
  22. .header-title .title {
  23. font-size: 40rpx;
  24. font-weight: 600;
  25. margin-bottom: 12rpx;
  26. display: block;
  27. }
  28. .header-title .subtitle {
  29. font-size: 26rpx;
  30. opacity: 0.9;
  31. }
  32. .header-rewards {
  33. display: flex;
  34. align-items: center;
  35. justify-content: space-around;
  36. background: rgba(255, 255, 255, 0.1);
  37. border-radius: 16rpx;
  38. padding: 24rpx;
  39. }
  40. .reward-item {
  41. display: flex;
  42. flex-direction: column;
  43. align-items: center;
  44. flex: 1;
  45. }
  46. .reward-value {
  47. font-size: 44rpx;
  48. font-weight: 600;
  49. margin-bottom: 8rpx;
  50. }
  51. .reward-label {
  52. font-size: 24rpx;
  53. opacity: 0.9;
  54. }
  55. .reward-divider {
  56. width: 2rpx;
  57. height: 60rpx;
  58. background: rgba(255, 255, 255, 0.2);
  59. margin: 0 30rpx;
  60. }
  61. .card-body {
  62. background: rgba(255, 255, 255, 0.1);
  63. border-radius: 16rpx;
  64. padding: 24rpx;
  65. }
  66. .invite-code-box {
  67. margin-bottom: 24rpx;
  68. }
  69. .code-title {
  70. font-size: 26rpx;
  71. margin-bottom: 16rpx;
  72. opacity: 0.9;
  73. }
  74. .code-content {
  75. display: flex;
  76. align-items: center;
  77. justify-content: space-between;
  78. background: rgba(255, 255, 255, 0.1);
  79. border-radius: 12rpx;
  80. padding: 20rpx;
  81. }
  82. .code {
  83. font-size: 36rpx;
  84. font-weight: 600;
  85. letter-spacing: 4rpx;
  86. }
  87. .copy-btn {
  88. background: #fff;
  89. color: #ff4d4f;
  90. font-size: 26rpx;
  91. padding: 8rpx 24rpx;
  92. border-radius: 30rpx;
  93. margin: 0;
  94. line-height: 1.6;
  95. }
  96. .share-btn {
  97. width: 100%;
  98. background: #fff;
  99. color: #ff4d4f;
  100. font-size: 32rpx;
  101. font-weight: 600;
  102. border-radius: 40rpx;
  103. padding: 20rpx 0;
  104. display: flex;
  105. align-items: center;
  106. justify-content: center;
  107. margin: 0;
  108. }
  109. .share-icon {
  110. width: 36rpx;
  111. height: 36rpx;
  112. margin-right: 12rpx;
  113. }
  114. /* 数据统计面板 */
  115. .stats-panel {
  116. background: #fff;
  117. border-radius: 24rpx;
  118. padding: 30rpx;
  119. display: flex;
  120. justify-content: space-around;
  121. margin-bottom: 24rpx;
  122. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);
  123. }
  124. .stats-item {
  125. display: flex;
  126. flex-direction: column;
  127. align-items: center;
  128. }
  129. .stats-value {
  130. font-size: 36rpx;
  131. font-weight: 600;
  132. color: #333;
  133. margin-bottom: 8rpx;
  134. }
  135. .stats-label {
  136. font-size: 24rpx;
  137. color: #999;
  138. }
  139. /* 邀请规则卡片 */
  140. .rules-card {
  141. background: #fff;
  142. border-radius: 24rpx;
  143. padding: 30rpx;
  144. margin-bottom: 24rpx;
  145. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);
  146. }
  147. .rules-title {
  148. display: flex;
  149. justify-content: space-between;
  150. align-items: center;
  151. margin-bottom: 30rpx;
  152. font-size: 32rpx;
  153. font-weight: 600;
  154. color: #333;
  155. }
  156. .rules-more {
  157. font-size: 26rpx;
  158. color: #999;
  159. font-weight: normal;
  160. }
  161. .rules-steps {
  162. display: flex;
  163. align-items: center;
  164. justify-content: space-between;
  165. }
  166. .step-item {
  167. display: flex;
  168. flex-direction: column;
  169. align-items: center;
  170. }
  171. .step-circle {
  172. width: 60rpx;
  173. height: 60rpx;
  174. background: rgba(255, 77, 79, 0.1);
  175. border-radius: 50%;
  176. display: flex;
  177. align-items: center;
  178. justify-content: center;
  179. color: #ff4d4f;
  180. font-weight: 600;
  181. margin-bottom: 12rpx;
  182. }
  183. .step-text {
  184. font-size: 24rpx;
  185. color: #666;
  186. }
  187. .step-arrow {
  188. width: 40rpx;
  189. height: 2rpx;
  190. background: #ddd;
  191. position: relative;
  192. margin: 0 8rpx;
  193. top: -20rpx;
  194. }
  195. .step-arrow::after {
  196. content: '';
  197. position: absolute;
  198. right: 0;
  199. top: -4rpx;
  200. width: 10rpx;
  201. height: 10rpx;
  202. border-top: 2rpx solid #ddd;
  203. border-right: 2rpx solid #ddd;
  204. transform: rotate(45deg);
  205. }
  206. /* 邀请记录列表 */
  207. .records-card {
  208. background: #fff;
  209. border-radius: 24rpx;
  210. padding: 30rpx;
  211. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);
  212. }
  213. .records-title {
  214. display: flex;
  215. justify-content: space-between;
  216. align-items: center;
  217. margin-bottom: 24rpx;
  218. font-size: 32rpx;
  219. font-weight: 600;
  220. color: #333;
  221. }
  222. .records-count {
  223. font-size: 26rpx;
  224. color: #999;
  225. font-weight: normal;
  226. }
  227. .friend-list {
  228. max-height: 600rpx;
  229. overflow-y: auto;
  230. }
  231. .friend-item {
  232. display: flex;
  233. align-items: center;
  234. padding: 24rpx 0;
  235. border-bottom: 2rpx solid #f5f5f5;
  236. }
  237. .friend-item:last-child {
  238. border-bottom: none;
  239. }
  240. .friend-avatar {
  241. width: 80rpx;
  242. height: 80rpx;
  243. border-radius: 50%;
  244. margin-right: 20rpx;
  245. background: #f5f5f5;
  246. }
  247. .friend-info {
  248. flex: 1;
  249. }
  250. .friend-name {
  251. font-size: 28rpx;
  252. color: #333;
  253. margin-bottom: 8rpx;
  254. display: block;
  255. }
  256. .friend-time {
  257. font-size: 24rpx;
  258. color: #999;
  259. }
  260. .friend-reward {
  261. display: flex;
  262. flex-direction: column;
  263. align-items: flex-end;
  264. }
  265. .status-tag {
  266. font-size: 22rpx;
  267. padding: 4rpx 12rpx;
  268. border-radius: 20rpx;
  269. margin-bottom: 8rpx;
  270. }
  271. .status-tag.active {
  272. background: rgba(82, 196, 26, 0.1);
  273. color: #52c41a;
  274. }
  275. .status-tag.inactive {
  276. background: rgba(255, 77, 79, 0.1);
  277. color: #ff4d4f;
  278. }
  279. .reward-text {
  280. font-size: 26rpx;
  281. color: #ff4d4f;
  282. font-weight: 600;
  283. }
  284. /* 深色模式适配 */
  285. @media (prefers-color-scheme: dark) {
  286. .container {
  287. background: #1f1f1f;
  288. }
  289. .stats-panel,
  290. .rules-card,
  291. .records-card {
  292. background: #2d2d2d;
  293. box-shadow: none;
  294. }
  295. .stats-value {
  296. color: #fff;
  297. }
  298. .stats-label,
  299. .rules-more,
  300. .records-count {
  301. color: #666;
  302. }
  303. .rules-title,
  304. .records-title {
  305. color: #fff;
  306. }
  307. .step-text {
  308. color: #999;
  309. }
  310. .friend-name {
  311. color: #fff;
  312. }
  313. .friend-time {
  314. color: #666;
  315. }
  316. .friend-item {
  317. border-bottom-color: #333;
  318. }
  319. }