话题跳转
This commit is contained in:
@@ -108,7 +108,10 @@
|
||||
}
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
onLoad(option) {
|
||||
if(option.id) { //有id直接跳入话题详情页
|
||||
this.$linkTo('./TopicDetail?themeId=' + option.id + '&name=' + option.name)
|
||||
}
|
||||
uni.setNavigationBarTitle({
|
||||
title: '邻里互助'
|
||||
});
|
||||
|
||||
@@ -261,7 +261,7 @@ export default {
|
||||
if(row.type == 1) { //type 0:内置应用, 1:外链, 2:tabbar页面
|
||||
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})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user