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
0e261c86
Commit
0e261c86
authored
Sep 15, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ca7b0e67
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
561 deletions
+6
-561
pages.json
src/pages.json
+0
-2
activeList.vue
src/pages/active/activeList.vue
+0
-57
chapter.vue
src/pages/course/chapter.vue
+2
-4
course.vue
src/pages/course/course.vue
+2
-3
answerSheet.vue
src/pages/exam/answerSheet.vue
+0
-187
subject1.vue
src/pages/exam/subject1.vue
+0
-307
index.vue
src/pages/index/index.vue
+2
-1
No files found.
src/pages.json
View file @
0e261c86
...
@@ -56,8 +56,6 @@
...
@@ -56,8 +56,6 @@
"root"
:
"pages/exam"
,
//考试分包
"root"
:
"pages/exam"
,
//考试分包
"pages"
:
[{
"pages"
:
[{
"path"
:
"examPaperList"
//试卷列表
"path"
:
"examPaperList"
//试卷列表
},
{
"path"
:
"answerSheet"
//答题卡
},
{
},
{
"path"
:
"examPaper"
,
//试卷内容
"path"
:
"examPaper"
,
//试卷内容
"style"
:
{
"style"
:
{
...
...
src/pages/active/activeList.vue
View file @
0e261c86
<
template
>
<
template
>
<view
class=
"course-box"
>
<view
class=
"course-box"
>
<van-toast
id=
"van-toast"
/>
<van-toast
id=
"van-toast"
/>
<view
class=
"top-bar flex"
>
<view
class=
"top-left flex flex_between_center"
>
<view
class=
"top-title"
>
电子合同
</view>
<van-image
width=
"58rpx"
height=
"66rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/icon5.png"
/>
</view>
<view
class=
"top-right flex_grow"
>
<view
class=
"course-name one_line"
>
{{
CourseName
}}
</view>
<view
class=
"section-name one_line"
>
{{
data
.
length
}}
个合同
</view>
</view>
</view>
<van-empty
description=
"暂无数据"
v-if=
"data.length === 0"
/>
<van-empty
description=
"暂无数据"
v-if=
"data.length === 0"
/>
<view
<view
v-for=
"(item, index) in data"
v-for=
"(item, index) in data"
...
@@ -102,45 +87,6 @@ export default {
...
@@ -102,45 +87,6 @@ export default {
.course-box
{
.course-box
{
padding
:
30
rpx
;
padding
:
30
rpx
;
}
}
.top-bar
{
height
:
120
rpx
;
margin-bottom
:
28
rpx
;
}
.top-left
{
width
:
220
rpx
;
height
:
120
rpx
;
background-color
:
#d9faf1
;
border-radius
:
20
rpx
;
margin-right
:
30
rpx
;
box-sizing
:
border-box
;
padding
:
0
20
rpx
;
}
.top-title
{
font-size
:
28
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#0f1b35
;
}
.top-right
{
height
:
100%
;
}
.course-name
{
box-sizing
:
border-box
;
font-size
:
30
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#111111
;
height
:
50%
;
line-height
:
70
rpx
;
}
.section-name
{
font-size
:
24
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#999999
;
height
:
50%
;
line-height
:
50
rpx
;
}
.data-item
{
.data-item
{
margin-top
:
30
rpx
;
margin-top
:
30
rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
@@ -169,7 +115,4 @@ export default {
...
@@ -169,7 +115,4 @@ export default {
color
:
#999999
;
color
:
#999999
;
margin-left
:
30
rpx
;
margin-left
:
30
rpx
;
}
}
/
deep
/
.van-skeleton
{
padding
:
0
;
}
</
style
>
</
style
>
src/pages/course/chapter.vue
View file @
0e261c86
...
@@ -42,11 +42,9 @@ export default {
...
@@ -42,11 +42,9 @@ export default {
uni
.
setNavigationBarTitle
({
uni
.
setNavigationBarTitle
({
title
:
"章节学习内容"
,
title
:
"章节学习内容"
,
});
});
let
{
proxy
}
=
getCurrentInstance
();
let
data
=
JSON
.
parse
(
decodeURIComponent
(
options
.
con
));
let
data
=
JSON
.
parse
(
decodeURIComponent
(
options
.
con
));
proxy
.
data
.
node
=
data
;
this
.
data
.
node
=
data
;
proxy
.
data
.
richText
=
decodeURIComponent
(
data
.
ChapterContent
);
this
.
data
.
richText
=
decodeURIComponent
(
data
.
ChapterContent
);
console
.
log
(
44
,
proxy
.
data
.
node
);
},
},
};
};
</
script
>
</
script
>
...
...
src/pages/course/course.vue
View file @
0e261c86
...
@@ -102,9 +102,8 @@ export default {
...
@@ -102,9 +102,8 @@ export default {
uni
.
setNavigationBarTitle
({
uni
.
setNavigationBarTitle
({
title
:
"课程"
,
title
:
"课程"
,
});
});
let
{
proxy
}
=
getCurrentInstance
();
this
.
msg
.
CourseId
=
options
.
id
;
proxy
.
msg
.
CourseId
=
options
.
id
;
this
.
getdata
();
proxy
.
getdata
();
},
},
};
};
</
script
>
</
script
>
...
...
src/pages/exam/answerSheet.vue
deleted
100644 → 0
View file @
ca7b0e67
<
template
>
<view>
<view
class=
"answer-sheets"
>
<view
v-for=
"(item, index) in questionList"
:key=
"index"
class=
"item"
>
<view
class=
"name"
>
{{
changeNumToHan
(
index
+
1
)
}}
、
{{
item
.
GroupName
}}
</view
>
<view
class=
"flex flex_wrap"
>
<view
v-for=
"(item1, index1) in item.DetailsList"
:key=
"index1"
class=
"flex flex_wrap"
>
<view
class=
"item1-1"
v-if=
"
item1.QuestionTypeKey === 'reading-comprehensio' ||
item1.QuestionTypeKey === 'listening'
"
>
{{
index1
+
1
}}
.
</view
>
<view
class=
"item1"
v-else
@
click=
"jumpPage(index, index1)"
>
{{
index1
+
1
}}
</view>
<view
v-if=
"
item1.QuestionTypeKey === 'reading-comprehensio' ||
item1.QuestionTypeKey === 'listening'
"
class=
"flex flex_wrap"
>
<view
v-for=
"(item2, index2) in item1.QuestionContentObj"
:key=
"index2"
>
<view
class=
"item1"
>
{{
index2
+
1
}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"submitBox"
>
<view
class=
"submit"
>
立即提交
</view>
</view>
<van-toast
id=
"van-toast"
/>
</view>
</
template
>
<
script
>
import
{
ref
,
reactive
,
toRefs
,
toRef
,
getCurrentInstance
,
watch
,
computed
,
onMounted
,
}
from
"vue"
;
import
{
changeNumToHan
}
from
"../../utils/index"
;
export
default
{
setup
()
{
let
paperData
=
uni
.
getStorageSync
(
"paperData"
);
console
.
log
(
66
,
paperData
);
let
Gid
=
uni
.
getStorageSync
(
"userInfo"
).
Id
;
let
data
=
reactive
({
msg
:
{
GuestId
:
Gid
,
PaperId
:
5
,
PublishId
:
1
},
questionList
:
paperData
.
Paper
.
GroupList
,
});
let
methods
=
{
changeNumToHan
,
jumpPage
(
index
,
index1
)
{
uni
.
navigateTo
({
url
:
"/pages/exam/examPaper?index="
+
index
+
"&&index1="
+
(
index1
+
1
),
});
},
// async getPaperDetail() {
// let res = await getPaperDetail(data.msg);
// if (res) {
// data.questionList = res.Data.Paper.GroupList;
// console.log(90, res.Data.Paper.GroupList);
// }
// },
};
return
{
...
toRefs
(
data
),
...
methods
,
};
},
onLoad
()
{
uni
.
setNavigationBarTitle
({
title
:
"答题卡"
,
});
},
};
</
script
>
<
style
scoped
>
.answer-sheets
{
box-sizing
:
border-box
;
padding
:
30
rpx
;
height
:
calc
(
100vh
-
150
rpx
);
overflow-y
:
auto
;
}
.name
,
.num
{
font-size
:
28
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
800
;
color
:
#111111
;
}
.num
{
width
:
100
rpx
;
text-align
:
center
;
}
.item
{
margin-bottom
:
20
rpx
;
}
.item1-1
{
width
:
690
rpx
;
margin
:
22
rpx
0
0
0
;
font-size
:
26
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
600
;
color
:
#111111
;
}
.item1
{
width
:
44
rpx
;
height
:
44
rpx
;
border
:
1px
solid
#e2e2e2
;
border-radius
:
50%
;
margin
:
22
rpx
;
font-size
:
26
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
600
;
color
:
#111111
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
box-sizing
:
border-box
;
}
.item2
{
width
:
44
rpx
;
height
:
44
rpx
;
border
:
1px
solid
#e2e2e2
;
border-radius
:
50%
;
text-align
:
center
;
line-height
:
44
rpx
;
margin-right
:
55
rpx
;
font-size
:
26
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#111111
;
}
.choose
{
background-color
:
#00acf9
!important
;
color
:
#ffffff
!important
;
}
.submitBox
{
width
:
750
rpx
;
height
:
150
rpx
;
background-color
:
#e2e2e2
;
position
:
fixed
;
left
:
0
;
bottom
:
0
;
box-sizing
:
border-box
;
padding-top
:
40
rpx
;
}
.submit
{
width
:
600
rpx
;
height
:
70
rpx
;
border-radius
:
35
rpx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
background-color
:
#00acf9
;
font-size
:
28
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#fff
;
margin
:
0
auto
;
}
</
style
>
src/pages/exam/subject1.vue
deleted
100644 → 0
View file @
ca7b0e67
<
template
>
<!-- 选择题 -->
<view>
<view
v-for=
"(item, index) in questionList"
:key=
"index"
class=
"item"
>
<view
class=
"name"
>
{{
item
.
name
}}
</view>
<view
v-for=
"(item1, index1) in item.children"
:key=
"item1.id"
class=
"item1"
>
<view
class=
"num"
>
{{
item1
.
num
}}
</view>
<view
v-for=
"(item2, index2) in item1.children"
:key=
"item2.id"
class=
"flex item2 flex_start_center"
v-if=
"item.type === 1"
>
<view
class=
"chooseNum"
:class=
"
{ choose: item1.choose === item2.chooseNum }"
@click="change(item.type, index, index1, index2)"
>
{{
item2
.
chooseNum
}}
</view>
<view
class=
"chooseName"
@
click=
"change(item.type, index, index1, index2)"
>
{{
item2
.
itemName
}}
</view
>
</view>
<view
v-for=
"(item2, index2) in item1.children"
:key=
"item2.id"
class=
"item2 flex flex_start_center"
v-if=
"item.type === 2"
>
<view
class=
"chooseNum"
:class=
"
{ choose: item1.choose.find((e) => e == item2.chooseNum) }"
@click="change(item.type, index, index1, index2)"
>
{{
item2
.
chooseNum
}}
</view>
<view
class=
"chooseName"
@
click=
"change(item.type, index, index1, index2)"
>
{{
item2
.
itemName
}}
</view
>
</view>
</view>
</view>
<van-toast
id=
"van-toast"
/>
</view>
</
template
>
<
script
>
import
{
ref
,
reactive
,
toRefs
,
toRef
,
getCurrentInstance
,
watch
,
computed
,
onMounted
,
}
from
"vue"
;
export
default
{
setup
(
props
,
context
)
{
// let { refs } = getCurrentInstance();
let
data
=
reactive
({
questionList
:
[
{
name
:
"一、单选题"
,
type
:
1
,
children
:
[
{
num
:
"1、真実はいつも一つ?"
,
choose
:
"A"
,
children
:
[
{
chooseNum
:
"A"
,
itemName
:
"答案1"
,
},
{
chooseNum
:
"B"
,
itemName
:
"答案2"
,
},
{
chooseNum
:
"c"
,
itemName
:
"答案3"
,
},
{
chooseNum
:
"D"
,
itemName
:
"答案4"
,
},
],
},
{
num
:
"2、"
,
choose
:
0
,
children
:
[
{
chooseNum
:
"A"
,
itemName
:
"答案1"
,
},
{
chooseNum
:
"B"
,
itemName
:
"答案2"
,
},
{
chooseNum
:
"c"
,
itemName
:
"答案3"
,
},
{
chooseNum
:
"D"
,
itemName
:
"答案4"
,
},
],
},
{
num
:
3
,
choose
:
0
,
children
:
[
{
chooseNum
:
"A"
,
itemName
:
"答案1"
,
},
{
chooseNum
:
"B"
,
itemName
:
"答案2"
,
},
{
chooseNum
:
"c"
,
itemName
:
"答案3"
,
},
{
chooseNum
:
"D"
,
itemName
:
"答案4"
,
},
],
},
],
},
{
name
:
"二、多选题"
,
type
:
2
,
children
:
[
{
num
:
"1、真実はいつも二つ?"
,
choose
:
[],
children
:
[
{
chooseNum
:
"A"
,
itemName
:
"答案1"
,
},
{
chooseNum
:
"B"
,
itemName
:
"答案2"
,
},
{
chooseNum
:
"c"
,
itemName
:
"答案3"
,
},
{
chooseNum
:
"D"
,
itemName
:
"答案4"
,
},
],
},
{
num
:
2
,
choose
:
[],
children
:
[
{
chooseNum
:
"A"
,
itemName
:
"答案1"
,
},
{
chooseNum
:
"B"
,
itemName
:
"答案2"
,
},
{
chooseNum
:
"c"
,
itemName
:
"答案3"
,
},
{
chooseNum
:
"D"
,
itemName
:
"答案4"
,
},
],
},
{
num
:
3
,
choose
:
[],
children
:
[
{
chooseNum
:
"A"
,
itemName
:
"答案1"
,
},
{
chooseNum
:
"B"
,
itemName
:
"答案2"
,
},
{
chooseNum
:
"c"
,
itemName
:
"答案3"
,
},
{
chooseNum
:
"D"
,
itemName
:
"答案4"
,
},
],
},
],
},
],
});
let
methods
=
{
jumpPage
()
{
uni
.
navigateTo
({
url
:
"/pages/exam/examPaper"
,
});
},
back
()
{
uni
.
navigateBack
();
},
//选题
change
(
type
,
index
,
index1
,
index2
)
{
if
(
type
===
1
)
{
data
.
questionList
[
index
].
children
[
index1
].
choose
=
data
.
questionList
[
index
].
children
[
index1
].
children
[
index2
].
chooseNum
;
}
else
if
(
type
===
2
)
{
let
choose
=
data
.
questionList
[
index
].
children
[
index1
].
choose
;
let
res
=
data
.
questionList
[
index
].
children
[
index1
].
children
[
index2
]
.
chooseNum
;
let
find
=
choose
.
indexOf
(
res
);
if
(
find
==
-
1
)
{
choose
.
push
(
res
);
}
else
{
choose
.
splice
(
find
,
1
);
}
console
.
log
(
230
,
choose
);
}
},
};
let
change
=
(
type
,
index
,
index1
,
index2
)
=>
{
console
.
log
(
158
,
type
);
};
onMounted
(()
=>
{});
return
{
...
toRefs
(
data
),
...
methods
,
};
},
onLoad
()
{},
};
</
script
>
<
style
scoped
>
.name
{
font-size
:
28
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
800
;
color
:
#111111
;
}
.num
{
font-size
:
26
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#111111
;
}
.item
{
margin-bottom
:
40
rpx
;
}
.item1
{
margin
:
25
rpx
0
;
align-items
:
center
;
}
.item2
{
padding-left
:
25
rpx
;
margin
:
30
rpx
0
;
}
.choose
{
background-color
:
#00acf9
!important
;
color
:
#ffffff
!important
;
}
.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
;
font-size
:
26
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#111111
;
}
.chooseName
{
font-size
:
24
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#111111
;
}
</
style
>
\ No newline at end of file
src/pages/index/index.vue
View file @
0e261c86
...
@@ -461,7 +461,8 @@ export default {
...
@@ -461,7 +461,8 @@ export default {
border-radius
:
20
rpx
;
border-radius
:
20
rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
/* background-color: #333333; */
/* background-color: #333333; */
box-shadow
:
0
rpx
10
rpx
30
rpx
0
rpx
rgba
(
36
,
36
,
36
,
0.2
);
box-shadow
:
0
rpx
10
rpx
10
rpx
0
rpx
rgba
(
36
,
36
,
36
,
0.2
);
border
:
1px
solid
rgba
(
36
,
36
,
36
,
0.05
);
margin-right
:
30
rpx
;
margin-right
:
30
rpx
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-position
:
center
;
background-position
:
center
;
...
...
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