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 @@

登录

- + - +