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
26a9a5e1
Commit
26a9a5e1
authored
Jan 11, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/xiangwei/educationstu
parents
f4eef9f5
7cbdb7a3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
132 additions
and
21 deletions
+132
-21
fillInTheBlanks.vue
src/components/word/fillInTheBlanks.vue
+35
-17
vear-carousel.vue
src/pages/study/components/vear-carousel/vear-carousel.vue
+2
-2
index.vue
src/pages/study/index.vue
+2
-2
studyComplete.vue
src/pages/word/studyComplete.vue
+6
-0
test.vue
src/pages/word/test.vue
+87
-0
No files found.
src/components/word/fillInTheBlanks.vue
View file @
26a9a5e1
...
...
@@ -8,32 +8,32 @@
.box
{
width
:
100%
;
box-sizing
:
border-box
;
padding
:
0
20
px
;
padding
:
0
40
r
px
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
}
.dc
{
font-size
:
26
px
;
font-size
:
60
r
px
;
color
:
#111111
;
font-weight
:
bold
;
margin-top
:
160
rpx
;
}
.dclx
{
padding
:
4
px
6
px
;
border-radius
:
3px
;
padding
:
4
rpx
6
r
px
;
border-radius
:
3
r
px
;
background
:
#E8E9EA
;
font-size
:
14
px
;
font-size
:
28
r
px
;
color
:
#666666
;
margin-top
:
18
px
;
margin-top
:
36
r
px
;
word-wrap
:
break-word
;
}
.dclx2
{
font-size
:
16
px
;
font-size
:
32
r
px
;
font-weight
:
500
;
color
:
#111111
;
margin-top
:
30
px
;
margin-top
:
60
r
px
;
}
.btn
{
width
:
100%
;
...
...
@@ -42,7 +42,7 @@
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
16
px
;
font-size
:
32
r
px
;
color
:
#4C50E7
;
margin-top
:
160
rpx
;
background
:
#E4E5FB
;
...
...
@@ -56,7 +56,7 @@
}
.sign
{
position
:
absolute
;
right
:
33
px
;
right
:
66
r
px
;
top
:
36
rpx
;
}
.error
{
...
...
@@ -65,6 +65,7 @@
}
.row
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
flex-wrap
:
wrap
;
}
...
...
@@ -72,13 +73,13 @@
<
template
>
<view
class=
"fillInTheBlanks"
>
<view
class=
"box"
>
<view
class=
"dc row"
>
<text>
火曜日
</text>
<mypone
maxlength=
"2"
v-model=
"test"
style=
"display: inline-block;"
></mypone>
<text>
日sa
</text>
<view
style=
"font-size:26rpx;width:100%"
>
{{
item
.
Title
}}
</view>
<mypone
:maxlength=
"getNum(item)"
v-model=
"test"
style=
"display: inline-block;"
></mypone>
</view>
<view
class=
"dclx"
>
名词
</view>
<view
class=
"dclx2"
>
今天是星期二
</view>
<view
class=
"dclx"
>
{{
item
.
WordType
}}
</view>
<view
class=
"dclx2"
>
{{
item
.
ChineseMean
}}
</view>
<view
class=
"btn"
v-if=
"type==0"
@
click=
"getjieguo"
>
确定
</view>
<view
class=
"btn correct"
v-if=
"type==1"
>
正确
<view
class=
"sign"
>
...
...
@@ -104,13 +105,31 @@
components
:
{
mypone
},
props
:{
item
:{
type
:
Object
,
default
:()
=>
{
return
{}
}
}
},
setup
(
props
,{
attrs
,
slots
,
emit
})
{
let
data
=
reactive
({
test
:
''
,
type
:
0
,
//1是正确 2是错误
})
let
methods
=
{
getNum
(
item
){
const
answer
=
item
.
Answer
const
index
=
answer
.
indexOf
(
"("
)
if
(
index
>-
1
){
return
index
+
1
}
else
{
return
answer
.
length
}
},
getjieguo
(){
console
.
log
(
130
,
data
.
test
)
if
(
data
.
test
==
''
){
uni
.
showToast
({
title
:
'请输入'
,
...
...
@@ -126,8 +145,7 @@
}
}
onMounted
(()
=>
{
console
.
log
(
137
,
props
.
item
)
})
let
that
=
methods
;
return
{
...
...
src/pages/study/components/vear-carousel/vear-carousel.vue
View file @
26a9a5e1
...
...
@@ -23,7 +23,7 @@
</view>
</view>
<view>
<view
class=
"row"
style=
"justify-content: space-between;font-size: 11px;"
>
<view
class=
"row"
style=
"justify-content: space-between;font-size: 11px;
margin-bottom:10rpx;
"
>
<span>
已学课程
</span>
<span>
{{
item
.
CompleteHours
}}
/
{{
item
.
TotalHours
}}
</span>
</view>
...
...
@@ -167,7 +167,7 @@
display
:
flex
;
align-items
:
center
;
}
.box-state
{
width
:
3
6
rpx
;
width
:
3
8
rpx
;
height
:
88
rpx
;
position
:
absolute
;
right
:
17px
;
...
...
src/pages/study/index.vue
View file @
26a9a5e1
...
...
@@ -102,7 +102,7 @@
/* margin-top: -5px; */
box-sizing
:
border-box
;
position
:
absolute
;
left
:
18px
;
/* left: 18px; */
top
:
248
rpx
;
}
.box_review_box
{
...
...
@@ -248,7 +248,7 @@
<view
class=
"row"
style=
"color: #111111;font-size: 14px;font-weight: bold;"
>
<view
>
单词积分
</view>
<view
style=
"margin-left: 5px;"
>
80
</view>
<image
style=
"width: 17px;height: 16px;margin
-left:
10px;"
src=
"../../static/image/xingxing.png"
></image>
<image
style=
"width: 17px;height: 16px;margin
:-2px 0 0
10px;"
src=
"../../static/image/xingxing.png"
></image>
</view>
<view
style=
"font-size: 11px;color: #4C50E7;"
@
click=
"gourl()"
>
所有单词
</view>
</view>
...
...
src/pages/word/studyComplete.vue
View file @
26a9a5e1
...
...
@@ -89,6 +89,8 @@
color
:
#fff
;
background-color
:
#4C50E7
;
margin
:
auto
;
font-size
:
28
rpx
;
font-weight
:
500
;
}
.study_GoLearn
{
...
...
@@ -100,11 +102,15 @@
color
:
#4C50E7
;
background-color
:
#E4E5FB
;
margin
:
36
rpx
auto
;
font-size
:
28
rpx
;
font-weight
:
500
;
}
.studyBack
{
color
:
#BBBCCE
;
margin-top
:
60
rpx
;
font-size
:
28
rpx
;
font-weight
:
500
;
}
.study_Piao
{
...
...
src/pages/word/test.vue
0 → 100644
View file @
26a9a5e1
<
template
>
<view
class=
"wordTest"
>
<swiper
class=
"swiper"
>
<swiper-item
v-for=
"(item,index) in reviewGroupList"
:key=
"index"
class=
"swiper-item"
>
<Choice
v-if=
"item.QuestionTypeId==1"
></Choice>
<!--
<Explain
v-if=
"item.QuestionTypeId==3"
></Explain>
-->
<FillIn
v-if=
"item.QuestionTypeId==3"
:item=
"item"
></FillIn>
</swiper-item>
<swiper-item
v-for=
"(item,index) in prepGroupList"
:key=
"index"
class=
"swiper-item"
>
</swiper-item>
<swiper-item></swiper-item>
</swiper>
</view>
</
template
>
<
script
>
import
{
ref
,
reactive
,
toRefs
,
getCurrentInstance
,
onMounted
,
}
from
"vue"
;
import
Choice
from
'../../components/word/choiceQuestion.vue'
import
Explain
from
'../../components/word/explain.vue'
import
FillIn
from
'../../components/word/fillInTheBlanks.vue'
export
default
{
components
:
{
Choice
,
Explain
,
FillIn
},
setup
(
props
)
{
let
{
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
msg
:
{
CourseId
:
0
,
ChapterId
:
0
,
NextChapterId
:
0
},
reviewGroupList
:
[],
prepGroupList
:
[],
})
let
methods
=
{
getList
()
{
proxy
.
$request
(
'/AppletWords/CreateCourseExam'
,
data
.
msg
).
then
(
res
=>
{
data
.
reviewGroupList
=
res
.
Data
.
reviewGroupList
data
.
prepGroupList
=
res
.
Data
.
prepGroupList
})
}
}
onMounted
(()
=>
{
})
let
that
=
methods
;
return
{
...
toRefs
(
data
),
...
methods
,
};
},
onLoad
(
options
)
{
uni
.
setNavigationBarTitle
({
title
:
'单词测试'
});
const
userInfo
=
uni
.
getStorageSync
(
'userinfo'
);
this
.
msg
.
CourseId
=
options
.
CourseId
this
.
msg
.
ChapterId
=
options
.
ChapterId
this
.
msg
.
NextChapterId
=
options
.
NextChapterId
this
.
getList
()
},
}
</
script
>
<
style
scoped
>
.wordTest
{
min-height
:
100vh
;
background-color
:
#F5F5F5
;
}
.wordTest
.swiper
{
min-height
:
100vh
;
background-color
:
#F5F5F5
;
}
</
style
>
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