feat: UI/UX全面优化 — CSS变量体系/a11y无障碍/Admin角色化/骨架屏/打印样式

This commit is contained in:
selfrelease
2026-07-18 07:57:23 +08:00
parent 2b5a32ca1e
commit 4b42eb80fd
15 changed files with 1519 additions and 442 deletions
+5 -4
View File
@@ -1589,7 +1589,7 @@
try {
const amount = parseFloat(this.cashInputValue);
if (isNaN(amount)) {
alert('请输入有效金额');
this.showToast('请输入有效金额', 'warning');
return;
}
const response = await axios.put('/api/available_cash', { amount });
@@ -1597,11 +1597,11 @@
this.availableCash = response.data.available_cash;
this.editingCash = false;
} else {
alert('保存失败: ' + (response.data.error || '未知错误'));
this.showToast('保存失败: ' + (response.data.error || '未知错误'), 'error');
}
} catch (err) {
console.error('保存可用资金失败:', err);
alert('保存失败');
this.showToast('保存失败', 'error');
}
},
@@ -2168,7 +2168,7 @@
async batchTechSignals() {
if (!this.searchHistory || this.searchHistory.length === 0) {
alert('请先添加关注股票');
this.showToast('请先添加关注股票', 'warning');
return;
}
this.techLoading = true;
@@ -2220,6 +2220,7 @@
signal_type: signalTypes,
holding_codes: (this.holdingStocks || []).join(','),
recommend_text: this.fullScanFilterRecommend === 'all' ? '' : this.fullScanFilterRecommend,
with_scores: true,
}
});
if (resp.data.success) {