This commit is contained in:
2023-11-10 17:13:40 +08:00
parent 891ae294c7
commit 8feb5cebb8
3 changed files with 29 additions and 7 deletions

View File

@ -63,9 +63,26 @@
},
methods: {
goToDetail(item) {
console.log(this.title)
if (this.title == '服务推送') {
if (Number(item.sourceType) == 1) {
uni.navigateTo({
url: "/pagesB/SelectItem/SelectItem"
})
} else if (Number(item.sourceType) == 2) {
uni.navigateTo({
url: "/pagesB/ExpertlookOrder/ExpertlookOrder"
})
} else {
uni.navigateTo({
url: `/pagesC/noticedetails/noticedetails?item=${JSON.stringify(item)}&title=${this.title}`
})
}
} else {
uni.navigateTo({
url: `/pagesC/noticedetails/noticedetails?item=${JSON.stringify(item)}&title=${this.title}`
})
}
},
info() {
getMegList(this.obj).then(res => {

View File

@ -25,6 +25,11 @@
title: '',
};
},
onReady() { //
uni.setNavigationBarTitle({
title: this.title,
});
},
onLoad(options) {
this.title = options.title
this.currentItem = JSON.parse(options.item)