消息中心页面开发

This commit is contained in:
zxy
2024-03-12 23:03:27 +08:00
parent d165a26fe5
commit b17d44c99b
13 changed files with 1121 additions and 42 deletions

View File

@@ -56,16 +56,35 @@
},
methods: {
goList(item) {
if (item.data.length === 0) {
uni.showToast({
title: '暂无消息',
icon: 'none'
});
return
// if (item.data.length === 0) {
// uni.showToast({
// title: '暂无消息',
// icon: 'none'
// });
// return
// }
console.log(item.data)
// 任务推送、岗位推送、政策推送
if(item.title == '任务推送') {
console.log('任务推送')
uni.navigateTo({
url: './taskProjectList'
})
} else if(item.title == '岗位推送') {
console.log('岗位推送')
uni.navigateTo({
url: './jobProjectList'
})
} else if(item.title == '政策推送') {
console.log('政策推送')
uni.navigateTo({
url: './policyList'
})
} else {
uni.navigateTo({
url: './newsList?type=' + item.id
})
}
uni.navigateTo({
url: './newsList?type=' + item.id
})
}
},
computed: {