|
|
|
@ -171,6 +171,7 @@ function scrollTo(index: any) { |
|
|
|
} |
|
|
|
//跳转至相关内容 end |
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
<template> |
|
|
|
<div class="app-container"> |
|
|
|
@ -204,16 +205,16 @@ function scrollTo(index: any) { |
|
|
|
<el-carousel indicator-position="outside" class="mycarousel" arrow="always"> |
|
|
|
<el-carousel-item v-for="(item, index) in carousel" :key="index" @click="showContentDialog(item)"> |
|
|
|
|
|
|
|
<img style="width: 495px; height: 300px;border-radius:16px;margin-top: 4px; margin-left: 4px;" referrerpolicy="no-referrer" :src="item.gThumbnail" fit="fill" loading="lazy" @error="errorImg($event)" /> |
|
|
|
<img style="width: 471px; height: 300px;border-radius:16px;margin-top: 4px; margin-left: 4px;" referrerpolicy="no-referrer" :src="item.gThumbnail" fit="fill" loading="lazy" @error="errorImg($event)" /> |
|
|
|
</el-carousel-item> |
|
|
|
</el-carousel> |
|
|
|
|
|
|
|
<div v-for="(item, index) in tuijianPage" :key="index" class="tuijian-card" @click="showContentDialog(item)"> |
|
|
|
<img style="width: 170px; height: 126px;border-radius:8px;margin-top: 4px; margin-left: 4px;" referrerpolicy="no-referrer" :src="item.gThumbnail" fit="fill" loading="lazy" @error="errorImg($event)" /> |
|
|
|
<img style="width: 196px; height: 126px;border-radius:8px;margin-top: 4px; margin-left: 4px;" referrerpolicy="no-referrer" :src="item.gThumbnail" fit="fill" loading="lazy" @error="errorImg($event)" /> |
|
|
|
|
|
|
|
<div class="card-right"> |
|
|
|
<span class="card-title" :title=item.gTitle>{{ item.gTitle }}</span> |
|
|
|
<span class="card-text" :title=item.gDescribe>{{ item.gDescribe }}</span> |
|
|
|
<!-- <span class="card-text" :title=item.gDescribe>{{ item.gDescribe }}</span> --> |
|
|
|
|
|
|
|
<span class="time-span"><span class="fa fa-clock-o"></span>{{ formatDate(item.gAddTime) }}</span> |
|
|
|
|
|
|
|
@ -251,17 +252,17 @@ function scrollTo(index: any) { |
|
|
|
height: calc(100vh - 125px); |
|
|
|
width: 100%; |
|
|
|
overflow: auto; |
|
|
|
padding: 0 10px 0 30px; |
|
|
|
padding: 0 10px 0 0; |
|
|
|
display: grid; |
|
|
|
/* 声明了三列,宽度分别为 200px 100px 200px */ |
|
|
|
grid-template-columns: 200px auto; |
|
|
|
grid-template-columns: 163px auto; |
|
|
|
} |
|
|
|
|
|
|
|
.content { |
|
|
|
background-color: white; |
|
|
|
width: auto; |
|
|
|
max-width: 87%; |
|
|
|
padding-left: 9%; |
|
|
|
max-width: 97%; |
|
|
|
padding-left: 20px; |
|
|
|
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; |
|
|
|
border-radius: 5px; |
|
|
|
} |
|
|
|
@ -323,7 +324,7 @@ li:hover { |
|
|
|
|
|
|
|
|
|
|
|
display: grid; |
|
|
|
grid-template-columns: repeat(auto-fill, 484px); |
|
|
|
grid-template-columns: repeat(auto-fill, 473px); |
|
|
|
gap: 10px; |
|
|
|
grid-auto-flow: row dense; |
|
|
|
|
|
|
|
@ -331,7 +332,7 @@ li:hover { |
|
|
|
|
|
|
|
.tuijian-card { |
|
|
|
display: flex; |
|
|
|
width: 481px; |
|
|
|
width: 471px; |
|
|
|
height: 140px; |
|
|
|
padding: 3px; |
|
|
|
border-radius: 8px; |
|
|
|
@ -345,28 +346,33 @@ li:hover { |
|
|
|
grid-row-start: 1; |
|
|
|
grid-row-end: 3; |
|
|
|
border-radius: 15px; |
|
|
|
width: 480px; |
|
|
|
width: 470px; |
|
|
|
height: 290px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.card-right { |
|
|
|
display: flex; |
|
|
|
width: 300px; |
|
|
|
width: 260px; |
|
|
|
flex-direction: column; |
|
|
|
flex-wrap: wrap; |
|
|
|
padding-left: 8px; |
|
|
|
} |
|
|
|
|
|
|
|
.card-title { |
|
|
|
|
|
|
|
|
|
|
|
height: 1.5em !important; |
|
|
|
/* height: 1.5em !important; |
|
|
|
display: -webkit-box; |
|
|
|
-webkit-box-orient: vertical; |
|
|
|
overflow: hidden; |
|
|
|
-webkit-line-clamp: 1; |
|
|
|
|
|
|
|
-webkit-line-clamp: 1; */ |
|
|
|
word-break: break-all; |
|
|
|
height: 3.5em !important; |
|
|
|
overflow: hidden; |
|
|
|
display: -webkit-box; |
|
|
|
-webkit-line-clamp: 2; |
|
|
|
-webkit-box-orient: vertical; |
|
|
|
padding-left: 0.7em; |
|
|
|
padding-top: 0.5em; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|