<template>
    <div>
        <div class="card" v-for="(v, i) in dataList" :key="i" @click="toPath(v)">
            <div class="card_pic">
                <img :src="v.url" />
            </div>
            <div class="card_context">
                <div class="title">建党百年党课</div>
                <div class="group_font">走进红色故地，重温红色精神</div>
            </div>
        </div>

        <tabbar4 active="yanxue"></tabbar4>
    </div>
</template>

<script>
import Tabbar4 from "@/component/Tabbar4";
import videoList from '@/views/dayStudy/data.json'
export default {
    components: { Tabbar4 },
    data() {
        return {
            dataList: [
                {
                    url: "https://szyundisk.oss-cn-hangzhou.aliyuncs.com/null/fe0668e6-ecd1-4df4-b416-f9bd6802c06c.png",
                    path: 'studyList'
                },
                {
                    url: "https://szyundisk.oss-cn-hangzhou.aliyuncs.com/null/fe0668e6-ecd1-4df4-b416-f9bd6802c06c.png",
                },
            ],
        };
    },
    methods: {
        toPath(val) {
            console.log(val)
            this.$router.push(val.path)
        }
    }
};
</script>

<style lang="scss" scoped>
.card {
    width: 100vw;
    height: 530px;
    background-color: #fff;
    margin-bottom: 30px;

    .card_pic {
        height: 400px;

        img {
            width: 100%;
            height: 100%;
        }
    }
    .card_context {
        height: calc(530px - 400px);
        padding: 20px 50px 10px;
        box-sizing: border-box;
        display: flex;
        align-content: space-between;
        flex-wrap: wrap;

        .title {
            width: 100%;
            font-weight: bold;
            font-size: 32px;
        }
        .group_font {
            font-size: 28px;
            color: #999;
        }
    }
}
</style>