|
|
@@ -5,6 +5,7 @@ import { useAuth } from '@/utils/auth'
|
|
|
import { cn } from '@/utils/cn'
|
|
|
import { Button } from '@/components/ui/button'
|
|
|
import { Input } from '@/components/ui/input'
|
|
|
+import Navbar from '@/components/ui/navbar'
|
|
|
|
|
|
export default function Login() {
|
|
|
const [username, setUsername] = useState('')
|
|
|
@@ -129,6 +130,12 @@ export default function Login() {
|
|
|
|
|
|
return (
|
|
|
<View className="min-h-screen bg-gradient-to-br from-blue-50 via-white to-indigo-50">
|
|
|
+ <Navbar
|
|
|
+ title="用户登录"
|
|
|
+ backgroundColor="bg-transparent"
|
|
|
+ textColor="text-gray-900"
|
|
|
+ border={false}
|
|
|
+ />
|
|
|
<View className="flex-1 px-6 py-12">
|
|
|
{/* Logo区域 */}
|
|
|
<View className="flex flex-col items-center mb-10">
|
|
|
@@ -169,7 +176,6 @@ export default function Login() {
|
|
|
value={password}
|
|
|
onInput={handlePasswordInput}
|
|
|
maxlength={20}
|
|
|
- type={showPassword ? 'text' : 'password'}
|
|
|
confirmType="done"
|
|
|
size="lg"
|
|
|
variant="filled"
|