大空间消毒机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
2.1 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <my-modal type="confirm" icon="warning"
  3. :content="`请确认是否将 ${userWarnInfo}`"
  4. v-model:visible="visible"
  5. @ok="ok"
  6. @cancel="handleCancel"
  7. ></my-modal>
  8. </template>
  9. <script setup>
  10. import { ref } from 'vue'
  11. const props = defineProps({
  12. userWarnInfo: {
  13. type: String,
  14. },
  15. hideUserModal: {
  16. type: Function,
  17. },
  18. handleOk: {
  19. type: Function,
  20. },
  21. })
  22. /** @var {Boolean} */
  23. const visible = ref(true);
  24. const ok = () => {
  25. props.handleOk()
  26. props.hideUserModal()
  27. }
  28. const handleCancel = () => {
  29. props.hideUserModal()
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. .user_modal_container {
  34. position: fixed;
  35. top: 0;
  36. left: 0;
  37. right: 0;
  38. bottom: 0;
  39. background: rgba(0, 0, 0, 0.5);
  40. z-index: 2;
  41. display: flex;
  42. align-items: center;
  43. justify-content: center;
  44. .modal_content {
  45. width: 476px;
  46. height: 350px;
  47. border-radius: 16px;
  48. background: #ffffff;
  49. padding: 52px 37px 55px 37px;
  50. box-sizing: border-box;
  51. display: flex;
  52. flex-direction: column;
  53. align-items: center;
  54. .tips {
  55. margin-top: 33px;
  56. margin-bottom: 50px;
  57. font-family: Source Han Sans CN;
  58. font-size: 21px;
  59. font-weight: normal;
  60. letter-spacing: 0.04em;
  61. color: #000000;
  62. .red {
  63. color: #fa1c1c;
  64. }
  65. }
  66. .btns {
  67. display: flex;
  68. align-items: center;
  69. justify-content: space-between;
  70. width: 362px;
  71. .cancel {
  72. width: 173px;
  73. height: 68px;
  74. border-radius: 34px;
  75. background: #06518b;
  76. font-family: Source Han Sans CN;
  77. font-size: 23px;
  78. font-weight: 350;
  79. letter-spacing: 0em;
  80. color: #ffffff;
  81. display: flex;
  82. align-items: center;
  83. justify-content: center;
  84. }
  85. .ok {
  86. width: 173px;
  87. height: 68px;
  88. border-radius: 34px;
  89. background: #d8d8d8;
  90. font-family: Source Han Sans CN;
  91. font-size: 23px;
  92. font-weight: 350;
  93. letter-spacing: 0em;
  94. color: #ffffff;
  95. display: flex;
  96. align-items: center;
  97. justify-content: center;
  98. }
  99. }
  100. }
  101. }
  102. </style>