Merge branch 'main' of https://git.yuzhankeji.cn/TmOct5/BlockChainH5
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user