微信小店联盟带货小程序

index.wxss 9.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684
  1. .container {
  2. display: flex;
  3. flex-direction: column;
  4. height: 100vh;
  5. background: #f5f5f5;
  6. }
  7. /* 商品列表样式 */
  8. .goods-list {
  9. flex: 1;
  10. }
  11. .goods-item {
  12. display: flex;
  13. padding: 20rpx 30rpx;
  14. background: #fff;
  15. margin-bottom: 2rpx;
  16. }
  17. .goods-image {
  18. width: 180rpx;
  19. height: 180rpx;
  20. border-radius: 8rpx;
  21. margin-right: 20rpx;
  22. flex-shrink: 0;
  23. }
  24. .goods-content {
  25. flex: 1;
  26. min-width: 0;
  27. display: flex;
  28. flex-direction: column;
  29. }
  30. .goods-title {
  31. font-size: 28rpx;
  32. color: #333;
  33. line-height: 1.4;
  34. margin-bottom: 8rpx;
  35. display: -webkit-box;
  36. -webkit-box-orient: vertical;
  37. -webkit-line-clamp: 2;
  38. overflow: hidden;
  39. }
  40. .goods-subtitle {
  41. font-size: 24rpx;
  42. color: #666;
  43. margin-bottom: 8rpx;
  44. display: -webkit-box;
  45. -webkit-box-orient: vertical;
  46. -webkit-line-clamp: 1;
  47. overflow: hidden;
  48. }
  49. .goods-info {
  50. display: flex;
  51. align-items: center;
  52. justify-content: space-between;
  53. margin-top: auto;
  54. }
  55. .price-wrap {
  56. display: flex;
  57. align-items: baseline;
  58. }
  59. .price-symbol {
  60. font-size: 24rpx;
  61. color: #f3b64c;
  62. }
  63. .price {
  64. font-size: 32rpx;
  65. font-weight: bold;
  66. padding: 4rpx 8rpx;
  67. background: #ffffff;
  68. border-radius: 4rpx;
  69. }
  70. .commission-wrap {
  71. display: flex;
  72. align-items: center;
  73. }
  74. .commission-label {
  75. font-size: 24rpx;
  76. color: #ffffff;
  77. background: #f3b64c;
  78. padding: 4rpx 8rpx;
  79. border-radius: 4rpx;
  80. }
  81. .commission-amount {
  82. font-size: 24rpx;
  83. color: #f3b64c;
  84. margin-left: 4rpx;
  85. padding: 4rpx 8rpx;
  86. background: #ffffff;
  87. border-radius: 4rpx;
  88. }
  89. .goods-extra {
  90. display: flex;
  91. margin-top: 12rpx;
  92. font-size: 24rpx;
  93. color: #999;
  94. }
  95. .goods-extra text {
  96. margin-right: 20rpx;
  97. }
  98. /* 加载更多样式 */
  99. .loading-more {
  100. display: flex;
  101. align-items: center;
  102. justify-content: center;
  103. padding: 20rpx 0;
  104. }
  105. .loading-icon {
  106. width: 40rpx;
  107. height: 40rpx;
  108. margin-right: 10rpx;
  109. border: 4rpx solid #f3f3f3;
  110. border-top: 4rpx solid #e4393c;
  111. border-radius: 50%;
  112. animation: spin 1s linear infinite;
  113. }
  114. @keyframes spin {
  115. 0% { transform: rotate(0deg); }
  116. 100% { transform: rotate(360deg); }
  117. }
  118. .no-more {
  119. text-align: center;
  120. padding: 20rpx 0;
  121. color: #999;
  122. font-size: 24rpx;
  123. }
  124. /* 空状态样式 */
  125. .empty-state {
  126. display: flex;
  127. flex-direction: column;
  128. align-items: center;
  129. justify-content: center;
  130. padding-top: 200rpx;
  131. }
  132. .empty-state text {
  133. margin-top: 20rpx;
  134. color: #999;
  135. font-size: 28rpx;
  136. }
  137. /* 自定义弹窗样式 */
  138. .custom-modal {
  139. position: fixed;
  140. top: 0;
  141. right: 0;
  142. bottom: 0;
  143. left: 0;
  144. z-index: 10001;
  145. display: flex;
  146. align-items: center;
  147. justify-content: center;
  148. }
  149. .modal-mask {
  150. position: fixed;
  151. top: 0;
  152. left: 0;
  153. right: 0;
  154. bottom: 0;
  155. background: rgba(0, 0, 0, 0.7);
  156. z-index: 1001;
  157. }
  158. .modal-content {
  159. position: relative;
  160. background: #fff;
  161. width: 580rpx;
  162. border-radius: 20rpx;
  163. z-index: 1002;
  164. overflow: hidden;
  165. padding: 45rpx 0;
  166. text-align: center;
  167. }
  168. .modal-icons {
  169. display: flex;
  170. align-items: center;
  171. justify-content: center;
  172. margin-bottom: 40rpx;
  173. }
  174. .icon-left, .icon-right {
  175. width: 80rpx;
  176. height: 80rpx;
  177. border-radius: 50%;
  178. background: #FF6B4A;
  179. padding: 15rpx;
  180. }
  181. .icon-arrow {
  182. margin: 0 30rpx;
  183. }
  184. .arrow-text {
  185. color: #999;
  186. font-size: 40rpx;
  187. }
  188. .modal-title {
  189. font-size: 34rpx;
  190. color: #333;
  191. font-weight: 500;
  192. margin-bottom: 20rpx;
  193. }
  194. .modal-subtitle {
  195. font-size: 28rpx;
  196. color: #666;
  197. margin-bottom: 20rpx;
  198. }
  199. .modal-btn-wrap {
  200. margin-bottom: 15rpx;
  201. }
  202. .auth-btn {
  203. background: #FF6B4A;
  204. color: #fff;
  205. font-size: 32rpx;
  206. height: 88rpx;
  207. line-height: 88rpx;
  208. border-radius: 44rpx;
  209. width: 100%;
  210. border: none;
  211. font-weight: normal;
  212. padding: 0;
  213. margin: 0;
  214. text-align: center;
  215. display: flex;
  216. align-items: center;
  217. justify-content: center;
  218. }
  219. .auth-btn::after {
  220. border: none;
  221. }
  222. .modal-cancel {
  223. color: #999;
  224. font-size: 28rpx;
  225. }
  226. /* 按钮点击效果 */
  227. .auth-btn:active {
  228. opacity: 0.8;
  229. }
  230. .modal-cancel:active {
  231. opacity: 0.6;
  232. }
  233. /* store-product自定义样式 */
  234. .store-product-content {
  235. padding: 20rpx;
  236. background: #fff;
  237. border-radius: 12rpx;
  238. margin: 20rpx;
  239. }
  240. .product-header {
  241. margin-bottom: 20rpx;
  242. }
  243. .product-title {
  244. font-size: 32rpx;
  245. font-weight: bold;
  246. color: #333;
  247. }
  248. .product-action {
  249. margin-top: 20rpx;
  250. text-align: center;
  251. }
  252. .buy-btn {
  253. height: 80rpx;
  254. line-height: 80rpx;
  255. background: #ff4d4f;
  256. color: #fff;
  257. font-size: 32rpx;
  258. border-radius: 40rpx;
  259. }
  260. /* 产品模态框样式 */
  261. .product-modal {
  262. padding: 30rpx;
  263. }
  264. .product-image {
  265. width: 100%;
  266. height: 400rpx;
  267. border-radius: 12rpx;
  268. margin-bottom: 20rpx;
  269. }
  270. .product-info {
  271. margin-bottom: 30rpx;
  272. }
  273. .product-price {
  274. display: flex;
  275. align-items: baseline;
  276. margin-bottom: 16rpx;
  277. }
  278. .price-symbol {
  279. font-size: 24rpx;
  280. color: #FF4B4B;
  281. }
  282. .price-value {
  283. font-size: 36rpx;
  284. font-weight: bold;
  285. color: #FF4B4B;
  286. }
  287. .estimated-earnings {
  288. display: flex;
  289. align-items: center;
  290. gap: 10rpx;
  291. }
  292. .earnings-label {
  293. font-size: 24rpx;
  294. color: #666;
  295. }
  296. .earnings-value {
  297. font-size: 28rpx;
  298. color: #FF4B4B;
  299. font-weight: bold;
  300. }
  301. .modal-actions {
  302. display: flex;
  303. gap: 20rpx;
  304. }
  305. .action-btn {
  306. flex: 1;
  307. height: 80rpx;
  308. line-height: 80rpx;
  309. text-align: center;
  310. border-radius: 40rpx;
  311. font-size: 28rpx;
  312. font-weight: bold;
  313. }
  314. .action-btn.buy {
  315. background: #FF4B4B;
  316. color: #fff;
  317. }
  318. .action-btn.share {
  319. background: #FFE4E4;
  320. color: #FF4B4B;
  321. }
  322. /* 已授权状态下的弹窗样式 */
  323. .product-modal {
  324. padding: 20rpx;
  325. background: #fff;
  326. border-radius: 12rpx;
  327. }
  328. /* 流程步骤 */
  329. .process-steps {
  330. display: flex;
  331. align-items: center;
  332. justify-content: center;
  333. padding: 20rpx 0;
  334. color: #666;
  335. font-size: 24rpx;
  336. }
  337. .step-arrow {
  338. margin: 0 10rpx;
  339. color: #999;
  340. }
  341. /* 流程说明样式 */
  342. .process-flow {
  343. padding: 20rpx;
  344. background: #FFF7F7;
  345. border-radius: 8rpx;
  346. }
  347. .flow-steps {
  348. display: flex;
  349. align-items: center;
  350. justify-content: center;
  351. margin-bottom: 10rpx;
  352. position: relative;
  353. overflow: hidden;
  354. }
  355. .flow-step {
  356. position: relative;
  357. height: 140rpx;
  358. width: 160rpx;
  359. display: flex;
  360. align-items: flex-end;
  361. justify-content: center;
  362. overflow: hidden;
  363. }
  364. .step-number {
  365. position: absolute;
  366. left: 50%;
  367. top: 35%;
  368. transform: translate(-50%, -50%);
  369. font-size: 80rpx;
  370. color: rgba(255, 75, 51, 0.15);
  371. font-weight: bold;
  372. line-height: 1;
  373. z-index: 1;
  374. }
  375. .step-text {
  376. position: relative;
  377. z-index: 2;
  378. display: flex;
  379. flex-direction: column;
  380. align-items: center;
  381. text-align: center;
  382. padding-bottom: 15rpx;
  383. }
  384. .step-text text {
  385. font-size: 24rpx;
  386. color: #333;
  387. line-height: 1.3;
  388. }
  389. .flow-arrow {
  390. margin: 0 10rpx;
  391. color: #999;
  392. font-size: 24rpx;
  393. }
  394. .flow-tip {
  395. color: #999;
  396. font-size: 22rpx;
  397. text-align: center;
  398. margin-top: 10rpx;
  399. }
  400. /* 商品信息 */
  401. .product-info {
  402. display: flex;
  403. align-items: center;
  404. padding: 20rpx;
  405. background: #fff;
  406. border-radius: 12rpx;
  407. margin-bottom: 40rpx;
  408. height: 140rpx;
  409. }
  410. .product-image {
  411. width: 140rpx;
  412. height: 140rpx;
  413. border-radius: 8rpx;
  414. margin-right: 20rpx;
  415. }
  416. .product-detail {
  417. flex: 1;
  418. display: flex;
  419. flex-direction: column;
  420. justify-content: space-between;
  421. height: 100%;
  422. }
  423. .product-title {
  424. font-size: 28rpx;
  425. color: #333;
  426. line-height: 1.4;
  427. margin-bottom: 10rpx;
  428. overflow: hidden;
  429. text-overflow: ellipsis;
  430. display: -webkit-box;
  431. -webkit-line-clamp: 2;
  432. -webkit-box-orient: vertical;
  433. text-align: left;
  434. }
  435. .price-info {
  436. display: block;
  437. margin-bottom: 8rpx;
  438. }
  439. .current-price {
  440. color: #FF4B33;
  441. font-weight: bold;
  442. display: flex;
  443. align-items: baseline;
  444. }
  445. .price-symbol {
  446. font-size: 24rpx;
  447. }
  448. .price-value {
  449. font-size: 32rpx;
  450. margin-left: 2rpx;
  451. }
  452. .commission-info {
  453. display: flex;
  454. align-items: center;
  455. background: #FFF7F7;
  456. padding: 6rpx 10rpx;
  457. border-radius: 6rpx;
  458. width: fit-content;
  459. margin-top: 8rpx;
  460. clear: both;
  461. }
  462. .commission-value {
  463. color: #ff4b33;
  464. font-size: 22rpx;
  465. margin-right: 6rpx;
  466. font-weight: bold;
  467. }
  468. .commission-label {
  469. font-size: 20rpx;
  470. }
  471. /* 按钮区域 */
  472. .action-buttons {
  473. display: flex;
  474. justify-content: space-between;
  475. margin-top: 30rpx;
  476. padding: 0 20rpx;
  477. }
  478. .share-btn, .buy-btn {
  479. width: 40%;
  480. flex: 1;
  481. height: 80rpx;
  482. display: flex;
  483. align-items: center;
  484. justify-content: center;
  485. border-radius: 40rpx;
  486. margin: 0 10rpx;
  487. }
  488. .btn-content {
  489. display: flex;
  490. flex-direction: column;
  491. align-items: center;
  492. justify-content: center;
  493. }
  494. .share-btn {
  495. background: #FFE9E7;
  496. border: 2rpx solid #FFE6E6;
  497. }
  498. .buy-btn {
  499. background: #FF4B33;
  500. color: #fff;
  501. }
  502. .amount {
  503. font-size: 24rpx;
  504. font-weight: bold;
  505. line-height: 1;
  506. margin-bottom: 4rpx;
  507. }
  508. .label {
  509. font-size: 28rpx;
  510. line-height: 1;
  511. }
  512. .share-btn .amount {
  513. color: #FF4B33;
  514. }
  515. .share-btn .label {
  516. color: #333;
  517. }
  518. .buy-btn .amount,
  519. .buy-btn .label {
  520. color: #fff;
  521. }
  522. /* 按钮内容包装器 */
  523. .btn-content-wrapper {
  524. height: 58rpx;
  525. overflow: hidden;
  526. }
  527. /* 海报预览模态框 */
  528. .poster-modal {
  529. position: fixed;
  530. top: 0;
  531. left: 0;
  532. right: 0;
  533. bottom: 0;
  534. background: rgba(0, 0, 0, 0.7);
  535. z-index: 1001;
  536. display: flex;
  537. align-items: center;
  538. justify-content: center;
  539. }
  540. .poster-content {
  541. width: 600rpx;
  542. background: #fff;
  543. border-radius: 12rpx;
  544. overflow: hidden;
  545. }
  546. .poster-image {
  547. width: 100%;
  548. vertical-align: middle;
  549. }
  550. .poster-actions {
  551. width: 600rpx;
  552. margin-top: 30rpx;
  553. display: flex;
  554. justify-content: space-between;
  555. }
  556. .poster-btn {
  557. width: 280rpx !important;
  558. height: 80rpx;
  559. line-height: 80rpx;
  560. text-align: center;
  561. border-radius: 40rpx;
  562. font-size: 28rpx;
  563. padding: 0 !important;
  564. margin: 0 !important;
  565. background: #FFE9E7 !important;
  566. color: #FF4B33 !important;
  567. border: none !important;
  568. }
  569. .save-btn {
  570. border: none !important;
  571. }
  572. .close-btn {
  573. margin-top: 40rpx;
  574. padding: 20rpx 40rpx;
  575. color: #fff;
  576. font-size: 28rpx;
  577. }
  578. /* 商品信息包装器 */
  579. .product-info-wrapper {
  580. height: 160rpx;
  581. overflow: hidden;
  582. }
  583. /* 无佣金包装器 */
  584. .no-commission-wrapper {
  585. height: 35rpx;
  586. overflow: hidden;
  587. }