10
10
<p class =' title' >{{ itemData.title }}</p >
11
11
</div >
12
12
<p class =' desc' >{{ itemData.digest }}</p >
13
+ <el-tag class =" tag" style =" font-weight : normal ;margin-top : 12px ;" type =" primary" size =" small" >{{itemData.publish_at|parseTime('{y}-{m}-{d}')}}</el-tag >
13
14
</div >
14
15
</div >
15
16
</template >
@@ -22,24 +23,33 @@ export default {
22
23
return {
23
24
id: ' 87bc10c00baa42bb917908e89834ba83' ,
24
25
title: ' 标题' ,
25
- digest: ' 第七届中国国际“互联网+”大学生创新创业大赛总决赛在南昌大学举行。重庆大学的创新创业团队表现优异,7件入围总决赛答辩项目获得了5金2银的历史最好成绩。此次比赛,交大不仅金奖数量及获奖总数创历史新高,而且实现了红旅赛道历史首金的突破,并获上海市的“先进集体奖”。' ,
26
- thumb: ' https://tse2-mm.cn.bing.net/th/id/OIP-C.18-23IyhMHV0DyhI4Rp-hAHaEK?w=333&h=187&c=7&r=0&o=5&dpr=1.25&pid=1.7' ,
26
+ digest:
27
+ ' 第七届中国国际“互联网+”大学生创新创业大赛总决赛在南昌大学举行。重庆大学的创新创业团队表现优异,7件入围总决赛答辩项目获得了5金2银的历史最好成绩。此次比赛,交大不仅金奖数量及获奖总数创历史新高,而且实现了红旅赛道历史首金的突破,并获上海市的“先进集体奖”。' ,
28
+ thumb:
29
+ ' https://tse2-mm.cn.bing.net/th/id/OIP-C.18-23IyhMHV0DyhI4Rp-hAHaEK?w=333&h=187&c=7&r=0&o=5&dpr=1.25&pid=1.7' ,
27
30
}
28
31
},
29
32
},
30
33
showCategory: {
31
34
type: Boolean ,
32
- default: false
33
- }
35
+ default: false ,
36
+ },
34
37
},
35
38
data () {
36
39
return {}
37
40
},
38
41
methods: {
39
42
clickNew () {
40
- let menuIds = this .$utils .findMenuIdsByEventLink (this .$store .state .config .menuList , this .itemData .category_id )
41
- this .$router .push (` /content/news-detail?params=${ this .itemData .id } &menuIds=${ menuIds .join (' ,' )} ` )
42
- }
43
+ let menuIds = this .$utils .findMenuIdsByEventLink (
44
+ this .$store .state .config .menuList ,
45
+ this .itemData .category_id
46
+ )
47
+ this .$router .push (
48
+ ` /content/news-detail?params=${ this .itemData .id } &menuIds=${ menuIds .join (
49
+ ' ,'
50
+ )} `
51
+ )
52
+ },
43
53
},
44
54
}
45
55
</script >
@@ -72,19 +82,6 @@ export default {
72
82
justify-content : flex-start ;
73
83
margin-bottom : 10px ;
74
84
75
- .tag {
76
- height : 20px ;
77
- line-height : 18px ;
78
- font-weight : bold ;
79
- margin-right : 10px ;
80
-
81
- .icon {
82
- margin-right : 5px ;
83
- font-weight : bold ;
84
- vertical-align : middle ;
85
- }
86
- }
87
-
88
85
.title {
89
86
font-size : 15px ;
90
87
font-weight : bold ;
@@ -96,15 +93,28 @@ export default {
96
93
}
97
94
}
98
95
96
+ .tag {
97
+ height : 20px ;
98
+ line-height : 18px ;
99
+ font-weight : bold ;
100
+ margin-right : 10px ;
101
+
102
+ .icon {
103
+ margin-right : 5px ;
104
+ font-weight : bold ;
105
+ vertical-align : middle ;
106
+ }
107
+ }
99
108
.desc {
100
109
font-size : 14px ;
101
110
font-weight : 400 ;
102
111
color : #666666 ;
103
112
line-height : 21px ;
104
113
display : -webkit-box ;
105
114
overflow : hidden ;
106
- -webkit-line-clamp : 3 ;
115
+ -webkit-line-clamp : 2 ;
107
116
-webkit-box-orient : vertical ;
117
+ min-height : 45px ;
108
118
}
109
119
}
110
120
}
0 commit comments