feat(bill): convert bill records modal into dedicated independent page
这个提交包含在:
@@ -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": {
|
||||
|
||||
1299
pwuniapp/pages/user/bill-records.vue
普通文件
1299
pwuniapp/pages/user/bill-records.vue
普通文件
文件差异内容过多而无法显示
加载差异
@@ -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 () => {
|
||||
|
||||
在新工单中引用
屏蔽一个用户