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

ios兼容

parent 7c434f78
...@@ -58,7 +58,8 @@ ...@@ -58,7 +58,8 @@
</view> </view>
</scroll-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"> <view class="middle-right">
<checkbox-group @change="checkboxChange" class="checkbox-box"> <checkbox-group @change="checkboxChange" class="checkbox-box">
<view class="merchantlist-wrap" :id="'merchant'+index" v-for="(item, index) in scenicList" :key="index"> <view class="merchantlist-wrap" :id="'merchant'+index" v-for="(item, index) in scenicList" :key="index">
...@@ -577,6 +578,7 @@ export default { ...@@ -577,6 +578,7 @@ export default {
if(scrollTop>=height){ if(scrollTop>=height){
//中间上部分固定,中间下部分可滚动,全屏不滚动 //中间上部分固定,中间下部分可滚动,全屏不滚动
this.middleHeight=this.scrollHeight this.middleHeight=this.scrollHeight
}else{ }else{
//中间上部分不固定,中间下部分不可滚动,全屏滚动' //中间上部分不固定,中间下部分不可滚动,全屏滚动'
this.middleHeight=this.originHeight this.middleHeight=this.originHeight
...@@ -793,7 +795,7 @@ export default { ...@@ -793,7 +795,7 @@ export default {
.wrap { .wrap {
height: 100%; height: 100%;
background: #f7f7f7; background: #f7f7f7;
overflow-anchor:auto; overflow: hidden;
} }
.middle { .middle {
padding-bottom: 100rpx; 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