123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- .img-class {
- width: 710rpx;
- height: 400rpx;
- border-radius: 10rpx 10rpx 0 0;
- image-rendering: crisp-edges;
- }
- .mask {
- background: rgba(255, 255, 255, 0.5);
- width: 710rpx;
- height: 400rpx;
- position: absolute;
- left: 0;
- top: 0;
- }
- .act-end {
- position: absolute;
- height: 60rpx;
- border-radius: 10rpx;
- background: rgba(0, 0, 0, 0.5);
- color: #fff;
- font-size: 28rpx;
- text-align: center;
- line-height: 60rpx;
- left: 50%;
- top: 170rpx;
- padding: 0 12rpx;
- transform: translateX(-50%);
- }
- .spu-content {
- background: #fff;
- width: 710rpx;
- border-radius: 20rpx;
- overflow: hidden;
- position: relative;
- box-shadow: 0 0 40rpx rgba(0, 0, 0, 0.05);
- margin: 0 auto 20rpx;
- display: flex;
- flex-direction: column;
- box-sizing: border-box;
- }
- .spu-content.disabled {
- opacity: 0.6;
- }
- .spu-content .item-top {
- width: 100%;
- height: 400rpx;
- position: relative;
- }
- .spu-content .item-bottom {
- box-sizing: border-box;
- padding: 20rpx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- }
- .spu-content .item-bottom .spu-title {
- color: #222;
- font-size: 30rpx;
- height: 32rpx;
- width: 100%;
- margin-bottom: 12rpx;
- margin-top: 10rpx;
- font-weight: 500;
- position: relative;
- }
- .spu-content .item-bottom .spu-title .span {
- width: 100%;
- height: 40rpx;
- position: absolute;
- left: 0;
- top: -4rpx;
- line-height: 40rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .spu-content .item-bottom .spu-tag {
- padding-left: 196rpx;
- margin-bottom: 20rpx;
- display: flex;
- height: 28rpx;
- }
- .spu-content .item-bottom .spu-desc {
- font-size: 26rpx;
- line-height: 26rpx;
- color: #999;
- position: relative;
- width: 100%;
- height: 26rpx;
- margin-bottom: 12rpx;
- }
- .spu-content .item-bottom .spu-desc .em {
- width: 100%;
- height: 32rpx;
- position: absolute;
- left: 0;
- top: -2rpx;
- line-height: 32rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .spu-content .item-bottom .spu-price {
- display: flex;
- align-items: flex-end;
- font-size: 26rpx;
- line-height: 26rpx;
- overflow: hidden;
- margin-bottom: 10rpx;
- margin-top: 10rpx;
- }
- .spu-content .item-bottom .spu-price .sale-price {
- color: #ff5344;
- margin-right: 12rpx;
- }
- .spu-content .item-bottom .spu-price .sale-price .span {
- font-size: 46rpx;
- line-height: 42rpx;
- margin: 0;
- font-weight: bold;
- }
- .spu-content .item-bottom .spu-price .market-price {
- text-decoration: line-through;
- color: #999;
- margin-right: 20rpx;
- }
- .spu-content .item-bottom .spu-count {
- font-size: 24rpx;
- line-height: 24rpx;
- color: #999;
- }
- .spu-content .add-cart,
- .spu-content .add-cart-disabled {
- width: 160rpx;
- height: 60rpx;
- padding: 0;
- margin: 0;
- position: absolute;
- right: 28rpx;
- bottom: 20rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- background: #ff5344;
- color: #fff;
- border-radius: 30rpx;
- }
- .spu-content .add-cart-disabled {
- background: #ccc;
- }
- .spu-content .item-top .spu-active {
- position: absolute;
- left: 0;
- bottom: 0;
- z-index: 9;
- display: flex;
- flex-direction: column-reverse;
- align-items: flex-start;
- }
- .spu-content .item-top .spu-active .tag {
- background: linear-gradient(to right, #ff5041, #ff994b);
- border-radius: 0 25rpx 25rpx 0;
- padding: 0 15rpx;
- height: 50rpx;
- font-size: 26rpx;
- line-height: 50rpx;
- color: #fff;
- display: inline-block;
- align-items: center;
- justify-content: center;
- width: auto;
- max-width: 220rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .spu-content .item-top .spu-active .tag-green {
- background: linear-gradient(to left, #46c8d0, #29ba9a);
- }
- .spu-content .spu-content .time-tip {
- position: absolute;
- background: #ff5344;
- left: 0;
- bottom: 0;
- width: 250rpx;
- height: 40rpx;
- border-radius: 0 8rpx 0 0;
- }
- .spu-content .spu-content .time-tip.notip {
- display: none;
- }
- /* 标签 */
- .spu-content .item-tag {
- position: absolute;
- left: 22rpx;
- top: 0;
- width: 54rpx;
- height: 62rpx;
- z-index: 1;
- color: #fff;
- text-align: center;
- }
- .item-tag-bg {
- position: absolute;
- left: 0;
- top: 0;
- width: 54rpx;
- height: 62rpx;
- z-index: 0;
- }
- .spu-content .item-tag .tag-name {
- position: relative;
- padding-top: 6rpx;
- font-size: 20rpx;
- line-height: 1;
- font-weight: 600;
- z-index: 1;
- }
- .spu-content .item-tag .tag-name.two-word {
- font-size: 22rpx;
- padding-top: 14rpx;
- }
- .spu-play {
- position: absolute;
- left: 50%;
- top: 50%;
- width: 160rpx;
- height: 160rpx;
- margin-top: -80rpx;
- margin-left: -80rpx;
- }
- .spu-play .img {
- width: 100%;
- height: 100%;
- }
- .pin-tag {
- display: inline-block;
- font-size: 22rpx;
- padding: 4rpx 6rpx;
- margin-right: 10rpx;
- border: 0.1rpx solid #ff5344;
- line-height: 1;
- vertical-align: middle;
- color: #ff5344;
- border-radius: 4rpx;
- }
|