feat(bill): convert bill records modal into dedicated independent page

这个提交包含在:
xcbyy
2026-10-13 14:10:00 +08:00
父节点 736450973e
当前提交 3b0268ab10
共有 5 个文件被更改,包括 1369 次插入 和 30 次删除

查看文件

@@ -142,6 +142,16 @@
"backgroundColor": "#0A0F1D"
}
},
{
"path": "pages/user/bill-records",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": "账单明细",
"navigationBarBackgroundColor": "#0A0F1D",
"navigationBarTextStyle": "white",
"backgroundColor": "#0A0F1D"
}
},
{
"path": "pages/user/settings",
"style": {

文件差异内容过多而无法显示 加载差异

查看文件

@@ -972,32 +972,11 @@ const ensureLoggedIn = () => {
return true;
};
const viewWalletLog = async () => {
const viewWalletLog = () => {
if (!ensureLoggedIn()) return;
try {
const list = await getUserFinanceRecords(user.value.id || 1001);
if (!list || list.length === 0) {
uni.showModal({
title: '账单明细',
content: '暂无近期财务收支流水记录',
showCancel: false,
confirmText: '我知道了'
});
return;
}
const lines = list.slice(0, 5).map(item => {
const sign = item.direction === 'IN' ? '+' : '-';
return `${item.type}: ${sign}¥${Number(item.amount).toFixed(2)} (${item.counterparty || '系统'})`;
});
uni.showModal({
title: '最近收支明细',
content: lines.join('\r\n'),
showCancel: false,
confirmText: '确定'
});
} catch (err) {
uni.showToast({ title: '账单获取异常', icon: 'none' });
}
uni.navigateTo({
url: '/pages/user/bill-records'
});
};
const handleRecharge = async () => {