通知公告

This commit is contained in:
wanglei
2021-11-22 10:59:46 +08:00
parent 5aa59dd401
commit dddbbc6faf
4 changed files with 113 additions and 96 deletions

View File

@@ -5,7 +5,7 @@
</AiTopFixed>
<div class="body">
<div class="item" v-for="(item,index) in (current==0 ? list.read : list.unRead)" :key="index">
<u-avatar :src="item.avatar" mode="square" size="76"></u-avatar>
<u-avatar :src="item.avatar" mode="square" size="38"></u-avatar>
<span class="name">{{item.name}}</span>
</div>
</div>
@@ -20,22 +20,23 @@
export default {
name: "read",
components: {AiBack, AiTopFixed},
props:{
params:[String,Number]
},
data() {
return {
current: 0,
id: null,
list: [],
}
},
onLoad(opt) {
this.id = opt.id;
created() {
this.getList();
},
methods: {
getList() {
this.$http.post("/app/appannouncementreader/list-unread",null,{
params:{
id:this.id
id:this.params
}
}).then(res => {
if (res && res.data) {