Commit 479829b5 authored by 潘永坪's avatar 潘永坪

组合票优化

parent 4789acec
......@@ -50,7 +50,7 @@
<!-- 列表部分 -->
<view class="middle-bottom" id="middle-bottom">
<!-- 左边滚动条 -->
<scroll-view class="scroll-left" :style="{height:scrollHeight+'px'}" :scroll-into-view="toViewLeft" scroll-y>
<scroll-view class="scroll-left" :style="{height:scrollHeight+'px'}" :scroll-into-view="toViewLeft" scroll-y >
<view class="middle-left">
<view :id="'merchant-tab'+index" class="merchant-tab" v-for="(item,index) in scenicList" :key="index" @click="merchantTabChange(index)" :class='{on:merchantIndex==index}'>
{{item.name}}
......@@ -247,8 +247,8 @@ export default {
toViewLeft:'',//左边滚动到某个元素
toViewFull:'',//全屏滚动到某个元素
showTransition:true,//控制动画显示隐藏
scrollHeight:0,//中间盒子滚动时的高度
originHeight:0,//中间盒子原本高度
scrollHeight:0,//左边滚动条scroll-view高度
originHeight:0,//右边滚动条原本高度
middleTopHeight:0,//中间盒子上部分高度
topHeight:0,//上面状态栏+上面导航栏总高度
tabbarOpacity:0,//导航栏透明度
......@@ -640,7 +640,6 @@ export default {
if(parseInt(scrollTop)>=parseInt(height)){
//中间上部分固定,中间下部分可滚动,全屏不滚动
this.rightHeight=this.scrollHeight
}else{
//中间上部分不固定,中间下部分不可滚动,全屏滚动'
this.rightHeight=this.originHeight
......@@ -658,7 +657,7 @@ export default {
}).exec()
// #endif
},5)
},10)
},
//---右边滚动事件
scrollRight(e) {
......@@ -678,7 +677,7 @@ export default {
}
}
})
},5)
},10)
},
//---回到顶部
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment