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