/* pages/home/home.wxss */ .bigBox { position: relative; height: 210rpx; z-index: 100; } /* 头部区域 */ .head { height: 130rpx; background-color: #f5f5f5; /* margin-top: -20rpx; */ /*怎么办啊啊啊*/ } .head-portrait-bg { float: left; width: 104rpx; height: 104rpx; background-color: #DDDEDF; border-radius: 20rpx; } .head-portrait-img { width: 100rpx; height: 100rpx; border-radius: 20rpx; } .username { float: left; width: 530rpx; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 30rpx; margin-left: 20rpx; font-size: 18px; } .head_bell { float: left; margin-top: -75rpx; margin-left: 650rpx; } /* ------------------------------ */ /* 搜索栏 */ .search_box { width: 720rpx; height: 80rpx; background-color: #E8E7E7; border-radius: 20rpx; } .search_text { float: left; padding-left: 15rpx; padding-top: 15rpx; } .search_icon { margin-bottom: 1rpx; } .search_button { float: right; width: 80rpx; height: 80rpx; margin-right: 10rpx; } /* 去除button边框 */ button[plain]{ border:0 } /* ------------------------------ */ /* 分类栏 */ .categories { margin-top: 18rpx; } .categories view:nth-child(1) { float: left; margin-right: 75rpx; } .categories view:nth-child(2) { float: right; margin-top: 12rpx; } .categories_block { position: absolute; top: 18rpx; } /* 分类卡片展示 */ .categories_card { display: inline-block; margin-right: 10rpx; } .name_show { position: absolute; top: 93rpx; width: 150rpx; height: 60rpx; background-color: #eeeeee; opacity: 0.7; text-align: center; line-height: 60rpx; } /* ------------------------------ */ /* 商品 */ .recommend_block { position: absolute; width: 170rpx; top: 32rpx } /* ------------------------------ */ /* 商品 */ .commodity { display: flex; flex-wrap: wrap; /*自动换行*/ margin-top: 10rpx; } .commodity_show { display: flex; position: relative; width: 48%; height: 500rpx; padding: 7rpx; justify-content: center; } .commodity_image { width: 340rpx; height: 340rpx; border-radius: 20rpx; } .commodity_name { position: absolute; top: 360rpx; left: 15rpx; width: 350rpx; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .price { position: absolute; top: 400rpx; left: 12rpx; color: #a08016; font-weight: 600; }