index.wxss 2.35 KB
.modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center_box {
  width: calc(100% - 180rpx);
  /* min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; */
}

.modal-body {
  position: absolute;
  top: 84rpx;
  left: 50%;
  transform: translate(-50%, 0);
  width: calc(100% - 180rpx);
  height: 100rpx;
}

.modal-close-icon {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.close_icon {
  width: 48rpx;
  height: 48rpx;
}

.modal_main_bg {
  width: 100%;
  position: relative;
}

.body_bg_icon {
  width: 100%;
  height: calc(100% - 64rpx);
  position: absolute;
  left: 0;
  right: 0;
  top: 64rpx;
  bottom: 0;
  z-index: -1;
}

.modal-bg-icon {
  width: 100%;
  height: 228rpx;
  display: flex;
  justify-content: flex-end;
}

.bg_icon {
  width: 100%;
  height: 228rpx;
}

.modal_element_box {
  width: 100%;
  height: 124rpx;
  position: relative;
  box-sizing: border-box;
  padding: 0 38rpx;
  margin-bottom: 16rpx;
}

.box_bg_img {
  width: calc(100% - 76rpx);
  height: 100%;
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translate(-50%, 0);
}

.scroll_modal {
  height: 560rpx;
  width: 100%;
}

.element_name {
  color: #333435;
  font-size: 28rpx;
  position: absolute;
  top: 50%;
  left: 84rpx;
  transform: translate(0, -50%);
  font-weight: 600;
}

.element_min_name {
  color: #929293;
  font-size: 24rpx;
  position: absolute;
  bottom: 24rpx;
  left: 84rpx;
  font-weight: 400;
}

.element_price {
  position: absolute;
  right: 55rpx;
  top: 10rpx;
  width: 139rpx;
  height: 59rpx;
  text-align: center;
  line-height: 59rpx;
  color: #F13C3D;
  font-weight: 600;
  font-size: 36rpx;
}

.blank_box {
  position: absolute;
  right: 55rpx;
  bottom: 0;
  width: 139rpx;
  height: 59rpx;
}

.modal_btn {
  text-align: center;
  margin-top: 4rpx;
  position: relative;
}

.btn_text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #FFFFFF;
  font-size: 36rpx;
  top: 61rpx;
}

.btn_bg_cion {
  width: 452rpx;
  height: 132rpx;
}

.text_index {
  z-index: 2;
}

.text_hide_1 {
  width: 40%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}