pageDetails.vue
1.4 KB
1
2
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<template>
<div>
<!-- <div class="box_pic">
<img src="@/assets/login_bg.png" />
</div>
<div class="article">
<div class="article_title">庆祝中国共产主义青年团成立100年大会</div>
<div class="article_time">发布于 2022.5.10 浏览量 2022</div>
<div class="article_con">共青团员们,青年朋友们,同志们:</div>
</div> -->
<div class="videoCss">
<video :src="videopic"></video>
</div>
</div>
</template>
<script>
export default {
data() {
return { arr: 0 };
},
computed: {
videopic() {
return sessionStorage.getItem("videopic");
},
},
methods: {
//获取数据
getTable() {},
},
mounted() {
this.getTable();
},
};
</script>
<style lang="scss" scoped>
.box_pic {
width: 100%;
height: 364px;
background-color: #999;
img {
width: 100%;
height: 100%;
}
}
.article {
padding: 48px 30px;
.article_title {
color: #333;
font-size: 44px;
font-weight: bold;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; //限制行数
overflow: hidden; //超出部分隐藏
text-overflow: ellipsis; //用一个省略号代替超出的内容
}
.article_time {
margin: 22px 0 44px;
color: #999;
font-size: 24px;
}
.article_con {
font-size: 32px;
}
}
.videoCss {
width: 100vw;
video {
width: 100%;
}
}
</style>