Commit 9e364f8a authored by 刘用法's avatar 刘用法
parents 65fe72d4 be541385
...@@ -680,7 +680,7 @@ export default { ...@@ -680,7 +680,7 @@ export default {
}); });
} else if (examInfo.examStatus == 1) { } else if (examInfo.examStatus == 1) {
// examInfo.status = '通过'; // examInfo.status = '通过';
if (examInfo.status == "通过") { if (examInfo.status == "已通过") {
wx.navigateTo({ wx.navigateTo({
url: url:
"/pages/learn/exam-pass?userExamId=" + "/pages/learn/exam-pass?userExamId=" +
......
...@@ -77,15 +77,17 @@ export default { ...@@ -77,15 +77,17 @@ export default {
//再次考试 //再次考试
getAgain: function () { getAgain: function () {
wx.navigateTo({ wx.navigateTo({
url: "./assessment", url: "/pages/learn/assessment",
}); });
}, },
//下次再考跳转到学习主界面页面 //下次再考跳转到学习主界面页面
toIndex: function () { toIndex: function () {
wx.reLaunch({ let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
url: "/pages/index/learn?tabs=3", let length = routes.length
uni.navigateBack({
delta: length - 1
}); });
// wx.navigateBack({ delta: 1 })//返回上一级页面
}, },
}, },
}; };
......
...@@ -87,10 +87,12 @@ export default { ...@@ -87,10 +87,12 @@ export default {
}, },
//下次再考跳转到学习主界面页面 //下次再考跳转到学习主界面页面
toIndex: function () { toIndex: function () {
wx.reLaunch({ let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
url: "/pages/index/learn?tabs=3", let length = routes.length
uni.navigateBack({
delta: length - 1
}); });
// wx.navigateBack({ delta: 1 })//返回上一级页面
}, },
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment