index.vue 776 B

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