<template>
    <view class="cu-modal" :class="{'show': visible}">
        <view class="mask" @click="close"></view>
        <view class="cu-dialog" style="background-color: transparent; width:100%">
            <view class="relative wrapper flex-column-align-center">
                <image :src="resource.award_activity" webp class="poster" mode="widthFix" />
            </view>
            <view class="paddingT30 flex-align-center">
                <image :src="resource.close" class="x" @click="close" />
            </view>
        </view>
    </view>
</template>

<script>
import resource from '@/utils/resource'
export default {
    data() {
        return {
            resource,
            visible: false
        }
    },
    methods: {
        show(data) {
            this.data = data
            this.visible = true
        },
        close() {
            this.data = null
            this.visible = false
        }
    }
}
</script>

<style lang="scss" scoped>
.mask {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
.wrapper {
    z-index: 2001;
    width: 100%;
    margin: 0 auto;
    position: relative;
    .poster {
        width: 551rpx;
        height: 600rpx;
    }
}
.x {
    width: 60rpx;
    height: 60rpx;
}
</style>