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

@ -1,6 +1,6 @@
<template> <template>
<view class="app"> <view class="app">
<view class="item" @tap="gonotice(listone,' 通知公告')"> <view class="item" @tap="gonotice(listone,'通知公告')">
<image src="../../static/pages/tongzhi.png" mode=""></image> <image src="../../static/pages/tongzhi.png" mode=""></image>
<view class="title"> <view class="title">
通知公告 通知公告
@ -16,7 +16,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="item" @tap="gonotice(listtwo,' 健康推送')"> <view class="item" @tap="gonotice(listtwo,'健康推送')">
<image src="../../static/pages/jiankang.png" mode=""></image> <image src="../../static/pages/jiankang.png" mode=""></image>
<view class="title"> <view class="title">
健康推送 健康推送
@ -32,7 +32,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="item" @tap="gonotice(listfour,' 服务推送')"> <view class="item" @tap="gonotice(listfour,'服务推送')">
<image src="../../static/pages/fuwu.png" mode=""></image> <image src="../../static/pages/fuwu.png" mode=""></image>
<view class="title"> <view class="title">
服务推送 服务推送

View File

@ -18,7 +18,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="" v-else style="margin-top: 100rpx;"> <view class="" v-else style="margin-top: 100rpx;">
<u-empty mode="order" icon-size='220' text="暂无"></u-empty> <u-empty mode="order" icon-size='220' text="暂无"></u-empty>
</view> </view>
</view> </view>
@ -63,9 +63,26 @@
}, },
methods: { methods: {
goToDetail(item) { goToDetail(item) {
uni.navigateTo({ console.log(this.title)
url: `/pagesC/noticedetails/noticedetails?item=${JSON.stringify(item)}&title=${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() { info() {
getMegList(this.obj).then(res => { getMegList(this.obj).then(res => {

View File

@ -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)