<template>
  <modal v-model="vValue">
    <view class="screen_all center" @click="close">
      <view @click.stop class="center overflow">
        <view class="poster-image overflow" @longtap="preservation">
          <v-image class="poster-image overflow" :src="poster"></v-image>
        </view>
        <view v-if="authorize" class="poster-title">长按保存到相册</view>
        <button v-else open-type="openSetting" @click="$emit('openSetting')" class="clear-button poster-button center">授权相册</button>
      </view>
    </view>
  </modal>
</template>

<script>
import modal from '@/components/modal/main.vue';
import vImage from '@/components/v-image/main.vue';
import mixins from './mixins';
import props from './props';
export default {
  name: "poster",
  mixins,
  props,
  components:{
    modal,
    vImage
  }
}
</script>

<style lang="scss" src="./style.scss">

</style>