mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 20:06:48 +08:00
测试加打印
This commit is contained in:
@@ -44,13 +44,25 @@
|
||||
let openUrl=$this.toUrl;
|
||||
if(openUrl){
|
||||
if(openUrl.startsWith('http')){
|
||||
uni.showModal({
|
||||
title:'跳转url0',
|
||||
content: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
|
||||
})
|
||||
uni.switchTab({
|
||||
url:openUrl
|
||||
})
|
||||
}else{
|
||||
uni.showModal({
|
||||
title:'跳转url2',
|
||||
content:openUrl
|
||||
})
|
||||
uni.navigateTo({url:openUrl})
|
||||
}
|
||||
}
|
||||
@@ -60,7 +72,12 @@
|
||||
})
|
||||
}
|
||||
|
||||
});
|
||||
}).catch(error => {
|
||||
uni.showModal({
|
||||
title:'错误',
|
||||
content:error
|
||||
})
|
||||
})
|
||||
}else{
|
||||
console.log(rs.message+','+rs.error);
|
||||
//#ifdef APP-PLUS
|
||||
|
||||
Reference in New Issue
Block a user