diff --git a/web/src/components/table/model-pricing/layout/header/PricingTopSection.jsx b/web/src/components/table/model-pricing/layout/header/PricingTopSection.jsx index 78d46003..fe842fe3 100644 --- a/web/src/components/table/model-pricing/layout/header/PricingTopSection.jsx +++ b/web/src/components/table/model-pricing/layout/header/PricingTopSection.jsx @@ -20,6 +20,7 @@ For commercial licensing, please contact support@quantumnous.com import React, { useState, memo } from 'react'; import PricingFilterModal from '../../modal/PricingFilterModal'; import PricingVendorIntroWithSkeleton from './PricingVendorIntroWithSkeleton'; +import SearchActions from './SearchActions'; const PricingTopSection = memo(({ selectedRowKeys, @@ -40,28 +41,43 @@ const PricingTopSection = memo(({ return ( <> - - - {isMobile && ( - setShowFilterModal(false)} - sidebarProps={sidebarProps} + {isMobile ? ( + <> +
+ +
+ setShowFilterModal(false)} + sidebarProps={sidebarProps} + t={t} + /> + + ) : ( + )} diff --git a/web/src/components/table/model-pricing/layout/header/PricingVendorIntro.jsx b/web/src/components/table/model-pricing/layout/header/PricingVendorIntro.jsx index deb618b1..2f02bd2b 100644 --- a/web/src/components/table/model-pricing/layout/header/PricingVendorIntro.jsx +++ b/web/src/components/table/model-pricing/layout/header/PricingVendorIntro.jsx @@ -247,7 +247,7 @@ const PricingVendorIntro = memo(({
diff --git a/web/src/components/table/model-pricing/layout/header/PricingVendorIntroSkeleton.jsx b/web/src/components/table/model-pricing/layout/header/PricingVendorIntroSkeleton.jsx index c0bf25e3..6cc2a51f 100644 --- a/web/src/components/table/model-pricing/layout/header/PricingVendorIntroSkeleton.jsx +++ b/web/src/components/table/model-pricing/layout/header/PricingVendorIntroSkeleton.jsx @@ -103,7 +103,7 @@ const PricingVendorIntroSkeleton = memo(({
diff --git a/web/src/components/table/model-pricing/view/card/PricingCardSkeleton.jsx b/web/src/components/table/model-pricing/view/card/PricingCardSkeleton.jsx index 6da5be49..c3cb4a31 100644 --- a/web/src/components/table/model-pricing/view/card/PricingCardSkeleton.jsx +++ b/web/src/components/table/model-pricing/view/card/PricingCardSkeleton.jsx @@ -26,7 +26,7 @@ const PricingCardSkeleton = ({ showRatio = false }) => { const placeholder = ( -
+
{Array.from({ length: skeletonCount }).map((_, index) => ( +
{paginatedModels.map((model, index) => { const modelKey = getModelKey(model); @@ -278,9 +278,7 @@ const PricingCardView = ({ {/* 底部区域 */}
{/* 标签区域 */} -
- {renderTags(model)} -
+ {renderTags(model)} {/* 倍率信息(可选) */} {showRatio && ( diff --git a/web/src/helpers/utils.jsx b/web/src/helpers/utils.jsx index b9d6c8d8..482ed273 100644 --- a/web/src/helpers/utils.jsx +++ b/web/src/helpers/utils.jsx @@ -656,22 +656,15 @@ export const calculateModelPrice = ({ // 格式化价格信息(用于卡片视图) export const formatPriceInfo = (priceData, t) => { - const groupTag = priceData.usedGroup ? ( - - {t('分组')} {priceData.usedGroup} - - ) : null; - if (priceData.isPerToken) { return ( <> - {t('提示')} {priceData.inputPrice}/{priceData.unitLabel} + {t('输入')} {priceData.inputPrice}/{priceData.unitLabel} - {t('补全')} {priceData.completionPrice}/{priceData.unitLabel} + {t('输出')} {priceData.completionPrice}/{priceData.unitLabel} - {groupTag} ); } @@ -681,7 +674,6 @@ export const formatPriceInfo = (priceData, t) => { {t('模型价格')} {priceData.price} - {groupTag} ); }; diff --git a/web/src/index.css b/web/src/index.css index ae592cf5..dfff900d 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -775,6 +775,7 @@ html.dark .with-pastel-balls::before { } /* ==================== semi-ui 组件自定义样式 ==================== */ -.semi-card-header { +.semi-card-header, +.semi-card-body { padding: 10px !important; } \ No newline at end of file