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