通知公告

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

@@ -63,16 +63,15 @@
export default {
name: "detail",
components:{AiBack,AiEmpty},
props:{
params:Object
},
data() {
return {
detailObj: null,
id: null,
flag: null,
detailObj: {},
}
},
onLoad(opt){
this.id = opt.id;
this.flag = opt.flag;
created() {
this.getDetail();
},
methods: {
@@ -90,8 +89,8 @@
getDetail() {
this.$http.post("/app/appannouncement/detail", null, {
params: {
id: this.id,
detail: this.flag
id: this.params?.id,
detail: this.params?.flag
}
}).then(res=>{
if(res && res.data){
@@ -100,9 +99,9 @@
})
},
handleClick() {
uni.navigateTo({
url:"/pages/notification/components/read?id=" + this.id,
})
this.$parent.params = this.params.id;
this.$parent.comp = "read";
this.$parent.showList = false;
}
},
}