Skip to content

Commit

Permalink
perf: faq
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu committed Feb 28, 2024
1 parent 37d737b commit 5b69dce
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 20 deletions.
14 changes: 2 additions & 12 deletions projects/app/src/pages/account/components/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ const MyInfo = () => {
onClose: onCloseUpdatePsw,
onOpen: onOpenUpdatePsw
} = useDisclosure();
const {
isOpen: isOpenStandardModal,
onClose: onCloseStandardModal,
onOpen: onOpenStandardModal
} = useDisclosure();
const { File, onOpen: onOpenSelectFile } = useSelectFile({
fileType: '.jpg,.png',
multiple: false
Expand Down Expand Up @@ -259,7 +254,7 @@ const MyInfo = () => {
<strong>{formatStorePrice2Read(userInfo?.team?.balance).toFixed(3)}</strong>
</Box>
{feConfigs?.show_pay && userInfo?.team?.canWrite && (
<Button size={'sm'} ml={5} onClick={onOpenPayModal}>
<Button variant={'whitePrimary'} size={'sm'} ml={5} onClick={onOpenPayModal}>
{t('user.Pay')}
</Button>
)}
Expand Down Expand Up @@ -357,12 +352,7 @@ const PlanUsage = () => {
<MyIcon mr={2} name={'support/account/plans'} w={'20px'} />
{t('support.wallet.subscription.Team plan and usage')}
</Flex>
<Button
ml={4}
variant={'whitePrimary'}
size={'sm'}
onClick={() => router.push(AI_POINT_USAGE_CARD_ROUTE)}
>
<Button ml={4} size={'sm'} onClick={() => router.push(AI_POINT_USAGE_CARD_ROUTE)}>
{t('support.user.Price')}
</Button>
<Button ml={4} variant={'whitePrimary'} size={'sm'} onClick={onOpenStandardModal}>
Expand Down
4 changes: 3 additions & 1 deletion projects/app/src/pages/account/components/PayModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const PayModal = ({
onClose: () => void;
onSuccess?: () => any;
}) => {
const router = useRouter();
const { t } = useTranslation();
const { toast } = useToast();
const { subPlans } = useSystemStore();
Expand Down Expand Up @@ -60,6 +59,9 @@ const PayModal = ({
return (
<MyModal isOpen={true} onClose={onClose} title={t('user.Pay')} iconSrc="/imgs/modal/pay.svg">
<ModalBody px={0} display={'flex'} flexDirection={'column'}>
<Box px={6} fontSize={'sm'} color={'myGray.600'} mb={2} maxW={'400px'}>
该余额仅用于自动续费标准套餐。如需购买额外套餐,可直接下单,无需充值余额。
</Box>
<Grid gridTemplateColumns={'repeat(3,1fr)'} gridGap={5} mb={4} px={6}>
{payList.map((item) => (
<Button
Expand Down
14 changes: 7 additions & 7 deletions projects/app/src/pages/price/components/FAQ.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@ const FAQ = () => {
},
{
title: '什么是AI积分?',
desc: '每次调用AI模型时,都会消耗一定的AI积分。具体的计算标准可参考上方的“AI 积分计算标准”。'
desc: '每次调用AI模型时,都会消耗一定的AI积分。具体的计算标准可参考上方的“AI 积分计算标准”。\n1 字符=1中英文字符和标点符号,会去掉换行和空格符号,计算字符时包含对话上下文与知识库引用。'
},
{
title: 'AI积分会过期么?',
desc: '会过期。当前套餐过期后,AI积分将会清空,并更新为新套餐的AI积分。年度套餐的AI积分时长为1年,而不是每个月。'
},
{
title: '知识库索引怎么计算?',
desc: '知识库索引是系统存储的最小单位。通常每条知识库数据对应一条索引,但也会有多条索引的情况。你可以在知识库数据的编辑面板,查看该数据的索引数量和具体内容。'
},
{
title: '额外资源包可以叠加么?',
desc: '可以的。每次购买的资源包都是独立的,在其有效期内将会叠加使用。AI积分会优先扣除最先过期的资源包。'
title: '知识库存储怎么计算?',
desc: '1条知识库存储等于1条知识库索引。一条知识库数据可以包含1条或多条知识库索引。'
},
{
title: '知识库索引超出会删除么?',
desc: '不会。但知识库索引超出时,无法插入和更新知识库内容。'
},
{
title: '额外资源包可以叠加么?',
desc: '可以的。每次购买的资源包都是独立的,在其有效期内将会叠加使用。AI积分会优先扣除最先过期的资源包。'
},
{
title: '免费版数据会清除么?',
desc: '免费版用户15天无使用记录后,会自动清除所有知识库内容。'
Expand Down

0 comments on commit 5b69dce

Please sign in to comment.