Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
3bf3b47b
Commit
3bf3b47b
authored
Oct 24, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c662d6c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
18 deletions
+36
-18
mystudy.vue
pages/school/mystudy/mystudy.vue
+36
-18
No files found.
pages/school/mystudy/mystudy.vue
View file @
3bf3b47b
...
...
@@ -3,6 +3,7 @@
<view
>
<view
class=
"headStatus"
v-if=
"scrollTop>180"
:style=
"[
headStyle,
]"
...
...
@@ -15,6 +16,18 @@
</view>
<view
class=
"studyBox"
:style=
"
{'padding-top':scrollHeight}">
<view
class=
"headStatus2"
:style=
"[
headStyle,
]"
>
<view
class=
"arrow"
@
click=
"goback"
>
<u-icon
name=
"arrow-left"
size=
"48"
color=
"#FFF"
></u-icon>
</view>
<view
class=
"title"
style=
"color: #FFF;"
>
{{
pageTitle
}}
</view>
<view
class=
"arrow"
></view>
</view>
<view
class=
"plot"
>
<canvas
canvas-id=
"canvasLineA"
id=
"canvasLineA"
class=
"charts"
></canvas>
<image
mode=
"aspectFill"
class=
"plotimg"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mystudyrw.png"
></image>
...
...
@@ -117,11 +130,6 @@
pricecolor
:
''
,
secondary
:
''
,
paddingHTop
:
0
,
list
:
[{
name
:
'学习概况'
},
{
name
:
'课程缓存'
}],
windowWidth
:
0
,
scrollTop
:
0
,
headStyle
:{},
...
...
@@ -169,7 +177,7 @@
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
this
.
getHeadHeight
();
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
!
this
.
u
)
{
this
.
u
=
{
...
...
@@ -185,23 +193,18 @@
}
},
onPageScroll
(
e
){
this
.
scrollTop
=
e
.
scrollTop
},
methods
:{
getHeadHeight
()
{
let
that
=
this
;
const
query
=
uni
.
createSelectorQuery
().
in
(
this
);
query
.
select
(
".headStatus"
)
.
boundingClientRect
((
data
)
=>
{
console
.
log
(
data
)
that
.
scrollHeight
=
data
.
height
+
"px"
;
})
.
exec
();
},
goback
(){
uni
.
navigateBack
({})
},
reloadUserinfo
()
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
getMyStudyTime
()
//我的学习时间
this
.
getMyRecentStudyPageList
()
//最近学习
this
.
getMyOrderStudyRecordPageList
()
//我的报名记录列表
},
getMyStudyTime
(){
...
...
@@ -335,6 +338,21 @@
background-size
:
cover
;
z-index
:
999
;
}
.mystudy
.headStatus2
{
overflow
:
hidden
;
position
:
relative
;
width
:
100vw
;
padding-bottom
:
10px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
background
:
#FFF
;
background-image
:
url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mystudybg.png')
;
background-repeat
:
no-repeat
;
background-size
:
cover
;
z-index
:
999
;
}
.mystudy
.arrow
{
height
:
24px
;
margin
:
5px
;
...
...
@@ -373,7 +391,7 @@
border-top-left-radius
:
30px
;
border-top-right-radius
:
30px
;
margin-top
:
-24px
;
z-index
:
99
999
;
z-index
:
99
5
;
}
.mystudy
.s-b-time
{
width
:
100%
;
...
...
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