微信小店联盟带货小程序

result.wxss 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. /* pages/search/result.wxss */
  2. .container {
  3. min-height: 100vh;
  4. background: #ffffff;
  5. }
  6. /* 搜索头部 */
  7. .search-header {
  8. padding: 24rpx 32rpx;
  9. background: #ffffff;
  10. position: fixed;
  11. top: 0;
  12. left: 0;
  13. right: 0;
  14. z-index: 100;
  15. border-bottom: 1rpx solid #f5f5f5;
  16. }
  17. .search-box {
  18. height: 72rpx;
  19. background: #f5f5f5;
  20. border-radius: 36rpx;
  21. display: flex;
  22. align-items: center;
  23. padding: 0 24rpx;
  24. }
  25. .search-text {
  26. flex: 1;
  27. font-size: 28rpx;
  28. color: #262626;
  29. margin-left: 16rpx;
  30. }
  31. /* 排序栏 */
  32. .sort-bar {
  33. display: flex;
  34. background: #ffffff;
  35. padding: 0 32rpx;
  36. height: 88rpx;
  37. position: fixed;
  38. top: 120rpx;
  39. left: 0;
  40. right: 0;
  41. z-index: 90;
  42. border-bottom: 1rpx solid #f5f5f5;
  43. }
  44. .sort-item {
  45. flex: 1;
  46. display: flex;
  47. align-items: center;
  48. justify-content: center;
  49. font-size: 28rpx;
  50. color: #666666;
  51. position: relative;
  52. }
  53. .sort-item.active {
  54. color: #ff4d4f;
  55. font-weight: 500;
  56. }
  57. .sort-icon {
  58. display: flex;
  59. flex-direction: column;
  60. margin-left: 8rpx;
  61. height: 24rpx;
  62. }
  63. .sort-icon .iconfont {
  64. font-size: 20rpx;
  65. color: #bfbfbf;
  66. line-height: 1;
  67. }
  68. .sort-icon .iconfont.active {
  69. color: #ff4d4f;
  70. }
  71. /* 商品列表 */
  72. .goods-list {
  73. position: fixed;
  74. top: 208rpx;
  75. left: 0;
  76. right: 0;
  77. bottom: 0;
  78. background: #f5f5f5;
  79. padding: 24rpx 32rpx;
  80. }
  81. .goods-grid {
  82. display: flex;
  83. flex-wrap: wrap;
  84. margin: 0 -8rpx;
  85. }
  86. .goods-item {
  87. width: calc(50% - 16rpx);
  88. margin: 8rpx;
  89. background: #ffffff;
  90. border-radius: 12rpx;
  91. overflow: hidden;
  92. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04);
  93. transition: all 0.3s ease;
  94. }
  95. .goods-item:active {
  96. transform: scale(0.98);
  97. }
  98. .goods-img {
  99. width: 100%;
  100. height: 280rpx;
  101. background: #f5f5f5;
  102. display: flex;
  103. align-items: center;
  104. justify-content: center;
  105. }
  106. .goods-img image {
  107. width: 100%;
  108. height: 100%;
  109. object-fit: cover;
  110. }
  111. .goods-info {
  112. padding: 16rpx 20rpx 20rpx;
  113. }
  114. .goods-name {
  115. font-size: 26rpx;
  116. color: #262626;
  117. line-height: 1.4;
  118. margin-bottom: 16rpx;
  119. display: -webkit-box;
  120. -webkit-box-orient: vertical;
  121. -webkit-line-clamp: 2;
  122. overflow: hidden;
  123. }
  124. .price-box {
  125. display: flex;
  126. justify-content: space-between;
  127. align-items: center;
  128. }
  129. .price-group {
  130. display: flex;
  131. align-items: baseline;
  132. }
  133. .price-symbol {
  134. font-size: 24rpx;
  135. color: #ff4d4f;
  136. margin-right: 2rpx;
  137. }
  138. .price {
  139. font-size: 32rpx;
  140. color: #ff4d4f;
  141. font-weight: 500;
  142. font-family: "DIN Alternate", -apple-system, BlinkMacSystemFont, "Segoe UI",
  143. Roboto, sans-serif;
  144. }
  145. .commission-group {
  146. display: flex;
  147. align-items: center;
  148. background: rgba(255, 77, 79, 0.1);
  149. padding: 4rpx 8rpx;
  150. border-radius: 4rpx;
  151. }
  152. .commission-group .iconfont {
  153. font-size: 24rpx;
  154. color: #ff4d4f;
  155. margin-right: 4rpx;
  156. }
  157. .commission {
  158. font-size: 24rpx;
  159. color: #ff4d4f;
  160. }
  161. /* 加载状态 */
  162. .loading-status {
  163. text-align: center;
  164. padding: 32rpx 0;
  165. }
  166. .loading,
  167. .no-more {
  168. font-size: 24rpx;
  169. color: #999999;
  170. }
  171. /* 空状态 */
  172. .empty-state {
  173. position: fixed;
  174. top: 50%;
  175. left: 50%;
  176. transform: translate(-50%, -50%);
  177. display: flex;
  178. flex-direction: column;
  179. align-items: center;
  180. }
  181. .empty-state text {
  182. font-size: 28rpx;
  183. color: #999999;
  184. margin-top: 32rpx;
  185. }
  186. /* 图标字体 */
  187. @font-face {
  188. font-family: "iconfont";
  189. src: url("data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAAO0AAsAAAAACFwAAANlAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACDMgqDaIM0ATYCJAMUCwwABCAFhGcHWBtmBxHVm8PIfhzGMck6c2bkTSjPG/H0/7+1d+59M6+IZhLNHE00iySxULxEgpBIEI1EIlb6hOTN/D83vU/KgGxhcaACyQpkBbJCuEhW4qrkGtzeUmB5KzwbKEDPXNMr0gE7kBj+26XvApW6BqXlAg/vhD/87Yb/e9sEKg+0QXLNNrQG2hvgaAIFNMbWRS6QBHnD2AUt4n4CrSY1oNvF1T2QV2BOBeKBvA7kTcgVRlihqbRQbVmY+AKVZvoU3QN8Dn4f/1YjT1KVmXM3HxYykP+V+lUhrf/v0k4E+ng2sJvImAcU4qw0fUQRwnlIrRet2QFNTYlfqacKWnH/f0i4NhzNf3iEJDIjFmbPQUchfqXOSiF+dXEhGcLvG5oB/N5YyqAZ3UhwDZKn6Eyh2HZWqVTJtPJ3EleKnW/TvEw3p3hYnKlq5s2FKzfHtUVrh+4PH6Y/eJD24EHqw4fpAJSrd+/WPH2aWz82dvv1G4DU+/ezHz3KefQo9eHD9Pv3M+7fT5uamPTwEaQ/fPQp9f79tHv3M+7ez2AMsG/vhb1XL3p2XfLsvIjsv7C3bwGid+e5PYvP71t0ds/8M7sXnt+98OyeB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