feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面
This commit is contained in:
+9
-10
@@ -17,10 +17,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { Toast, Pagination } from '@douyinfe/semi-ui';
|
||||
import { Toast, Pagination } from '@/components/ui';
|
||||
import { toastConstants } from '../constants';
|
||||
import React from 'react';
|
||||
import { toast } from 'react-toastify';
|
||||
import i18next from 'i18next';
|
||||
import {
|
||||
THINK_TAG_REGEX,
|
||||
@@ -219,7 +218,7 @@ export function showInfo(message) {
|
||||
|
||||
export function showNotice(message, isHTML = false) {
|
||||
if (isHTML) {
|
||||
toast(<HTMLToastContent htmlContent={message} />, showNoticeOptions);
|
||||
Toast.info({ content: <HTMLToastContent htmlContent={message} />, duration: 0 });
|
||||
} else {
|
||||
Toast.info(message);
|
||||
}
|
||||
@@ -1016,7 +1015,7 @@ const renderOfficialStrike = (formattedPrice) => {
|
||||
// Tailwind 生成序中 no-underline 靠后会反杀删除线(同特异性后者胜)
|
||||
<del
|
||||
className='mr-1 line-through'
|
||||
style={{ color: 'var(--semi-color-text-3)', fontSize: '0.92em' }}
|
||||
style={{ color: 'var(--ui-color-text-3)', fontSize: '0.92em' }}
|
||||
>
|
||||
{formattedPrice}
|
||||
</del>
|
||||
@@ -1033,7 +1032,7 @@ export const getDiscountBadgeText = (priceData) => {
|
||||
export const formatPriceInfo = (priceData, t) => {
|
||||
if (priceData.isPerSecond || priceData.isPerImageResolution) {
|
||||
return (
|
||||
<span style={{ color: 'var(--semi-color-text-1)' }}>{t('模型价格')}</span>
|
||||
<span style={{ color: 'var(--ui-color-text-1)' }}>{t('模型价格')}</span>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1045,14 +1044,14 @@ export const formatPriceInfo = (priceData, t) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<span style={{ color: 'var(--semi-color-text-1)' }}>
|
||||
<span style={{ color: 'var(--ui-color-text-1)' }}>
|
||||
{t('输入')} {renderOfficialStrike(official?.inputPrice)}
|
||||
<span className={official?.inputPrice ? 'font-semibold' : ''}>
|
||||
{priceData.inputPrice}
|
||||
</span>
|
||||
/{priceData.unitLabel}
|
||||
</span>
|
||||
<span style={{ color: 'var(--semi-color-text-1)' }}>
|
||||
<span style={{ color: 'var(--ui-color-text-1)' }}>
|
||||
{t('输出')} {renderOfficialStrike(official?.completionPrice)}
|
||||
<span className={official?.completionPrice ? 'font-semibold' : ''}>
|
||||
{priceData.completionPrice}
|
||||
@@ -1060,7 +1059,7 @@ export const formatPriceInfo = (priceData, t) => {
|
||||
/{priceData.unitLabel}
|
||||
</span>
|
||||
{extraPrices.map((item) => (
|
||||
<span key={item.key} style={{ color: 'var(--semi-color-text-1)' }}>
|
||||
<span key={item.key} style={{ color: 'var(--ui-color-text-1)' }}>
|
||||
{t(item.labelKey)} {item.price}/{priceData.unitLabel}
|
||||
</span>
|
||||
))}
|
||||
@@ -1070,7 +1069,7 @@ export const formatPriceInfo = (priceData, t) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<span style={{ color: 'var(--semi-color-text-1)' }}>
|
||||
<span style={{ color: 'var(--ui-color-text-1)' }}>
|
||||
{t('模型价格')} {renderOfficialStrike(priceData.official?.price)}
|
||||
<span className={priceData.official?.price ? 'font-semibold' : ''}>
|
||||
{priceData.price}
|
||||
@@ -1107,7 +1106,7 @@ export const createCardProPagination = ({
|
||||
{!isMobile && (
|
||||
<span
|
||||
className='text-sm select-none'
|
||||
style={{ color: 'var(--semi-color-text-2)' }}
|
||||
style={{ color: 'var(--ui-color-text-2)' }}
|
||||
>
|
||||
{totalText}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user