Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
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
panyongping
uni-pdtravel
Commits
aba5672b
Commit
aba5672b
authored
Jul 17, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
湖广会馆购票须知处理
parent
05a7cafa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
distributionCombiChoose.vue
...ation/distributionCombiChoose/distributionCombiChoose.vue
+17
-13
No files found.
pages/combination/distributionCombiChoose/distributionCombiChoose.vue
View file @
aba5672b
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
</u-swiper>
</u-swiper>
</view>
</view>
<view
class=
"middle"
id=
"middle"
>
<view
class=
"middle"
id=
"middle"
>
<!--
商家信息
部分 -->
<!--
中间上面
部分 -->
<view
class=
"m
erchant-info"
:style=
"middleInfo
Style"
>
<view
class=
"m
iddle-top"
:style=
"middleTop
Style"
>
<view
class=
"merchant-name"
>
<view
class=
"merchant-name"
>
{{
currentMerchant
.
name
||
''
}}
{{
currentMerchant
.
name
||
''
}}
</view>
</view>
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
</view>
</view>
</u-transition>
</u-transition>
</view>
</view>
<!-- 列表部分 -->
<!-- 列表部分 -->
<view
class=
"middle-bottom"
:style=
"middleBottomStyle"
>
<view
class=
"middle-bottom"
:style=
"middleBottomStyle"
>
<!-- 左边滚动条 -->
<!-- 左边滚动条 -->
...
@@ -136,6 +137,7 @@
...
@@ -136,6 +137,7 @@
</scroll-view>
</scroll-view>
</view>
</view>
</view>
</view>
<view
class=
"bottom"
>
<view
class=
"bottom"
>
<view
class=
"bottom-left"
@
click=
"showCustomer()"
>
<view
class=
"bottom-left"
@
click=
"showCustomer()"
>
...
@@ -227,8 +229,7 @@ export default {
...
@@ -227,8 +229,7 @@ export default {
heightArr
:[],
//元素高度数组
heightArr
:[],
//元素高度数组
scrollHeight
:
0
,
//中间盒子滚动时的高度
scrollHeight
:
0
,
//中间盒子滚动时的高度
originHeight
:
0
,
//中间盒子原本高度
originHeight
:
0
,
//中间盒子原本高度
merchantInfoHeight
:
0
,
//商家信息高度
middleTopStyle
:
''
,
//中间盒子上部分样式
middleInfoStyle
:
''
,
//中间盒子上部分样式
middleBottomStyle
:
''
,
//中间盒子下部分样式
middleBottomStyle
:
''
,
//中间盒子下部分样式
toViewRight
:
''
,
//右边滚动到某个元素
toViewRight
:
''
,
//右边滚动到某个元素
toViewLeft
:
''
,
//左边滚动到某个元素
toViewLeft
:
''
,
//左边滚动到某个元素
...
@@ -425,10 +426,9 @@ export default {
...
@@ -425,10 +426,9 @@ export default {
complete
:(
info
)
=>
{
complete
:(
info
)
=>
{
let
windowHeight
=
info
.
windowHeight
||
753
let
windowHeight
=
info
.
windowHeight
||
753
//获取中间盒子需要滚动时的高度
//获取中间盒子需要滚动时的高度
uni
.
createSelectorQuery
().
in
(
this
).
select
(
'.m
erchant-info
'
).
boundingClientRect
(
data
=>
{
uni
.
createSelectorQuery
().
in
(
this
).
select
(
'.m
iddle-top
'
).
boundingClientRect
(
data
=>
{
if
(
data
){
if
(
data
){
this
.
merchantInfoHeight
=
data
.
height
this
.
scrollHeight
=
windowHeight
-
data
.
height
this
.
scrollHeight
=
windowHeight
-
this
.
merchantInfoHeight
}
}
}).
exec
()
}).
exec
()
//获取中间盒子原本高度
//获取中间盒子原本高度
...
@@ -542,16 +542,20 @@ export default {
...
@@ -542,16 +542,20 @@ export default {
uni
.
createSelectorQuery
().
in
(
this
).
select
(
'.banner'
).
boundingClientRect
(
data
=>
{
uni
.
createSelectorQuery
().
in
(
this
).
select
(
'.banner'
).
boundingClientRect
(
data
=>
{
if
(
data
){
if
(
data
){
//20=中间盒子top:-20的值
//20=中间盒子top:-20的值
height
=
data
.
height
-
20
// height=data.height-70
height
=
data
.
height
-
20
if
(
e
.
detail
.
scrollTop
>=
height
){
if
(
e
.
detail
.
scrollTop
>=
height
){
//
商家信息固定,中间
可滚动,全屏不滚动
//
中间上部分固定,中间下部分
可滚动,全屏不滚动
this
.
middleInfoStyle
=
'top:0;position:fixed;height:0;padding:0
;'
this
.
middleTopStyle
=
'top:0;position:fixed
;'
this
.
middleBottomStyle
=
'margin-top:50px;'
this
.
middleBottomStyle
=
'margin-top:50px;'
this
.
middleHeight
=
this
.
scrollHeight
this
.
middleHeight
=
this
.
scrollHeight
this
.
showTransition
=
false
this
.
showTransition
=
false
}
else
{
}
else
{
//商家不固定,中间不可滚动,全屏滚动
console
.
log
(
e
.
detail
.
scrollTop
)
this
.
middleInfoStyle
=
'position:relative;height:auto;padding:10px;'
//中间上部分不固定,中间下部分不可滚动,全屏滚动
this
.
middleTopStyle
=
'position:relative;'
this
.
middleBottomStyle
=
'margin-top:0;'
this
.
middleBottomStyle
=
'margin-top:0;'
this
.
middleHeight
=
this
.
originHeight
this
.
middleHeight
=
this
.
originHeight
this
.
showTransition
=
true
this
.
showTransition
=
true
...
@@ -766,7 +770,7 @@ export default {
...
@@ -766,7 +770,7 @@ export default {
top
:
-20px
;
top
:
-20px
;
}
}
// 中间上部分
// 中间上部分
.m
erchant-info
{
.m
iddle-top
{
width
:
100%
;
width
:
100%
;
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
24rpx
24rpx
0
0
;
border-radius
:
24rpx
24rpx
0
0
;
...
...
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