Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6a12717f
authored
Sep 30, 2020
by
wjw
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
ww--电影界面向下滑动固定tab
parent
d897eff5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
5 deletions
pages/play/movie/movie.js
pages/play/movie/movie.wxml
pages/play/movie/movie.wxss
pages/play/service-detail/service-detail.wxml
pages/play/movie/movie.js
View file @
6a12717f
...
@@ -13,6 +13,8 @@ Page({
...
@@ -13,6 +13,8 @@ Page({
pageSize
:
'-1'
pageSize
:
'-1'
},
},
loading
:
true
,
loading
:
true
,
statusTop
:
''
,
statusFixed
:
false
,
marginTop
:
''
,
marginTop
:
''
,
// 屏幕显示高度
// 屏幕显示高度
windowHeight
:
0
,
windowHeight
:
0
,
...
@@ -30,7 +32,7 @@ Page({
...
@@ -30,7 +32,7 @@ Page({
color
:
'#ffffff'
,
color
:
'#ffffff'
,
background
:
'rgba(28, 28, 37, 1)'
background
:
'rgba(28, 28, 37, 1)'
},
},
scroll
:
'
10
0rpx'
,
scroll
:
'
2
0rpx'
,
},
},
navigationScroll
:
0
,
navigationScroll
:
0
,
...
@@ -75,6 +77,17 @@ Page({
...
@@ -75,6 +77,17 @@ Page({
if
(
logicData
.
pageScrollLock
)
return
if
(
logicData
.
pageScrollLock
)
return
logicData
.
pageScrollLock
=
true
logicData
.
pageScrollLock
=
true
if
(
funcEvent
.
scrollTop
>
20
)
{
this
.
setData
({
statusFixed
:
true
,
statusTop
:
wx
.
getStorageSync
(
'navigationStatusHeight'
)
+
wx
.
getStorageSync
(
'navigationCapsuleHeight'
)
+
'px'
})
}
else
{
this
.
setData
({
statusFixed
:
false
,
})
}
this
.
setData
({
this
.
setData
({
navigationScroll
:
funcEvent
.
scrollTop
navigationScroll
:
funcEvent
.
scrollTop
})
})
...
@@ -96,7 +109,8 @@ Page({
...
@@ -96,7 +109,8 @@ Page({
},
},
setFooterLocation
:
function
()
{
setFooterLocation
:
function
()
{
let
that
=
this
let
that
=
this
let
{
windowHeight
,
marginTop
,
footerFixed
}
=
this
.
data
let
{
windowHeight
,
marginTop
,
}
=
this
.
data
let
footerFixed
=
true
let
footerHeight
=
Math
.
floor
(
214
*
wx
.
getStorageSync
(
'unitProportion'
))
let
footerHeight
=
Math
.
floor
(
214
*
wx
.
getStorageSync
(
'unitProportion'
))
// 显示高度
// 显示高度
let
showHeight
=
windowHeight
-
footerHeight
-
marginTop
let
showHeight
=
windowHeight
-
footerHeight
-
marginTop
...
...
pages/play/movie/movie.wxml
View file @
6a12717f
<navigation class="navigation" titleText="所有影片" color="#ffffff" backIcon="/image/back-w.png" scrollStyle="{{navigationStyle}}" scrollHeight="{{navigationScroll}}"></navigation>
<navigation class="navigation" titleText="所有影片" color="#ffffff" backIcon="/image/back-w.png" scrollStyle="{{navigationStyle}}" scrollHeight="{{navigationScroll}}"></navigation>
<view id="page" class="contaniner con-s" style="margin-top: {{marginTop + 'px'}}">
<view id="page" class="contaniner con-s" style="margin-top: {{marginTop + 'px'}}">
<view class="status row align-c">
<view class="status row align-c
{{statusFixed ? 'status-fixed' : ''}}" style="{{statusFixed ? 'top: ' + (statusTop) : ''}}
">
<block wx:for="{{statusList}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<block wx:for="{{statusList}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<view class="status-item row con-c align-c" data-type="{{index}}" bindtap="onSelectionStatus">
<view class="status-item row con-c align-c" data-type="{{index}}" bindtap="onSelectionStatus">
<view class="row con-c align-c {{index === statusActive ? 'status-item-active' : ''}}">
<view class="row con-c align-c {{index === statusActive ? 'status-item-active' : ''}}">
...
...
pages/play/movie/movie.wxss
View file @
6a12717f
...
@@ -22,9 +22,15 @@ page {
...
@@ -22,9 +22,15 @@ page {
} */
} */
/* 状态筛选菜单 */
/* 状态筛选菜单 */
.status-fixed {
z-index: 999;
position: fixed;
left: 0;
}
.status {
.status {
width: 750rpx;
width: 750rpx;
height: 72rpx;
height: 72rpx;
background-color: #1C1C25;
border-bottom: 1px #3A3A40 solid;
border-bottom: 1px #3A3A40 solid;
}
}
.status-item {
.status-item {
...
...
pages/play/service-detail/service-detail.wxml
View file @
6a12717f
...
@@ -371,9 +371,9 @@
...
@@ -371,9 +371,9 @@
</view>
</view>
</view>
</view>
<view class="movie-footer">
<
!-- <
view class="movie-footer">
<image src="/image/movie-bottom.png"></image>
<image src="/image/movie-bottom.png"></image>
</view>
</view>
-->
<!-- 简介,评价 -->
<!-- 简介,评价 -->
<view class="selection-content movie-border row">
<view class="selection-content movie-border row">
...
...
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