feat: integrate customer service chat functionality and add socket.io-client dependency

- Implemented a customer service chat interface in the application.
- Added socket.io-client for real-time communication.
- Updated language files to include customer service related translations.
- Modified navigation to direct users to the customer service page.
- Enhanced UI elements for better user experience in chat interactions.
This commit is contained in:
li
2026-01-29 03:04:52 +08:00
parent 14c8cbffcc
commit 322cc24208
12 changed files with 1629 additions and 72 deletions
+16
View File
@@ -86,6 +86,7 @@ var tw = {
user: "我的",
userBalance: "餘額",
customerService: "在線客服",
logout: "退出登錄",
tip: "提示",
logoutTip: "確認退出登錄?",
@@ -174,6 +175,21 @@ var tw = {
chooseCoin: "請選擇幣種",
flagshipHall: "旗艦廳",
liveHall: "現場廳",
// 在線客服
csConnected: "已連接",
csConnecting: "連接中...",
csWelcome: "歡迎使用在線客服",
csBusy: "客服繁忙,請稍候...",
csInputTip: "請輸入您的問題",
csInputPlaceholder: "輸入消息,點擊發送...",
csSend: "發送",
csMe: "我",
csAgent: "客服",
csSessionEnded: "會話已結束",
csAgentServing: "客服為您服務",
csAgentJoined: "已接入",
csConnectFailed: "連接失敗",
};
export { tw };