修改
This commit is contained in:
parent
891ae294c7
commit
8feb5cebb8
@ -63,9 +63,26 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goToDetail(item) {
|
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({
|
uni.navigateTo({
|
||||||
url: `/pagesC/noticedetails/noticedetails?item=${JSON.stringify(item)}&title=${this.title}`
|
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() {
|
info() {
|
||||||
getMegList(this.obj).then(res => {
|
getMegList(this.obj).then(res => {
|
||||||
|
|||||||
@ -25,6 +25,11 @@
|
|||||||
title: '',
|
title: '',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
onReady() { //更改导航栏文字
|
||||||
|
uni.setNavigationBarTitle({
|
||||||
|
title: this.title,
|
||||||
|
});
|
||||||
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.title = options.title
|
this.title = options.title
|
||||||
this.currentItem = JSON.parse(options.item)
|
this.currentItem = JSON.parse(options.item)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user