item.wxss 4.62 KB
.order:last-child {
  margin-bottom: 0;
}

.order {
  position: relative;
  display: block;
  background: #fff;
  margin-bottom: 20rpx;
  border-top: 1rpx solid #e0e0e0;
  border-bottom: 1rpx solid #e0e0e0;
}

.order .header {
  border-bottom: 1rpx solid #e0e0e0;
}

.order .footer,
.order .header {
  height: 91rpx;
  line-height: 90rpx;
  font-size: 28rpx;
  padding: 0 28rpx;
  color: #444;
}

.order .order-status {
  float: right;
  font-family: PingFang-SC-Medium, sans-serif;
  font-size: 28rpx;
  color: #d0021b;
  letter-spacing: -0.39px;
}

.order-good {
  position: relative;
  margin-left: 30.6rpx;
  height: 174rpx;
  border-bottom: 1rpx solid #e0e0e0;
  font-size: 23.4rpx;
  padding: 20rpx 0;
  box-sizing: border-box;
}

.order-tip {
  font-size: 25.2rpx;
  margin-left: 15rpx;
  color: red;
  margin-top: 10rpx;
}

.order-good:last-child {
  border-bottom: none;
  margin-bottom: 0rpx;
}

.order-good .thumb-wrap {
  position: relative;
  float: left;
  width: 100rpx;
  height: 134rpx;
}

.order-good .thumb {
  width: 100%;
  height: 100%;
}

.order-good .thumb-wrap .goods-type {
  width: 100%;
  height: 30rpx;
  line-height: 30rpx;
  font-size: 20rpx;
  background-color: #444;
  color: #fff;
  text-align: center;
  position: absolute;
  left: 0;
  bottom: 0;
}

.order-good .thumb-wrap .price-gift-tag {
  background-color: #fc1261;
}

.order-good .thumb-wrap .gift-tag {
  background-color: #85c45c;
}

.order-good .thumb-wrap .virtual-tag {
  background-color: #c80813;
}

.order-good .deps {
  margin-left: 121.5rpx;
}

.order-good .name {
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-family: PingFang-SC-Regular, sans-serif;
  font-size: 28rpx;
  color: #444;
  letter-spacing: -0.4rpx;
  line-height: 34rpx;
  margin-bottom: 10rpx;
}

.order-good .row:nth-child(2) {
  height: 40.5rpx;
  line-height: 40.5rpx;
  width: 90%;
}

.order-good .row .color {
  display: inline-block;
  max-width: 200rpx;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  font-family: PingFang-SC-Regular, sans-serif;
  font-size: 24rpx;
  color: #b0b0b0;
  letter-spacing: -0.34rpx;
}

.order-good .row .size {
  display: inline-block;
  vertical-align: bottom;
  padding-left: 20rpx;
  font-family: PingFang-SC-Regular, sans-serif;
  font-size: 24rpx;
  color: #b0b0b0;
  letter-spacing: -0.34rpx;
}

.order-good .color,
.order-good .size {
  color: #b6b6b6;
}

.order-good .price-wrap {
  position: absolute;
  top: 20rpx;
  right: 27rpx;
  text-align: right;
}

.order-good .price {
  color: #d0021b;
}

.order-good .count {
  display: block;
  text-align: right;
  font-family: PingFang-SC-Regular, sans-serif;
  font-size: 24rpx;
  color: #b0b0b0;
  margin-top: 10rpx;
  letter-spacing: -0.34rpx;
}

.order .footer {
  text-align: right;
  border-top: 1rpx solid #e0e0e0;
}

.order .sum-cost {
  color: #d0021b;
  margin-left: 4.5rpx;
  display: inline-block;
}

.order .order-opt {
  position: relative;
  height: 100rpx;
  padding-right: 30rpx;
  border-top: 1rpx solid #e0e0e0;
  text-align: right;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  padding-top: 20rpx;
  box-sizing: border-box;
  overflow: hidden;
}

.order .order-opt .counter-view {
  position: absolute;
  left: 33rpx;
  top: 20rpx;
  height: 60rpx;
  bottom: 0rpx;
  display: flex;
  flex-direction: row;
  align-items: center;
  box-sizing: border-box;
}

.order .order-opt .counter-view .iconfont {
  color: #444;
}

.order .order-opt .counter-view .counter {
  margin-left: 10rpx;
  font-size: 24rpx;
  text-align: center;
}

.order .order-opt .btn {
  display: inline-block;
  height: 60rpx;
  line-height: 60rpx;
  width: 140rpx;
  font-size: 25rpx;
  text-align: center;
  border: 1rpx solid #444;
  color: #444;
  border-radius: 4rpx;
  box-sizing: border-box;
  vertical-align: middle;
}

.order .order-opt .hide-code {
  opacity: 0;
  margin-top: 100rpx;
  font-size: 0;
}

.button {
  height: 54rpx;
  line-height: 54rpx;
  width: 130rpx;
  padding-left: 1rpx;
  padding-right: 1rpx;
  font-size: 25rpx;
  text-align: center;
  margin-right: 1rpx;
}

a {
  outline: none;
  color: #444;
  text-decoration: none;
}

.order .order-opt .pay {
  background: #d0021b;
  color: #fff;
  font-size: 25rpx;
  margin-left: 30rpx;
  line-height: 58rpx;
  border: 1rpx solid #d0021b;
}

.order .order-opt .confirm {
  background: #d0021b;
  color: #fff;
  margin-left: 30rpx;
  line-height: 58rpx;
  border: 1rpx solid #d0021b;
}

.btn.cancel,
.btn.refund,
.btn.confirm {
  box-sizing: content-box;
  padding: 0;
  margin: 0;
}

.btn.refund {
  margin-left: 30rpx;
}