index.vue 883 B

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