index.vue 865 B

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