fix: TransactionItem小头像+预算页双显+账单静默刷新
TransactionItem: - meta 区域改为 view+flex 布局,小头像作为独立元素渲染 - creator-tag 容器包裹头像+昵称,小程序端 image 不嵌套在 text 内 预算页: - 群组模式顶部显示概览行(群组预算 | 我的预算) - 下方显示「设置我的预算」卡片,编辑作用于个人预算 - 个人模式保持原样 账单页: - loadTx 添加 silent 参数,静默刷新时不清空列表 - onShow 调用 loadTx(true, true) 避免骨架屏闪烁
This commit is contained in:
@@ -122,7 +122,7 @@ onMounted(async () => {
|
||||
|
||||
// 静默刷新(切换群组/返回时)
|
||||
onShow(() => {
|
||||
if (initialLoaded.value) loadTx(true)
|
||||
if (initialLoaded.value) loadTx(true, true)
|
||||
})
|
||||
|
||||
function switchFilter(type: string) {
|
||||
@@ -130,10 +130,10 @@ function switchFilter(type: string) {
|
||||
loadTx(true)
|
||||
}
|
||||
|
||||
async function loadTx(reset = false) {
|
||||
async function loadTx(reset = false, silent = false) {
|
||||
if (reset) {
|
||||
page.value = 1
|
||||
txList.value = []
|
||||
if (!silent) txList.value = []
|
||||
}
|
||||
const seq = ++loadSeq
|
||||
const params: any = { page: page.value, pageSize }
|
||||
|
||||
Reference in New Issue
Block a user