修改文字

This commit is contained in:
zhangmanman
2021-09-27 09:06:32 +08:00
parent a1d6ec7ee7
commit 9e9fc63c1b
2 changed files with 25 additions and 6 deletions

View File

@@ -152,12 +152,11 @@
// 能量跳转 // 能量跳转
JumpUrl(open, title) { JumpUrl(open, title) {
console.log(open)
var type = open.openType; var type = open.openType;
switch(type){ switch(type){
case 'switchTab': case 'switchTab':
uni.switchTab({ uni.switchTab({
url: open.url url: open.path
}) })
break; break;
case 'web': case 'web':
@@ -167,7 +166,7 @@
break; break;
case 'navigateTo': case 'navigateTo':
uni.navigateTo({ uni.navigateTo({
url: open.url url: open.path
}) })
break; break;
} }

View File

@@ -170,8 +170,6 @@
Promise.all([crystals(), chain()]).then(res=>{ Promise.all([crystals(), chain()]).then(res=>{
let crystalsData = res[0], let crystalsData = res[0],
occData = res[1] occData = res[1]
console.log(occData)
if(!crystalsData.needLogin){ if(!crystalsData.needLogin){
this.account = { this.account = {
coin : crystalsData.coin, coin : crystalsData.coin,
@@ -268,7 +266,29 @@
chart.render(); chart.render();
return chart; return chart;
}) })
} },
// 能量跳转
JumpUrl(open, title) {
var type = open.openType;
switch(type){
case 'switchTab':
uni.switchTab({
url: open.path
})
break;
case 'web':
uni.navigateTo({
url: open.url
})
break;
case 'navigateTo':
uni.navigateTo({
url: open.path
})
break;
}
}
} }
} }
</script> </script>