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

10
src/components/popupDoctorDetail/index.wxml

@ -1,5 +1,11 @@ @@ -1,5 +1,11 @@
<van-popup show="{{ show }}" catch:close="onClose" custom-style="background:transparent" catch:tap="handleTap">
<view class="doctor-detail">
<van-popup
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" />
<view class="title">医生详情</view>
<view class="user">

Loading…
Cancel
Save