RemindOpeModal.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <div class="mobile-modal com-remind-modal" v-if="show">
  3. <div class="cr-remind">
  4. <div class="header"><i class="iconfont icon-guanbi1" @click="$emit('closeAction')"></i></div>
  5. <div class="content"><i class="fa fa-exclamation-circle"></i>
  6. <span>{{text}}</span>
  7. </div>
  8. <div class="footer">
  9. <button @click="$emit('closeAction')">取消</button>
  10. <button @click="$emit('closeAction', true)">确认</button>
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. props: {
  18. show: {
  19. type: Boolean,
  20. default: false
  21. },
  22. text: {
  23. type: String,
  24. default: '提示'
  25. }
  26. }
  27. }
  28. </script>
  29. <style lang="scss" scoped>
  30. // 统一提示弹框
  31. $base-color: #3f84f6;
  32. .com-remind-modal {
  33. .cr-remind {
  34. width: 6.3rem;
  35. height: 3.5rem;
  36. position: absolute;
  37. top: 50%;
  38. left: 50%;
  39. margin-top: -1.75rem;
  40. margin-left: -3.15rem;
  41. border-radius: .15rem;
  42. .header {
  43. height: .6rem;
  44. line-height: .6rem;
  45. background: #3976f4;
  46. border-top-left-radius: .15rem;
  47. border-top-right-radius: .15rem;
  48. i {
  49. font-size: .32rem;
  50. color: #fff;
  51. float: right;
  52. margin-right: .28rem;
  53. }
  54. }
  55. .content {
  56. background: #fff;
  57. padding: .53rem .5rem;
  58. span {
  59. font-size: .32rem;
  60. display: inline-block;
  61. width: 4.5rem;
  62. }
  63. i {
  64. font-size: .44rem;
  65. color: #3976f4;
  66. float: left;
  67. margin-right: .2rem;
  68. }
  69. }
  70. .footer {
  71. background: #fff;
  72. padding-bottom: .37rem;
  73. text-align: center;
  74. border-bottom-left-radius: .15rem;
  75. border-bottom-right-radius: .15rem;
  76. margin-top: -0.05rem;
  77. button {
  78. width: 2.22rem;
  79. height: .77rem;
  80. line-height: .77rem;
  81. color: #fff;
  82. font-size: .32rem;
  83. border-radius: .08rem;
  84. background: #bfbfbf;
  85. &:last-child {
  86. background: $base-color;
  87. margin-left: .3rem;
  88. }
  89. }
  90. }
  91. }
  92. }
  93. </style>