/* 页面容器 */ .page{ width: 100%; background-color: #fff; } .page-container { // padding: 8rpx 15rpx; // background-color: #f9fafb; // background-color: red; min-height: 100vh; } .nav-bar{ border-bottom: 1px solid #f7f6f6 !important; } /* 总资产区域 */ .asset-header { width: 100%; background-color: #ffffff; border-radius: 20rpx; padding: 25rpx 20rpx; padding-bottom: 20rpx; display: flex; justify-content: space-between; align-items: flex-end; box-sizing: border-box; .asset-text-wrap { flex: 1; } .asset-title-con{ display: flex; align-items: center; justify-content: flex-start; margin-bottom: 12rpx; .asset-title { font-size: 26rpx; color: #999999; display: block; font-weight: 500; } } .asset-value { font-size: 44rpx; color: #333333; display: block; font-weight: 600; letter-spacing: 2rpx; } .view-btn { width: auto; padding: 0 25rpx; background-color: #e3eefd; color: #0d83f1; font-size: 20rpx; border-radius: 30rpx; font-weight: 500; text-align: center; border: none; margin: 0; float: none; } } /* 数据卡片 */ .data-cards { display: flex; justify-content: space-between; padding-bottom: 20rpx; background-color: #fff; padding: 8rpx 15rpx; .card-item { flex: 1; text-align: center; background: #f9fafb; padding: 24rpx 0; margin: 0 10rpx; border-radius: 24rpx; .card-label { font-size: 26rpx; color: #666; display: block; margin-bottom: 8rpx; } .card-value { font-size: 36rpx; font-weight: 700; color: #333; display: block; &.green { color: #09bb07; } } &:nth-of-type(1){ margin-left:0; } &:nth-last-of-type(1){ margin-right:0; } } } /* 搜索框区域 */ .search-wrapper { padding: 8rpx 15rpx; height: 80rpx; padding-bottom: 20rpx; display: flex; justify-content: space-between; align-items: center; background-color: #fff; .search-input-wrap { height: 100%; --u-search-bg-color: #ffffff !important; --u-search-border-radius: 8rpx !important; --u-search-input-height: 80rpx !important; --u-search-padding: 0 30rpx !important; --u-search-input-font-size: 28rpx !important; --u-search-placeholder-color: #999 !important; border: none !important; box-shadow: none !important; } .search-filter-btn { margin-left: 20rpx; width: 60rpx; height: 60rpx; z-index: 10; display: flex; justify-content: center; align-items: center; background-color: #f9fafb; border: 40rpx; } } /* 分类标签 */ .category-tabs-wrap { padding: 8rpx 15rpx; margin-bottom: 20rpx; background: #ffffff !important; .u-tabs-custom { --u-tabs-bg-color: #ffffff !important; background: #ffffff !important; --u-tabs-border-bottom: none !important; --u-tabs-item-padding: 10rpx 20rpx !important; --u-tabs-item-margin: 0 10rpx !important; .u-tabs__item--active { font-weight: bold; border-bottom: 2rpx solid #007aff !important; } .u-tabs__item-text { font-size: 28rpx !important; white-space: nowrap; } &::-webkit-scrollbar { display: none; } } } /* 筛选栏 */ .filter-bar { padding: 8rpx 15rpx; background-color: #f9fafb; display: flex; align-items: center; justify-content: space-between; border-radius: 20rpx; .sort-btn { background: transparent; padding: 0; margin: 0; display: flex; align-items: center; gap: 6rpx; .sort-text { font-size: 24rpx; color: #686767; font-weight: 500; } .sort-icon { flex-shrink: 0; transition: transform 0.3s ease; &:active { transform: rotate(180deg); } } } .price-layout-btn{ display: flex; justify-content: space-between; align-items: center; .price-btn { background: transparent; padding: 0; margin: 0; display: flex; align-items: center; gap: 8rpx; .price-icon { flex-shrink: 0; } .price-text { font-size: 22rpx; color: #1890ff; font-weight: 500; } } .layout-btn { background: transparent; font-size: 22rpx; color: #333; width: 60rpx; height: 60rpx; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } } } /* 商品列表 */ .goods-list { display: flex; flex-direction: column; gap: 10rpx; background-color: #f9fafb; padding: 8rpx 15rpx; .goods-item { background-color: #ffffff; border-radius: 20rpx; padding: 20rpx; box-sizing: border-box; display: flex; align-items: flex-start; gap: 20rpx; .goods-img-container { position: relative; flex-shrink: 0; } .goods-img { width: 160rpx; height: 160rpx; border-radius: 6rpx; object-fit: cover; } .stock-indicator { position: absolute; bottom: 14rpx; right: 6rpx; width: 20rpx; height: 20rpx; border-radius: 50%; background-color: #09bb07; border: 2rpx solid #ffffff; } .goods-info { flex: 1; .goods-brand { font-size: 32rpx; font-weight: 700; color: #333333; display: block; line-height: 1.2; } .goods-name { font-size: 26rpx; color: #666666; display: block; font-weight: 600; line-height: 1.4; word-break: break-all; } .price-group{ .price-items{ display: flex; justify-content: space-between; .price-item{ display: flex; flex-direction: column; justify-content: flex-start; .price-type{ color: #d1d5db; font-size: 24rpx; } .price{ font-weight: 700; } .sales{ color: red; } } } } .others{ margin-top: 20rpx; display: flex; align-items: center; gap: 12rpx; .other-item{ display: flex; align-items: center; justify-content: center; width: 26rpx; height: 26rpx; font-size: 20rpx; color: #c5c3c3; background-color: #f5f5f5; padding:6rpx; border-radius:50%; &.stock{ background-color: #007aff; color: #fff; } } } } .more{ display: flex; flex-direction: column; height: 100%; align-items: flex-end; gap: 240rpx; .goods-stock { font-size: 24rpx; color: #666666; align-self: flex-end; flex-shrink: 0; padding-left: 10rpx; } } } } /* 添加按钮 */ .add-button { position: fixed; bottom: 150rpx; right: 20rpx; width: 112rpx; height: 112rpx; background-color: #1f2937; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); z-index: 999; cursor: pointer; transition: all 0.3s ease; &:active { transform: scale(0.95); } }