fix: 首页刷新/反馈按钮/周期键盘三个 bug 修复
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
@@ -141,8 +141,10 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- Numpad -->
|
||||
<Numpad v-model="amountStr" />
|
||||
<!-- Numpad 放在弹窗内,避免被 modal-mask 遮挡 -->
|
||||
<view class="form-numpad" v-if="showModal">
|
||||
<Numpad v-model="amountStr" />
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user