.couponView { margin: 24rpx; } .couponView .item { display: flex; justify-content: flex-start; align-items: center; padding: 20rpx 0; border-top: 1px solid rgb(126, 126, 126, 0.2); } .couponView .item:first-of-type { border-top: none; } .couponView .item .imgView { position: relative; width: 257rpx; height: 222rpx; } .couponView .item .imgView .img { width: 100%; height: 100%; } .couponView .item .imgView .timeView { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; } .couponView .item .imgView .timeView .title { font-size: 46rpx; font-weight: bold; } .couponView .item .imgView .timeView .type { font-size: 26rpx; } .couponView .item .contentView { flex: 1; margin: 0 20rpx; color: gray; word-break: break-all; } .couponView .item .contentView .title { font-size: 26rpx; font-weight: bold; } .couponView .item .contentView .platform { margin-top: 20rpx; font-size: 24rpx; opacity: 0.6; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .couponView .item .contentView .validityTime { margin-top: 20rpx; font-size: 22rpx; opacity: 0.6; } .noneView{ width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; } .none-image{ margin-top: -200rpx; }