微信小店联盟带货小程序

index.wxss 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. /**index.wxss**/
  2. page {
  3. height: 100vh;
  4. display: flex;
  5. flex-direction: column;
  6. background: #fafafa;
  7. }
  8. .scrollarea {
  9. flex: 1;
  10. overflow-y: hidden;
  11. }
  12. .userinfo {
  13. display: flex;
  14. flex-direction: column;
  15. align-items: center;
  16. color: #aaa;
  17. width: 80%;
  18. }
  19. .userinfo-avatar {
  20. overflow: hidden;
  21. width: 128rpx;
  22. height: 128rpx;
  23. margin: 20rpx;
  24. border-radius: 50%;
  25. }
  26. .usermotto {
  27. margin-top: 200px;
  28. }
  29. .avatar-wrapper {
  30. padding: 0;
  31. width: 56px !important;
  32. border-radius: 8px;
  33. margin-top: 40px;
  34. margin-bottom: 40px;
  35. }
  36. .avatar {
  37. display: block;
  38. width: 56px;
  39. height: 56px;
  40. }
  41. .nickname-wrapper {
  42. display: flex;
  43. width: 100%;
  44. padding: 16px;
  45. box-sizing: border-box;
  46. border-top: 0.5px solid rgba(0, 0, 0, 0.1);
  47. border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
  48. color: black;
  49. }
  50. .nickname-label {
  51. width: 105px;
  52. }
  53. .nickname-input {
  54. flex: 1;
  55. }
  56. /* pages/index/index.wxss */
  57. .container {
  58. padding: 24rpx;
  59. background: #fafafa;
  60. }
  61. /* 搜索栏样式 */
  62. .search-bar {
  63. padding: 24rpx 32rpx;
  64. background: #fff;
  65. display: flex;
  66. align-items: center;
  67. margin-bottom: 24rpx;
  68. border-radius: 16rpx;
  69. color: #8c8c8c;
  70. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.02);
  71. }
  72. .search-bar icon {
  73. margin-right: 12rpx;
  74. }
  75. /* 轮播图样式 */
  76. .banner {
  77. width: 100%;
  78. height: 320rpx;
  79. border-radius: 16rpx;
  80. overflow: hidden;
  81. margin-bottom: 24rpx;
  82. }
  83. .banner-item {
  84. width: 100%;
  85. height: 100%;
  86. display: flex;
  87. justify-content: center;
  88. align-items: center;
  89. background: linear-gradient(135deg, #f5f5f5, #fafafa);
  90. color: #8c8c8c;
  91. }
  92. /* 分类导航样式 */
  93. .category-list {
  94. display: flex;
  95. flex-wrap: wrap;
  96. padding: 24rpx 32rpx;
  97. background: #fff;
  98. margin-bottom: 24rpx;
  99. border-radius: 16rpx;
  100. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.02);
  101. }
  102. .category-item {
  103. width: 25%;
  104. display: flex;
  105. flex-direction: column;
  106. align-items: center;
  107. padding: 12rpx 0;
  108. }
  109. .category-item icon {
  110. margin-bottom: 8rpx;
  111. width: 80rpx;
  112. height: 80rpx;
  113. display: flex;
  114. align-items: center;
  115. justify-content: center;
  116. background: #f5f5f5;
  117. border-radius: 50%;
  118. }
  119. .category-item text {
  120. font-size: 24rpx;
  121. color: #262626;
  122. text-align: center;
  123. }
  124. /* 商品区域样式 */
  125. .section {
  126. background: #fff;
  127. padding: 24rpx 32rpx;
  128. margin-bottom: 24rpx;
  129. border-radius: 16rpx;
  130. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.02);
  131. }
  132. .section-header {
  133. display: flex;
  134. justify-content: space-between;
  135. align-items: center;
  136. margin-bottom: 24rpx;
  137. }
  138. .section-title {
  139. font-size: 32rpx;
  140. font-weight: 600;
  141. color: #262626;
  142. position: relative;
  143. padding-left: 16rpx;
  144. letter-spacing: 0.5px;
  145. }
  146. .section-title::before {
  147. content: "";
  148. position: absolute;
  149. left: 0;
  150. top: 50%;
  151. transform: translateY(-50%);
  152. width: 4rpx;
  153. height: 24rpx;
  154. background: linear-gradient(to bottom, #a6c1ee, #8e9eab);
  155. border-radius: 2rpx;
  156. }
  157. .more {
  158. font-size: 24rpx;
  159. color: #8c8c8c;
  160. display: flex;
  161. align-items: center;
  162. }
  163. /* 商品列表样式 */
  164. .goods-list {
  165. display: flex;
  166. flex-wrap: wrap;
  167. margin: 0 -8rpx;
  168. }
  169. .goods-item {
  170. width: calc(50% - 16rpx);
  171. margin: 8rpx;
  172. background: #fff;
  173. border-radius: 12rpx;
  174. overflow: hidden;
  175. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04);
  176. transition: all 0.3s ease;
  177. }
  178. .goods-item:active {
  179. transform: scale(0.98);
  180. }
  181. .goods-img {
  182. width: 100%;
  183. height: 280rpx;
  184. background: #f5f5f5;
  185. display: flex;
  186. align-items: center;
  187. justify-content: center;
  188. }
  189. .goods-info {
  190. padding: 16rpx 20rpx 20rpx;
  191. }
  192. .goods-name {
  193. font-size: 26rpx;
  194. color: #262626;
  195. line-height: 1.4;
  196. margin-bottom: 16rpx;
  197. display: -webkit-box;
  198. -webkit-box-orient: vertical;
  199. -webkit-line-clamp: 2;
  200. overflow: hidden;
  201. }
  202. .price-box {
  203. display: flex;
  204. justify-content: space-between;
  205. align-items: center;
  206. }
  207. .price-group {
  208. display: flex;
  209. align-items: baseline;
  210. }
  211. .price-symbol {
  212. font-size: 22rpx;
  213. color: #262626;
  214. margin-right: 2rpx;
  215. font-weight: 500;
  216. }
  217. .price {
  218. font-size: 34rpx;
  219. color: #262626;
  220. font-weight: 500;
  221. font-family: "DIN Alternate", -apple-system, BlinkMacSystemFont, "Segoe UI",
  222. Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  223. }
  224. .commission-group {
  225. display: flex;
  226. align-items: center;
  227. background: #fff1f0;
  228. padding: 6rpx 12rpx;
  229. border-radius: 20rpx;
  230. }
  231. .commission-group .iconfont {
  232. color: #ff4d4f;
  233. margin-right: 4rpx;
  234. font-size: 22rpx;
  235. }
  236. .commission {
  237. font-size: 22rpx;
  238. color: #ff4d4f;
  239. font-family: "DIN Alternate", -apple-system, BlinkMacSystemFont, "Segoe UI",
  240. Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  241. }
  242. /* 添加字体图标 */
  243. @font-face {
  244. font-family: "iconfont";
  245. src: url("data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAALkAAsAAAAABqQAAAKXAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCCcAqBaIFdATYCJAMICwYABCAFhG0HMBvdBcgekiSIQAEFAKCgHoNQPPy3H+2+mfn/f8SqNJVOp9OJRCaRxEuGRIiQKIF4JxvDO/+5pb0xKGtDqVxVyEPdE1p8bhwKGfjR+w7pkvZ0ae0bwAFOcC9pX2AC+Y/hpUvbhPqACwnAgcxpbWkJ5JAv9D/GTVgBLp9PgGYSg4B9w7MLVCp4VSDeKlsKVQleFdhluBRWNczBJ1UzfcQZ+Bh9P/6bRyVJlfGadt8aKaH4K/CzLKv+r8QFBEEgnB0jYxEoxINGw1FhEDEsNPN1wlHVJL4CY1VB7K//8SJQw672wTDIkJ/4NRvxK5CZzhSgt+8FYGv7d1YXD1uQoYk/v3/+/HBEvEbh7+/fLEwpiMf4uQn//v1jEqR4TF1KnOcfvOZ9862X+O7HRou9/1QW9c/n6bwPpze9ePyheQp+2CpO1qUJmA+zAU6KW5dxPEyKE6Q0u/3r/7ENtDQd2DQpFqgDyJ7xx/jlnxgA/L/6KfyvjwJQf3FbCb6yv0rwBvhpBQr8QgrcFVQpK9hVYNNMxbJxaGZhEf6aaboYaOYmkHSYgqzTDFnwi1A1W4OiwyY0W9C8vtkIL0QpwYJ5gNDtEJJOXyHr9oos+J9QDfoLRXcE0OwifG7YbBEWxdgwKUgHzD+YVd0wleIMeR+2n7VxFPMN8YJYxDyyXfAZOWEHuY0FYooYwgV6CnmeYRTHUKJ6QGHuDFV1RCwvT+nVPVVdQ54BWyYIkQ4g/gGjSm0DVcnz+PshrZ9qw6GC4hvEC4hJDOYjswt0JtmFHdTbsmRYhTAIToA8CR4PQxQWgyTSqwdIMOsMUqk2CGvAy5Mk1aur17f33QTNQJ7hSJGjRI1a9X2qZc5UAwAAAA==")
  246. format("woff2");
  247. }
  248. .iconfont {
  249. font-family: "iconfont" !important;
  250. font-size: 32rpx;
  251. font-style: normal;
  252. -webkit-font-smoothing: antialiased;
  253. -moz-osx-font-smoothing: grayscale;
  254. }
  255. .icon-share:before {
  256. content: "\e600";
  257. }
  258. .action-item {
  259. display: flex;
  260. flex-direction: column;
  261. align-items: center;
  262. justify-content: center;
  263. padding: 8rpx 0;
  264. }
  265. .action-icon {
  266. width: 48rpx;
  267. height: 48rpx;
  268. margin-bottom: 4rpx;
  269. }
  270. .action-text {
  271. font-size: 24rpx;
  272. color: #666;
  273. margin-top: 4rpx;
  274. }