|
@ -6,10 +6,9 @@ |
|
|
|
|
|
|
|
|
<template> |
|
|
<template> |
|
|
<div class="inner"> |
|
|
<div class="inner"> |
|
|
<div class="search-list"> |
|
|
<div class="d-flex flex-row-reverse mb-8"> |
|
|
<a-input-search |
|
|
<a-input-search |
|
|
@search="searchData" |
|
|
@search="searchData" |
|
|
class="search" |
|
|
|
|
|
enter-button="搜索" |
|
|
enter-button="搜索" |
|
|
placeholder="请输入..." |
|
|
placeholder="请输入..." |
|
|
style="width: 381px" |
|
|
style="width: 381px" |
|
@ -17,36 +16,22 @@ |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
<div :key="index" class="post" v-for="(item, index) in lists"> |
|
|
<div :key="index" class="post" v-for="(item, index) in lists"> |
|
|
<div class="d-flex flex-nowrap"> |
|
|
<div class="d-flex flex-nowrap fill-height"> |
|
|
<img :src="item.visitLocation" alt class="post-img" v-if="item.visitLocation" /> |
|
|
<img :src="item.visitLocation" alt class="post-img" v-if="item.visitLocation" /> |
|
|
<div> |
|
|
<div class="flex-1 flex-column"> |
|
|
<div class="post-content"> |
|
|
|
|
|
<p class="post-title">{{ item.title }}</p> |
|
|
<p class="post-title">{{ item.title }}</p> |
|
|
<div class="con-con" v-dompurify-html="item.content"></div> |
|
|
<div class="con-con" v-dompurify-html="item.content"></div> |
|
|
</div> |
|
|
<div class="d-flex flex-nowrap secondary line-height-30 mt-8"> |
|
|
<p style="color: rgba(0, 0, 0, 0.45); line-height: 30px; margin: 0 0 0 30px !important; margin-left: 0 !important"> |
|
|
|
|
|
<span>{{ item.createdTime }}</span> |
|
|
<span>{{ item.createdTime }}</span> |
|
|
<span style="margin-left: 20px">地点:太原</span> |
|
|
<span style="margin-left: 20px">地点:太原</span> |
|
|
</p> |
|
|
<div class="flex-1"></div> |
|
|
</div> |
|
|
<span @click="getDet(item.id, index)" class="baseColor pointer"> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<p class="look-down baseColor"> |
|
|
|
|
|
<span @click="getDet(item.id, index)"> |
|
|
|
|
|
查看详情 |
|
|
查看详情 |
|
|
<a-icon type="arrow-right" /> |
|
|
<a-icon type="arrow-right" /> |
|
|
</span> |
|
|
</span> |
|
|
</p> |
|
|
|
|
|
<!-- <div class="comment"> |
|
|
|
|
|
<div :key="b" v-for="(a, b) in coms"> |
|
|
|
|
|
<p style="padding-left: 20px"> |
|
|
|
|
|
<a-avatar :size="20" :src="a.avatarUrl" style="margin-top: -4px" /> |
|
|
|
|
|
<span>{{ a.userName }}</span> |
|
|
|
|
|
<span style="margin-left: 20px">{{ a.creatTime }}</span> |
|
|
|
|
|
</p> |
|
|
|
|
|
<p class="coms-con">{{ a.content }}</p> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> --> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<a-pagination |
|
|
<a-pagination |
|
|
:current="comCurrent" |
|
|
:current="comCurrent" |
|
@ -145,7 +130,7 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.post-title { |
|
|
.post-title { |
|
|
// width: 165px; |
|
|
width: 100%; |
|
|
height: 26px; |
|
|
height: 26px; |
|
|
font-size: 20px; |
|
|
font-size: 20px; |
|
|
font-family: Microsoft YaHei; |
|
|
font-family: Microsoft YaHei; |
|
@ -159,19 +144,6 @@ export default { |
|
|
-webkit-box-orient: vertical; |
|
|
-webkit-box-orient: vertical; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.search-list { |
|
|
|
|
|
height: 72px; |
|
|
|
|
|
line-height: 72px; |
|
|
|
|
|
padding: 0 24px; |
|
|
|
|
|
position: relative; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.search { |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
right: 0; |
|
|
|
|
|
top: 20px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.btn { |
|
|
.btn { |
|
|
width: 75px; |
|
|
width: 75px; |
|
|
height: 32px; |
|
|
height: 32px; |
|
@ -185,7 +157,7 @@ export default { |
|
|
padding: 25px; |
|
|
padding: 25px; |
|
|
position: relative; |
|
|
position: relative; |
|
|
overflow: hidden; |
|
|
overflow: hidden; |
|
|
height: 270px; |
|
|
height: 290px; |
|
|
background: #fff; |
|
|
background: #fff; |
|
|
border-bottom: 1px solid #ccc; |
|
|
border-bottom: 1px solid #ccc; |
|
|
transition: all 0.25s; |
|
|
transition: all 0.25s; |
|
@ -198,28 +170,15 @@ export default { |
|
|
margin-right: 30px; |
|
|
margin-right: 30px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.post-content { |
|
|
|
|
|
// margin-left: 30px; |
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
height: 180px; |
|
|
|
|
|
text-indent: left; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.con-con { |
|
|
.con-con { |
|
|
max-height: 130px; |
|
|
line-height: 30px; |
|
|
|
|
|
height: 120px; |
|
|
|
|
|
overflow: hidden; |
|
|
display: -webkit-box; |
|
|
display: -webkit-box; |
|
|
-webkit-line-clamp: 4; |
|
|
-webkit-line-clamp: 4; |
|
|
-webkit-box-orient: vertical; |
|
|
-webkit-box-orient: vertical; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.look-down { |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
right: 25px; |
|
|
|
|
|
bottom: 10px; |
|
|
|
|
|
cursor: pointer; |
|
|
|
|
|
margin-bottom: 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.pagination { |
|
|
.pagination { |
|
|
margin-top: 48px; |
|
|
margin-top: 48px; |
|
|
text-align: right; |
|
|
text-align: right; |
|
|