Преглед изворни кода

refactor(yongren-settings): 使用heroicons图标类替代emoji表情符号

- 删除mini/src/layouts下不再使用的yongren-tab-bar-layout文件
- 更新Settings页面所有图标为heroicons图标类
  - 企业图标:i-heroicons-building-office-20-solid
  - 账号信息:i-heroicons-user-20-solid
  - 安全设置:i-heroicons-shield-check-20-solid
  - 消息通知:i-heroicons-bell-20-solid
  - 帮助中心:i-heroicons-question-mark-circle-20-solid
  - 用户协议:i-heroicons-document-text-20-solid
  - 隐私政策:i-heroicons-lock-closed-20-solid
  - 退出登录:i-heroicons-arrow-left-on-rectangle-20-solid

符合项目规范,与yongren-dashboard-ui等其他UI包保持一致。

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

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname пре 3 недеља
родитељ
комит
b61c693dae

+ 8 - 8
mini-ui-packages/yongren-settings-ui/src/pages/Settings/Settings.tsx

@@ -126,7 +126,7 @@ const Settings: React.FC = () => {
         <View className="p-4 border-b border-gray-200">
           <View className="flex items-center mb-4">
             <View className="w-16 h-16 rounded-full bg-blue-100 flex items-center justify-center mr-3">
-              <Text className="text-blue-500 text-2xl">🏢</Text>
+              <View className="i-heroicons-building-office-20-solid text-blue-500 text-2xl" />
             </View>
             <View className="flex flex-col">
               <Text className="font-semibold text-gray-800">
@@ -169,7 +169,7 @@ const Settings: React.FC = () => {
             >
               <View className="flex items-center">
                 <View className="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3">
-                  <Text className="text-blue-500">👤</Text>
+                  <View className="i-heroicons-user-20-solid text-blue-500 text-lg" />
                 </View>
                 <View className="flex flex-col">
                   <Text className="text-gray-700">账号信息</Text>
@@ -185,7 +185,7 @@ const Settings: React.FC = () => {
             >
               <View className="flex items-center">
                 <View className="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mr-3">
-                  <Text className="text-green-500">🛡</Text>
+                  <View className="i-heroicons-shield-check-20-solid text-green-500 text-lg" />
                 </View>
                 <View className="flex flex-col">
                   <Text className="text-gray-700">安全设置</Text>
@@ -201,7 +201,7 @@ const Settings: React.FC = () => {
             >
               <View className="flex items-center">
                 <View className="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3">
-                  <Text className="text-purple-500">🔔</Text>
+                  <View className="i-heroicons-bell-20-solid text-purple-500 text-lg" />
                 </View>
                 <View className="flex flex-col">
                   <Text className="text-gray-700">消息通知</Text>
@@ -220,7 +220,7 @@ const Settings: React.FC = () => {
             >
               <View className="flex items-center">
                 <View className="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center mr-3">
-                  <Text className="text-yellow-500">?</Text>
+                  <View className="i-heroicons-question-mark-circle-20-solid text-yellow-500 text-lg" />
                 </View>
                 <Text className="text-gray-700">帮助中心</Text>
               </View>
@@ -233,7 +233,7 @@ const Settings: React.FC = () => {
             >
               <View className="flex items-center">
                 <View className="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
-                  <Text className="text-indigo-500">📄</Text>
+                  <View className="i-heroicons-document-text-20-solid text-indigo-500 text-lg" />
                 </View>
                 <Text className="text-gray-700">用户协议</Text>
               </View>
@@ -246,7 +246,7 @@ const Settings: React.FC = () => {
             >
               <View className="flex items-center">
                 <View className="w-10 h-10 rounded-full bg-pink-100 flex items-center justify-center mr-3">
-                  <Text className="text-pink-500">🔒</Text>
+                  <View className="i-heroicons-lock-closed-20-solid text-pink-500 text-lg" />
                 </View>
                 <Text className="text-gray-700">隐私政策</Text>
               </View>
@@ -262,7 +262,7 @@ const Settings: React.FC = () => {
             >
               <View className="flex items-center">
                 <View className="w-10 h-10 rounded-full bg-red-100 flex items-center justify-center mr-3">
-                  <Text className="text-red-500">🚪</Text>
+                  <View className="i-heroicons-arrow-left-on-rectangle-20-solid text-red-500 text-lg" />
                 </View>
                 <Text className="text-gray-700">退出登录</Text>
               </View>

+ 0 - 87
mini/src/layouts/yongren-tab-bar-layout.tsx

@@ -1,87 +0,0 @@
-import React, { ReactNode } from 'react'
-import { View } from '@tarojs/components'
-import { TabBar, TabBarItem } from '@/components/ui/tab-bar'
-import Taro from '@tarojs/taro'
-
-export interface YongrenTabBarLayoutProps {
-  children: ReactNode
-  activeKey: string
-}
-
-const yongrenTabBarItems: TabBarItem[] = [
-  {
-    key: 'dashboard',
-    title: '首页',
-    iconClass: 'i-heroicons-home-20-solid',
-    selectedIconClass: 'i-heroicons-home-20-solid',
-  },
-  {
-    key: 'talent',
-    title: '人才',
-    iconClass: 'i-heroicons-user-group-20-solid',
-    selectedIconClass: 'i-heroicons-user-group-20-solid',
-  },
-  {
-    key: 'order',
-    title: '订单',
-    iconClass: 'i-heroicons-document-text-20-solid',
-    selectedIconClass: 'i-heroicons-document-text-20-solid',
-  },
-  {
-    key: 'statistics',
-    title: '数据',
-    iconClass: 'i-heroicons-chart-bar-20-solid',
-    selectedIconClass: 'i-heroicons-chart-bar-20-solid',
-  },
-  {
-    key: 'settings',
-    title: '设置',
-    iconClass: 'i-heroicons-cog-6-tooth-20-solid',
-    selectedIconClass: 'i-heroicons-cog-6-tooth-20-solid',
-  },
-]
-
-const YongrenTabBarLayout: React.FC<YongrenTabBarLayoutProps> = ({ children, activeKey }) => {
-  const handleTabChange = (key: string) => {
-    // 使用 Taro 的导航 API 进行页面跳转
-    switch (key) {
-      case 'dashboard':
-        Taro.switchTab({ url: '/pages/yongren/dashboard/index' })
-        break
-      case 'talent':
-        Taro.switchTab({ url: '/pages/yongren/talent/list/index' })
-        break
-      case 'order':
-        Taro.switchTab({ url: '/pages/yongren/order/list/index' })
-        break
-      case 'statistics':
-        Taro.switchTab({ url: '/pages/yongren/statistics/index' })
-        break
-      case 'settings':
-        Taro.switchTab({ url: '/pages/yongren/settings/index' })
-        break
-      default:
-        break
-    }
-  }
-
-  return (
-    <View className="min-h-screen bg-gray-50 flex flex-col">
-      <View className="flex-1 flex flex-col">
-        {children}
-      </View>
-      <TabBar
-        items={yongrenTabBarItems}
-        activeKey={activeKey}
-        onChange={handleTabChange}
-        fixed={true}
-        safeArea={true}
-        color="#999"
-        selectedColor="#3b82f6"
-        backgroundColor="white"
-      />
-    </View>
-  )
-}
-
-export default YongrenTabBarLayout