fix(modal): resolve premature modal closing caused by unsupported click.self in wechat miniprogram
这个提交包含在:
@@ -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: '同城生活组局',
|
||||
|
||||
在新工单中引用
屏蔽一个用户