소스 검색

公告问题

master
huxinglu 4 년 전
부모
커밋
0a34b040a6
1개의 변경된 파일31개의 추가작업 그리고 5개의 파일을 삭제
  1. +31
    -5
      src/components/noticeDetail.vue

+ 31
- 5
src/components/noticeDetail.vue 파일 보기

@@ -7,7 +7,13 @@
:size="drawerWidth"
:before-close="handleClose"
>
<div v-html="content"></div>
<div class="header">
<div>{{data.title}}</div>
<div>
<span>发布人:{{data.publishUserName}}</span><span>发布时间:{{data.publishTime}}</span>
</div>
</div>
<div v-html="data.content"></div>
<div style="text-align: center">
<el-button
icon="el-icon-back"
@@ -28,7 +34,7 @@
data() {
return {
drawerWidth: document.body.clientWidth - 190 + "px",
content:''
data:{}
}
},
props: {
@@ -54,9 +60,9 @@
},
getInfo() {
api.info(this.noticeId).then(res => {
this.content=res.data.content
this.data=res.data
}).catch(e => {
this.content=''
this.data={}
});
}
}
@@ -65,6 +71,26 @@

<style lang="less">
.noticeDetail {

p{
margin: 0;
}
.header{
text-align: center;
margin-bottom: 30px;
>div:first-child{
font-size: 18px;
line-height: 20px;
font-weight: bold;
}
>div:last-child{
font-size: 14px;
color: #999999;
margin-top: 15px;
line-height: 16px;
>span{
margin-left: 30px;
}
}
}
}
</style>

Loading…
취소
저장