page { background: #F8F8F8; color: #111111; } view { font-size: 14px; line-height: inherit; } .main { padding: 32rpx; &.white{ background: #fff; } } .search { margin-bottom: 20rpx; ::v-deep .uni-searchbar__box { border: 1px solid #6e6e6e; } &.with-button { display: flex; flex-direction: row; justify-content: space-between; align-items: center; margin-bottom: 0; ::v-deep { .uni-searchbar { width: 500rpx; } .u-button { border-radius: 40rpx; } } } } .text-center{ text-align: center!important; } .category { display: flex; margin-top: 40rpx; margin-bottom: 38rpx; align-items: flex-end; &.sm{ .name{ font-size: 32rpx; } } .name { flex: 1; font-size: 36rpx; color: #111111; font-weight: 600; display: flex; } .more { font-size: 24rpx; color: #666666; } } .artifact-list { padding-bottom: 50rpx; display: flex; flex-wrap: wrap; justify-content: space-between; .item { margin-bottom: 36rpx; position: relative; overflow: hidden; width: calc(50% - 15rpx); .image-wrap { width: 330rpx; height: 330rpx; background-size: cover; background-position: center; border-radius: 20rpx; } .name { font-weight: 800; font-size: 30rpx; color: #333333; margin-top: 20rpx; width: 100%; text-align: center; height: 40rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } } .mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%); display: flex; align-items: center; justify-content: center; .iconfont { font-size: 80rpx; color: #fff; position: absolute; } } .post-list { display: flex; flex-wrap: wrap; justify-content: space-between; .item { padding: 0; margin-bottom: 38rpx; background: #fff; border-radius: 20rpx 20rpx 0 0; overflow: hidden; width: calc(50% - 10rpx); &:active, &.pressed { background: #efefef; } .image-wrap { position: relative; width: 330rpx; height: 440rpx; background: #fff center; background-size: cover; .like { position: absolute; right: 24rpx; bottom: 20rpx; z-index: 99; color: #fff; font-size: 24rpx; &.liked{ color: #FF8719; .iconfont { color: #FF8719; } } .iconfont { font-size: 26rpx; color: #fff; display: inline-block; margin-right: 6rpx; } } } .desc { margin: 20rpx 16rpx 30rpx; text-align: justify; font-size: 28rpx; color: #666666; line-height: 48rpx; } } } .banner { margin-top: 10rpx; .swiper { overflow: hidden; height: 246rpx; border-radius: 28rpx; .item { height: 100%; image { height: 100%; width: 100%; border-radius: 28rpx; display: block; } } } } .category-tag{ font-size: 24rpx; color:#fff; margin-left: 10rpx; display: flex; align-items: flex-end; text{ display: inline-block; background:#FF8719; padding:6rpx 10rpx; } .triangle{ padding: 0; background:#FF8719; height:10rpx; // 增加高度 width:24rpx; // 调整为正方形 clip-path: polygon(0 100%, 100% 0, 100% 100%); } } /** 图文列表 水平 */ .complex-list-horizontal-1 { &.lg{ .item{ image, .image-wrapper,.u-image{ width: 262rpx; height: 286rpx; overflow: hidden; } .info{ .name{ margin-bottom: 10rpx; } .desc{ line-height: 45rpx; } } } } .item { padding: 0; margin-bottom: 30rpx; background: #fff; display: flex; position: relative; border-radius: 20rpx; overflow: hidden; image,.image-wrapper,.u-image { display: block; border-radius: 20rpx; width: 170rpx; height: 190rpx; flex-shrink: 0; margin-right: 30rpx; overflow: hidden; background-color: #efefef; } .info { padding-right: 30rpx; .name { margin-top: 32rpx; font-size: 30rpx; color: #312520; font-weight: 600; margin-bottom: 16rpx; line-height: 48rpx; } .desc { text-align: justify; font-size: 28rpx; color: #666666; line-height: 48rpx; } } } } .complex-list-horizontal-2 { display: flex; flex-wrap: wrap; justify-content: space-between; .item { padding: 0; margin-bottom: 30rpx; background: #fff; display: flex; flex-direction: column; position: relative; border-radius: 20rpx; overflow: hidden; width: calc(50% - 15rpx); image,.image-wrapper,.u-image { display: block; border-radius: 20rpx; width: 100%; height: 300rpx; flex-shrink: 0; overflow: hidden; background-color: #efefef; } .desc { text-align: justify; font-size: 28rpx; color: #666666; line-height: 48rpx; padding: 10rpx 20rpx; } } } .ellipsis-1 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; text-overflow: ellipsis; } .ellipsis-2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; } .ellipsis-4 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; text-overflow: ellipsis; } .entrance{ background: #FFFFFF; padding:24rpx 38rpx; border-radius: 20rpx; margin-bottom: 42rpx; margin-top: 10rpx; display: flex; flex-wrap: nowrap; .item{ text-align: center; width: 25%; image{ width: 95rpx; height: 95rpx; } .title{ font-weight: 600; font-size: 28rpx; color: #111111; margin-top: 12rpx; } } } .news-simple-list-with-stats { background: #fff; padding: 32rpx 32rpx 32rpx; margin: 0 -32rpx; .item { display: flex; align-items: center; margin-bottom: 50rpx; height: 130rpx; overflow: hidden; &:last-child{ margin-bottom: 0; } image,.image-wrapper,.u-image { width: 230rpx; height: 130rpx; border-radius: 10rpx; margin-right: 20rpx; } .info { flex: 1; .title { font-size: 28rpx; color: #111111; line-height: 42rpx; margin-bottom: 20rpx; } .name { min-height: 76rpx; } .extra { display: flex; font-size: 24rpx; color: #999999; text.iconfont { margin-right: 4rpx; display: inline-block; &.icon-view{ margin-left: 20rpx; } &.icon-fav{ margin-left: 20rpx; } } } } } } ::v-deep .swiper .wx-swiper-dot { width: 16rpx; height: 16rpx; background: rgba(0,0,0,0.5); border: 4rpx solid #fff; border-radius: 50%; transition: all 0.3s ease; } ::v-deep .swiper .wx-swiper-dot-active { width: 44rpx; height: 16rpx; background: #FF8719; border-radius: 20rpx; border: 4rpx solid #FFFFFF; opacity: 1; } ::v-deep .swiper.right-indicator .wx-swiper-dots { left: inherit; right: -20rpx; } .compound-list.scene-list { .item { flex-direction: column; height: 370rpx; image{ display: block; width: 100%; height:282rpx; } .info{ display: flex; padding:20rpx; justify-content: center; .name{ flex:1; margin-top: 6rpx; } .desc{ color:#24515D; font-size: 24rpx; text.iconfont{ font-size: 24rpx; color:#999999; display: inline-block; margin-left: 6rpx; } } } } } /** 上图下标题 */ .complex-list-vertical-1 { display: flex; justify-content: space-between; flex-wrap: wrap; .item { width: calc(50% - 15rpx); margin-bottom: 53rpx; position: relative; image { width: 100%; height: 360rpx; display: block; } .info { text-align: center; padding-top: 20rpx; font-weight: bold; font-size: 30rpx; color: #312520; } } } .complex-list-vertical-2{ .item{ margin-bottom: 35rpx; image{ width: 687rpx; height: 287rpx; display: block; border-radius: 10rpx; } .info{ background: #FFFFFF; display: flex; padding:24rpx 20rpx 29rpx; font-size: 24rpx; color: #24515D; align-items: center; .name{ flex:1; font-weight: 600; font-size: 30rpx; color: #111111 } text.iconfont{ color:#999999; } } } } /** 图文横向滑动 **/ .complex-swiper { /* 小一号的尺寸 首页用 */ &.sm{ .swiper{ height: 254rpx; } .item{ height:100%; width: 425rpx; } .name{ right:28rpx; bottom: 22rpx; } } &.lg{ .swiper{ height: 360rpx; .swiper-item { width: 580rpx; &.active { z-index: 10; .item { transform: scale(1); } } } .item{ width: 580rpx; height: 360rpx; transform: scale(0.8); transition: transform 0.3s ease; position: relative; } } } .swiper { height: 300rpx; } .item { width: 514rpx; height: 300rpx; position: relative; border-radius: 20rpx; overflow: hidden; image { width: 100%; height: 100%; } .name { position: absolute; bottom: 14rpx; right: 22rpx; left: 22rpx; color: #fff; font-weight: 600; font-size: 28rpx; } } } .threeD { width: 36rpx; height: 36rpx; background: rgba(0, 0, 0, 0.57); border-radius: 50%; position: absolute; top: 15rpx; left: 205rpx; z-index: 99; text-align: center; text { color: #fff; font-size: 24rpx; } } page > view{ padding-bottom: 120rpx; } .img-banner { height: 246rpx; width: 100%; border-radius: 20rpx; margin-bottom: 40rpx; overflow: hidden; image { height: 100%; width: 100%; } } .level-info { padding: 48rpx 36rpx 36rpx; background: #FFF2E6; border-radius: 20rpx; position: relative; margin-bottom: 40rpx; > view:first-child { margin-bottom: 44rpx; } .label { font-size: 28rpx; color: #111111; display: inline-block; } .value { font-weight: bold; font-size: 28rpx; display: inline-block; color: #333333; .em { font-family: Rockwell; font-weight: 600; font-size: 30rpx; color: #FF8719; display: inline-block; margin-left: 35rpx; } } .btn { position: absolute; top: 30rpx; right: 30rpx; border-radius: 10rpx; border: 1px solid #FF8719; padding: 15rpx 20rpx; display: flex; align-items: center; font-weight: 400; font-size: 28rpx; color: #FF8719; text.iconfont { display: inline-block; margin-right: 15rpx; font-size: 40rpx; } } } .task-list{ .item{ display: flex; align-items: center; background: #fff; margin-bottom: 36rpx; padding:39rpx 27rpx 38rpx; text.iconfont{ width: 91rpx; height: 91rpx; border-radius: 50%; border: 1px solid #25515E; text-align: center; color: #25515E; font-size: 60rpx; line-height: 91rpx; display: inline-block; margin-right: 17rpx; } .btn{ background: #FF8719; border-radius: 28rpx; color:#fff; font-size: 28rpx; padding:14rpx 38rpx; &.active{ background: #EFEFEF; color:#999999; } } .info{ flex:1; .title{ font-weight: 600; font-size: 30rpx; color: #333333; margin-bottom: 22rpx; } .desc{ font-weight: 400; font-size: 24rpx; color: #999999; } } } } .people-list{ display: flex; justify-content: space-between; flex-wrap: wrap; .item{ width: 214rpx; background: #fff; text-align: center; position: relative; margin-bottom: 24rpx; padding-top: 80rpx; padding-bottom: 40rpx; border-radius: 10rpx; image.avatar{ width: 90rpx; height: 90rpx; border-radius: 50%; margin-bottom: 38rpx; } .name{ font-weight: 800; font-size: 30rpx; color: #333333; margin-bottom: 20rpx; } .days{ font-weight: 500; font-size: 24rpx; color: #999999; } .rank{ position: absolute; top: 35rpx; left: 17rpx; font-size: 48rpx; line-height: 35rpx; color:#B6B6B6; font-style: italic; font-family: Rockwell; &.top{ color: #FF8719; font-size: 60rpx; } .num-shadow{ width: 45rpx; height: 45rpx; position: absolute; left: 30rpx; top: 0; } } } } button[type="primary"] { background: #FF8719; border-radius: 16rpx; font-size: 28rpx; padding: 8rpx; color: #FFFFFF; font-weight: 600; } .address-select { position: relative; width: 100%; // 添加宽度 height: 100%; } .input-wrapper { width: 100%; height: 100%; pointer-events: none; /* 禁用内部元素的点击事件 */ } .bottom-actions { position: fixed; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: flex-end; width: 100%; height: 75rpx; background: #FFFFFF; .action { margin-left: 48rpx; font-weight: 800; font-size: 24rpx; color: #191919; display: flex; align-items: center; &:last-child { margin-right: 70rpx; } .iconfont { font-size: 30rpx; margin-right: 14rpx; } .iconfont.icon-liked { color: #FF8719; } } } .article { .title { font-weight: 800; font-size: 36rpx; color: #1E1E1E; line-height: 60rpx; margin-top: 10rpx; } .content { padding-bottom: 100rpx; } .info { display: flex; align-items: center; margin-top: 25rpx; margin-bottom: 45rpx; .author { font-size: 24rpx; color: #FF8719; margin-right: 16rpx; } .time { font-size: 24rpx; color: #999999; } } } .main-img{ width: 100%; height: 394rpx; display: block; image{ height: 100%; width: 100%; } } .article { .title { font-weight: 800; font-size: 36rpx; color: #1E1E1E; line-height: 60rpx; margin-top: 10rpx; } .content { padding-bottom: 100rpx; } .info { display: flex; align-items: center; margin-top: 25rpx; margin-bottom: 45rpx; .author { font-size: 24rpx; color: #FF8719; margin-right: 16rpx; } .time { font-size: 24rpx; color: #999999; } } }