order-goods-row.wxss 4.47 KB
/* components/OrderGoodsRow/order-goods-row.wxss */
.goods {
  background: #F7F8FA;
  border-radius: 16rpx;
  margin: 16rpx 20rpx;
  display: flex;
  flex-flow: column;
  padding: 24rpx;
  justify-content: space-between;
  font-size: 28rpx;
  position: relative;
}

.goods .icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 40rpx;
  height: 40rpx;
  background: rgba(52, 123, 255, 0.1);
  border-radius: 0 16rpx 0 16rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goods .icon image {
  width: 100%;
  height: 100%;
}

.goods .name_box {
  width: 100%;
  margin-bottom: 8rpx;
}

.goods .name {
  color: #FF6601;
  width: 100%;
}

.goods .name.goods-name {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.goods .name .name-with-icon {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 0;
}

.goods .name .marketing-icon {
  width: 56rpx;
  height: 28rpx;
  flex-shrink: 0;
  margin-right: 8rpx;
}

.goods .bottom_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.goods .bottom_box .position {
  color: #888888;
}

.goods .bottom_box .goods-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-right: 20rpx;
}

.goods .bottom_box .goods-meta .position {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goods .bottom_box .low-price-minimum {
  color: #F24724;
  font-size: 24rpx;
  margin-top: 8rpx;
}

.goods .bottom_box .red_text {
  color: red;
}

.goods .bottom_box .price_count {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.goods .price {
  color: #333333;
  width: 240rpx;
  height: 64rpx;
  background: #FFFFFF;
  border: 2rpx solid #E6E6E6;
  border-radius: 8rpx;
  position: relative;
  margin-right: 32rpx;
}

.goods .price text {
  position: absolute;
  left: 16rpx;
  top: 50%;
  font-size: 24rpx;
  transform: translateY(-50%);
}

.goods .price input {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  text-align: end;
  min-height: 100%;
  font-size: 28rpx;
  padding: 0 16rpx 0 50rpx;
}

.goods .price input.error {
  border: 2rpx solid #F24724;
}

.goods .price input.disabled {
  background-color: #f0f0f0;
  color: #dcdcdc;
}

.goods .count {
  min-width: 64rpx;
  color: #292D33;
}

.alias {
  font-size: 12px;
  color: #222222 !important;
}

/* Strategy Box Styles */
.strategy-box {
  margin-top: 10rpx;
  padding-top: 10rpx;
  border-top: 1rpx solid #eee;
}

.strategy-box .discount-types {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10rpx;
}

.strategy-box .discount-types .discount-tabs {
  display: flex;
  align-items: center;
  background: #e9e9e9;
  padding: 6rpx;
  border-radius: 8rpx;
}

.strategy-box .discount-types .type-item {
  padding: 10rpx 12rpx;
  background: transparent;
  border-radius: 6rpx;
  margin-right: 0;
  font-size: 24rpx;
  color: #222;
  border: none;
}

.strategy-box .discount-types .type-item.active {
  background: #fff;
  color: #333;
  font-weight: 500;
  box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
}

.strategy-box .discount-types .discount-input {
  display: flex;
  align-items: center;
  margin-left: 10rpx;
  background: #fff;
  padding: 0 10rpx;
  height: 64rpx;
  border-radius: 8rpx;
  border: 2rpx solid #eff0f2;
}

.strategy-box .discount-types .discount-input input {
  width: 160rpx;
  border-radius: 0;
  padding: 0;
  font-size: 24rpx;
  height: 100%;
  margin-right: 6rpx;
  background: transparent;
  text-align: left;
}

.strategy-box .discount-types .discount-input text {
  font-size: 24rpx;
  color: #333;
  line-height: 0rpx;
}

.strategy-box .gift-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10rpx;
  font-size: 28rpx;
  /* color: #333; */
  color: #222222;
}

.strategy-box .gift-row .gift-radios {
  display: flex;
  align-items: center;
}

.strategy-box .gift-row .gift-radios .radio-label {
  margin-left: 20rpx;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.strategy-box .gift-row .gift-radios .radio-label radio {
  transform: scale(0.6);
}

.strategy-box .final-price {
  font-size: 28rpx;
  /* color: #666; */
  color: #222222;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.strategy-box .final-price .orange {
  color: #FF6601;
  font-weight: bold;
  font-size: 30rpx;
  margin-left: 10rpx;
}

/* Utilities */
.text-hide {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}