.page{ height: 100%; background-color: #f9f9f9; } .main{ position: relative; .top { margin: 20rpx; padding-top: 30rpx; image { width: 100%; } } } /* 搜索 */ .search-head { // position: fixed; // left: 0; // top: 100rpx; // /* #ifdef H5 */ // // top: 178rpx; // /* #endif */ z-index: 10; display: flex; justify-content: center; align-items: center; width: 100%; // #ifdef APP-PLUS */ // height: calc(120rpx + var(--status-bar-height)); // /* #endif padding: 20rpx; background-color: #F4F4F4; .search { display: flex; align-items: center; width: 100%; height: 80rpx; background: rgba(255, 255, 255, 1); border: 0; border-radius: 30rpx; padding:0 25rpx; image { width: 34rpx; height: 34rpx; } text{ width: 2rpx; height: 24rpx; background-color:#D8D8D8; margin: 0 18rpx; } input { width: 58%; height: 100%; font-size: 28rpx; color: #646464; } } .btn { display: flex; align-items: center; justify-content: center; position: absolute; right: 30rpx; background-color: #D32D25; border-radius: 100rpx; padding: 12rpx 25rpx; text { font-size: 28rpx; color: #fff; } } } .head-search{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 20rpx; .search{ display: flex; align-items: center; width: 100%; padding: 0 20rpx; height: 72rpx; border: 2rpx solid #E8E8E8; border-radius: 100rpx; .icon{ display: flex; align-items: center; margin-right: 20rpx; image{ width: 29rpx; height: 29rpx; } } .hint{ display: flex; align-items: center; position: relative; width: 100%; .max{ font-size: 26rpx; color: #fff; background-color:#F15A29; border-radius: 100rpx; padding: 8rpx 25rpx; position: absolute; right: 0; } .min{ font-size: 26rpx; color: #B5B5B5; } } } } /* banner */ .banner{ height: 260rpx; overflow: hidden; margin-top: 20rpx; .screen-swiper{ height: 100%; min-height: 100% !important; image{ height: 260rpx; border-radius: 30rpx; } } } /* 菜单导航 */ .menu-nav{ position: relative; padding: 40rpx 30rpx; background-color: #fff; border-radius: 40rpx; .nav-list{ white-space: nowrap; .nav{ display: inline-block; display: flex; flex-direction: column; flex-wrap: wrap; justify-content: space-between; } .list{ display: flex; flex-direction: column; justify-content: center; align-items: center; width: 20%; margin-bottom: 20rpx; image{ width: 100rpx; height: 100rpx; } text{ font-size: 26rpx; color: #3D3D3D; margin-top: 10rpx; } } } .indicator{ position: absolute; left: 0; bottom: 0; display: flex; justify-content: center; align-items: center; width: 100%; height: 30rpx; .plan{ position: relative; width: 100rpx; height: 8rpx; border-radius: 8rpx; background-color: #e1e1e1; .bar{ position: absolute; width: 50%; height: 100%; border-radius: 6rpx; background-color: $base; } } } } /* 通知 */ .inform{ padding: 20rpx; .inform-info{ display: flex; height: 40rpx; .picture{ width: 8%; image{ width: 40rpx; height: 40rpx; } } .info{ width: 92%; height: 100%; .swiper{ width: 100%; height: 100%; .swiper-item{ display: flex; align-items: center; width: 100%; height: 100%; font-size: 28rpx; color: #848281; .mess-one-omit { display: flex; align-items: center; } .mess-icon { background-color: #6663FF; color: #fff; border-radius: 100rpx; padding: 4rpx 15rpx; font-size: 22rpx; margin-right: 10rpx; } .mess-img image { width: 22rpx; height: 22rpx; } } } } } } /* 今日上新 */ .new-product{ padding: 0 25rpx; .goods-list{ white-space:nowrap; width: 100%; overflow-y: hidden; overflow-x: auto; .list{ display:inline-block; width: 36%; margin-right: 20rpx; .pictrue{ width: 100%; height: 70%; image{ width: 550rpx; height: 150rpx; border-radius: 20rpx; border: 2rpx solid #0E7432; } } } } } /* 为你推荐 */ .recommend-info{ margin: 20rpx; .recommend-title{ display: flex; align-items: center; justify-content: center; width: 100%; height: 100rpx; .title{ display: flex; align-items: center; image{ width: 416rpx; height: 40rpx; } } } .goods-list{ display: flex; flex-wrap: wrap; justify-content: space-between; .list{ width: 49%; height: 380rpx; margin-bottom: 20rpx; background-color: #FFFFFF; border-radius: 10rpx; overflow: hidden; position: relative; .pictrue{ display: flex; justify-content: center; width: 350rpx; image{ height: 350rpx; border-radius: 20rpx; width: 350rpx; } } .title-tag{ // display: flex; height: 100rpx; padding: 20rpx; .tag{ width: 360rpx; float: left; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; font-size: 28rpx; line-height: 40rpx; font-weight: bold; margin-bottom: 10rpx; text{ font-size: 24rpx; color: #FFFFFF; padding: 4rpx 16rpx; background: linear-gradient(to right,$base,$change-clor); border-radius: 6rpx; margin-right: 10rpx; } } .tag-small { float: left; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; white-space: normal; font-size: 28rpx; line-height: 40rpx; color: #808080; } } .price-info{ width: 360rpx; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 20rpx; position: absolute; bottom: 0; .user-price{ display: flex; align-items: center; justify-content: space-between; background-color: #F6F6F6; border-radius: 10rpx; width: 100%; padding: 14rpx; text{ color: $price-clor; } .min{ font-size: 24rpx; } .max{ font-size: 32rpx; } .yuan { font-size: 20rpx; text-decoration:line-through; color: #C5CCD1; margin-left: 10rpx; } } .vip-price{ color: #FFAC6A; font-size: 24rpx; image { width: 24rpx; height: 24rpx; margin-right: 2rpx; } } } .goods-middle { display: flex; align-items: center; padding: 0 20rpx; color: #B6B6B6; font-size: 26rpx; margin: 10rpx 0; .goods-nc-name { display: block; background-color: #E5FFE6; color: #129B1F; font-size: 24rpx; padding: 6rpx 10rpx; border-radius: 10rpx; margin-right: 10rpx; } .nc-blue { background-color: #F0F5FF; color: #4B78D8; } } .goods-city { font-size: 24rpx; display: flex; align-items: center; image { width: 26rpx; height: 26rpx; margin-right: 5rpx; } } .goods-city-img { image { width: 20rpx; height: 20rpx; } } } } } .search-box { border-top: 4rpx solid #0E7432; border-bottom: 4rpx solid #0E7432; padding: 20rpx 0; background-color: #FFCC00; } .search{ display: flex; align-items: center; padding: 0 20rpx; margin:0 20rpx; height: 70rpx; background-color: #fff; border: 2rpx solid #0E7432; border-radius: 100rpx; /* #ifdef APP-PLUS */ // margin-top: var(--status-bar-height); /* #endif */ .iconfont{ font-size: 26rpx; color: #0E7432; font-weight: bold; } input{ width: 80%; height: 100%; color: #0E7432; font-size: 26rpx; margin-left: 10rpx; } .phcolor { color: #0E7432; font-size:26rpx; } } /* 记录列表 */ .title-screen { display: flex; align-items: center; background-color: #fff; border-radius: 20rpx 20rpx 0 0; padding: 0 0 0 30rpx; .red_line{ &::after{ content: ''; display: block; width: 34rpx; height: 6rpx; transition: all 2000ms linear; background-color: #E60012; margin: 0 auto; position: absolute; left: 50%; transform: translateX(-50%); top: 44rpx; } } .title-screen-box { margin-right: 3.8%; color: #8D8D8D; display: inline-flex; flex-direction: column; position: relative; line-height: 50rpx; .line { width: 34rpx; height: 6rpx; background-color: #E60012; margin: 0 auto; } .title-screen-box-btn { margin-top: 10rpx; width: 100rpx; image { width: 45rpx; height: 45rpx; } } } } .scrollview-box { white-space: nowrap; margin: 40rpx 0; } .home-yellowbg { background: -webkit-gradient(linear, left top, right top, from(#fff), to(#f6d344)); background: -o-linear-gradient(bottom, #fff, #f6d344); background: linear-gradient(to bottom, #fff, #f6d344); height: auto; width: 100%; } .titleall-box { //padding: 20rpx 0; .titleall-right { color: #fff; background-color: #0E7432; border-radius: 100rpx; font-size: 26rpx; padding: 6rpx 14rpx 6rpx 26rpx; image { width: 20rpx; height: 20rpx; margin-left: 6rpx; } } }