通知公告

This commit is contained in:
wanglei
2021-12-13 14:02:07 +08:00
parent 29e8bf8957
commit 36d55c999e
3 changed files with 287 additions and 305 deletions

View File

@@ -171,7 +171,7 @@ export default {
this.show = false;
this.changeState();
},
handleOpt(item) {
handleOpt(item){
this.content = {
1: "撤回",
2: "发布",
@@ -180,27 +180,20 @@ export default {
if (item.val == 0) {
this.show = false;
this.comp = "detail";
this.params = {
id: this.detail.id,
flag: true
};
this.showList = false;
return
return uni.navigateTo({
url: "/apps/notification/detail?id=" + this.detail.id
});
}
if ([1, 2, 4].includes(item.val)) {
if ([1,2,4].includes(item.val)) {
return this.modal = true;
}
if (item.val == 3) {
if(item.val==3){
this.show = false;
this.comp = "add";
this.params = {
id: this.detail.id,
flag: false
};
this.showList = false;
return uni.navigateTo({
url:"/apps/notification/add?id=" + this.detail.id + "&flag=" + false
});
}
},
color(status) {
@@ -215,22 +208,16 @@ export default {
this.detail = item;
if (this.index == 1) {
this.show = true;
} else {
this.comp = "detail";
this.params = {
id: this.detail.id,
flag: true
};
this.showList = false;
}else {
uni.navigateTo({
url: "/apps/notification/detail?id=" + this.detail.id + "&flag=" + true
})
}
},
add() {
this.comp = "add";
this.params = {
id: null,
flag: false
};
this.showList = false;
add(){
uni.navigateTo({
url: "/apps/notification/add"
})
},
change(val) {
this.index = val;