Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
0c23764b
Commit
0c23764b
authored
Feb 12, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
15f3f34d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
143 additions
and
89 deletions
+143
-89
list.vue
pages/coupon/list/list.vue
+143
-89
No files found.
pages/coupon/list/list.vue
View file @
0c23764b
<
template
>
<view
class=
"couponlistStyle height100vh column"
>
<scroll-view
:scroll-y=
"true"
@
scroll=
"scrollHandler"
@
scrolltoupper=
"scrollTopHandler"
style=
"height: 100vh"
>
<view
class=
"headStatus"
v-if=
"scrollTop > 50"
:style=
"[
headStyle,
{
zIndex: scrollTop
<
10
?
'
unset
'
:
2
,
opacity:
scrollTop
<
10
?
'
100
'
:
scrollTop
,
},
]"
>
<view
class=
"title"
v-if=
"scrollTop > 50"
>
{{
pageTitle
}}
</view>
</view>
<view
class=
"couponlistStyle column"
>
<view>
<view
class=
"relative"
>
<headerCoupon
style=
"position: absolute; left: 0;top: 0;z-index: 1;"
></headerCoupon>
...
...
@@ -97,6 +107,8 @@
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
'gbAuth'
></auth>
</view>
</scroll-view>
</
template
>
<
script
>
...
...
@@ -136,6 +148,8 @@ export default {
fontSize
:
'28rpx'
,
},
scrollLeft
:
0
,
scrollTop
:
0
,
headStyle
:
{},
};
},
created
()
{
...
...
@@ -175,6 +189,12 @@ export default {
},
methods
:
{
scrollHandler
(
e
)
{
this
.
scrollTop
=
e
.
detail
.
scrollTop
;
},
scrollTopHandler
()
{
this
.
scrollTop
=
0
;
},
SearchData
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
g
=
[];
...
...
@@ -324,6 +344,7 @@ export default {
}
.couponlistStyle
{
width
:
100%
;
min-height
:
100vh
;
background
:
#f3f4f6
;
}
.couponlistStyle
.couponlist
{
...
...
@@ -464,4 +485,37 @@ export default {
margin-left
:
-100rpx
;
z-index
:
999
;
}
.headStatus
{
overflow
:
hidden
;
position
:
relative
;
width
:
140vw
;
padding-right
:
40vw
;
padding-top
:
50rpx
;
padding-bottom
:
10px
;
position
:
fixed
;
left
:
0
;
right
:
0
;
top
:
0
;
display
:
flex
;
background-image
:
linear-gradient
(
to
right
,
#e6b865
,
#ebb45e
);
}
.headStatus
.arrow
{
height
:
24px
;
margin
:
5px
10px
;
width
:
24px
;
}
.headStatus
.title
{
font-size
:
18px
;
color
:
#fff
;
flex
:
1
;
width
:
1px
;
line-height
:
34px
;
text-align
:
center
;
}
.headStatus
.title
{
color
:
#111
!
important
;
}
</
style
>
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