page { background: #f6f6f6; padding-bottom: 148rpx; } .location{ display: flex; justify-content: space-between; align-items: center; padding: 20rpx 25rpx 0rpx 25rpx; background-color: #ffffff; .l_left { font-size: 24rpx; } .l_right{ color:#636363; font-size: 24rpx; span{ color: #229293; font-weight: bold; } } } .search { position: sticky; top: 0px; left: 0; z-index: 9; } .swiper { margin: 30rpx; height: 400rpx; .slide-image { width: 100%; height: 98%; margin-bottom: 20rpx; border-radius: 30rpx; } } .navBar { display: flex; justify-content: space-around; height: 150rpx; position: relative; background: #fff; margin: 30rpx; border-radius: 30rpx; .navItem { // display: flex; align-items: center; justify-content: center; margin-top: 30rpx; border-bottom: 4rpx solid transparent; .navItemTitle { font-size: 30rpx; } .navItemIcon { width: 60rpx; image { width: 50rpx; height: 50rpx; margin-left: 6rpx; // transform: translate(-25rpx -25rpx 0); } } } .active { color: #333; font-weight: bold; border-bottom: 4rpx solid #399899; } } .nav_content{ flex: 1; } .kind { width: 687rpx; // height: 150rpx; position: relative; left: 15rpx; // top: 30rpx; display: flex; .item { width: 219rpx; height: 150rpx; margin-left: 17rpx; image { width: 219rpx; height: 150rpx; border-radius: 6px; } } .item2 { width: 219rpx; height: 150rpx; margin-left: 15rpx; image { width: 219rpx; height: 150rpx; border-radius: 6px; } } .item3 { width: 219rpx; height: 150rpx; margin-left: 15rpx; image { width: 219rpx; height: 150rpx; border-radius: 6px; } } .head-text{ width: 219rpx; height: 50rpx; position: relative; z-index: 99; background-color: #439f9b; // opacity:0.6; background-color:rgba(63,156,152,0.9); line-height: 50rpx; text-align: center; font-weight: 550; font-size: 25rpx; color: white; // left:58rpx; bottom: 55rpx; border-radius: 10px; } } .box { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 30rpx; border-radius: 18rpx; .recommended-box { background: #ffffff; border-radius: 18rpx; padding-bottom: 20rpx; margin-top: 0rpx; width: 687rpx; display: flex; justify-content: space-between; align-items: center; .recommended-image { width: 180rpx; height: 180rpx; border-radius: 30rpx; } .recommended__box{ flex: 1; display: flex; flex-direction: column; .price { color: #fb7306; font-size: 30rpx; margin: 10rpx 0 0 15rpx; } .recommended-name { font-size: 30rpx; font-weight: bold; color: #222222; line-height: 36rpx; margin: 10rpx 0 0 20rpx; height: 50rpx; // border: 1px solid red; overflow: hidden; //一定要写 text-overflow: ellipsis; //超出省略号 display: -webkit-box; //一定要写 -webkit-line-clamp: 2; //控制行数 -webkit-box-orient: vertical; //一定要写 } .recommended-score { display: flex; margin: 0 20rpx; .score { font-size: 25rpx; // font-weight: bold; // color: #F01740; line-height: 36rpx; margin-right: 20rpx; margin-top: 5rpx; margin-left: 10rpx; } .sale { font-size: 25rpx; font-weight: 400; color: #666666; line-height: 36rpx; } .recommended-address { font-size: 25rpx; font-family: Source Han Sans CN; // font-weight: 300; color: #666666; line-height: 30rpx; margin: 10rpx 0 0 0rpx; // height: 60rpx; overflow: hidden; //一定要写 text-overflow: ellipsis; //超出省略号 display: -webkit-box; //一定要写 -webkit-line-clamp: 2; //控制行数 -webkit-box-orient: vertical; //一定要写 } } .recommended-distance { font-size: 24rpx; color: #666666; margin: 6rpx 0 0 0rpx; } } .button_1 { width: 60rpx; height: 60rpx; display: flex; justify-content: center; align-items: center; margin-right: 10rpx; border-radius: 50%; background-color: #229293; font-size: 26rpx; font-weight: bold; color: white; // line-height: 70rpx; } } }