fix(modal): resolve premature modal closing caused by unsupported click.self in wechat miniprogram
这个提交包含在:
@@ -288,8 +288,8 @@
|
||||
</view>
|
||||
|
||||
<!-- 敏感商圈智能风控友好预检弹窗 (P1安全风控) -->
|
||||
<view class="risk-modal-mask" v-if="riskModalVisible" @click.self="riskModalVisible = false">
|
||||
<view class="risk-modal-box">
|
||||
<view class="risk-modal-mask" v-if="riskModalVisible" @click="riskModalVisible = false">
|
||||
<view class="risk-modal-box" @click.stop="stopPropagation">
|
||||
<view class="risk-modal-header">
|
||||
<image class="risk-shield-icon" :src="ICONS.shield" mode="aspectFit" />
|
||||
<text class="risk-title">同城线下组局安全风控提示</text>
|
||||
@@ -376,6 +376,12 @@ const calcTotalFee = computed(() => {
|
||||
return Number(form.value.totalFee) || 0;
|
||||
});
|
||||
|
||||
const stopPropagation = (e) => {
|
||||
if (e && typeof e.stopPropagation === 'function') {
|
||||
e.stopPropagation();
|
||||
}
|
||||
};
|
||||
|
||||
const riskModalVisible = ref(false);
|
||||
const recommendPublicZones = ref([
|
||||
'北京市朝阳区三里屯太古里 (AAA公开商圈)',
|
||||
|
||||
@@ -194,8 +194,8 @@
|
||||
</view>
|
||||
|
||||
<!-- 房主追加金额/改价弹窗 -->
|
||||
<view class="adjust-modal-mask" v-if="adjustModalVisible" @click.self="closeAdjustModal">
|
||||
<view class="adjust-modal-content">
|
||||
<view class="adjust-modal-mask" v-if="adjustModalVisible" @click="closeAdjustModal">
|
||||
<view class="adjust-modal-content" @click.stop="stopPropagation">
|
||||
<view class="modal-header">
|
||||
<view class="modal-title-box">
|
||||
<text class="modal-title">{{ modalMode === 'APPEND' ? '房主追加金额' : '房主手动调整出价' }}</text>
|
||||
@@ -438,6 +438,12 @@ onUnmounted(() => {
|
||||
uni.$off('theme-change', onThemeChanged);
|
||||
});
|
||||
|
||||
const stopPropagation = (e) => {
|
||||
if (e && typeof e.stopPropagation === 'function') {
|
||||
e.stopPropagation();
|
||||
}
|
||||
};
|
||||
|
||||
const activity = ref({
|
||||
id: '',
|
||||
title: '同城生活组局',
|
||||
|
||||
在新工单中引用
屏蔽一个用户