|
|
|
@ -76,20 +76,6 @@ class ExploreController extends GetxController { |
|
|
|
) |
|
|
|
]; |
|
|
|
|
|
|
|
final List<AIFeature> aiFeaturesWide = [ |
|
|
|
AIFeature( |
|
|
|
title: 'conferenceAssistant'.tr, // 商务会议助手 |
|
|
|
description: 'conferenceAssistantInfo'.tr, // 实时记录会议纪要,多语言翻译 |
|
|
|
icon: Icons.people, |
|
|
|
startColor: const Color(0xFFab47bc), |
|
|
|
endColor: const Color(0xFFec407a), |
|
|
|
iconBgColor: const Color(0xFFd81b60).withOpacity(0.2), |
|
|
|
iconColor: const Color(0xFFd81b60), |
|
|
|
agentId: 'meeting_assistant', |
|
|
|
targetRoute: Routes.meeting, |
|
|
|
), |
|
|
|
]; |
|
|
|
|
|
|
|
// 点击AI功能 |
|
|
|
void onAIFeatureTap(int index) { |
|
|
|
if (index < 0 || index >= aiFeatures.length) return; |
|
|
|
@ -100,36 +86,4 @@ class ExploreController extends GetxController { |
|
|
|
// 根据目标路由进行跳转 |
|
|
|
Get.toNamed(feature.targetRoute); |
|
|
|
} |
|
|
|
|
|
|
|
// 点击AI功能(宽版本) |
|
|
|
void onAIFeatureWideTap(int index) { |
|
|
|
if (index < 0 || index >= aiFeaturesWide.length) return; |
|
|
|
|
|
|
|
final feature = aiFeaturesWide[index]; |
|
|
|
|
|
|
|
// 直接根据目标路由进行跳转 |
|
|
|
if (feature.targetRoute == Routes.meeting) { |
|
|
|
Get.toNamed(feature.targetRoute); |
|
|
|
} else if (feature.targetRoute == Routes.chat) { |
|
|
|
final agent = AgentProvider.getAgentById(feature.agentId); |
|
|
|
if (agent != null) { |
|
|
|
Get.toNamed(feature.targetRoute, arguments: { |
|
|
|
'agentId': agent.id, |
|
|
|
'agentName': agent.name, |
|
|
|
'agentVoice': agent.voice, |
|
|
|
'agentAvatar': agent.avatarUrl, |
|
|
|
'agentSubtitle': agent.description, |
|
|
|
'systemPrompt': agent.systemPrompt, |
|
|
|
'welcomeMessage': agent.welcomeMessage, |
|
|
|
}); |
|
|
|
} |
|
|
|
} else if (feature.targetRoute.isNotEmpty) { |
|
|
|
Get.toNamed(feature.targetRoute); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 跳转到用量统计页面 |
|
|
|
void goToUsageStats() { |
|
|
|
Get.toNamed(Routes.usageStats); |
|
|
|
} |
|
|
|
} |
|
|
|
|