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
13f26b85
Commit
13f26b85
authored
Sep 09, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
d4b1a1b7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
30 deletions
+56
-30
Dataquestion.vue
src/components/subject/Dataquestion.vue
+2
-6
EntryProblem.vue
src/components/subject/EntryProblem.vue
+2
-6
FillInTheBlanks.vue
src/components/subject/FillInTheBlanks.vue
+3
-5
SharingChoose.vue
src/components/subject/SharingChoose.vue
+0
-2
SortingProblem.vue
src/components/subject/SortingProblem.vue
+49
-11
No files found.
src/components/subject/Dataquestion.vue
View file @
13f26b85
...
...
@@ -36,6 +36,7 @@
:key=
"index2"
class=
"flex item2 flex_start_center"
>
<view
class=
"chooseNum"
>
{{
index2
+
1
}}
</view>
<view
class=
"chooseName"
>
<input
type=
"text"
v-model=
"item2.Content"
:placeholder=
"'请填写第 '+(index2+1)+' 空答案'"
class=
"input"
/>
</view>
...
...
@@ -166,13 +167,8 @@ export default {
}
.chooseNum
{
width
:
40
rpx
;
height
:
40
rpx
;
text-align
:
center
;
line-height
:
40
rpx
;
border-radius
:
50%
;
border
:
1px
solid
#e2e2e2
;
margin-right
:
30
rpx
;
margin-right
:
25
rpx
;
font-size
:
26
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
...
...
src/components/subject/EntryProblem.vue
View file @
13f26b85
...
...
@@ -33,6 +33,7 @@
:key=
"index2"
class=
"flex item2 flex_start_center"
>
<view
class=
"chooseNum"
>
{{
index2
+
1
}}
</view>
<view
class=
"chooseName"
>
<input
type=
"text"
...
...
@@ -174,13 +175,8 @@ export default {
}
.chooseNum
{
width
:
40
rpx
;
height
:
40
rpx
;
text-align
:
center
;
line-height
:
40
rpx
;
border-radius
:
50%
;
border
:
1px
solid
#e2e2e2
;
margin-right
:
30
rpx
;
margin-right
:
25
rpx
;
font-size
:
26
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
...
...
src/components/subject/FillInTheBlanks.vue
View file @
13f26b85
...
...
@@ -27,8 +27,9 @@
:key=
"index2"
class=
"flex item2 flex_start_center"
>
<view
class=
"chooseNum"
>
{{
index2
+
1
}}
</view>
<view
class=
"chooseName"
>
<input
type=
"text"
v-model=
"item2.Content"
class=
"input"
/>
<input
type=
"text"
v-model=
"item2.Content"
:placeholder=
"'请填写第 '+(index2+1)+' 空答案'"
class=
"input"
/>
</view>
</view>
</view>
...
...
@@ -148,13 +149,10 @@ export default {
}
.chooseNum
{
width
:
40
rpx
;
height
:
40
rpx
;
text-align
:
center
;
line-height
:
40
rpx
;
border-radius
:
50%
;
border
:
1px
solid
#e2e2e2
;
margin-right
:
30
rpx
;
margin-right
:
25
rpx
;
font-size
:
26
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
...
...
src/components/subject/SharingChoose.vue
View file @
13f26b85
...
...
@@ -120,8 +120,6 @@
this
.
$forceUpdate
();
},
onSelect
(
e
,
item3
){
console
.
log
(
e
,
'e'
);
console
.
log
(
item3
,
'item3'
);
item3
.
isShow
=
false
;
item3
.
Name
=
e
.
detail
.
name
;
},
...
...
src/components/subject/SortingProblem.vue
View file @
13f26b85
...
...
@@ -20,10 +20,22 @@
<view>
{{
index1
+
1
}}
、
</view>
<view
class=
"num"
v-html=
"item1.Title"
></view>
</view>
<view
class=
"chooseName"
>
<textarea
type=
"text"
v-model=
"item1.myAnswer"
class=
"input textarea"
placeholder=
"请填写答案"
placeholder-style=
"textarea-placeholder"
:maxlength=
"-1"
/>
</view>
<template
v-if=
"item1.QuestionContentObj[0]&&item1.QuestionContentObj[0].length>0"
>
<view
v-for=
"(item2, index2) in item1.QuestionContentObj[0]"
:key=
"index2"
>
<view
class=
"flex item2 flex_start_center"
>
<view
class=
"num"
>
{{
item2
.
Name
}}
</view>
<view
style=
"margin-left:5px;"
class=
"chooseName"
v-html=
"item2.Content"
></view>
</view>
</view>
</
template
>
<
template
v-if=
"item1.QuestionContentObj[1]&&item1.QuestionContentObj[1].length>0"
>
<view
v-for=
"(item3, index3) in item1.QuestionContentObj[1]"
:key=
"index3"
style=
"margin-bottom:20px;"
>
<van-button
type=
"primary"
size=
"small"
@
click=
"alertMenu(item3)"
>
{{
item3
.
Name
==
''
?
'请选择'
:
item3
.
Name
}}
</van-button>
<van-action-sheet
:show=
"item3.isShow"
@
click-overlay=
"hideVan(item3)"
:actions=
"getSelect(item1.QuestionContentObj[0])"
@
select=
"onSelect($event,item3)"
/>
</view>
</
template
>
</view>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
...
...
@@ -55,12 +67,12 @@
isLast
:
Boolean
},
setup
(
props
,
context
)
{
let
{
ctx
}
=
getCurrentInstance
();
props
.
paperData
.
DetailsList
.
forEach
((
item
,
index
)
=>
{
item
.
myAnswer
=
""
;
}
);
let
{
ctx
}
=
getCurrentInstance
();
if
(
props
.
paperData
.
DetailsList
&&
props
.
paperData
.
DetailsList
.
length
>
0
){
props
.
paperData
.
DetailsList
[
0
].
QuestionContentObj
[
1
].
forEach
((
item
,
index
)
=>
{
item
.
isShow
=
false
;
})
;
}
let
data
=
reactive
({
data
:
props
.
paperData
,
autoplay
:
false
,
...
...
@@ -89,7 +101,33 @@
if
(
e
.
detail
.
current
==
0
)
{
this
.
$emit
(
'getBeforeTopic'
);
}
}
},
alertMenu
(
item
){
item
.
isShow
=
true
;
this
.
$forceUpdate
();
console
.
log
(
item
,
'item'
);
},
//点击背景隐藏
hideVan
(
item
){
item
.
isShow
=
false
;
this
.
$forceUpdate
();
},
onSelect
(
e
,
item3
){
item3
.
isShow
=
false
;
item3
.
Name
=
e
.
detail
.
name
;
},
getSelect
(
item
){
let
Array
=
[]
if
(
item
&&
item
.
length
>
0
){
item
.
forEach
(
x
=>
{
let
obj
=
{
name
:
x
.
Name
}
Array
.
push
(
obj
);
})
}
return
Array
;
},
};
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
...
...
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