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
6c4dc420
Commit
6c4dc420
authored
Jan 12, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
280273c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
12 deletions
+25
-12
test.vue
src/pages/word/test.vue
+25
-12
No files found.
src/pages/word/test.vue
View file @
6c4dc420
<
template
>
<
template
>
<view
class=
"wordTest"
>
<view
class=
"wordTest"
>
<button
class=
""
>
<button
class=
""
@
click=
"submitWordsTest"
>
交卷
交卷
</button>
</button>
<swiper
class=
"swiper"
@
change=
"changeSwiper"
:current=
"curTest"
>
<swiper
class=
"swiper"
@
change=
"changeSwiper"
:current=
"curTest"
>
...
@@ -42,23 +42,36 @@
...
@@ -42,23 +42,36 @@
ChapterId
:
0
,
ChapterId
:
0
,
NextChapterId
:
0
NextChapterId
:
0
},
},
curTest
:
0
,
curTest
:
0
,
reviewGroupList
:
[],
reviewGroupList
:
[],
prepGroupList
:
[],
prepGroupList
:
[],
})
})
let
methods
=
{
let
methods
=
{
getList
()
{
getList
()
{
proxy
.
$request
(
'/AppletWords/CreateCourseExam'
,
data
.
msg
).
then
(
res
=>
{
proxy
.
$request
(
'/AppletWords/CreateCourseExam'
,
data
.
msg
).
then
(
res
=>
{
data
.
reviewGroupList
=
res
.
Data
.
reviewGroupList
data
.
reviewGroupList
=
res
.
Data
.
reviewGroupList
data
.
prepGroupList
=
res
.
Data
.
prepGroupList
data
.
prepGroupList
=
res
.
Data
.
prepGroupList
})
})
},
},
changeSwiper
(
val
){
changeSwiper
(
val
)
{
data
.
curTest
=
val
.
detail
.
current
data
.
curTest
=
val
.
detail
.
current
},
},
next
(
val
,
item
){
next
(
val
,
item
)
{
item
.
IsTrue
=
val
item
.
IsTrue
=
val
data
.
curTest
+=
1
data
.
curTest
+=
1
},
//提交单词测试
submitWordsTest
()
{
var
postMsg
=
{
ClassId
:
1
,
CourseId
:
1
,
ChapterId
:
1
,
ExamStartTime
:
"2021-01-12 10:00:00"
,
Details
:
data
.
reviewGroupList
};
proxy
.
$request
(
'/AppletWords/SubmitWordsExam'
,
postMsg
).
then
(
res
=>
{
console
.
log
(
"SubmitWordsExam"
,
res
);
})
}
}
}
}
onMounted
(()
=>
{
onMounted
(()
=>
{
...
@@ -75,9 +88,9 @@
...
@@ -75,9 +88,9 @@
title
:
'单词测试'
title
:
'单词测试'
});
});
const
userInfo
=
uni
.
getStorageSync
(
'userinfo'
);
const
userInfo
=
uni
.
getStorageSync
(
'userinfo'
);
this
.
msg
.
CourseId
=
options
.
CourseId
this
.
msg
.
CourseId
=
options
.
CourseId
this
.
msg
.
ChapterId
=
options
.
ChapterId
this
.
msg
.
ChapterId
=
options
.
ChapterId
this
.
msg
.
NextChapterId
=
options
.
NextChapterId
this
.
msg
.
NextChapterId
=
options
.
NextChapterId
this
.
getList
()
this
.
getList
()
},
},
}
}
...
...
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