滑动禁止

This commit is contained in:
zoujiandong 2024-07-12 09:04:41 +08:00
parent 7a727a15ba
commit 60c5b527ed
3 changed files with 16 additions and 2 deletions

View File

@ -498,7 +498,7 @@ bindchange(e){
}, },
// 禁止用户滑动 // 禁止用户滑动
catchTouchMove() { catchTouchMove() {
return false; //return false;
}, },
getDeatil(id) { getDeatil(id) {

View File

@ -161,7 +161,8 @@
</view> </view>
</scroll-view> </scroll-view>
<swiper current="{{currentData}}" class="swiperbox" bindchange="bindchange" style="height:{{tab3Height+'px'}};margin-top:{{tab3Height==0?'0rpx':'20rpx'}}" disable-touch="{{true}}"> <swiper current="{{currentData}}" class="swiperbox" bindchange="bindchange" style="height:{{tab3Height+'px'}};margin-top:{{tab3Height==0?'0rpx':'20rpx'}}" disable-touch="{{true}}">
<swiper-item catchtouchmove="catchTouchMove">
<swiper-item catchtouchmove="catchTouchMove" class="swipercell">
<view class="swiper-item" id="swiperitem1"> <view class="swiper-item" id="swiperitem1">
<image src="{{img_host+'/tuwen_bg.png'}}" class="itembg" style="height:auto;" mode="widthFix" wx:if="{{canTuwen}}"></image> <image src="{{img_host+'/tuwen_bg.png'}}" class="itembg" style="height:auto;" mode="widthFix" wx:if="{{canTuwen}}"></image>
@ -272,6 +273,7 @@
</view> </view>
</swiper-item> </swiper-item>
</swiper> </swiper>
</view> </view>
<!-- <view class="drbox" wx:if="{{current_inquiry_config}}"> <!-- <view class="drbox" wx:if="{{current_inquiry_config}}">

View File

@ -580,7 +580,19 @@ text-decoration: line-through;
} }
.swiperbox{ .swiperbox{
margin-top: 35rpx; margin-top: 35rpx;
position: relative;
} }
.swiperbox::after{
content:'';
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
position: absolute;
}
.swiper-item{ .swiper-item{
border-radius: 20rpx; border-radius: 20rpx;