Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
9e990c87
Commit
9e990c87
authored
Nov 11, 2022
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
学习记录
parent
0e7872c2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
177 additions
and
2 deletions
+177
-2
App.vue
+11
-0
api/api.ts
+4
-0
pages.json
+9
-0
pages/index/index.vue
+1
-1
pages/myLearning/myLearning.vue
+151
-0
pages/personalCenter/personalCenter.vue
+1
-1
No files found.
App.vue
View file @
9e990c87
...
@@ -54,4 +54,15 @@
...
@@ -54,4 +54,15 @@
width
:
80%
;
width
:
80%
;
border-radius
:
20
rpx
;
border-radius
:
20
rpx
;
}
}
.container
uni-slider
{
margin
:
0
;
}
.container
uni-slider
.uni-slider-value
{
text-align
:
right
;
}
.noListTip
{
text-align
:
center
;
margin-top
:
10%
;
color
:
#999
;
}
</
style
>
</
style
>
api/api.ts
View file @
9e990c87
...
@@ -84,5 +84,9 @@ export default {
...
@@ -84,5 +84,9 @@ export default {
//邀请加盟与申请加盟保存接口
//邀请加盟与申请加盟保存接口
saveApplyInfo
(
params
){
saveApplyInfo
(
params
){
return
request
(
`
${
cffpURL
}
/partner/saveApplyInfo`
,
"POST"
,
params
)
return
request
(
`
${
cffpURL
}
/partner/saveApplyInfo`
,
"POST"
,
params
)
},
// 我的学习,学习记录
userStudyList
(
params
){
return
request
(
`
${
cffpURL
}
/study/userStudyList`
,
"POST"
,
params
)
}
}
}
}
pages.json
View file @
9e990c87
...
@@ -105,6 +105,15 @@
...
@@ -105,6 +105,15 @@
}
}
}
}
,{
"path"
:
"pages/myLearning/myLearning"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
}
],
],
//
"tabBar"
:
{
//
"tabBar"
:
{
//
"color"
:
"#7A7E83"
,
//
tab
上的文字默认颜色
//
"color"
:
"#7A7E83"
,
//
tab
上的文字默认颜色
...
...
pages/index/index.vue
View file @
9e990c87
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
{
key
:
'01'
,
name
:
'我的积分'
,
icon
:
'integral'
,
link
:
''
,
isOpen
:
false
},
{
key
:
'01'
,
name
:
'我的积分'
,
icon
:
'integral'
,
link
:
''
,
isOpen
:
false
},
{
key
:
'02'
,
name
:
'申请加盟'
,
icon
:
'applyJoin'
,
link
:
'../application-process/basic-info'
,
isOpen
:
true
},
{
key
:
'02'
,
name
:
'申请加盟'
,
icon
:
'applyJoin'
,
link
:
'../application-process/basic-info'
,
isOpen
:
true
},
{
key
:
'03'
,
name
:
'学习认证'
,
icon
:
'learningCertify'
,
link
:
''
,
isOpen
:
false
},
{
key
:
'03'
,
name
:
'学习认证'
,
icon
:
'learningCertify'
,
link
:
''
,
isOpen
:
false
},
{
key
:
'04'
,
name
:
'邀请加盟'
,
icon
:
'shareJoin'
,
link
:
'../inviteJoin/inviteJoin'
,
isOpen
:
fals
e
},
{
key
:
'04'
,
name
:
'邀请加盟'
,
icon
:
'shareJoin'
,
link
:
'../inviteJoin/inviteJoin'
,
isOpen
:
tru
e
},
{
key
:
'05'
,
name
:
'我的分享'
,
icon
:
'share'
,
link
:
''
,
isOpen
:
false
},
{
key
:
'05'
,
name
:
'我的分享'
,
icon
:
'share'
,
link
:
''
,
isOpen
:
false
},
{
key
:
'06'
,
name
:
'我的团队'
,
icon
:
'team'
,
link
:
''
,
isOpen
:
false
},
{
key
:
'06'
,
name
:
'我的团队'
,
icon
:
'team'
,
link
:
''
,
isOpen
:
false
},
{
key
:
'07'
,
name
:
'更多功能'
,
icon
:
'more'
,
link
:
'../personalCenter/personalCenter'
,
isOpen
:
true
}
{
key
:
'07'
,
name
:
'更多功能'
,
icon
:
'more'
,
link
:
'../personalCenter/personalCenter'
,
isOpen
:
true
}
...
...
pages/myLearning/myLearning.vue
0 → 100644
View file @
9e990c87
<
template
>
<view
class=
"container"
>
<!-- tab选项 -->
<view
class=
"tabTitle"
>
<text
:class=
"
{'actived': tabType===1}" @click="switchTab(1)">学习记录
</text>
<text
:class=
"
{'actived': tabType===2}" @click="switchTab(2)">学习统计
</text>
</view>
<!-- tab内容 -->
<view
class=
"tabContent"
>
<view
class=
"learningRecordContainer"
v-if=
"tabType===1"
>
<h3
class=
"noListTip"
>
暂无学习记录!
</h3>
<view
class=
"learningRecordItem"
v-for=
"item in userStudyList"
>
<view
class=
"dateBox"
>
{{
item
.
studyTime
}}
</view>
<!-- 课程详情 -->
<view
class=
"courseInfoContent"
v-for=
"subItem in item.userStudyInfos"
:key=
"subItem.fileId"
>
<view
class=
"thumbnailBox"
>
<img
:src=
"subItem.displayImage"
alt=
""
>
</view>
<view
class=
"courseDetailBox"
>
<h4>
{{
subItem
.
fileTitle
}}
</h4>
<view
class=
"summaryBox"
>
<text>
学习时长:
{{
subItem
.
studyDuration
}}
分钟
</text>
</view>
<view
class=
"processBox"
>
<view
class=
"sliderBox"
>
<slider
:value=
"subItem.progressBar"
show-value
block-size=
"14"
disabled
activeColor=
"#20269B"
/>
</view>
<view>
%
</view>
</view>
<view
class=
"dataBox"
>
<text>
可观看截至:
{{
subItem
.
effectiveEndDate
}}
</text>
</view>
</view>
</view>
</view>
</view>
<view
class=
"learningStatisticsContainer"
v-if=
"tabType===2"
>
</view>
</view>
</view>
</
template
>
<
script
>
import
api
from
"@/api/api"
;
export
default
{
data
()
{
return
{
tabType
:
1
,
userStudyList
:[],
userId
:
null
}
},
methods
:
{
switchTab
(
type
){
this
.
tabType
=
type
;
if
(
type
===
1
){
}
else
{
}
},
userStudyList
(){
api
.
userStudyList
({
userId
:
this
.
userId
}).
then
(
res
=>
{
if
(
res
[
'success'
]){
this
.
userStudyList
=
res
[
'data'
][
'userStudyTimeInfos'
];
}
console
.
log
(
res
)
})
}
},
onLoad
()
{
},
mounted
()
{
}
}
</
script
>
<
style
lang=
"scss"
>
.container
{
position
:
relative
;
height
:
100%
;
.tabTitle{
color
:
#666666
;
background-color
:
#fff
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-around
;
padding
:
30
rpx
60
rpx
0
;
text{
&.actived{
color
:
#333
;
border-bottom
:
4
rpx
solid
#20269B
;
}
}
}
.learningRecordContainer
{
padding
:
20
rpx
30
rpx
;
.dateBox{
padding-left
:
16
rpx
;
}
.courseInfoContent
{
display
:
flex
;
align-items
:
center
;
background-color
:
#fff
;
border-radius
:
20
rpx
;
margin-bottom
:
10
rpx
;
padding
:
5
rpx
10
rpx
;
.thumbnailBox{
width
:
200
rpx
;
height
:
200
rpx
;
background-color
:
#888
;
margin-right
:
26
rpx
;
img{
max-width
:
100%
;
height
:
auto
;
}
}
.courseDetailBox
{
width
:
100%
;
color
:
#333
;
h4{
font-size
:
32
rpx
;
}
.summaryBox
{
font-size
:
24
rpx
;
margin
:
10
rpx
0
;
text{
margin-right
:
20
rpx
;
}
}
.processBox
{
display
:
flex
;
justify-content
:
flex-start
;
font-size
:
28
rpx
;
color
:
#888
;
.sliderBox{
width
:
100%
;
}
}
.dataBox
{
text{
font-size
:
28
rpx
;
}
}
}
}
}
}
</
style
>
pages/personalCenter/personalCenter.vue
View file @
9e990c87
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
},
},
{
id
:
'02'
,
categoryName
:
'活动管理'
,
{
id
:
'02'
,
categoryName
:
'活动管理'
,
children
:[
children
:[
{
title
:
'我的学习'
,
icon
:
'myLearning'
,
link
:
''
,
isOpen
:
true
,
isShow
:
true
},
{
title
:
'我的学习'
,
icon
:
'myLearning'
,
link
:
'
/pages/myLearning/myLearning
'
,
isOpen
:
true
,
isShow
:
true
},
{
title
:
'学习认证'
,
icon
:
'learningCertify'
,
link
:
''
,
isOpen
:
true
,
isShow
:
true
},
{
title
:
'学习认证'
,
icon
:
'learningCertify'
,
link
:
''
,
isOpen
:
true
,
isShow
:
true
},
{
title
:
'我的分享'
,
icon
:
'share'
,
link
:
''
,
isOpen
:
true
,
isShow
:
true
}
{
title
:
'我的分享'
,
icon
:
'share'
,
link
:
''
,
isOpen
:
true
,
isShow
:
true
}
],
],
...
...
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