<template>
    <widget-card :bodyStyle="bodyStyle">
        <template #header>考点二</template>
        <!-- <i class="fa-fw fas fa-user fa-3x" style="color: #40c9c6;"></i>
        <div class="info">
            <div class="text">User</div>
            <div class="num">4,258</div>
        </div> -->
        <div>
            <video
                :src="videoUrl"
                controlsList="nodownload noremote footbar"
                controls="controls"
                style="max-width: 100%"
                oncontextmenu="return false;"
                ref="video"
                autoplay="autoplay"
                loop
            >
                您的浏览器不支持 video 标签。
            </video>
        </div>
    </widget-card>
</template>
<script>
import WidgetCard from './WidgetCard';

export default {
    data() {
        return {
            bodyStyle: {
                display: 'flex',
                alignItems: 'center'
            },
            videoUrl: 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/video/2021-03-19-15-30-43nvcwuumz.mp4'
        };
    },
    components: {
        WidgetCard
    }
};
</script>
<style lang="less" scoped>
.info {
    flex-grow: 1;
    text-align: right;
    .text {
        color: #999;
        font-size: 16px;
        margin-bottom: 12px;
    }
    .num {
        font-size: 20px;
        color: #333;
    }
}
</style>
