mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 18:06:47 +08:00
页面跳转
This commit is contained in:
@@ -747,15 +747,39 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
toCoursePage(coure){
|
toCoursePage(coure){
|
||||||
|
|
||||||
|
if(!coure.source){
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/study/courseStudy?id=' + coure.id
|
||||||
|
})
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (coure.source==1) {
|
if (coure.source==1) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/study/studydetail?id=' + coure.id + '&type=' + coure.type
|
url: '/pages/study/studydetail?id=' + coure.id + '&type=' + coure.type
|
||||||
});
|
});
|
||||||
} else {
|
}else if (coure.source==2){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/study/courseStudy?id=' + coure.id
|
url: '/pages/study/courseStudy?id=' + coure.id
|
||||||
})
|
})
|
||||||
|
}else if (coure.source==3){
|
||||||
|
let params=encodeURIComponent('courseId='+coure.id);
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'/pages/forward?to=/manageApi/stu/project/redirectDetail¶ms='+params
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
console.log('不支持的数据来源 '+coure.source)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if(coure.source ==1){
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: '/pages/study/studydetail?id='+coure.id+'&type='+coure.type
|
||||||
|
// });
|
||||||
|
// } else {
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: '/pages/study/courseStudy?id='+coure.id
|
||||||
|
// })
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
toArticlePage(item) {
|
toArticlePage(item) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
Reference in New Issue
Block a user