Browse Source

📝 docs(auth): 更新认证相关页面文案

- 将"用户名"统一替换为"微信昵称"以符合产品定位
- 更新AuthPage页面的标题、标签、占位符和错误提示文本
- 修改MemberPage个人信息页的字段标签
- 调整智能认证提示文案以保持一致性
yourname 6 months ago
parent
commit
bebfddf7fa
2 changed files with 10 additions and 10 deletions
  1. 9 9
      src/client/mobile/pages/AuthPage.tsx
  2. 1 1
      src/client/mobile/pages/MemberPage.tsx

+ 9 - 9
src/client/mobile/pages/AuthPage.tsx

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

+ 1 - 1
src/client/mobile/pages/MemberPage.tsx

@@ -112,7 +112,7 @@ const MemberPage: React.FC = () => {
           
           <div className="space-y-4">
             <div className="border-b border-gray-100 pb-4">
-              <h3 className="text-sm font-medium text-gray-500 mb-1">用户名</h3>
+              <h3 className="text-sm font-medium text-gray-500 mb-1">微信昵称</h3>
               <p className="text-gray-900">{user.username}</p>
             </div>