goodsItemIII.less 4.27 KB
@charset "UTF-8";

.goods-item-iii-box {
    background-color: transparent;
    width: 100%;
    height: auto;
    .item {
        background-color: #ffffff;
        width: 100%;
		height: auto;
		border-radius: 16px;
        overflow: hidden;
        .img-box {
            display: flex;
			justify-content: center;
			align-items: center;
            width: 100%;
            height: 330px;
            // height: 100%;
            overflow: hidden;
            // 因为积分需要层叠到图片上方需要设置父级相对定位
            position: relative;
			.img {
				display: block;
				width: 100%;
				// height: auto;
            }
            // 积分商城需要商品是否有货显示补货中
            .goods_active{
                width: 100%;
                height: 58px;
                // border-radius: 26px;
                background: rgba(0, 0, 0, 0.4);
                display: flex;
                align-items: center;
                justify-content: center;
                color: #fff;
                font-size: 30px;
                text-align: center;
                position: absolute;
                left: 0;
                bottom: 0;
            }
            // 积分 + 现金标示
            .goods_tip{
              position: absolute;
              left: 14px;
              top: 14px;
              padding: 3px 8px;
              background: linear-gradient(90deg, #F9EE7A 0%, #FAD844 100%);
              border-radius: 7px;
              height: 30px;
              font-size: 22px;
              font-weight: 400;
              color: #945A08;
              line-height: 30px;
            }
			.flag {
				position: absolute;
				top: 0;
				right: 0;
				z-index: 1;
				width: 100%;
				height: 100%;
			}
        }
		.content-box {
			margin: 0 auto;
			width: 290px;
			.title {
				display: -webkit-box;
				margin-top: 20px;
				color: #333333;
				font-size: 28px;
				font-weight: 400;
				width: 100%;
				height: auto;
				min-height: 76px;
				line-height: 40px;
				-webkit-line-clamp: 2;
				/*! autoprefixer: off */
				-webkit-box-orient: vertical;
				/*! autoprefixer: on */
				text-overflow: ellipsis;
				overflow: hidden;
			}
			.grey-title{
				font-size: 36px;
				height: 76px;
			}
			.coupon-box {
				display: inline;
				margin-top: 8px;
				padding: 1px 6px;
				color: #FC1541;
				font-size: 18px;
				border: 1px solid #FC1541;
				border-radius: 4px;
			}
			.price-box {
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-top: 10px;
				margin-bottom: 20px;
				.left {
					display: flex;
					justify-content: flex-start;
					align-items: baseline;
					color: #FC1541;
					.y {
						font-size: 20px;
					}
					.integer {
						font-size: 36px;
					}
					.decimal {
						font-size: 36px;
					}
					.text {
						font-size: 36px;
					}
				}
				.right {
					display: flex;
					justify-content: flex-end;
					align-items: baseline;
					.icon-add {
						display: block;
						width: 48px;
						height: 48px;
					}
                }
            }
		}
		.tips-box {
			font-size: 20px;
			font-weight: 400;
			width: 100%;
			height: 50px;
			line-height: 50px;
			text-align: center;
			&.not-has {
				background-color: #F4F4F4;
				color: #999999;
			}
			&.has {
				background-color: #FFF2C4;
				color: #E7A304;
			}
		}
		/*兼容积分商城样式*/
		.integral-content-box{
			width: 100%;
		}
		&.g-2 {
			.content-box {
				.title {
					display: block;
					font-weight: 500;
					min-height: unset;
					white-space: nowrap;
					text-overflow: ellipsis;
					overflow: hidden;
				}
				.price-box {
					margin-top: 15px;
					margin-bottom: 15px;
					.left {
						.y {
							font-size: 36px;
						}
						.integer {
							font-size: 36px;
						}
						.decimal {
							font-size: 36px;
						}
					}
					.right {
						display: none;
					}
				}
			}
		}
	}
	&.style-2 {
		.item {
			.content-box {
				.title {
					font-size: 26px;
					font-weight: 500;
				}
				.grey-title{
					font-size: 36px;
					height: 76px;
				}
				.price-box {
					.left {
						display: flex;
						justify-content: flex-start;
						align-items: baseline;
						color: #E68D0E;
						.y {
							font-size: 24px;
							& + .integer {
								margin-left: 5px;
							}
						}
					}
				}
			}
		}
	}
}