From fef233344bcdc165e97be17bb44858f381682c82 Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Fri, 30 Oct 2026 18:35:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E9=BD=90=E5=AE=A2=E6=88=B7=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E8=BE=93=E5=85=A5=E6=A1=86=E4=B8=AD=E8=8B=B1=E6=96=87?= =?UTF-8?q?=E5=8D=A0=E4=BD=8D=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/chat.js | 2 ++ static/js/customer.js | 2 ++ templates/index.html | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/chat.js b/static/js/chat.js index 1ddd096..afd9d62 100644 --- a/static/js/chat.js +++ b/static/js/chat.js @@ -230,6 +230,7 @@ const I18N = { appTitle: "柏悦物流智能助手", customerLogin: "登录", customerLogout: "退出登录", customerCancel: "取消", customerUsername: "账号", customerPassword: "密码", customerQuery: "登录查询", + customerUsernamePlaceholder: "请输入账号", customerPasswordPlaceholder: "请输入密码", customerSigningIn: "登录中…", customerLoginFailed: "登录失败,请稍后重试。", customerLogoutFailed: "退出失败,请重试。", newChat: "新建对话", @@ -340,6 +341,7 @@ const I18N = { appTitle: "Baiyue Logistics AI Assistant", customerLogin: "Sign in", customerLogout: "Sign out", customerCancel: "Cancel", customerUsername: "Username", customerPassword: "Password", customerQuery: "Sign in to view orders", + customerUsernamePlaceholder: "Enter username", customerPasswordPlaceholder: "Enter password", customerSigningIn: "Signing in…", customerLoginFailed: "Could not sign in. Please try again.", customerLogoutFailed: "Could not sign out. Please try again.", newChat: "New Chat", diff --git a/static/js/customer.js b/static/js/customer.js index e2108ba..1046a30 100644 --- a/static/js/customer.js +++ b/static/js/customer.js @@ -19,6 +19,8 @@ var CustomerLogin = { document.getElementById('customer-login-title').textContent=options.text('customerLogin'); document.getElementById('customer-username-label').textContent=options.text('customerUsername'); document.getElementById('customer-password-label').textContent=options.text('customerPassword'); + username.placeholder=options.text('customerUsernamePlaceholder'); + password.placeholder=options.text('customerPasswordPlaceholder'); } function update(next){ const previous=user; diff --git a/templates/index.html b/templates/index.html index ccfe250..b4e34d0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -74,9 +74,9 @@

登录

- + - +