Blame view

src/views/dayStudy/studyList.vue 1.59 KB
f8613ffe     feat: 浙里办 - 每日一习
1
<template>
9075bd15     feat:每日一习调整,添加视频列
2
    <div class="box">
f8613ffe     feat: 浙里办 - 每日一习
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
        <div class="card" v-for="(v, i) in videoList" :key="i" @click="toPath(v)">
            <div class="card_pic">
                <img :src="v.url" />
            </div>
            <div class="card_context">
                <div class="title">{{v.title}}</div>
                <div class="group_font">{{v.greyTitle}}</div>
            </div>
        </div>

    </div>
</template>

<script>
import videoList from '@/views/dayStudy/data.json'
export default {
    data() {
        return {
        };
    },
    computed: {
        videoList() {
            return videoList
        }
    },
    methods: {
        toPath(val) {
            console.log(val)
            window.open(val.videoUrl)
        }
    }
};
</script>

<style lang="scss" scoped>
9075bd15     feat:每日一习调整,添加视频列
38
39
40
.box {
    padding-bottom: 30px;
    box-sizing: border-box;
f8613ffe     feat: 浙里办 - 每日一习
41

9075bd15     feat:每日一习调整,添加视频列
42
43
44
45
46
47
48
49
50
51
52
53
54
    .card {
        width: 100vw;
        height: 535px;
        background-color: #fff;
        margin-bottom: 30px;
    
        .card_pic {
            height: 400px;
    
            img {
                width: 100%;
                height: 100%;
            }
f8613ffe     feat: 浙里办 - 每日一习
55
        }
9075bd15     feat:每日一习调整,添加视频列
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
        .card_context {
            height: calc(535px - 400px);
            padding: 25px 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;
            }
f8613ffe     feat: 浙里办 - 每日一习
73
74
75
76
        }
    }
}
</style>