Browse Source

阻止医生详情弹窗滚动穿透

dev
kola-web 1 month ago
parent
commit
685aa80743
  1. 7
      src/components/popupDoctorDetail/index.ts
  2. 10
      src/components/popupDoctorDetail/index.wxml

7
src/components/popupDoctorDetail/index.ts

@ -26,11 +26,14 @@ Component({
*/ */
methods: { methods: {
onClose() { onClose() {
app.mpBehavior({ PageName: "BTN_DOCTORINFOWINDOWCLOSE" }); app.mpBehavior({ PageName: 'BTN_DOCTORINFOWINDOWCLOSE' });
this.triggerEvent("close"); this.triggerEvent('close');
}, },
handleTap() { handleTap() {
return false; return false;
}, },
touchMove() {
return false;
},
}, },
}); });

10
src/components/popupDoctorDetail/index.wxml

@ -1,5 +1,11 @@
<van-popup show="{{ show }}" catch:close="onClose" custom-style="background:transparent" catch:tap="handleTap"> <van-popup
<view class="doctor-detail"> show="{{ show }}"
catch:close="onClose"
custom-style="background:transparent"
catch:tap="handleTap"
catchtouchmove="touchMove"
>
<view class="doctor-detail" catchtouchmove="touchMove">
<van-icon class="close" name="cross" catch:tap="onClose" /> <van-icon class="close" name="cross" catch:tap="onClose" />
<view class="title">医生详情</view> <view class="title">医生详情</view>
<view class="user"> <view class="user">

Loading…
Cancel
Save