话题跳转

This commit is contained in:
liuye
2023-09-22 10:09:39 +08:00
parent 8f5e79bf0b
commit 32b82f80db
2 changed files with 5 additions and 2 deletions

View File

@@ -108,7 +108,10 @@
}
},
onLoad() {
onLoad(option) {
if(option.id) { //有id直接跳入话题详情页
this.$linkTo('./TopicDetail?themeId=' + option.id + '&name=' + option.name)
}
uni.setNavigationBarTitle({
title: '邻里互助'
});

View File

@@ -261,7 +261,7 @@ export default {
if(row.type == 1) { //type 0:内置应用, 1:外链, 2tabbar页面
uni.navigateToMiniProgram({appId: row.appId});
}else if(row.type == 2) {
uni.switchTab({url: row.modulePath})
uni.switchTab({url: row.modulePath+`&name=${row.name}`})
}else {
uni.navigateTo({url: row.modulePath})
}