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
c662d6c6
Commit
c662d6c6
authored
Oct 23, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a2dc5494
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
46 deletions
+18
-46
mystudy.vue
pages/school/mystudy/mystudy.vue
+18
-46
No files found.
pages/school/mystudy/mystudy.vue
View file @
c662d6c6
<
template
>
<scroll-view
class=
"mystudy"
:scroll-y=
"true"
@
scroll=
"scrollHandler"
@
scrolltoupper=
"scrollTopHandler"
>
<view
class=
"mystudy"
>
<view
>
<view
class=
"headStatus"
v-if=
"scrollTop > 180"
:style=
"[
headStyle,
]"
>
<view
class=
"arrow"
@
click=
"goback"
>
...
...
@@ -20,20 +14,8 @@
<view
class=
"arrow"
></view>
</view>
<view
class=
"studyBox"
>
<view
class=
"studyBox"
:style=
"
{'padding-top':scrollHeight}"
>
<view
class=
"plot"
>
<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>
<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>
...
...
@@ -116,7 +98,7 @@
</view>
</view>
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
'goback'
></auth>
</
scroll-
view>
</view>
</
template
>
<
script
>
...
...
@@ -155,7 +137,6 @@
pixelRatio
:
1
,
textarea
:
''
,
scrollHeight
:
0
,
scrollTop
:
0
,
}
},
components
:
{
...
...
@@ -188,6 +169,7 @@
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
this
.
getHeadHeight
();
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
!
this
.
u
)
{
this
.
u
=
{
...
...
@@ -200,16 +182,20 @@
this
.
getMyStudyTime
()
//我的学习时间
this
.
getMyRecentStudyPageList
()
//最近学习
this
.
getMyOrderStudyRecordPageList
()
//我的报名记录列表
}
},
methods
:{
scrollHandler
(
e
)
{
this
.
scrollTop
=
e
.
detail
.
scrollTop
;
//this.$forceUpdate();
},
scrollTopHandler
()
{
this
.
scrollTop
=
0
;
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
({})
...
...
@@ -335,7 +321,7 @@
width
:
140vw
;
padding-right
:
40vw
;
padding-bottom
:
10px
;
position
:
fixed
;
position
:
fixed
;
left
:
0
;
right
:
0
;
top
:
0
;
...
...
@@ -349,21 +335,10 @@
background-size
:
cover
;
z-index
:
999
;
}
.headStatus2
{
width
:
140vw
;
padding-right
:
40vw
;
padding-bottom
:
10px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
}
.mystudy
.arrow
{
height
:
24px
;
margin
:
5px
;
width
:
24px
;
}
.mystudy
.studyBox
{
width
:
100%
;
...
...
@@ -373,11 +348,8 @@
}
.mystudy
.plot
{
width
:
750
upx
;
height
:
54
0
upx
;
height
:
40
0
upx
;
position
:
relative
;
background-image
:
url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mystudybg.png')
;
background-repeat
:
no-repeat
;
background-size
:
cover
;
}
.plot
.charts
{
width
:
750
upx
;
...
...
@@ -401,7 +373,7 @@
border-top-left-radius
:
30px
;
border-top-right-radius
:
30px
;
margin-top
:
-24px
;
z-index
:
99
7
;
z-index
:
99
999
;
}
.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