index.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <div class="popUp_box" v-if="popUpShow">
  3. <div class="popUp">
  4. <div class="icon" @click="closePopUp">
  5. <!-- <i class="el-icon-close"></i> -->
  6. <img src="@/assets/img/close1.png" alt="" class="icon_close">
  7. </div>
  8. <img src="@/assets/img/ok.png" alt="" class="img_ok">
  9. <div class="title">Information submitted successfully.</div>
  10. <div class="text">
  11. We will reply within ONE working day <br/>
  12. or you can contact us by order@sanyoubio.com.
  13. </div>
  14. </div>
  15. </div>
  16. </template>
  17. <script>
  18. export default {
  19. name: "popUp",
  20. components: {
  21. },
  22. props: {
  23. popUpShow: {
  24. type: Boolean,
  25. default: false
  26. }
  27. },
  28. data() {
  29. return {
  30. }
  31. },
  32. methods: {
  33. // 关闭弹窗
  34. closePopUp() {
  35. this.$emit("closePopUp")
  36. }
  37. },
  38. created() {},
  39. mounted() {}
  40. }
  41. </script>
  42. <style lang="scss" scoped>
  43. @media screen and (min-width: 751px) and (max-width: 9999px) {
  44. .popUp_box{
  45. position: fixed;
  46. top: 0;
  47. left: 0;
  48. bottom: 0;
  49. right: 0;
  50. display: flex;
  51. align-items: center;
  52. justify-content: center;
  53. background-color: rgba(0,0,0,.5);
  54. z-index: 99999;
  55. .popUp{
  56. width: 40%;
  57. min-width: 670px;
  58. position: relative;
  59. background-color: #fff;
  60. padding: 20px 20px 90px 20px;
  61. border-radius: 10px;
  62. .icon{
  63. position: absolute;
  64. top: 20px;
  65. right: 20px;
  66. width: 18px;
  67. display: flex;
  68. align-items: center;
  69. justify-content: center;
  70. cursor: pointer;
  71. .icon_close{
  72. width: 100%;
  73. }
  74. }
  75. .img_ok{
  76. display: block;
  77. width: 88px;
  78. margin:68px auto 0;
  79. }
  80. .title{
  81. margin-top: 26px;
  82. font-family: Source Han Sans CN;
  83. font-weight: bold;
  84. font-size: 24px;
  85. color: #000000;
  86. line-height: 21px;
  87. text-align: center;
  88. }
  89. .text{
  90. margin-top: 40px;
  91. font-family: Source Han Sans CN;
  92. font-weight: 400;
  93. font-size: 18px;
  94. color: #000000;
  95. line-height: 30px;
  96. text-align: center;
  97. }
  98. }
  99. }
  100. }
  101. @media screen and (min-width: 751px) and (max-width: 1200px) {
  102. }
  103. @media screen and (min-width: 0px) and (max-width: 750px) {
  104. }
  105. </style>