|
|
@@ -1,4 +1,3 @@
|
|
|
-import { View, Image } from "@tarojs/components";
|
|
|
import React, { useState } from "react";
|
|
|
import Taro, { nextTick } from "@tarojs/taro";
|
|
|
import { TAvatarItem } from "@/service/storage";
|
|
|
@@ -23,7 +22,7 @@ export default React.memo(function Index({prev, pickedAvatar}:IProps) {
|
|
|
saveAgent()
|
|
|
Taro.showToast({title: '形象设置成功', icon: 'success'})
|
|
|
setTimeout(()=> {
|
|
|
- Taro.navigateBack()
|
|
|
+ Taro.navigateBack({delta:2})
|
|
|
}, 2000)
|
|
|
})
|
|
|
return
|
|
|
@@ -31,7 +30,7 @@ export default React.memo(function Index({prev, pickedAvatar}:IProps) {
|
|
|
// 如果是新建智能体,只是暂时设置并不更新至服务器
|
|
|
Taro.showToast({title: '形象设置成功', icon: 'success'})
|
|
|
setTimeout(()=> {
|
|
|
- Taro.navigateBack()
|
|
|
+ Taro.navigateBack({delta:2})
|
|
|
}, 2000)
|
|
|
}
|
|
|
|
|
|
@@ -61,44 +60,4 @@ export default React.memo(function Index({prev, pickedAvatar}:IProps) {
|
|
|
onConfirm={handleConfirm} />}
|
|
|
</>
|
|
|
)
|
|
|
- // return (
|
|
|
- // <View>
|
|
|
- // <View className={style.confirmContainer}>
|
|
|
- // <View className={style.confirmRoundedAvatarWrap}>
|
|
|
- // <Image
|
|
|
- // mode='aspectFill'
|
|
|
- // className={style.confirmRoundedAvatar}
|
|
|
- // src={pickedAvatar?.avatarLogo}
|
|
|
- // ></Image>
|
|
|
- // </View>
|
|
|
- // <View className={style.confirmChatAvatarBg}>
|
|
|
- // <View className={style.confirmChatAvatarImage}>
|
|
|
- // <AvatarMedia roundedFull={false} source={pickedAvatar?.avatarUrl} className={style.confirmChatAvatarImage} />
|
|
|
- // {!pickedAvatar.isOriginal && <View className={style.aiTips}>图片由AI生成</View> }
|
|
|
- // {/* <Image
|
|
|
- // mode="widthFix"
|
|
|
- // className="w-full"
|
|
|
- // src={pickedAvatar.avatarUrl}
|
|
|
- // ></Image> */}
|
|
|
- // </View>
|
|
|
- // <View className={style.confirmChatAvatarBgCover}>
|
|
|
- // <View className={style.block1}></View>
|
|
|
- // <View className={style.block2}></View>
|
|
|
- // <View className={style.block3}></View>
|
|
|
- // </View>
|
|
|
- // </View>
|
|
|
- // <View className="flex-center gap-8 text-14 font-medium leading-22 text-black" onClick={()=> setEnabledChatBg((prev)=> !prev)}>
|
|
|
- // <WemetaRadio checked={enabledChatBg} checkbox></WemetaRadio>
|
|
|
- // 启用聊天背景
|
|
|
- // </View>
|
|
|
- // </View>
|
|
|
-
|
|
|
- // <View className="bottom-bar">
|
|
|
- // <View className="grid grid-cols-2 gap-8 px-20 py-12">
|
|
|
- // <View className={`button-rounded`} onClick={prev}>更换形象</View>
|
|
|
- // <WemetaButton className="flex-1" onClick={handleConfirm}>确定</WemetaButton>
|
|
|
- // </View>
|
|
|
- // </View>
|
|
|
- // </View>
|
|
|
- // );
|
|
|
});
|