mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 19:36:47 +08:00
Merge branch 'master' of codeup.aliyun.com:6265f483e4166464dc2f9c14/boeu/mobile
This commit is contained in:
@@ -55,25 +55,16 @@
|
|||||||
if(openUrl){
|
if(openUrl){
|
||||||
console.log('跳转url='+openUrl);
|
console.log('跳转url='+openUrl);
|
||||||
if(openUrl.startsWith('http')){
|
if(openUrl.startsWith('http')){
|
||||||
uni.showModal({
|
alert('跳转url0='+openUrl)
|
||||||
title:'跳转url0',
|
|
||||||
content:openUrl
|
|
||||||
})
|
|
||||||
location.href=openUrl
|
location.href=openUrl
|
||||||
}else{
|
}else{
|
||||||
if(openUrl=='/pages/index/index' || openUrl=='/pages/study/index' || openUrl=='/pages/plus/index' || openUrl=='/pages/my/index'){
|
if(openUrl=='/pages/index/index' || openUrl=='/pages/study/index' || openUrl=='/pages/plus/index' || openUrl=='/pages/my/index'){
|
||||||
uni.showModal({
|
alert('跳转url1='+openUrl)
|
||||||
title:'跳转url1',
|
|
||||||
content:openUrl
|
|
||||||
})
|
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url:openUrl
|
url:openUrl
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
uni.showModal({
|
alert('跳转url2='+openUrl)
|
||||||
title:'跳转url2',
|
|
||||||
content:openUrl
|
|
||||||
})
|
|
||||||
uni.navigateTo({url:openUrl})
|
uni.navigateTo({url:openUrl})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user