|
|
@ -3,7 +3,7 @@ |
|
|
<div class="bg-panel my-4 p-4 rounded"> |
|
|
<div class="bg-panel my-4 p-4 rounded"> |
|
|
<div class="list"> |
|
|
<div class="list"> |
|
|
<router-link :to="`/notice/${item.id}`" class="item d-flex border-bottom p-2 justify-content-between" v-for="item in list" :key="item.id"> |
|
|
<router-link :to="`/notice/${item.id}`" class="item d-flex border-bottom p-2 justify-content-between" v-for="item in list" :key="item.id"> |
|
|
<div class="title text-truncate"> |
|
|
<div class="title text-truncate color-light"> |
|
|
{{item.title}} |
|
|
{{item.title}} |
|
|
</div> |
|
|
</div> |
|
|
<div class="time"> |
|
|
<div class="time"> |
|
|
@ -39,11 +39,11 @@ export default { |
|
|
getList() { |
|
|
getList() { |
|
|
let data = { |
|
|
let data = { |
|
|
page: this.page, |
|
|
page: this.page, |
|
|
type:'notice' |
|
|
// type:'notice' |
|
|
} |
|
|
} |
|
|
Member.article(data).then(res => { |
|
|
Member.notice(data).then(res => { |
|
|
this.detail = res; |
|
|
this.detail = res; |
|
|
this.list = res.data; |
|
|
this.list = res; |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
@ -53,6 +53,10 @@ export default { |
|
|
.list{ |
|
|
.list{ |
|
|
.item{ |
|
|
.item{ |
|
|
color: #758696; |
|
|
color: #758696; |
|
|
|
|
|
|
|
|
|
|
|
.color-light{ |
|
|
|
|
|
color: #fff; |
|
|
|
|
|
} |
|
|
&:hover{ |
|
|
&:hover{ |
|
|
color: white; |
|
|
color: white; |
|
|
} |
|
|
} |
|
|
|