ShareInfo.vue 712 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div v-if="shareInfoStatus" class="poster-first">
  3. <div class="mask-share">
  4. <img src="@assets/images/share-info.png" @click="shareInfoClose" />
  5. </div>
  6. </div>
  7. </template>
  8. <style scoped>
  9. .poster-first {
  10. overscroll-behavior: contain;
  11. }
  12. .mask-share {
  13. position: fixed;
  14. top: 0;
  15. left: 0;
  16. right: 0;
  17. bottom: 0;
  18. z-index: 999;
  19. }
  20. .mask-share img {
  21. width: 100%;
  22. }
  23. </style>
  24. <script>
  25. export default {
  26. name: "ShareInfo",
  27. props: {
  28. shareInfoStatus: Boolean
  29. },
  30. data: function() {
  31. return {};
  32. },
  33. mounted: function() {},
  34. methods: {
  35. shareInfoClose: function() {
  36. this.$emit("setShareInfoStatus");
  37. }
  38. }
  39. };
  40. </script>