<template>
    <view style="height: 100%; font-size: 0" @click="showLuckGoods">
        <image
            :src="data.cover"
            style="width: 100%; height: 100%"
            class="radius4 overflow-hidden"
            mode="aspectFill"
        />
    </view>
</template>

<script>
    export default {
        props: {
            data: {
                type: Object
            }
        },
        methods: {
            showLuckGoods() {
                this.$emit('click', this.data)
            }
        }
    }
</script>

<style lang="scss" scoped>
    .cu-list {
        padding-top: 12rpx;
        .cu-item {
            background-color: rgba(23, 17, 35, 0.7);
            color: #fff;
            min-height: 96rpx;
            &::after {
                border-color: #aaa;
            }
            .content {
                display: flex;
                align-items: center;
                width: 30rpx;
                font-size: 28rpx;
                .png {
                    height: 42rpx;
                    width: 42rpx;
                    margin-right: 16rpx;
                }
            }
        }
    }
</style>
