Modal.scss 1.12 KB
/* components/Modal/Modal.wxss */
.popup {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 998;

  &-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #00000080;
  }

  .modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 622rpx;
    min-height: 404rpx;
    border-radius: 20rpx;
    background: #ffffff;
    display: flex;
    flex-direction: column;

    .footer-box {
      height: 144rpx;
      margin-top: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0 24rpx;

      .btn {
        width: 251rpx;
        height: 80rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32rpx;
        border-radius: 8rpx;
        margin: 0 !important;
      }

      .cancel {
        background: #f4f6f7;
        color: #222222;
      }

      .confirm {
        background: var(--themeColor);
        color: #fff;
      }
    }
  }
}