fix(modal): resolve premature modal closing caused by unsupported click.self in wechat miniprogram

这个提交包含在:
xcbyy
2026-10-13 16:54:55 +08:00
父节点 d08acc052a
当前提交 56e672219e
共有 8 个文件被更改,包括 86 次插入 和 22 次删除

查看文件

@@ -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: '同城生活组局',