Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
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
向伟
educationStu
Commits
b16aa1dd
Commit
b16aa1dd
authored
Jan 11, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
2ce6b814
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
15 deletions
+26
-15
pages.json
src/pages.json
+2
-0
courseList.vue
src/pages/study/courseList.vue
+7
-4
studyComplete.vue
src/pages/word/studyComplete.vue
+13
-6
word.vue
src/pages/word/word.vue
+4
-5
No files found.
src/pages.json
View file @
b16aa1dd
...
...
@@ -112,6 +112,8 @@
"style"
:
{
"navigationStyle"
:
"custom"
}
},{
"path"
:
"test"
}]
}
],
...
...
src/pages/study/courseList.vue
View file @
b16aa1dd
...
...
@@ -132,7 +132,7 @@
<view
class=
"Course_Opera"
>
复习
</view>
</view>
<view>
<view>
<view
@
click=
"jumpPage(`/pages/word/test?CourseId=0`)"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/ceshi.png"
alt=
""
/>
</view>
<view
class=
"Course_Opera"
>
测试
</view>
...
...
@@ -182,7 +182,6 @@
let
{
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
ChapterList
:
[],
//课程列表
statusBarHeight
:
0
,
msg
:{
ClassId
:
0
,
CourseId
:
0
...
...
@@ -219,10 +218,14 @@
}
})
data
.
ChapterList
[
index
].
isShow
=!
data
.
ChapterList
[
index
].
isShow
;
}
},
jumpPage
(
url
)
{
uni
.
navigateTo
({
url
:
url
,
});
},
}
onMounted
(()
=>
{
data
.
statusBarHeight
=
uni
.
getSystemInfoSync
().
statusBarHeight
;
})
let
that
=
methods
;
return
{
...
...
src/pages/word/studyComplete.vue
View file @
b16aa1dd
...
...
@@ -169,7 +169,7 @@
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/piao4.png"
alt=
""
/>
<view
class=
"study_Jiyi"
>
记忆时长
</view>
<view
class=
"study_GoCeshi"
>
马上去测试
</view>
<view
class=
"study_GoCeshi"
@
click=
"goTest(url)"
>
马上去测试
</view>
<view
class=
"study_GoLearn"
>
再学习一次
</view>
<view
class=
"studyBack"
@
click=
"goIndex"
>
返回首页
</view>
</view>
...
...
@@ -194,7 +194,8 @@
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
stars
:
2
stars
:
2
,
url
:
''
,
})
let
methods
=
{
back
()
{
...
...
@@ -202,14 +203,16 @@
url
:
'/pages/word/word'
})
},
goIndex
(){
goIndex
()
{
uni
.
switchTab
({
url
:
'/pages/index/index'
});
},
getTest
(){
}
goTest
(
url
)
{
uni
.
navigateTo
({
url
:
url
,
});
},
}
onMounted
(()
=>
{
...
...
@@ -219,6 +222,10 @@
...
toRefs
(
data
),
...
methods
,
};
},
onLoad
(
options
)
{
console
.
log
(
226
,
options
)
this
.
url
=
`/pages/word/test?CourseId=
${
options
.
CourseId
}
&&ChapterId=
${
options
.
ChapterId
}
&&NextChapterId=
${
options
.
NextChapterId
}
`
}
}
</
script
>
src/pages/word/word.vue
View file @
b16aa1dd
...
...
@@ -34,7 +34,6 @@
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
test
:
[
1
,
2
,
3
],
msg
:
{
ChapterId
:
0
,
CourseId
:
0
,
...
...
@@ -42,7 +41,7 @@
},
StudyList
:
[],
ReviewList
:
[],
current
:
25
,
current
:
73
,
readMsg
:
{
Id
:
0
,
ClassId
:
1
,
...
...
@@ -77,7 +76,7 @@
const
total
=
data
.
StudyList
.
length
+
data
.
ReviewList
.
length
+
1
if
(
val
.
detail
.
current
+
1
==
total
&&
total
>
1
)
{
uni
.
navigateTo
({
url
:
"/pages/word/studyComplete
"
url
:
"/pages/word/studyComplete
?CourseId="
+
data
.
readMsg
.
CourseId
+
'&&ChapterId='
+
data
.
readMsg
.
ChapterId
+
'&&NextChapterId='
+
'0'
})
}
},
...
...
@@ -96,7 +95,7 @@
}
onMounted
(()
=>
{
})
let
that
=
methods
;
return
{
...
...
@@ -106,7 +105,7 @@
},
onLoad
(
options
)
{
uni
.
setNavigationBarTitle
({
title
:
'
新的标题
'
title
:
'
单词学习
'
});
this
.
msg
.
ChapterId
=
options
.
ChapterId
??
0
this
.
msg
.
CourseId
=
options
.
CourseId
??
0
...
...
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