This commit is contained in:
2021-09-28 11:33:09 +08:00
2 changed files with 8 additions and 20 deletions

View File

@@ -158,22 +158,16 @@
var type = open.openType; var type = open.openType;
switch(type){ switch(type){
case 'switchTab': case 'switchTab':
uni.switchTab({ this.$Router.pushTab({name: open.path})
url: open.path
})
break; break;
case 'web': case 'web':
uni.navigateTo({ window.location.href = open.path
url: open.url
})
break; break;
case 'navigateTo': case 'navigateTo':
uni.navigateTo({ this.$Router.push({name: open.path})
url: open.path
})
break; break;
} }
}, }
} }
} }
</script> </script>

View File

@@ -280,24 +280,18 @@
}) })
}, },
// 能量任务跳转 // 能量跳转
JumpUrl(open, title) { JumpUrl(open, title) {
var type = open.openType; var type = open.openType;
switch(type){ switch(type){
case 'switchTab': case 'switchTab':
uni.switchTab({ this.$Router.pushTab({name: open.path})
url: open.path
})
break; break;
case 'web': case 'web':
uni.navigateTo({ window.location.href = open.path
url: open.url
})
break; break;
case 'navigateTo': case 'navigateTo':
uni.navigateTo({ this.$Router.push({name: open.path})
url: open.path
})
break; break;
} }
} }