fix: 首页刷新/反馈按钮/周期键盘三个 bug 修复

This commit is contained in:
2026-06-09 09:06:44 +08:00
parent f745f4b4f0
commit a277f1533b
3 changed files with 16 additions and 6 deletions

View File

@@ -52,13 +52,13 @@
<!-- 操作按钮 -->
<view class="actions">
<view v-if="item.status === 'pending'" class="action-btn process" @tap="openReplyModal(item)">
<view v-if="item.status === 'pending'" class="action-btn process" @tap.stop="openReplyModal(item)">
<text class="action-text">标记处理</text>
</view>
<view v-if="item.status === 'pending'" class="action-btn ignore" @tap="openReplyModal(item, 'ignored')">
<view v-if="item.status === 'pending'" class="action-btn ignore" @tap.stop="openReplyModal(item, 'ignored')">
<text class="action-text">忽略</text>
</view>
<view v-if="item.status !== 'pending'" class="action-btn pending" @tap="updateStatus(item, 'pending')">
<view v-if="item.status !== 'pending'" class="action-btn pending" @tap.stop="updateStatus(item, 'pending')">
<text class="action-text">重新打开</text>
</view>
</view>

View File

@@ -270,8 +270,9 @@ onMounted(() => {
})
// Refresh data when returning from other pages (e.g., after adding a transaction)
// force=true 跳过缓存 TTL确保新记录立即可见
onShow(() => {
if (initialLoaded.value && !loading.value) loadData(true, false)
if (initialLoaded.value && !loading.value) loadData(true, true)
})
onPullDownRefresh(() => {

View File

@@ -141,9 +141,11 @@
</view>
</view>
<!-- Numpad -->
<!-- Numpad 放在弹窗内避免被 modal-mask 遮挡 -->
<view class="form-numpad" v-if="showModal">
<Numpad v-model="amountStr" />
</view>
</view>
</template>
<script setup lang="ts">
@@ -497,4 +499,11 @@ function goBack() { uni.navigateBack() }
&.active { background: $primary; color: $surface; border-color: $primary; }
&:active { opacity: 0.8; }
}
/* Numpad 位于弹窗上方 */
.form-numpad {
position: fixed; bottom: 0; left: 0; right: 0; z-index: 250;
background: $surface;
padding-bottom: env(safe-area-inset-bottom);
}
</style>