Commit 6cbe77e0 authored by 潘永坪's avatar 潘永坪

ios兼容

parent 7c434f78
......@@ -58,7 +58,8 @@
</view>
</scroll-view>
<!-- 右边滚动条 -->
<scroll-view class="scroll-right" @scroll="scrollRight" :style="{height:middleHeight+'px'}" :scroll-into-view="toViewRight" scroll-y>
<!-- enhanced和bounces是处理ios系统橡皮筋回弹bug -->
<scroll-view class="scroll-right" @scroll="scrollRight" :style="{height:middleHeight+'px'}" :scroll-into-view="toViewRight" scroll-y enhanced bounces="{{false}}">
<view class="middle-right">
<checkbox-group @change="checkboxChange" class="checkbox-box">
<view class="merchantlist-wrap" :id="'merchant'+index" v-for="(item, index) in scenicList" :key="index">
......@@ -577,6 +578,7 @@ export default {
if(scrollTop>=height){
//中间上部分固定,中间下部分可滚动,全屏不滚动
this.middleHeight=this.scrollHeight
}else{
//中间上部分不固定,中间下部分不可滚动,全屏滚动'
this.middleHeight=this.originHeight
......@@ -793,7 +795,7 @@ export default {
.wrap {
height: 100%;
background: #f7f7f7;
overflow-anchor:auto;
overflow: hidden;
}
.middle {
padding-bottom: 100rpx;
......
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