<template> <div class="popUp_box" v-if="popUpShow"> <div class="popUp"> <div class="icon" @click="closePopUp"> <!-- <i class="el-icon-close"></i> --> <img src="@/assets/img/close1.png" alt="" class="icon_close"> </div> <img src="@/assets/img/ok.png" alt="" class="img_ok"> <div class="title">Information submitted successfully.</div> <div class="text"> We will reply within ONE working day <br/> or you can contact us by order@sanyoubio.com. </div> </div> </div> </template> <script> export default { name: "popUp", components: { }, props: { popUpShow: { type: Boolean, default: false } }, data() { return { } }, methods: { // 关闭弹窗 closePopUp() { this.$emit("closePopUp") } }, created() {}, mounted() {} } </script> <style lang="scss" scoped> @media screen and (min-width: 751px) and (max-width: 9999px) { .popUp_box{ position: fixed; top: 0; left: 0; bottom: 0; right: 0; display: flex; align-items: center; justify-content: center; background-color: rgba(0,0,0,.5); z-index: 99999; .popUp{ width: 40%; min-width: 670px; position: relative; background-color: #fff; padding: 20px 20px 90px 20px; border-radius: 10px; .icon{ position: absolute; top: 20px; right: 20px; width: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; .icon_close{ width: 100%; } } .img_ok{ display: block; width: 88px; margin:68px auto 0; } .title{ margin-top: 26px; font-family: Source Han Sans CN; font-weight: bold; font-size: 24px; color: #000000; line-height: 21px; text-align: center; } .text{ margin-top: 40px; font-family: Source Han Sans CN; font-weight: 400; font-size: 18px; color: #000000; line-height: 30px; text-align: center; } } } } @media screen and (min-width: 751px) and (max-width: 1200px) { } @media screen and (min-width: 0px) and (max-width: 750px) { } </style>