Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李俊赕
self-support
Commits
6a6b1f65
Commit
6a6b1f65
authored
May 14, 2021
by
林文清
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:考试结果页跳转
parent
308c3228
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
exam-pass.vue
src/pages/learn/exam-pass.vue
+6
-4
result.vue
src/pages/learn/result.vue
+5
-3
No files found.
src/pages/learn/exam-pass.vue
View file @
6a6b1f65
...
@@ -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 })//返回上一级页面
},
},
},
},
};
};
...
...
src/pages/learn/result.vue
View file @
6a6b1f65
...
@@ -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 })//返回上一级页面
},
},
},
},
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment