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;
switch(type){
case 'switchTab':
uni.switchTab({
url: open.path
})
this.$Router.pushTab({name: open.path})
break;
case 'web':
uni.navigateTo({
url: open.url
})
window.location.href = open.path
break;
case 'navigateTo':
uni.navigateTo({
url: open.path
})
this.$Router.push({name: open.path})
break;
}
},
}
}
}
</script>

View File

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