|
|
@@ -73,13 +73,13 @@ const AuthPage: React.FC = () => {
|
|
|
<div className="p-6 sm:p-8">
|
|
|
<div className="text-center mb-8">
|
|
|
<h2 className="text-2xl font-bold text-gray-900">欢迎使用</h2>
|
|
|
- <p className="mt-2 text-sm text-gray-600">输入用户名即可开始使用</p>
|
|
|
+ <p className="mt-2 text-sm text-gray-600">输入微信昵称即可开始使用</p>
|
|
|
</div>
|
|
|
|
|
|
<form onSubmit={handleSubmit(onSubmit)} className="space-y-6">
|
|
|
<div>
|
|
|
<label htmlFor="username" className="block text-sm font-medium text-gray-700 mb-1">
|
|
|
- 用户名
|
|
|
+ 微信昵称
|
|
|
</label>
|
|
|
<div className="relative">
|
|
|
<div className="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
|
|
@@ -89,11 +89,11 @@ const AuthPage: React.FC = () => {
|
|
|
id="username"
|
|
|
type="text"
|
|
|
className={`w-full pl-10 pr-3 py-2 border ${errors.username ? 'border-red-300' : 'border-gray-300'} rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent`}
|
|
|
- placeholder="请输入用户名"
|
|
|
- {...register('username', {
|
|
|
- required: '用户名不能为空',
|
|
|
- minLength: { value: 3, message: '用户名至少3个字符' },
|
|
|
- maxLength: { value: 20, message: '用户名不能超过20个字符' }
|
|
|
+ placeholder="输入微信昵称"
|
|
|
+ {...register('username', {
|
|
|
+ required: '微信昵称不能为空',
|
|
|
+ minLength: { value: 3, message: '微信昵称至少3个字符' },
|
|
|
+ maxLength: { value: 20, message: '微信昵称不能超过20个字符' }
|
|
|
})}
|
|
|
/>
|
|
|
</div>
|
|
|
@@ -104,7 +104,7 @@ const AuthPage: React.FC = () => {
|
|
|
|
|
|
<div className="bg-blue-50 border border-blue-200 rounded-md p-3">
|
|
|
<p className="text-sm text-blue-800">
|
|
|
- 💡 智能认证:输入用户名后,系统会自动判断是登录还是注册。新用户将自动创建账号,默认密码为 <strong>123456</strong>
|
|
|
+ 💡 智能认证:输入微信昵称后,系统会自动判断是登录还是注册。新用户将自动创建账号,默认密码为 <strong>123456</strong>
|
|
|
</p>
|
|
|
</div>
|
|
|
|
|
|
@@ -131,7 +131,7 @@ const AuthPage: React.FC = () => {
|
|
|
|
|
|
<div className="mt-4 text-center">
|
|
|
<p className="text-sm text-gray-600">
|
|
|
- 无需复杂操作,输入用户名即可快速开始使用
|
|
|
+ 无需复杂操作,输入微信昵称即可快速开始使用
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|