Commit 6a6b1f65 authored by 林文清's avatar 林文清

update:考试结果页跳转

parent 308c3228
...@@ -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