index.vue 879 B

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