index.scss 3.5 KB
page {
  background: #F7F8FA;
}
.layout {
  overflow: auto;
}
::-webkit-scrollbar {
  width: 0;
  height: 0;
  color: transparent;
}
.nothing-box {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: #F7F8FA;
}
.nothing {
  padding-top: 140rpx;
  text-align: center;
  color: #7A8299;
}
.nothing .icon {
  margin: 0 auto 20rpx;
  width: 320rpx;
  height: 300rpx;
}
.box {
  padding: 24rpx;
}
.item-box {
  margin-bottom: 24rpx;
  background: #FFFFFF;
  border-radius: 24rpx;
  padding-left: 32rpx;
}
.item-box.disabled {
  opacity: .7;
  padding-left: 16rpx;
}
.box .item {
  width: 100%;
  height: 208rpx;
  background: #FFFFFF;
  border-radius: 24rpx;
  margin-bottom: 24rpx;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  position: relative;
}
.box .item .content {
  width: 100%;
  padding-right: 24rpx;
  box-sizing: border-box;
  transition: all .5s;
  transform: translateX(112rpx);
  margin-left: -112rpx;
  position: relative;
  display: flex;
  align-items: center;
}
.box .item .content .icon,
.box .item .content .goods-info .preview {
  margin-right: 20rpx;
}
.box .item .content .goods-info {
  width: calc(100% - 60rpx);
  display: flex;
  align-items: center;
}
.box .item .content .goods-info .preview {
  width: 160rpx;
  height: 160rpx;
  border-radius: 16rpx;
  overflow: hidden;
}
.box .item .content .goods-info .text {
  width: calc(100% - 180rpx);
  height: 160rpx;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.box .item .content .goods-info .text .price-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.invalid {
  color: #F13C3D;
}
.invalid-icon {
  width: 64rpx;
  height: 32rpx;
  background: #E6E7EA;
  border-radius: 4rpx;
  color: #6E6E7A;
  font-size: 20rpx;
  text-align: center;
  line-height: 32rpx;
  margin-right: 12rpx;
}
.box .item .content .goods-info .text .price-box .price {
  color: #FC5B32;
  font-size: 36rpx;
  display: flex;
  align-items: baseline;
  font-weight: 700;
}
.box .item .content .goods-info .text .price-box .price text {
  font-size: 24rpx;
  font-weight: 400;
}
.box .item .del {
  width: 112rpx;
  height: 100%;
  background: #F75454;
  transform: translateX(112rpx);
  transition: all .5s;
  color: #fff;
}
.box .touch-move-active .content,
.box .touch-move-active .del {
  transform: translateX(0);
}
.goods-action {
  padding: 10rpx 24rpx;
  box-sizing: border-box;
  height: 100rpx;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.goods-action .all-check {
  display: flex;
  align-items: center;
  font-size: 24rpx;
  height: 64rpx;
  padding-top: 8rpx;
  .icon {
    margin-right: 8rpx;
  }
}
.goods-action .btn {
  width: 280rpx;
  height: 80rpx;
  color: #FFFFFF;
  background: #FB8A32;
  border-radius: 16rpx;
  font-weight: 500;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 28rpx;
  &[disabled]:not([type]) {
    background: #CCCED1 !important;
    border-color: #CCCED1 !important;
    color: #fff !important;
    box-shadow: none;
  }
}
.goods-action .total {
  font-size: 24rpx;
  display: flex;
  align-items: baseline;
}
.goods-action .total .price {
  color: #FC5B32;
  display: flex;
  width: 220rpx;
  align-items: baseline;
  .num {
    font-size: 40rpx;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: calc(100% - 50rpx);
  }
}
.goods-action .total .price text {
  font-size: 24rpx;
  font-weight: 400;
}
.specification {
  font-size: 24rpx;
  color: #B1B1B3;
}