diff --git a/src/views/game/components/MoveHistory.vue b/src/views/game/components/MoveHistory.vue new file mode 100644 index 0000000..cb09142 --- /dev/null +++ b/src/views/game/components/MoveHistory.vue @@ -0,0 +1,92 @@ + + + + 暂无走棋记录 + + + + {{ move.moveIndex }} + + {{ move.playerId === store.currentUserId ? '我' : getPlayerName(move.playerId) }} + + + ({{ move.row }}, {{ move.col }}) + + + + + + + + + diff --git a/src/views/game/components/RoomChat.vue b/src/views/game/components/RoomChat.vue new file mode 100644 index 0000000..e2a7d3c --- /dev/null +++ b/src/views/game/components/RoomChat.vue @@ -0,0 +1,145 @@ + + + + + + {{ msg.userId === store.currentUserId ? '我' : getUserName(msg.userId) }} + {{ msg.content }} + + + 暂无消息 + + + + + + + 发送 + + + + + + + diff --git a/src/views/game/components/RoomRightPanel.vue b/src/views/game/components/RoomRightPanel.vue new file mode 100644 index 0000000..ce86918 --- /dev/null +++ b/src/views/game/components/RoomRightPanel.vue @@ -0,0 +1,79 @@ + + + + + 聊天 + + + 记录 + + + + + + + + + + + + +