<template>
  <div class="aoyi" :style="{'background-color': comp.props.bgcolor.val}">
    <img class="img-bg" :src="comp.props.poster.val"/>
    <!-- <div class="tip">长按图片保存到相册</div> -->
  </div>
</template>

<script>
import { Toast } from "mint-ui";
import apiHelper from "@/assets/js/apiHelper.js";
import { Indicator } from 'mint-ui';
import wx from "weixin-js-sdk";

export default {
    name: "poster",
    props: ["comp", "cfg", "selectedPage"],
    data() {
        return {
        };
    },
    created: function() {
        var that = this;
        that.mergeCompProps(that.comp);

        switch (that.sup8.env) {
        case that.sup8._def.env.design:
            that.env = "设计器模式";
            this.envType = "design";
            break;
        case that.sup8._def.env.preview:
            that.env = "预览模式";
            break;
        case that.sup8._def.env.run:
            that.env = "运行模式";
            // sessionStorage.removeItem("prizeInfo");
            // this.checkIsRegister();
            break;
        default:
            break;
        }

    },

    mounted: function() {
    },
    methods: {
    }
};
</script>

<style scoped>
.aoyi {
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: relative;
}
.img-bg {
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
}
/* .tip{
    padding-bottom: .5rem;
    text-align: center;
    color:#949494;
} */
</style>
