.page { position: absolute; width: 100%; background: #f6f6f6; overflow-x: hidden; } .goods-head{ position: fixed; left: 0; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; width: 100%; height: 100rpx; background:rgba(255,255,255,0); /* #ifdef MP */ height: calc(120rpx + var(--status-bar-height)); /* #endif */ color: #fff; .back{ position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 100rpx; height: 100%; /* #ifdef APP-PLUS */ padding-top: 50rpx; /* #endif */ /* #ifdef MP */ padding-top: 90rpx; /* #endif */ // 返回 .back-one{ display: flex; align-items: center; justify-content: center; width: 50rpx; height: 50rpx; image{ width: 40rpx; height: 40rpx; } } .action{ background-color: transparent; .back-one-left { display: block; } .back-one-left1{ display: none; } } } .back-one-left { display: none; } .action.head-title { color:#000; } .head-title { font-size: 30rpx; font-weight: bold; /* #ifdef MP */ padding-top: 90rpx; /* #endif */ } // tab切换 .head-tab{ display: flex; align-items: center; height: 100%; /* #ifdef APP-PLUS */ padding-top: 50rpx; /* #endif */ /* #ifdef MP */ padding-top: 100rpx; /* #endif */ .tab{ position: relative; margin: 0 20rpx; padding: 0 10rpx; text{ color: #555555; font-size: 30rpx; } } .action{ text{ color: #212121; font-size: 28rpx; } .line{ position: absolute; left: 0; bottom: -10rpx; width: 100%; height: 6rpx; background: linear-gradient(to right,$base,rgba(255,255,255,0.3)); } } } // 分享更多 .share-more{ position: absolute; right: 0; top: 0; width: 140rpx; height: 100%; /* #ifdef APP-PLUS */ padding-top: 50rpx; /* #endif */ /* #ifdef MP */ padding-top: 100rpx; /* #endif */ .share-more-one{ display: flex; align-items: center; justify-content: space-between; padding-right: 20rpx; height: 100%; .list{ display: flex; align-items: center; justify-content: center; width: 50rpx; height: 50rpx; background-color: rgba(0,0,0,0.3); border-radius: 100%; text{ font-size: 28rpx; color: #FFFFFF; } } } .action{ .list{ background-color: transparent; text{ color: #555555; } } } .mroe-list{ position: fixed; right: 20rpx; top: 100rpx; /* #ifdef MP */ top: 180rpx; /* #endif */ width: 200rpx; background-color: rgba(255,255,255,0.9); border-radius: 10rpx; .list{ display: flex; align-items: center; width: 90%; height: 80rpx; margin: 0 auto; border-bottom: 2rpx solid #C8C7CC; padding: 0 4%; .icon{ display: flex; align-items: center; width: 60rpx; text{ font-size: 34rpx; } } .title{ display: flex; align-items: center; text{ font-size: 26rpx; } } } } } } /* banner */ .banner{ width: 100%; height: 320rpx; /* #ifdef MP */ height: 400rpx; /* #endif */ image { width: 100%; height: 320rpx; /* #ifdef MP */ height: 400rpx; /* #endif */ } } .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; } .banner-text { position: absolute; top: 100rpx; /* #ifdef MP */ top: 180rpx; /* #endif */ color: #fff; padding: 0 40rpx; display: flex; justify-content: space-between; width: 100%; .banner-text-title { font-size: 34rpx; font-weight: bold; margin-bottom: 10rpx; } .company { display: flex; align-items: center; margin-top: 20rpx; image { width: 40rpx; height: 40rpx; border-radius: 10rpx; margin-right: 10rpx; } } .time { margin-top: 10rpx; } .tousu { color: #FFC25A; font-size:28rpx; margin-top: 110rpx; image { width: 30rpx; height: 30rpx; position: relative; top: 4rpx; } } } /* 价格 */ .price-info{ display: flex; align-items: center; justify-content: space-between; padding: 0 4%; height: 120rpx; .price{ display: flex; align-items: center; .min{ color: $base; font-size: 28rpx; font-weight: bold; } .max{ color: $base; font-size: 48rpx; font-weight: bold; } } .info{ display: flex; align-items: center; height: 100%; .list{ display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 20rpx; text{ font-size: 24rpx; color: #555555; } .iconfont{ font-size: 34rpx; margin-bottom: 10rpx; color: #555555; } .action{ color: $base; } } } } /* 限时抢购 */ .flash-price{ display: flex; width: 100%; height: 100rpx; background-color: #FFFFFF; // border-radius: 20rpx; overflow: hidden; .price-item{ position: relative; display: flex; width: 70%; height: 100%; background: linear-gradient(to left,$base,$assist-clor); padding: 0 20rpx; overflow: hidden; .icon-item{ display: flex; align-items: center; height: 100%; text{ font-size: 42rpx; color: #FFFFFF; } } .price{ display: flex; flex-direction: column; justify-content: center; margin-left: 20rpx; .current-price{ display: flex; align-items: center; // height: 60rpx; text{ color: #FFFFFF; font-weight: bold; } .min{ font-size: 28rpx; } .max{ font-size: 38rpx; } } .original-price{ display: flex; align-items: center; text{ font-size: 24rpx; color: #FFFFFF; opacity: 0.7; text-decoration: line-through; } } } .tag{ position: absolute; right: -20rpx; bottom: -20rpx; transform: rotate(-45deg); text{ font-size: 68rpx; color: rgba(0,0,0,0.2); } } } .time-item{ display: flex; flex-direction: column; justify-content: center; width: 30%; height: 100%; background-color:$rgba-05; // opacity: 0.5; .title{ display: flex; align-items: center; justify-content: center; width: 100%; text{ color: #FFFFFF; font-size: 24rpx; } } .time{ display: flex; align-items: center; justify-content: center; width: 100%; height: 50rpx; .num{ display: flex; align-items: center; justify-content: center; width: 40rpx; height: 40rpx; font-size: 24rpx; color: #FFFFFF; background-color: $base; border-radius: 10rpx; } .dot{ font-size: 24rpx; color: $base; margin: 0 5rpx; } } } } /* 标题 */ .goods-title{ padding: 0 4%; margin: 20rpx auto; text{ font-size: 28rpx; color: #212121; } } /* 开通会员 */ .dredge-vip{ display: flex; align-items: center; justify-content: space-between; width: 90%; height: 80rpx; margin: 20rpx auto; background-color: #F5F5DC; border-radius: 20rpx; overflow: hidden; .title{ display: flex; align-items: center; height: 100%; padding: 0 4%; text{ font-size: 26rpx; color: #333333; .col{ color: $base; font-weight: bold; } } .iconfont{ font-size: 34rpx; color: #333333; margin-right: 20rpx; } } .dredge{ display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100rpx; height: 80rpx; background-color: #464C5B; text{ font-size: 24rpx; color: #F5F5DC; text-align: center; } } } /* 优惠 */ .goods-discounts{ padding: 0 4%; background-color: #FFFFFF; border-radius: 20rpx; overflow: hidden; margin: 20rpx auto; .list{ display: flex; align-items: center; justify-content: space-between; padding: 0 4%; height: 100rpx; border-bottom: 2rpx solid #f6f6f6; .title{ display: flex; align-items: center; width: 15%; height: 100%; font-size: 24rpx; color: #212121; } .content{ display: flex; align-items: center; width: 80%; height: 100%; >text{ font-size: 24rpx; color: #555555; } .serve{ display: flex; align-items: center; margin-right: 20rpx; text{ font-size: 24rpx; color: #555555; } .iconfont{ font-size: 26rpx; color: $base; margin-right: 10rpx; } } .coupon-list{ position: relative; display: flex; align-items: center; // width: 100rpx; height: 30rpx; border: 2rpx solid $base; border-radius: 6rpx; margin-right: 20rpx; view{ display: inline-block; padding: 0 5rpx; color: $base; font-size: 24rpx; transform: scale(0.8); } } .coupon-list:before{ position: absolute; left: -10rpx; top: 50%; content: ""; width: 12rpx; height: 12rpx; background-color: #fff; border-right: 2rpx solid $base; border-radius: 100%; transform: translate(0,-50%); } .coupon-list:after{ position: absolute; right: -10rpx; top: 50%; content: ""; width: 12rpx; height: 12rpx; background-color: #fff; border-left: 2rpx solid $base; border-radius: 100%; transform: translate(0,-50%); } } .more{ display: flex; align-items: center; text{ font-size: 24rpx; color: #CCCCCC; } } } } /* 评价 */ .evaluate-data{ padding: 4%; margin: 20rpx auto; background-color: #FFFFFF; border-radius: 20rpx; overflow: hidden; margin: 20rpx; .title-more{ display: flex; align-items: center; justify-content: space-between; width: 100%; .title{ display: flex; align-items: center; height: 100%; font-size: 32rpx; color: #000; font-weight: bold; .num{ font-size: 24rpx; } } .more{ display: flex; align-items: center; text{ font-size: 26rpx; color: #212121; } } } .evaluate-list-line { height: 2rpx; width: 100%; background-color: #F7F7F7; margin: 20rpx 0; } .evaluate-list{ width: 100%; .user-info{ display: flex; align-items: center; width: 100%; height: 80rpx; .thumb{ width: 60rpx; height: 60rpx; image{ width: 100%; height: 100%; border-radius: 100%; } } .nickname-grade{ height: 60rpx; margin-left: 20rpx; .nickname{ display: flex; align-items: center; text{ font-size: 24rpx; color: #212121; } } .grade{ display: flex; align-items: center; margin-top: 6rpx; text{ font-size: 24rpx; color: $base; } } } } .content{ width: 100%; .character{ display: flex; align-items: center; padding: 10rpx 0; .character-icon { background-color: #F0F5FF; color: #4B78D8; font-size: 28rpx; border-radius: 8rpx; padding: 10rpx 20rpx; margin-top: 10rpx; margin-right: 20rpx; } } .attr{ display: flex; align-items: center; padding: 10rpx 0; text{ font-size: 24rpx; color: #CCCCCC; } } .thumb-list{ display: flex; width: 100%; height: 200rpx; margin: 10rpx 0; .list{ width: 200rpx; height: 200rpx; margin-right: 3%; image{ width: 100%; height: 100%; } } } } .look-all{ display: flex; align-items: center; justify-content: center; margin: 20rpx auto; text{ padding: 10rpx 20rpx; font-size: 26rpx; color: #212121; border: 2rpx solid #f6f6f6; border-radius: 40rpx; } } } } /* 排行榜 */ .ranking-list{ padding: 0 4%; margin: 20rpx auto; background-color: #FFFFFF; border-radius: 20rpx; overflow: hidden; .ranking-title{ display: flex; align-items: center; width: 100%; height: 80rpx; .title{ font-size: 26rpx; color: #212121; } } .goods-list{ display: flex; flex-wrap: wrap; width: 100%; .list{ width: 32%; height: 360rpx; border-radius: 10rpx; overflow: hidden; margin-right: 2%; .thumb{ width: 100%; height: 200rpx; image{ width: 100%; height: 100%; } } .title{ display: flex; align-items: center; width: 100%; height: 80rpx; text{ font-size: 24rpx; color: #555555; } } .price{ display: flex; align-items: center; width: 100%; height: 60rpx; text{ color: $base; font-size: 24rpx; font-weight: bold; } } } .list:nth-child(3n){ margin-right: 0; } } } /* 商品介绍 */ .products-introduction{ .title{ display: flex; justify-content: center; align-items: center; width: 100%; height: 80rpx; text{ font-size: 28rpx; color: #212121; margin: 0 20rpx; } } .title:before{ content: ""; width: 100rpx; height: 2rpx; background-color: #c0c0c0; } .title:after{ content: ""; width: 100rpx; height: 2rpx; background-color: #c0c0c0; } .content{ margin: 20rpx; image{ width: 100%; } img{ width: 100%; } } } .my-phone { font-size: 24rpx; text-align: center; color: #A2A2A2; margin: 20rpx 0; padding-bottom: 120rpx; /* #ifdef MP */ padding-bottom: 40rpx; /* #endif */ view { margin-bottom: 10rpx; } } /* 底部 */ .page-footer{ position: fixed; left: 0; bottom: 0; display: flex; width: 100%; height: 100rpx; background-color: #FFFFFF; /* #ifdef MP */ height: calc(50rpx + env(safe-area-inset-bottom)); /* #endif */ .footer-fn{ width: 50%; height: 100%; .list{ width: 80%; height: 40rpx; margin-left: 50rpx; padding-top: 10rpx; text-align: center; text{ font-size: 28rpx; color: #5A7EFF; } } .list1 { width: 80%; height: 40rpx; margin-left: 50rpx; padding-top: 10rpx; text-align: center; margin-bottom: 10rpx; text{ font-size: 32rpx; color: #5A7EFF; font-weight: bold; } } } .footer-buy{ display: flex; align-items: center; justify-content: space-between; width: 50%; height: 100%; .buy-at{ text-align: center; width: 100%; height: 100%; background: #5A7EFF; color: #FFFFFF; padding-top: 14rpx; .buy-top { font-size: 32rpx; font-weight: bold; } } } } .record-list{ width: 100%; padding-bottom: 10rpx; .list{ background-color: #FFF; 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; } } } .title-screen { display: flex; margin: 0 20rpx 0 20rpx; .title-screen-box { margin-right: 80rpx; image { width: 24rpx; height: 24rpx; margin-left: 10rpx; } } } .search-box { 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; } }