/* 页面容器 */ .page { width: 100%; height: 100vh; background-color: #fff; display: flex; flex-direction: column; } .page-container { flex: 1; display: flex; flex-direction: column; background-color: #f9fafb; padding-bottom: 20rpx; overflow: hidden; } .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; } .btn-group { display: flex; align-items: center; justify-content: flex-end; gap: 10rpx; } .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; } } /* 数据卡片 */ .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: 0 15rpx; height: 80rpx; 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: 0 15rpx; 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; } } ::v-deep .u-tabs__wrapper__nav__item{ height: 70rpx !important; } } ::v-deep .u-notice-bar{ flex:auto; } /* 筛选栏 */ .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; height: 60rpx; display: flex; align-items: center; gap: 6rpx; justify-content: center; flex-shrink: 0; margin-left: 10rpx; .filter-icon { width: 35rpx; height: 35rpx; } } .dept-btn { margin-left: 18rpx; display: flex; align-items: center; gap: 8rpx; image { width: 30rpx; height: 30rpx; } .dept-name{ color: #333; font-size: 24rpx; } .sort-text { font-size: 22rpx; color: #333; } } } } /* 商品列表 */ .goods-list { flex: 1; display: flex; flex-direction: column; gap: 10rpx; background-color: #f9fafb; overflow: hidden; height: 100%; ::v-deep .uni-scroll-view { height: 100%; } .goods-item { margin: 10rpx 15rpx; background-color: #fff; border-radius: 20rpx; padding: 20rpx; box-sizing: border-box; display: flex; align-items: stretch; gap: 20rpx; overflow: hidden; .u-swipe-action, .up-swipe-action { flex: 1; display: flex; align-items: stretch; overflow: hidden; min-width: 0; } .u-swipe-action-item, .up-swipe-action-item { flex: 1; display: flex; align-items: stretch; overflow: hidden; min-width: 0; } /* 左滑内容区必须铺满并盖住右侧按钮,默认只显示内容,左滑才露出删除 */ ::v-deep .u-swipe-action-item__content { width: 100% !important; min-width: 100%; flex: 1 1 100%; background-color: #fff; box-sizing: border-box; position: relative; z-index: 10; transform: translateX(0); } .goods-img-container { position: relative; flex-shrink: 0; } .goods-img { width: 160rpx; height: 160rpx; border-radius: 6rpx; object-fit: cover; } .stock-indicator { position: absolute; top: 140rpx; right: 0; width: 20rpx; height: 20rpx; border-radius: 50%; border: 2rpx solid #ffffff; } .up-indicator { background-color: #09bb07; } .down-indicator { background-color: #c7d5c7; } .goods-info { flex: 1; display: flex; align-items: stretch; gap: 20rpx; .info-content { flex: 1; line-height: 1.4; .goods-brand { font-size: 32rpx; font-weight: 700; color: #333333; display: block; line-height: 1.2; display: flex; align-items: center; gap: 8rpx; .code-icon { width: 28rpx; height: 22rpx; } } .goods-name { font-size: 26rpx; color: #666666; display: block; font-weight: 550; line-height: 1.4; word-break: break-all; } .price-group { display: grid; grid-template-columns: repeat(2, 1fr); .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; align-items: flex-end; justify-content: space-between; gap: 20rpx; .goods-stock { font-size: 24rpx; color: #666666; align-self: flex-end; flex-shrink: 0; padding-left: 10rpx; } } } /* 更多信息区域 */ .more-info-container { margin-top: 20rpx; border-top: 1px solid #f0f0f0; padding-top: 20rpx; .more-info-header { display: flex; align-items: center; justify-content: center; cursor: pointer; .more-info-title { font-size: 28rpx; color: #666666; margin-right: 10rpx; } } .more-info-content { padding: 10rpx 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20rpx; .info-row { display: flex; align-items: center; margin-bottom: 10rpx; .info-label { font-size: 26rpx; color: #999999; min-width: 140rpx; } .info-value { font-size: 26rpx; color: #333333; flex: 1; } } } } } } /* 更多信息展开收起动画 */ .more-info-enter-active, .more-info-leave-active { transition: all 0.3s ease; max-height: 500rpx; opacity: 1; overflow: hidden; } .more-info-enter, .more-info-leave-to { max-height: 0; opacity: 0; padding: 0; } /* 添加按钮 */ .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: 20; cursor: pointer; transition: all 0.3s ease; &:active { transform: scale(0.95); } } .custom-notice-bar { flex: none; }