.page{ // position: absolute; // left: 0; // top: 0; // width: 100%; // height: 100%; // overflow-x: hidden; // overflow-y: auto; padding-bottom: 100rpx; } .head-info{ position: fixed; left: 0; top: 0; z-index: 100; width: 100%; /* #ifdef APP-PLUS||H5 */ padding: calc(20rpx + var(--status-bar-height)) 25rpx 0; height: calc(200rpx + var(--status-bar-height)); /* #endif */ /* #ifdef MP */ padding:0 25rpx; height: 170rpx; /* #endif */ background-color: #FFFFFF; overflow: hidden; .head-search{ display: flex; align-items: center; justify-content: space-between; .icon-info{ display: flex; align-items: center; height: 100%; text{ font-size: 52rpx; color: #f6f6f6; } image{ width: 42rpx; height: 43rpx; } } .search{ display: flex; align-items: center; width: 75%; padding: 0 20rpx; height: 65rpx; background-color: rgba(255,255,255,0.3); border-radius: 10rpx; .icon{ display: flex; align-items: center; margin-right: 20rpx; image{ width: 27rpx; height: 29rpx; } } .hint{ display: flex; align-items: center; .max{ font-size: 30rpx; font-weight: bold; color: #FFFFFF; } .min{ font-size: 24rpx; color: #F6f6f6; margin-left: 10rpx; } } } } .classify-list{ white-space:nowrap; width: 100%; height: 100rpx; overflow-x: auto; overflow-y: hidden; .list{ position: relative; display:inline-block; width: 20%; height: 100%; line-height: 100rpx; text-align: center; text{ font-size: 28rpx; color: #FFFFFF; opacity: 0.8; } .line{ position: absolute; left: 50%; bottom: 20rpx; width: 60%; height: 8rpx; background: linear-gradient(to right,#f8f893,#fe9d00); border-radius: 10rpx; transform: translate(-50%,0); } } .action{ text{ font-size: 32rpx; opacity: 1; } } } } .main{ padding-top: 20rpx; background-color: #FFFFFF; } /* banner */ .banner{ padding: 0 25rpx; height: 360rpx; margin-bottom: 30rpx; // margin: -200rpx auto 20rpx; border-radius: 10rpx; overflow: hidden; .screen-swiper{ height: 100%; min-height: 100% !important; image{ height: 360rpx; border-radius: 10rpx; } } } /* 菜单导航 */ .menu-nav{ position: relative; width: 100%; height: 300rpx; margin:30rpx auto; .nav-list{ white-space: nowrap; height: 240rpx; width: 100%; .nav{ display: inline-block; display: flex; flex-direction: column; flex-wrap: wrap; justify-content: space-between; height: 270rpx; } .list{ display: flex; flex-direction: column; justify-content: center; align-items: center; width: 20%; height: 130rpx; margin-bottom: 20rpx; image{ width: 75rpx; height: 75rpx; border-radius: 100%; } text{ font-size: 26rpx; color: #363636; 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: 0 25rpx; height: 130rpx; // margin: 30rpx auto; border-bottom: 16rpx solid #f9f9f9; .inform-info{ display: flex; padding: 0 20rpx; height: 70rpx; background-color: #f7f7f7; border-radius: 10rpx; .picture{ width: 20%; height: 100%; image{ width: 93rpx; height: 84rpx; margin-top: -20rpx; } } .info{ width: 80%; height: 100%; .swiper{ width: 100%; height: 100%; .swiper-item{ display: flex; align-items: center; width: 100%; height: 100%; text{ font-size: 28rpx; color: #848281; } } } } } } /* 限时抢购,好货精选 */ .flash-good{ padding: 0 25rpx; background-color: #FFFFFF; border-bottom: 16rpx solid #f9f9f9; .flash-sale{ position: relative; width: 49%; height: 100%; margin-bottom: 20rpx; margin-right: 2%; .goods-list{ display: flex; width: 100%; .list { background: url(../../static/home1.png) no-repeat; background-size: 100% 100%; width: 100%; height: 150rpx; display: flex; justify-content: space-between; padding: 30rpx; .list-title { color: #be601a; font-size: 34rpx; font-weight: bold; } .list-small-title { color: #da9b6c; margin-top: 4rpx; } .list-img { image { width: 90rpx; height: 90rpx; } } } } } .good-choice{ width: 49%; height: 100%; margin-bottom: 20rpx; .goods-list{ display: flex; width: 100%; .list { background: url(../../static/home2.png) no-repeat; background-size: 100% 100%; width: 100%; height: 150rpx; display: flex; justify-content: space-between; padding: 30rpx; .list-title { color: #be601a; font-size: 34rpx; font-weight: bold; } .list-small-title { color: #da9b6c; margin-top: 4rpx; } .list-img { image { width: 90rpx; height: 90rpx; } } } } } .good-choice1{ width: 49%; height: 100%; margin-bottom: 20rpx; margin-right: 2%; .goods-list{ display: flex; width: 100%; .list { background: url(../../static/home3.png) no-repeat; background-size: 100% 100%; width: 100%; height: 150rpx; display: flex; justify-content: space-between; padding: 35rpx 25rpx 30rpx 25rpx; .list-title { color: #9f4feb; font-size: 34rpx; font-weight: bold; } .list-small-title { color: #bb91e2; margin-top: 4rpx; } .list-img { image { width: 90rpx; height: 90rpx; } } } } } .good-choice2{ width: 49%; height: 100%; margin-bottom: 20rpx; .goods-list{ display: flex; width: 100%; .list { background: url(../../static/home4.png) no-repeat; background-size: 100% 100%; width: 100%; height: 150rpx; display: flex; justify-content: space-between; padding: 30rpx; .list-title { color: #4636fc; font-size: 34rpx; font-weight: bold; } .list-small-title { color: #968df6; margin-top: 4rpx; } .list-img { image { width: 90rpx; height: 90rpx; } } } } } } /* 今日上新 */ .new-product{ padding: 0 25rpx; height: 350rpx; .product-title{ display: flex; align-items: center; justify-content: space-between; width: 100%; height: 100rpx; .title{ display: flex; align-items: center; image{ width: 24rpx; height: 32rpx; } text{ font-size: 30rpx; color: #4c4b4b; margin-left: 20rpx; } } .describe{ display: flex; align-items: center; text{ font-size: 26rpx; color: #a09f9f; } } } .goods-list{ white-space:nowrap; width: 100%; height: 220rpx; overflow-y: hidden; overflow-x: auto; .list{ display:inline-block; width: 25%; height: 100%; margin-right: 20rpx; .pictrue{ width: 100%; height: 70%; image{ width: 150rpx; height: 150rpx; } } .price{ display: flex; align-items: center; width: 100%; height: 30%; .selling-price{ font-size: 28rpx; font-weight: bold; color: $price-clor; } .original-price{ font-size: 24rpx; text-decoration: line-through; color: #bbbaba; margin-left: 10rpx; } } } } } /* 为你推荐 */ .recommend-info{ width: 100%; background-color: #f2f2f2; .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; padding: 0 30rpx; .list{ width: 49%; height: 540rpx; margin-bottom: 20rpx; background-color: #FFFFFF; border-radius: 10rpx; overflow: hidden; .pictrue{ display: flex; justify-content: center; width: 100%; image{ height: 350rpx; } } .title-tag{ // display: flex; height: 100rpx; padding: 20rpx; .tag{ float: left; margin-right: 10rpx; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; font-size: 26rpx; line-height: 40rpx; text{ font-size: 24rpx; color: #FFFFFF; padding: 4rpx 16rpx; background: linear-gradient(to right,$base,$change-clor); border-radius: 6rpx; margin-right: 10rpx; } } } .price-info{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 0 20rpx; height: 80rpx; .user-price{ display: flex; align-items: center; text{ color: $price-clor; } .min{ font-size: 24rpx; } .max{ font-size: 32rpx; } } .vip-price{ display: flex; align-items: center; image{ width: 26rpx; height: 26rpx; margin-right: 10rpx; } text{ color: #fcb735; font-size: 24rpx; } } } } } } .search-box { border-bottom: 8px solid #F7F7F7; padding: 20rpx 0; } .search{ display: flex; align-items: center; padding: 0 10rpx; margin:0 20rpx; height: 70rpx; background-color: #fff; border: 2rpx solid #E2E2E2; border-radius: 20rpx; /* #ifdef APP-PLUS */ margin-top: var(--status-bar-height); /* #endif */ .iconfont{ font-size: 28rpx; color: #C0C0C0; } input{ width: 80%; height: 100%; color: #212121; font-size: 24rpx; margin-left: 10rpx; } .search-btn { background: linear-gradient(to right,#6093FE,#557DFF); display: inline-block; border-radius: 10rpx; color: #fff; width: 120rpx; text-align: center; height: 55rpx; line-height: 55rpx; } } /* 记录列表 */ .title-screen { display: flex; margin: 10rpx 20rpx 20rpx 20rpx; .title-screen-box { margin-right: 80rpx; image { width: 24rpx; height: 24rpx; margin-left: 10rpx; } } } .record-list{ width: 100%; background-color: #FFFFFF; padding-bottom: 10rpx; .list{ display: flex; justify-content: space-between; padding: 30rpx; border-bottom: 2rpx solid #f6f6f6; box-shadow: 0 0 20rpx #ededed; margin: 20rpx; border-radius: 10rpx; .title-date{ width: 65%; height: 100%; .title{ display: flex; align-items: center; width: 100%; height: 60rpx; text{ font-size: 28rpx; font-weight: bold; color: #222222; } } .date{ display: flex; align-items: center; width: 100%; margin-top: 20rpx; text{ font-size: 24rpx; color: #959595; height: 38rpx; overflow: hidden; //超出的文本隐藏 text-overflow: ellipsis; //溢出用省略号显示 white-space: nowrap; // 默认不换行; } } .yellow-btn { background-color: #FF8E48; font-size: 20rpx; color: #fff; display: inline-block; padding: 10rpx 20rpx; border-radius: 10rpx; margin-top: 20rpx; } } .integral{ text-align: right; height: 100%; text{ font-size: 28rpx; font-weight: bold; } .integral-btn { color: #5A7EFF; background-color: #E2EBFF; border-radius: 10rpx; padding: 10rpx 20rpx; } .integral-num { color: #FF8E48; margin-top: 40rpx; } } } } .titleall-box { display: flex; justify-content: space-between; margin: 0 20rpx; padding: 20rpx 0; .titleall-left { font-size: 32rpx; font-weight: bold; display: flex; align-items: center; .titleall-left-line { width: 16rpx; height: 36rpx; border-radius: 100rpx; background: -webkit-gradient(linear, left top, right top, from(#527DFE), to(#5D93FE)); background: -o-linear-gradient(left, #527DFE, #5D93FE); background: linear-gradient(to right, #527DFE, #5D93FE); margin-right: 20rpx; } } .titleall-right { color: #C1C1C1; image { width: 20rpx; height: 20rpx; margin-left: 10rpx; } } }