|
|
@ -1,31 +1,45 @@ |
|
|
|
<template> |
|
|
|
<div class="box"> |
|
|
|
<div> |
|
|
|
<div class="policy-title"> |
|
|
|
<div class="inner"> |
|
|
|
<div class="d-flex flex-column"> |
|
|
|
<div class="font-24 title-color pa-5"> |
|
|
|
<span>{{ postDetail.title }}</span> |
|
|
|
</div> |
|
|
|
<div class="policy-info"> |
|
|
|
<span> |
|
|
|
<div class="px-5 font-16 line-height-30" v-dompurify-html="postDetail.content"></div> |
|
|
|
<div class="px-5 py-8 d-flex flex-row-reverse secondary"> |
|
|
|
<span class="ml-8"> |
|
|
|
时间: |
|
|
|
<span>{{ postDetail.createdTime }}</span> |
|
|
|
</span> |
|
|
|
<span style="margin-left: 60px"> 地点:太原 </span> |
|
|
|
<span>地点:太原</span> |
|
|
|
</div> |
|
|
|
<div class="policy-content" v-dompurify-html="postDetail.content"></div> |
|
|
|
</div> |
|
|
|
<div class="coms-style"> |
|
|
|
<div class="coms-top"> |
|
|
|
<div :key="index" style="margin-top: 2em" v-for="(item, index) in coms"> |
|
|
|
<div class="px-3"> |
|
|
|
<a-divider /> |
|
|
|
</div> |
|
|
|
<div class="fill-width px-3"> |
|
|
|
<div class="coms-top mt-8"> |
|
|
|
<div :key="index" class="my-8" v-for="(item, index) in coms"> |
|
|
|
<p style="color: #999"> |
|
|
|
<a-avatar :size="30" :src="item.avatarUrl" alt style="margin-top: -4px; margin-right: 4px" /> |
|
|
|
<a-avatar |
|
|
|
:size="30" |
|
|
|
:src="item.avatarUrl" |
|
|
|
alt |
|
|
|
style="margin-top: -4px; margin-right: 4px" |
|
|
|
/> |
|
|
|
<span style="margin-right: 10px">{{ item.userName }}</span> |
|
|
|
<span class="coms-content">{{ item.content }}{{ item.content }}{{ item.content }}</span> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="coms-btm"> |
|
|
|
<a-textarea placeholder="请输入内容..." style="height: 140px;min-height: 140px;max-height: 140px" v-model="comment" /> |
|
|
|
<a-button @click="sub" class="sub" type="primary">提交</a-button> |
|
|
|
<div class="fill-width mt-8"> |
|
|
|
<a-textarea |
|
|
|
placeholder="请输入内容..." |
|
|
|
style="height: 140px;min-height: 140px;max-height: 140px" |
|
|
|
v-model="comment" |
|
|
|
/> |
|
|
|
<div class="d-flex flex-row-reverse"> |
|
|
|
<a-button @click="sub" class="sub" type="primary">发表</a-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- <div class="txtara"> |
|
|
|
<a-textarea placeholder="请输入..." :rows="4" v-model="comment" /> |
|
|
@ -95,73 +109,18 @@ export default { |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="stylus" scoped> |
|
|
|
.box { |
|
|
|
width: 1260px; |
|
|
|
position: relative; |
|
|
|
.inner { |
|
|
|
margin: 80px auto; |
|
|
|
background: #fff; |
|
|
|
min-height: 1037px; |
|
|
|
overflow: hidden; |
|
|
|
opacity: 1; |
|
|
|
padding-bottom: 480px; |
|
|
|
} |
|
|
|
|
|
|
|
.back-btn { |
|
|
|
width: 80px; |
|
|
|
position: absolute; |
|
|
|
right: 0; |
|
|
|
} |
|
|
|
|
|
|
|
.policy-title { |
|
|
|
height: 120px; |
|
|
|
font-size: 24px; |
|
|
|
font-family: Microsoft YaHei; |
|
|
|
font-weight: 400; |
|
|
|
color: rgba(0, 0, 0, 0.85); |
|
|
|
opacity: 1; |
|
|
|
text-align: left; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: left; |
|
|
|
padding: 0 25px; |
|
|
|
} |
|
|
|
|
|
|
|
.policy-info { |
|
|
|
position: absolute; |
|
|
|
height: 76px; |
|
|
|
line-height: 76px; |
|
|
|
right: 25px; |
|
|
|
bottom: 500px; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
|
|
|
|
.policy-content { |
|
|
|
padding: 0 25px; |
|
|
|
font-size: 16px; |
|
|
|
color: rgba(0, 0, 0, 0.65); |
|
|
|
font-weight: 400; |
|
|
|
font-family: Microsoft YaHei; |
|
|
|
} |
|
|
|
|
|
|
|
.coms-style { |
|
|
|
height: 480px; |
|
|
|
padding: 25px 0; |
|
|
|
border-top: 2px solid #ccc; |
|
|
|
position: absolute; |
|
|
|
bottom: 0; |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
|
|
|
|
.coms-top { |
|
|
|
height: 280px; |
|
|
|
padding: 0 25px; |
|
|
|
overflow: auto; |
|
|
|
box-shadow: 0 0 5px #ccc; |
|
|
|
} |
|
|
|
|
|
|
|
.coms-btm { |
|
|
|
margin-top: 20px; |
|
|
|
padding: 0 10px; |
|
|
|
// box-shadow: 0 0 5px #ccc; |
|
|
|
} |
|
|
|
|
|
|
|
.coms-content { |
|
|
@ -169,8 +128,6 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
.sub { |
|
|
|
position: absolute; |
|
|
|
right: 20px; |
|
|
|
bottom: 20px; |
|
|
|
margin: 20px 0 100px; |
|
|
|
} |
|
|
|
</style> |
|
|
|