/**index.wxss**/ page { height: 100vh; display: flex; flex-direction: column; background: #fafafa; } .scrollarea { flex: 1; overflow-y: hidden; } .userinfo { display: flex; flex-direction: column; align-items: center; color: #aaa; width: 80%; } .userinfo-avatar { overflow: hidden; width: 128rpx; height: 128rpx; margin: 20rpx; border-radius: 50%; } .usermotto { margin-top: 200px; } .avatar-wrapper { padding: 0; width: 56px !important; border-radius: 8px; margin-top: 40px; margin-bottom: 40px; } .avatar { display: block; width: 56px; height: 56px; } .nickname-wrapper { display: flex; width: 100%; padding: 16px; box-sizing: border-box; border-top: 0.5px solid rgba(0, 0, 0, 0.1); border-bottom: 0.5px solid rgba(0, 0, 0, 0.1); color: black; } .nickname-label { width: 105px; } .nickname-input { flex: 1; } /* pages/index/index.wxss */ .container { padding: 24rpx; background: #fafafa; } /* 搜索栏样式 */ .search-bar { padding: 24rpx 32rpx; background: #fff; display: flex; align-items: center; margin-bottom: 24rpx; border-radius: 16rpx; color: #8c8c8c; box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.02); } .search-bar icon { margin-right: 12rpx; } /* 轮播图样式 */ .banner { width: 100%; height: 320rpx; border-radius: 16rpx; overflow: hidden; margin-bottom: 24rpx; } .banner-item { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background: linear-gradient(135deg, #f5f5f5, #fafafa); color: #8c8c8c; } /* 分类导航样式 */ .category-list { display: flex; flex-wrap: wrap; padding: 24rpx 32rpx; background: #fff; margin-bottom: 24rpx; border-radius: 16rpx; box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.02); } .category-item { width: 25%; display: flex; flex-direction: column; align-items: center; padding: 12rpx 0; } .category-item icon { margin-bottom: 8rpx; width: 80rpx; height: 80rpx; display: flex; align-items: center; justify-content: center; background: #f5f5f5; border-radius: 50%; } .category-item text { font-size: 24rpx; color: #262626; text-align: center; } /* 商品区域样式 */ .section { background: #fff; padding: 24rpx 32rpx; margin-bottom: 24rpx; border-radius: 16rpx; box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.02); } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24rpx; } .section-title { font-size: 32rpx; font-weight: 600; color: #262626; position: relative; padding-left: 16rpx; letter-spacing: 0.5px; } .section-title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4rpx; height: 24rpx; background: linear-gradient(to bottom, #a6c1ee, #8e9eab); border-radius: 2rpx; } .more { font-size: 24rpx; color: #8c8c8c; display: flex; align-items: center; } /* 商品列表样式 */ .goods-list { display: flex; flex-wrap: wrap; margin: 0 -8rpx; } .goods-item { width: calc(50% - 16rpx); margin: 8rpx; background: #fff; border-radius: 12rpx; overflow: hidden; box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04); transition: all 0.3s ease; } .goods-item:active { transform: scale(0.98); } .goods-img { width: 100%; height: 280rpx; background: #f5f5f5; display: flex; align-items: center; justify-content: center; } .goods-info { padding: 16rpx 20rpx 20rpx; } .goods-name { font-size: 26rpx; color: #262626; line-height: 1.4; margin-bottom: 16rpx; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .price-box { display: flex; justify-content: space-between; align-items: center; } .price-group { display: flex; align-items: baseline; } .price-symbol { font-size: 22rpx; color: #262626; margin-right: 2rpx; font-weight: 500; } .price { font-size: 34rpx; color: #262626; font-weight: 500; font-family: "DIN Alternate", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; } .commission-group { display: flex; align-items: center; background: #fff1f0; padding: 6rpx 12rpx; border-radius: 20rpx; } .commission-group .iconfont { color: #ff4d4f; margin-right: 4rpx; font-size: 22rpx; } .commission { font-size: 22rpx; color: #ff4d4f; font-family: "DIN Alternate", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; } /* 添加字体图标 */ @font-face { font-family: "iconfont"; 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==") format("woff2"); } .iconfont { font-family: "iconfont" !important; font-size: 32rpx; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .icon-share:before { content: "\e600"; } .action-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8rpx 0; } .action-icon { width: 48rpx; height: 48rpx; margin-bottom: 4rpx; } .action-text { font-size: 24rpx; color: #666; margin-top: 4rpx; }