|
@@ -25,6 +25,7 @@ import {useKeyboard} from './components/keyboard'
|
|
|
|
|
|
export default function Index() {
|
|
export default function Index() {
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
|
+ const bottomSafeHeight = useAppStore((state) => state.bottomSafeHeight);
|
|
const { agentId, isVisitor } = router.params;
|
|
const { agentId, isVisitor } = router.params;
|
|
if (!agentId) {
|
|
if (!agentId) {
|
|
return <View>没有相应的智能体</View>;
|
|
return <View>没有相应的智能体</View>;
|
|
@@ -138,9 +139,7 @@ const agent = useAgentStore((state) => {
|
|
onClick={() => Taro.navigateBack()}
|
|
onClick={() => Taro.navigateBack()}
|
|
>
|
|
>
|
|
<IconArrowLeft />
|
|
<IconArrowLeft />
|
|
- <View className={showWelcome ? "hidden" : "block"}>
|
|
|
|
- <PersonalCard agent={agent} size="mini" />
|
|
|
|
- </View>
|
|
|
|
|
|
+ <PersonalCard agent={agent} size="mini" />
|
|
</View>
|
|
</View>
|
|
);
|
|
);
|
|
};
|
|
};
|
|
@@ -175,7 +174,7 @@ const agent = useAgentStore((state) => {
|
|
<NavBarNormal blur leftColumn={renderNavLeft}></NavBarNormal>
|
|
<NavBarNormal blur leftColumn={renderNavLeft}></NavBarNormal>
|
|
{renderTopBg()}
|
|
{renderTopBg()}
|
|
<View
|
|
<View
|
|
- className="flex flex-col w-full h-screen relative z-10"
|
|
|
|
|
|
+ className="flex flex-col w-full h-full relative z-10"
|
|
style={{ marginTop: `${marginTopOffset}px` }}
|
|
style={{ marginTop: `${marginTopOffset}px` }}
|
|
>
|
|
>
|
|
<ScrollView
|
|
<ScrollView
|
|
@@ -206,16 +205,12 @@ const agent = useAgentStore((state) => {
|
|
);
|
|
);
|
|
})}
|
|
})}
|
|
</View>
|
|
</View>
|
|
- <View className="pb-140 pt-8">
|
|
|
|
|
|
+ <View className="pb-80 pt-8">
|
|
{(agent) && <RecommendQuestions agent={agent} />}
|
|
{(agent) && <RecommendQuestions agent={agent} />}
|
|
</View>
|
|
</View>
|
|
</ScrollView>
|
|
</ScrollView>
|
|
- <View className="h-140 w-10"></View>
|
|
|
|
<View
|
|
<View
|
|
- className="bottom-bar px-16 pt-12 z-50"
|
|
|
|
- style={{
|
|
|
|
- bottom: `${keyboardHeight}px`,
|
|
|
|
- }}
|
|
|
|
|
|
+ className="w-full"
|
|
>
|
|
>
|
|
{/* <View
|
|
{/* <View
|
|
onClick={switchDeepThink}
|
|
onClick={switchDeepThink}
|
|
@@ -227,16 +222,16 @@ const agent = useAgentStore((state) => {
|
|
>
|
|
>
|
|
深度思考(R1)
|
|
深度思考(R1)
|
|
</View> */}
|
|
</View> */}
|
|
|
|
+ <View className="px-16 py-12 bg-[#F5FAFF]">
|
|
{agent && (
|
|
{agent && (
|
|
- <View className="bg-[#F5FAFF]">
|
|
|
|
<InputBar
|
|
<InputBar
|
|
aiModel={deepThink}
|
|
aiModel={deepThink}
|
|
agent={agent}
|
|
agent={agent}
|
|
histories={list}
|
|
histories={list}
|
|
setShowWelcome={setShowWelcome}
|
|
setShowWelcome={setShowWelcome}
|
|
></InputBar>
|
|
></InputBar>
|
|
- </View>
|
|
|
|
)}
|
|
)}
|
|
|
|
+ </View>
|
|
</View>
|
|
</View>
|
|
</View>
|
|
</View>
|
|
</PageCustom>
|
|
</PageCustom>
|