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
ba6d143e
Commit
ba6d143e
authored
Jan 10, 2022
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/xiangwei/educationstu
into master
parents
e4bef4da
df37306d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
243 additions
and
2 deletions
+243
-2
exam.js
src/api/exam.js
+12
-0
study.js
src/api/study.js
+12
-0
examNotice.vue
src/components/subject/examNotice.vue
+16
-1
pages.json
src/pages.json
+3
-1
courseList.vue
src/pages/study/courseList.vue
+200
-0
No files found.
src/api/exam.js
View file @
ba6d143e
...
...
@@ -34,4 +34,16 @@ export function submitPaper(data) {
method
:
'post'
,
data
})
}
/**
* 记录考试时间
* @param {JSON参数} data
*/
export
function
SetStuExamStartTime
(
data
)
{
return
request
({
url
:
'/AppletIndex/SetStuExamStartTime'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/api/study.js
View file @
ba6d143e
...
...
@@ -10,6 +10,18 @@ export function getMyStudyCourseList(data) {
data
})
}
/**
* 获取我的课程章节列表
* @param {JSON参数} data
*/
export
function
GetMyStudyCourseChapterList
(
data
)
{
return
request
({
url
:
'/AppletIndex/GetMyStudyCourseChapterList'
,
method
:
'post'
,
data
})
}
/**
* 获取学习中心详情
* @param {JSON参数} data
...
...
src/components/subject/examNotice.vue
View file @
ba6d143e
...
...
@@ -73,7 +73,10 @@
computed
,
onMounted
,
}
from
"vue"
;
import
{
getPaperDetail
}
from
"../../api/exam"
;
import
{
getPaperDetail
,
SetStuExamStartTime
}
from
"../../api/exam"
;
export
default
{
props
:
{
ExamStatus
:
Number
,
...
...
@@ -94,6 +97,18 @@
EnterExam
()
{
if
(
!
data
.
canClick
)
return
ctx
.
emit
(
"hideNotice"
);
methods
.
SetStartTime
();
},
async
SetStartTime
(){
let
msg
=
{
PublishId
:
props
.
msg
.
PublishId
,
GuestId
:
props
.
msg
.
GuestId
,
PaperId
:
props
.
msg
.
PaperId
};
let
res
=
await
SetStuExamStartTime
(
msg
);
if
(
res
.
Code
==
1
)
{
}
},
getNowTime
()
{
let
dateTime
;
...
...
src/pages.json
View file @
ba6d143e
...
...
@@ -14,7 +14,9 @@
"style"
:
{
"navigationStyle"
:
"custom"
}
},
{
},{
"path"
:
"pages/study/courseList"
},{
"path"
:
"pages/login/login"
,
"style"
:
{
"navigationStyle"
:
"custom"
...
...
src/pages/study/courseList.vue
0 → 100644
View file @
ba6d143e
<
style
scoped
>
.studyCourse
{
/* width: 100%; */
/* height: 100vh; */
background
:
#F5F5F5
;
padding
:
32
rpx
;
}
.Course_Top
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
.CourseBan
{
color
:
#111111
;
font-size
:
34
rpx
;
}
.CourseTotal
{
font-size
:
23
rpx
;
color
:
#999999
;
}
.Course_Bottom
{
min-height
:
80vh
;
background-color
:
#FFFFFF
;
border-radius
:
24
rpx
;
margin-top
:
32
rpx
;
}
.Course_List
{
width
:
100%
;
height
:
auto
;
border-bottom
:
1px
solid
#F5F5F5
;
}
.CourseList_One
{
height
:
200
rpx
;
display
:
flex
;
align-items
:
center
;
background-color
:
#FFFFFF
;
padding
:
0
30
rpx
;
}
.Course_Name
{
color
:
#111111
;
font-weight
:
bold
;
font-size
:
30
rpx
;
}
.Course_Index
{
color
:
#C1C1C1
;
font-size
:
22
rpx
;
margin-top
:
28
rpx
;
}
.Course_SeName
{
width
:
50%
;
margin
:
0
20
rpx
;
}
.Course_Two
{
background-color
:
#EBEBEB
;
height
:
200
rpx
;
width
:
100%
;
display
:
flex
;
align-items
:
center
;
}
.Course_Two
>
view
{
flex
:
0
0
33.3%
;
text-align
:
center
;
}
.Course_Two
img
{
width
:
90
rpx
;
height
:
90
rpx
;
}
.Course_Opera
{
color
:
#666666
;
font-size
:
22
rpx
;
text-align
:
center
;
margin-top
:
5
rpx
;
}
</
style
>
<
template
>
<view
class=
"studyCourse"
>
<view
class=
"Course_Top"
>
<view
class=
"CourseBan"
>
《韩语兴趣入门班》
</view>
<view
class=
"CourseTotal"
>
共 226课
</view>
</view>
<view
class=
"Course_Bottom"
>
<view
class=
"Course_List"
v-for=
"(item,index) in ChapterList"
:key=
"index"
>
<view
class=
"CourseList_One"
@
click=
"getReview(index)"
>
<view>
<van-circle
v-model=
"currentRate"
layer-color=
"#E4E5FB"
:size=
"70"
color=
"#4C50E7"
:rate=
"100"
:speed=
"100"
:text=
"getSpeed(currentRate)"
/>
</view>
<view
class=
"Course_SeName"
>
<view
class=
"Course_Name"
>
{{
item
.
ChapterTree
.
ChapterName
}}
</view>
<view
class=
"Course_Index"
>
第
{{
item
.
ChapterTree
.
ChapterNo
}}
课
</view>
</view>
<view>
<van-rate
v-model=
"value"
:size=
"20"
:disabled=
"true"
color=
"#ffd21e"
:count=
"3"
void-icon=
"star"
void-color=
"#eee"
/>
</view>
</view>
<view
class=
"Course_Two"
v-if=
"item.isShow"
>
<view>
<view>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/review.png"
alt=
""
/>
</view>
<view
class=
"Course_Opera"
>
课程回顾
</view>
</view>
<view>
<view>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/fuxi.png"
alt=
""
/>
</view>
<view
class=
"Course_Opera"
>
复习
</view>
</view>
<view>
<view>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/ceshi.png"
alt=
""
/>
</view>
<view
class=
"Course_Opera"
>
测试
</view>
</view>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
import
{
ref
,
reactive
,
toRefs
,
toRef
,
getCurrentInstance
,
watch
,
computed
,
onMounted
,
provide
,
}
from
"vue"
;
import
{
GetMyStudyCourseChapterList
,
//课程列表
}
from
"../../api/study.js"
;
export
default
{
components
:
{},
onLoad
(
options
)
{
uni
.
setNavigationBarTitle
({
title
:
"所有单词"
,
});
},
setup
(
props
)
{
let
data
=
reactive
({
ChapterList
:
[],
//课程列表
statusBarHeight
:
0
,
currentRate
:
90
,
value
:
2
})
let
methods
=
{
async
getChapterList
()
{
let
msg
=
{
ClassId
:
5
,
CourseId
:
1
};
let
res
=
await
GetMyStudyCourseChapterList
(
msg
);
if
(
res
.
Code
==
1
)
{
console
.
log
(
res
)
data
.
ChapterList
=
res
.
Data
;
data
.
ChapterList
.
forEach
(
x
=>
{
x
.
isShow
=
false
})
}
},
getSpeed
(
score
){
if
(
score
<
100
){
return
score
+
'%'
}
else
{
return
'已学完'
}
},
//点击展开
getReview
(
index
){
data
.
ChapterList
.
forEach
((
x
,
i
)
=>
{
if
(
index
!=
i
){
x
.
isShow
=
false
;
}
})
data
.
ChapterList
[
index
].
isShow
=!
data
.
ChapterList
[
index
].
isShow
;
}
}
onMounted
(()
=>
{
that
.
getChapterList
()
//我的课程章节列表
data
.
statusBarHeight
=
uni
.
getSystemInfoSync
().
statusBarHeight
;
})
let
that
=
methods
;
return
{
...
toRefs
(
data
),
...
methods
,
};
}
}
</
script
>
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