微信小店联盟带货小程序

app.wxss 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568
  1. /**app.wxss**/
  2. page {
  3. background: #f8f8f8;
  4. font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica,
  5. Segoe UI, Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei',
  6. sans-serif;
  7. }
  8. .container {
  9. min-height: 100vh;
  10. box-sizing: border-box;
  11. }
  12. .flex {
  13. display: flex;
  14. }
  15. .flex-col {
  16. display: flex;
  17. flex-direction: column;
  18. }
  19. .justify-between {
  20. justify-content: space-between;
  21. }
  22. .justify-center {
  23. justify-content: center;
  24. }
  25. .align-center {
  26. align-items: center;
  27. }
  28. .text-center {
  29. text-align: center;
  30. }
  31. .text-right {
  32. text-align: right;
  33. }
  34. .text-overflow {
  35. overflow: hidden;
  36. text-overflow: ellipsis;
  37. white-space: nowrap;
  38. }
  39. .multi-text-overflow {
  40. display: -webkit-box;
  41. -webkit-box-orient: vertical;
  42. -webkit-line-clamp: 2;
  43. overflow: hidden;
  44. }
  45. .gray {
  46. color: #999;
  47. }
  48. .red {
  49. color: #ff4d4f;
  50. }
  51. .bg-white {
  52. background: #fff;
  53. }
  54. .font-bold {
  55. font-weight: bold;
  56. }
  57. .full-width {
  58. width: 100%;
  59. }
  60. .full-height {
  61. height: 100%;
  62. }
  63. .position-relative {
  64. position: relative;
  65. }
  66. .position-absolute {
  67. position: absolute;
  68. }
  69. .position-fixed {
  70. position: fixed;
  71. }
  72. .border-box {
  73. box-sizing: border-box;
  74. }
  75. .border-none {
  76. border: none;
  77. }
  78. .border-radius {
  79. border-radius: 8rpx;
  80. }
  81. .border-radius-circle {
  82. border-radius: 50%;
  83. }
  84. .shadow {
  85. box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1);
  86. }
  87. .transition {
  88. transition: all 0.3s ease;
  89. }
  90. .hover-opacity {
  91. opacity: 1;
  92. transition: opacity 0.3s ease;
  93. }
  94. .hover-opacity:active {
  95. opacity: 0.7;
  96. }
  97. .hover-scale {
  98. transform: scale(1);
  99. transition: transform 0.3s ease;
  100. }
  101. .hover-scale:active {
  102. transform: scale(0.98);
  103. }
  104. .safe-bottom {
  105. padding-bottom: constant(safe-area-inset-bottom);
  106. padding-bottom: env(safe-area-inset-bottom);
  107. }
  108. .loading {
  109. display: flex;
  110. align-items: center;
  111. justify-content: center;
  112. padding: 30rpx;
  113. }
  114. .loading-text {
  115. color: #999;
  116. font-size: 24rpx;
  117. margin-left: 10rpx;
  118. }
  119. .empty {
  120. display: flex;
  121. flex-direction: column;
  122. align-items: center;
  123. justify-content: center;
  124. padding: 60rpx 30rpx;
  125. }
  126. .empty-icon {
  127. width: 200rpx;
  128. height: 200rpx;
  129. margin-bottom: 20rpx;
  130. }
  131. .empty-text {
  132. color: #999;
  133. font-size: 28rpx;
  134. }
  135. .btn {
  136. display: flex;
  137. align-items: center;
  138. justify-content: center;
  139. padding: 0 30rpx;
  140. font-size: 28rpx;
  141. border-radius: 8rpx;
  142. border: none;
  143. background: none;
  144. }
  145. .btn::after {
  146. display: none;
  147. }
  148. .btn-primary {
  149. background: #ff4d4f;
  150. color: #fff;
  151. }
  152. .btn-default {
  153. background: #f5f5f5;
  154. color: #333;
  155. }
  156. .btn-plain {
  157. border: 1rpx solid #ddd;
  158. color: #333;
  159. }
  160. .btn-large {
  161. width: 100%;
  162. height: 88rpx;
  163. }
  164. .btn-medium {
  165. height: 72rpx;
  166. }
  167. .btn-small {
  168. height: 56rpx;
  169. font-size: 24rpx;
  170. }
  171. .btn-mini {
  172. height: 48rpx;
  173. font-size: 24rpx;
  174. padding: 0 20rpx;
  175. }
  176. .btn.disabled {
  177. opacity: 0.5;
  178. pointer-events: none;
  179. }
  180. .mask {
  181. position: fixed;
  182. top: 0;
  183. left: 0;
  184. right: 0;
  185. bottom: 0;
  186. background: rgba(0, 0, 0, 0.5);
  187. z-index: 100;
  188. }
  189. .popup {
  190. position: fixed;
  191. z-index: 101;
  192. background: #fff;
  193. transition: all 0.3s ease;
  194. }
  195. .popup-bottom {
  196. left: 0;
  197. right: 0;
  198. bottom: 0;
  199. transform: translateY(100%);
  200. border-radius: 24rpx 24rpx 0 0;
  201. }
  202. .popup-bottom.show {
  203. transform: translateY(0);
  204. }
  205. .popup-center {
  206. top: 50%;
  207. left: 50%;
  208. transform: translate(-50%, -50%) scale(0.8);
  209. opacity: 0;
  210. border-radius: 12rpx;
  211. }
  212. .popup-center.show {
  213. transform: translate(-50%, -50%) scale(1);
  214. opacity: 1;
  215. }
  216. .divider {
  217. width: 100%;
  218. height: 1rpx;
  219. background: #eee;
  220. margin: 20rpx 0;
  221. }
  222. .badge {
  223. position: absolute;
  224. background: #ff4d4f;
  225. color: #fff;
  226. font-size: 20rpx;
  227. padding: 0 10rpx;
  228. height: 32rpx;
  229. min-width: 32rpx;
  230. line-height: 32rpx;
  231. text-align: center;
  232. border-radius: 16rpx;
  233. transform: translate(50%, -50%);
  234. top: 0;
  235. right: 0;
  236. }
  237. .tag {
  238. display: inline-flex;
  239. align-items: center;
  240. padding: 0 16rpx;
  241. height: 40rpx;
  242. font-size: 20rpx;
  243. border-radius: 4rpx;
  244. }
  245. .tag-primary {
  246. background: #fff1f0;
  247. color: #ff4d4f;
  248. }
  249. .tag-success {
  250. background: #f6ffed;
  251. color: #52c41a;
  252. }
  253. .tag-warning {
  254. background: #fffbe6;
  255. color: #faad14;
  256. }
  257. .tag-info {
  258. background: #e6f7ff;
  259. color: #1890ff;
  260. }
  261. .avatar {
  262. width: 80rpx;
  263. height: 80rpx;
  264. border-radius: 50%;
  265. background: #eee;
  266. }
  267. .avatar-large {
  268. width: 120rpx;
  269. height: 120rpx;
  270. }
  271. .avatar-small {
  272. width: 60rpx;
  273. height: 60rpx;
  274. }
  275. .price {
  276. font-size: 32rpx;
  277. color: #ff4d4f;
  278. font-weight: 500;
  279. }
  280. .price-symbol {
  281. font-size: 24rpx;
  282. margin-right: 2rpx;
  283. }
  284. .price-decimal {
  285. font-size: 24rpx;
  286. margin-left: 2rpx;
  287. }
  288. .price-large {
  289. font-size: 48rpx;
  290. }
  291. .price-large .price-symbol {
  292. font-size: 32rpx;
  293. }
  294. .price-large .price-decimal {
  295. font-size: 32rpx;
  296. }
  297. .price-small {
  298. font-size: 28rpx;
  299. }
  300. .price-small .price-symbol {
  301. font-size: 20rpx;
  302. }
  303. .price-small .price-decimal {
  304. font-size: 20rpx;
  305. }
  306. .card {
  307. background: #fff;
  308. border-radius: 12rpx;
  309. padding: 20rpx;
  310. margin-bottom: 20rpx;
  311. }
  312. .list {
  313. background: #fff;
  314. }
  315. .list-item {
  316. display: flex;
  317. align-items: center;
  318. padding: 30rpx;
  319. border-bottom: 1rpx solid #eee;
  320. }
  321. .list-item:last-child {
  322. border-bottom: none;
  323. }
  324. .list-item-content {
  325. flex: 1;
  326. }
  327. .list-item-title {
  328. font-size: 28rpx;
  329. color: #333;
  330. margin-bottom: 8rpx;
  331. }
  332. .list-item-desc {
  333. font-size: 24rpx;
  334. color: #999;
  335. }
  336. .list-item-extra {
  337. margin-left: 20rpx;
  338. }
  339. .grid {
  340. display: flex;
  341. flex-wrap: wrap;
  342. }
  343. .grid-item {
  344. width: 33.33%;
  345. display: flex;
  346. flex-direction: column;
  347. align-items: center;
  348. justify-content: center;
  349. padding: 20rpx;
  350. box-sizing: border-box;
  351. }
  352. .grid-item-icon {
  353. width: 80rpx;
  354. height: 80rpx;
  355. margin-bottom: 10rpx;
  356. }
  357. .grid-item-text {
  358. font-size: 24rpx;
  359. color: #666;
  360. }
  361. .form-item {
  362. display: flex;
  363. align-items: center;
  364. padding: 30rpx;
  365. background: #fff;
  366. border-bottom: 1rpx solid #eee;
  367. }
  368. .form-label {
  369. width: 200rpx;
  370. font-size: 28rpx;
  371. color: #333;
  372. }
  373. .form-input {
  374. flex: 1;
  375. font-size: 28rpx;
  376. }
  377. .form-input-placeholder {
  378. color: #999;
  379. }
  380. .form-extra {
  381. margin-left: 20rpx;
  382. }
  383. .tabs {
  384. display: flex;
  385. background: #fff;
  386. border-bottom: 1rpx solid #eee;
  387. }
  388. .tab {
  389. flex: 1;
  390. display: flex;
  391. align-items: center;
  392. justify-content: center;
  393. height: 88rpx;
  394. font-size: 28rpx;
  395. color: #666;
  396. position: relative;
  397. }
  398. .tab.active {
  399. color: #333;
  400. font-weight: 500;
  401. }
  402. .tab.active::after {
  403. content: '';
  404. position: absolute;
  405. left: 50%;
  406. bottom: 0;
  407. width: 40rpx;
  408. height: 4rpx;
  409. background: #ff4d4f;
  410. transform: translateX(-50%);
  411. }
  412. .steps {
  413. display: flex;
  414. align-items: center;
  415. padding: 30rpx;
  416. background: #fff;
  417. }
  418. .step {
  419. flex: 1;
  420. display: flex;
  421. flex-direction: column;
  422. align-items: center;
  423. position: relative;
  424. }
  425. .step::before,
  426. .step::after {
  427. content: '';
  428. position: absolute;
  429. top: 40rpx;
  430. width: 50%;
  431. height: 2rpx;
  432. background: #ddd;
  433. }
  434. .step::before {
  435. left: 0;
  436. }
  437. .step::after {
  438. right: 0;
  439. }
  440. .step:first-child::before,
  441. .step:last-child::after {
  442. display: none;
  443. }
  444. .step-icon {
  445. width: 80rpx;
  446. height: 80rpx;
  447. border-radius: 50%;
  448. background: #ddd;
  449. display: flex;
  450. align-items: center;
  451. justify-content: center;
  452. margin-bottom: 10rpx;
  453. position: relative;
  454. z-index: 1;
  455. }
  456. .step.active .step-icon {
  457. background: #ff4d4f;
  458. color: #fff;
  459. }
  460. .step-text {
  461. font-size: 24rpx;
  462. color: #999;
  463. }
  464. .step.active .step-text {
  465. color: #333;
  466. }