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