diff --git a/Yi.Bbs.Vue3/src/router/index.js b/Yi.Bbs.Vue3/src/router/index.js index de961f29..984d389d 100644 --- a/Yi.Bbs.Vue3/src/router/index.js +++ b/Yi.Bbs.Vue3/src/router/index.js @@ -144,6 +144,14 @@ const router = createRouter({ title: "面试宝典", }, }, + { + name: "stock", + path: "/stock", + component: () => import("../views/stock/Index.vue"), + meta: { + title: "股票", + }, + }, ], }, { diff --git a/Yi.Bbs.Vue3/src/views/stock/Index.vue b/Yi.Bbs.Vue3/src/views/stock/Index.vue new file mode 100644 index 00000000..72c42f52 --- /dev/null +++ b/Yi.Bbs.Vue3/src/views/stock/Index.vue @@ -0,0 +1,446 @@ + + + + + + 意社区股市 + + + + + + + + + + + + + + + + + 最新市场动态 + + + + {{ news.date }} + {{ news.title }} + + + + + + + + {{ currentStockInfo.name }} ({{ currentStockInfo.code }}) + + + {{ currentStockInfo.price }} + + + {{ priceChange > 0 ? '+' : '' }}{{ priceChange }} ({{ priceChangePercent }}%) + + + + + + + + + + + + + 买入 + 卖出 + + + + + + + + 交易记录 + + + + {{ record.time }} + + {{ record.type === 'buy' ? '买入' : '卖出' }} + + {{ record.amount }}股 + ¥{{ record.price }} + + + + + + + + + + 我的持仓 + 总资产: ¥{{ totalAssets }} + + + + + + + + + + + {{ scope.row.profit >= 0 ? '+' : '' }}{{ scope.row.profit }} + + + + + + + + + + +