|
@@ -30,7 +30,7 @@ const ProfilePage: React.FC = () => {
|
|
|
duration: 1500
|
|
duration: 1500
|
|
|
})
|
|
})
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
- Taro.reLaunch({ url: '/pages/index/index' })
|
|
|
|
|
|
|
+ Taro.reLaunch({ url: '/pages/yongren/dashboard/index' })
|
|
|
}, 1500)
|
|
}, 1500)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -104,25 +104,25 @@ const ProfilePage: React.FC = () => {
|
|
|
const menuItems = [
|
|
const menuItems = [
|
|
|
{
|
|
{
|
|
|
icon: 'i-heroicons-user-circle-20-solid',
|
|
icon: 'i-heroicons-user-circle-20-solid',
|
|
|
- title: '编辑资料',
|
|
|
|
|
|
|
+ title: '企业信息',
|
|
|
onClick: handleEditProfile,
|
|
onClick: handleEditProfile,
|
|
|
color: 'text-blue-500'
|
|
color: 'text-blue-500'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
icon: 'i-heroicons-cog-6-tooth-20-solid',
|
|
icon: 'i-heroicons-cog-6-tooth-20-solid',
|
|
|
- title: '设置',
|
|
|
|
|
|
|
+ title: '账户设置',
|
|
|
onClick: handleSettings,
|
|
onClick: handleSettings,
|
|
|
color: 'text-gray-500'
|
|
color: 'text-gray-500'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
icon: 'i-heroicons-shield-check-20-solid',
|
|
icon: 'i-heroicons-shield-check-20-solid',
|
|
|
- title: '隐私政策',
|
|
|
|
|
|
|
+ title: '服务协议',
|
|
|
onClick: () => Taro.showToast({ title: '功能开发中...', icon: 'none' }),
|
|
onClick: () => Taro.showToast({ title: '功能开发中...', icon: 'none' }),
|
|
|
color: 'text-green-500'
|
|
color: 'text-green-500'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
icon: 'i-heroicons-question-mark-circle-20-solid',
|
|
icon: 'i-heroicons-question-mark-circle-20-solid',
|
|
|
- title: '帮助与反馈',
|
|
|
|
|
|
|
+ title: '联系客服',
|
|
|
onClick: () => Taro.showToast({ title: '功能开发中...', icon: 'none' }),
|
|
onClick: () => Taro.showToast({ title: '功能开发中...', icon: 'none' }),
|
|
|
color: 'text-purple-500'
|
|
color: 'text-purple-500'
|
|
|
}
|
|
}
|
|
@@ -142,13 +142,13 @@ const ProfilePage: React.FC = () => {
|
|
|
return (
|
|
return (
|
|
|
<TabBarLayout activeKey="profile">
|
|
<TabBarLayout activeKey="profile">
|
|
|
<Navbar
|
|
<Navbar
|
|
|
- title="个人中心"
|
|
|
|
|
|
|
+ title="企业账户"
|
|
|
leftIcon=""
|
|
leftIcon=""
|
|
|
/>
|
|
/>
|
|
|
<View className="flex-1 flex flex-col items-center justify-center">
|
|
<View className="flex-1 flex flex-col items-center justify-center">
|
|
|
<View className="flex flex-col items-center">
|
|
<View className="flex flex-col items-center">
|
|
|
<View className="i-heroicons-exclamation-circle-20-solid w-12 h-12 text-gray-400 mx-auto mb-4" />
|
|
<View className="i-heroicons-exclamation-circle-20-solid w-12 h-12 text-gray-400 mx-auto mb-4" />
|
|
|
- <Text className="text-gray-600 mb-4">请先登录</Text>
|
|
|
|
|
|
|
+ <Text className="text-gray-600 mb-4">请先登录企业账户</Text>
|
|
|
<Button
|
|
<Button
|
|
|
variant="default"
|
|
variant="default"
|
|
|
size="lg"
|
|
size="lg"
|
|
@@ -165,7 +165,7 @@ const ProfilePage: React.FC = () => {
|
|
|
return (
|
|
return (
|
|
|
<TabBarLayout activeKey="profile">
|
|
<TabBarLayout activeKey="profile">
|
|
|
<Navbar
|
|
<Navbar
|
|
|
- title="个人中心"
|
|
|
|
|
|
|
+ title="企业账户"
|
|
|
rightIcon="i-heroicons-cog-6-tooth-20-solid"
|
|
rightIcon="i-heroicons-cog-6-tooth-20-solid"
|
|
|
onClickRight={handleSettings}
|
|
onClickRight={handleSettings}
|
|
|
leftIcon=""
|
|
leftIcon=""
|
|
@@ -200,15 +200,15 @@ const ProfilePage: React.FC = () => {
|
|
|
<View className="grid grid-cols-3 gap-4 text-center">
|
|
<View className="grid grid-cols-3 gap-4 text-center">
|
|
|
<View className="bg-gray-50 rounded-xl p-4">
|
|
<View className="bg-gray-50 rounded-xl p-4">
|
|
|
<Text className="text-2xl font-bold text-blue-500">0</Text>
|
|
<Text className="text-2xl font-bold text-blue-500">0</Text>
|
|
|
- <Text className="text-xs text-gray-600 mt-1">收藏</Text>
|
|
|
|
|
|
|
+ <Text className="text-xs text-gray-600 mt-1">人才数</Text>
|
|
|
</View>
|
|
</View>
|
|
|
<View className="bg-gray-50 rounded-xl p-4">
|
|
<View className="bg-gray-50 rounded-xl p-4">
|
|
|
<Text className="text-2xl font-bold text-green-500">0</Text>
|
|
<Text className="text-2xl font-bold text-green-500">0</Text>
|
|
|
- <Text className="text-xs text-gray-600 mt-1">点赞</Text>
|
|
|
|
|
|
|
+ <Text className="text-xs text-gray-600 mt-1">订单数</Text>
|
|
|
</View>
|
|
</View>
|
|
|
<View className="bg-gray-50 rounded-xl p-4">
|
|
<View className="bg-gray-50 rounded-xl p-4">
|
|
|
<Text className="text-2xl font-bold text-purple-500">0</Text>
|
|
<Text className="text-2xl font-bold text-purple-500">0</Text>
|
|
|
- <Text className="text-xs text-gray-600 mt-1">关注</Text>
|
|
|
|
|
|
|
+ <Text className="text-xs text-gray-600 mt-1">消息数</Text>
|
|
|
</View>
|
|
</View>
|
|
|
</View>
|
|
</View>
|
|
|
</View>
|
|
</View>
|
|
@@ -234,15 +234,15 @@ const ProfilePage: React.FC = () => {
|
|
|
{/* 账号信息 */}
|
|
{/* 账号信息 */}
|
|
|
<View className="px-4 pt-6">
|
|
<View className="px-4 pt-6">
|
|
|
<View className="bg-white rounded-2xl shadow-sm p-4">
|
|
<View className="bg-white rounded-2xl shadow-sm p-4">
|
|
|
- <Text className="text-sm font-medium text-gray-700 mb-3">账号信息</Text>
|
|
|
|
|
|
|
+ <Text className="text-sm font-medium text-gray-700 mb-3">企业账户信息</Text>
|
|
|
<View className="space-y-3">
|
|
<View className="space-y-3">
|
|
|
<View className="flex justify-between items-center">
|
|
<View className="flex justify-between items-center">
|
|
|
- <Text className="text-sm text-gray-600">用户ID</Text>
|
|
|
|
|
|
|
+ <Text className="text-sm text-gray-600">企业账号ID</Text>
|
|
|
<Text className="text-sm text-gray-900 font-mono">{userProfile.id}</Text>
|
|
<Text className="text-sm text-gray-900 font-mono">{userProfile.id}</Text>
|
|
|
</View>
|
|
</View>
|
|
|
{userProfile.updatedAt && (
|
|
{userProfile.updatedAt && (
|
|
|
<View className="flex justify-between items-center">
|
|
<View className="flex justify-between items-center">
|
|
|
- <Text className="text-sm text-gray-600">最近登录</Text>
|
|
|
|
|
|
|
+ <Text className="text-sm text-gray-600">最近登录时间</Text>
|
|
|
<Text className="text-sm text-gray-900">
|
|
<Text className="text-sm text-gray-900">
|
|
|
{new Date(userProfile.updatedAt).toLocaleString('zh-CN')}
|
|
{new Date(userProfile.updatedAt).toLocaleString('zh-CN')}
|
|
|
</Text>
|
|
</Text>
|