diff --git a/index.html b/index.html index bcfc4c3..d9f1606 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,8 @@ 建材销售管家 + +
diff --git a/src/components/Icon.vue b/src/components/Icon.vue new file mode 100644 index 0000000..5f60500 --- /dev/null +++ b/src/components/Icon.vue @@ -0,0 +1,101 @@ + + + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index ffcc69d..07942e4 100644 --- a/src/main.js +++ b/src/main.js @@ -1,8 +1,10 @@ import { createSSRApp } from 'vue' import App from './App.vue' +import Icon from './components/Icon.vue' export function createApp() { const app = createSSRApp(App) + app.component('Icon', Icon) return { app } diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 314b69a..928482a 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -7,7 +7,7 @@ {{ userInfo.username || '用户' }} - 👤 + {{ roleText }} @@ -15,25 +15,31 @@ - 📊 今日概览 + 今日概览 - 📋 + + + {{ stats.orderCount || 0 }} 今日订单 - 💰 + + + ¥{{ stats.actualAmount || 0 }} 今日销售额 - ⚠️ + + + {{ stats.stockAlerts || 0 }} 库存预警 @@ -49,22 +55,30 @@