Commit 97d448b6 authored by agping's avatar agping

公告修改

parent 38228b42
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="report-time"> <div class="report-time">
<span>{{create_time}}</span> <span>{{create_time}}</span>
</div> </div>
<div class="report-text">{{content}}</div> <div class="oh report-content-area report-text" v-html="content">{{content}}</div>
</div> </div>
</template> </template>
<script> <script>
...@@ -37,13 +37,16 @@ ...@@ -37,13 +37,16 @@
responseType: 'json', responseType: 'json',
data: { data: {
'id': _this.announce_id, 'id': _this.announce_id,
// 'id': 253,
} }
}) })
.then(function(response) { .then(function(response) {
if(response.data.code == 200) { if(response.data.code == 200) {
_this.house_title=response.data.data.title;//改成title _this.house_title=response.data.data.title;//改成title
_this.create_time=response.data.data.create_time; _this.create_time=response.data.data.create_time;
_this.content=response.data.data.content; // _this.content=response.data.data.content;
_this.content=_this.common.urlDeal(response.data.data.content);
console.log(response.data.data.content); console.log(response.data.data.content);
} else { } else {
...@@ -60,7 +63,7 @@ ...@@ -60,7 +63,7 @@
<style scoped> <style scoped>
.report-detail{ .report-detail{
padding: .44rem .28rem; padding: .44rem .3rem;
} }
.report-title{ .report-title{
font-size: .4rem; font-size: .4rem;
...@@ -72,14 +75,31 @@ ...@@ -72,14 +75,31 @@
margin-top: .22rem; margin-top: .22rem;
} }
.report-text{ .report-text{
text-indent:2em; /*text-indent:2em;
font-size: .3rem; font-size: .3rem;
color: #1A1A1A; color: #1A1A1A;*/
line-height: .56rem; /*line-height: .56rem;*/
margin-top: .5rem; margin-top: .38rem;
padding-bottom:1rem; padding-bottom:1rem;
} }
.sec-right{ .sec-right{
margin-left: .32rem; margin-left: .32rem;
} }
/*而如果在组件中使用了v-html,要为myHtml中的标签添加CSS样式,我们需要在写样式的时候添加>>>:*/
.report-content-area >>> img{
width: 100%;
max-width: 6.9rem;
}
.report-content-area >>> iframe{
width: 100%;
max-width: 6.9rem;
}
.report-content-area >>> embed{
width: 100%;
max-width: 6.9rem;
}
.report-content-area >>> video{
width: 100%;
max-width: 6.9rem;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment