poster.vue 896 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <modal v-model="vValue">
  3. <view class="screen_all center" @click="close">
  4. <view @click.stop class="center overflow">
  5. <view class="poster-image overflow" @longtap="preservation">
  6. <v-image class="poster-image overflow" :src="poster"></v-image>
  7. </view>
  8. <view v-if="authorize" class="poster-title">长按保存到相册</view>
  9. <button v-else open-type="openSetting" @click="$emit('openSetting')" class="clear-button poster-button center">授权相册</button>
  10. </view>
  11. </view>
  12. </modal>
  13. </template>
  14. <script>
  15. import modal from '@/components/modal/main.vue';
  16. import vImage from '@/components/v-image/main.vue';
  17. import mixins from './mixins';
  18. import props from './props';
  19. export default {
  20. name: "poster",
  21. mixins,
  22. props,
  23. components:{
  24. modal,
  25. vImage
  26. }
  27. }
  28. </script>
  29. <style lang="scss" src="./style.scss">
  30. </style>