| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382 |
- /* 页面容器 */
- .page{
- width: 100%;
- background-color: #fff;
- }
- .page-container {
- // padding: 8rpx 15rpx;
- background-color: #f9fafb;
- // min-height: 100vh;
- padding-bottom:20rpx;
- }
- .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;
- ::v-deep .uni-scroll-view{
- height: calc(100vh - 850rpx);
- }
- .goods-item {
- margin: 10rpx 15rpx;
- background-color: #fff;
- 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%;
- border: 2rpx solid #ffffff;
- }
- .up-indicator{
- background-color: #09bb07;
- }
- .down-indicator{
- background-color: #c7d5c7;
- }
- .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);
- }
- }
|