ソースを参照

feat(mini): 为两个小程序登录页添加Navbar导航栏

- 用人端登录页添加白色背景Navbar
- 人才端登录页添加透明背景Navbar(匹配蓝色渐变)
- 两个Navbar均无返回按钮,仅显示标题

🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname 1 週間 前
コミット
bd5fe9c481

+ 4 - 1
mini-ui-packages/mini-enterprise-auth-ui/src/pages/login/Login.tsx

@@ -6,6 +6,7 @@ import { cn } from '@d8d/mini-shared-ui-components/utils/cn'
 import { Button } from '@d8d/mini-shared-ui-components/components/button'
 import { Input } from '@d8d/mini-shared-ui-components/components/input'
 import { Form, FormField, FormItem, FormControl, FormMessage } from '@d8d/mini-shared-ui-components/components/form'
+import { Navbar } from '@d8d/mini-shared-ui-components/components/navbar'
 import { z } from 'zod'
 import { zodResolver } from '@hookform/resolvers/zod'
 import { useForm } from 'react-hook-form'
@@ -95,7 +96,9 @@ export default function Login() {
 
   return (
     <View className="min-h-screen bg-white">
-      {/* 状态栏由小程序宿主提供,无需实现 */}
+      {/* 导航栏 */}
+      <Navbar title="企业用户登录" leftIcon="" />
+
       <View className="h-[calc(100%-44px)] flex flex-col justify-center p-8">
         {/* Logo区域 - 对照原型第232-235行 */}
         <View className="text-center mb-10 flex flex-col">

+ 10 - 0
mini-ui-packages/rencai-auth-ui/src/pages/LoginPage/LoginPage.tsx

@@ -1,6 +1,7 @@
 import React, { useState } from 'react'
 import { View, Text, Input, Button } from '@tarojs/components'
 import { useAuth } from '../../hooks'
+import { Navbar } from '@d8d/mini-shared-ui-components/components/navbar'
 import Taro from '@tarojs/taro'
 
 /**
@@ -53,6 +54,15 @@ export const LoginPage: React.FC = () => {
 
   return (
     <View className="min-h-screen">
+      {/* 导航栏 */}
+      <Navbar
+        title="人才登录"
+        leftIcon=""
+        backgroundColor="bg-transparent"
+        textColor="text-white"
+        border={false}
+      />
+
       {/* 蓝色渐变背景 */}
       <View
         className="min-h-screen flex flex-col items-center justify-center px-6"