fix(modal): resolve premature modal closing caused by unsupported click.self in wechat miniprogram
这个提交包含在:
@@ -196,8 +196,8 @@
|
||||
</view>
|
||||
|
||||
<!-- 优惠券选择弹窗 -->
|
||||
<view class="coupon-modal-mask" v-if="couponModalVisible" @click.self="closeCouponModal">
|
||||
<view class="coupon-modal-content">
|
||||
<view class="coupon-modal-mask" v-if="couponModalVisible" @click="closeCouponModal">
|
||||
<view class="coupon-modal-content" @click.stop="stopPropagation">
|
||||
<view class="modal-header">
|
||||
<text class="modal-title">选择优惠券</text>
|
||||
<view class="modal-close" @click="closeCouponModal">
|
||||
@@ -269,6 +269,12 @@ onUnmounted(() => {
|
||||
uni.$off('theme-change', onThemeChanged);
|
||||
});
|
||||
|
||||
const stopPropagation = (e) => {
|
||||
if (e && typeof e.stopPropagation === 'function') {
|
||||
e.stopPropagation();
|
||||
}
|
||||
};
|
||||
|
||||
const loadUserWallet = async () => {
|
||||
try {
|
||||
const u = await getUserProfile(1001);
|
||||
|
||||
@@ -110,8 +110,8 @@
|
||||
</view>
|
||||
|
||||
<!-- 评价大神服务体验交互弹窗 -->
|
||||
<view class="review-modal-mask" v-if="reviewModalVisible" @click.self="closeReviewModal">
|
||||
<view class="review-modal-content">
|
||||
<view class="review-modal-mask" v-if="reviewModalVisible" @click="closeReviewModal">
|
||||
<view class="review-modal-content" @click.stop="stopPropagation">
|
||||
<view class="modal-header">
|
||||
<view class="modal-header-left">
|
||||
<text class="modal-title">服务体验评价</text>
|
||||
@@ -184,8 +184,8 @@
|
||||
</view>
|
||||
|
||||
<!-- 退款与售后仲裁申诉工单弹窗 -->
|
||||
<view class="review-modal-mask" v-if="refundModalVisible" @click.self="closeRefundModal">
|
||||
<view class="review-modal-content refund-modal-content">
|
||||
<view class="review-modal-mask" v-if="refundModalVisible" @click="closeRefundModal">
|
||||
<view class="review-modal-content refund-modal-content" @click.stop="stopPropagation">
|
||||
<view class="modal-header">
|
||||
<view class="modal-header-left">
|
||||
<text class="modal-title">申请退款与仲裁</text>
|
||||
@@ -263,8 +263,8 @@
|
||||
</view>
|
||||
|
||||
<!-- 举报不良行为弹窗 -->
|
||||
<view class="review-modal-mask" v-if="reportModalVisible" @click.self="closeReportModal">
|
||||
<view class="review-modal-content report-modal-content">
|
||||
<view class="review-modal-mask" v-if="reportModalVisible" @click="closeReportModal">
|
||||
<view class="review-modal-content report-modal-content" @click.stop="stopPropagation">
|
||||
<view class="modal-header">
|
||||
<view class="modal-header-left">
|
||||
<text class="modal-title">举报不良陪玩</text>
|
||||
@@ -373,6 +373,12 @@ const navStyle = computed(() => {
|
||||
};
|
||||
});
|
||||
|
||||
const stopPropagation = (e) => {
|
||||
if (e && typeof e.stopPropagation === 'function') {
|
||||
e.stopPropagation();
|
||||
}
|
||||
};
|
||||
|
||||
const handleBack = () => {
|
||||
const pages = getCurrentPages();
|
||||
if (pages && pages.length > 1) {
|
||||
|
||||
在新工单中引用
屏蔽一个用户