2025-12-09 19:11:30 +08:00
|
|
|
|
<script setup lang="ts">
|
2025-12-10 01:34:40 +08:00
|
|
|
|
import type { ModelApiTypeOption, ModelLibraryDto, ModelTypeOption } from '@/api/model/types';
|
2025-12-24 23:25:07 +08:00
|
|
|
|
import { Box, Close, CopyDocument, HomeFilled, OfficeBuilding, Search } from '@element-plus/icons-vue';
|
2025-12-10 01:34:40 +08:00
|
|
|
|
import { ElMessage } from 'element-plus';
|
2025-12-09 19:11:30 +08:00
|
|
|
|
import { onMounted, ref, watch } from 'vue';
|
2025-12-09 22:08:25 +08:00
|
|
|
|
import { useRouter } from 'vue-router';
|
2025-12-09 19:11:30 +08:00
|
|
|
|
import { getApiTypeOptions, getModelLibraryList, getModelTypeOptions, getProviderList } from '@/api/model';
|
2025-12-24 23:25:07 +08:00
|
|
|
|
import { useScreenStore } from '@/hooks/useScreen';
|
2025-12-09 22:08:25 +08:00
|
|
|
|
|
|
|
|
|
|
const router = useRouter();
|
2025-12-24 23:25:07 +08:00
|
|
|
|
const { isMobile } = useScreenStore();
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-24 23:25:07 +08:00
|
|
|
|
const showMobileFilter = ref(false);
|
2025-12-09 19:11:30 +08:00
|
|
|
|
const loading = ref(false);
|
|
|
|
|
|
const modelList = ref<ModelLibraryDto[]>([]);
|
|
|
|
|
|
const totalCount = ref(0);
|
|
|
|
|
|
const currentPage = ref(1);
|
2025-12-10 15:08:16 +08:00
|
|
|
|
const pageSize = ref(12);
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
|
|
|
|
|
// 筛选条件
|
|
|
|
|
|
const searchKey = ref('');
|
2025-12-10 01:34:40 +08:00
|
|
|
|
const selectedProviders = ref<string[]>([]);
|
|
|
|
|
|
const selectedModelTypes = ref<number[]>([]);
|
|
|
|
|
|
const selectedApiTypes = ref<number[]>([]);
|
2025-12-09 19:11:30 +08:00
|
|
|
|
const isPremiumOnly = ref(false);
|
|
|
|
|
|
|
|
|
|
|
|
// 供应商列表
|
2025-12-10 01:34:40 +08:00
|
|
|
|
const providerList = ref<string[]>([]);
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
|
|
|
|
|
// 模型类型选项
|
2025-12-10 01:34:40 +08:00
|
|
|
|
const modelTypeOptions = ref<ModelTypeOption[]>([]);
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
|
|
|
|
|
// API类型选项
|
2025-12-10 01:34:40 +08:00
|
|
|
|
const apiTypeOptions = ref<ModelApiTypeOption[]>([]);
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
|
|
|
|
|
async function fetchModelList() {
|
|
|
|
|
|
loading.value = true;
|
|
|
|
|
|
try {
|
|
|
|
|
|
const params = {
|
|
|
|
|
|
searchKey: searchKey.value || undefined,
|
2025-12-10 01:34:40 +08:00
|
|
|
|
providerNames: selectedProviders.value.length > 0 ? selectedProviders.value : undefined,
|
|
|
|
|
|
modelTypes: selectedModelTypes.value.length > 0 ? selectedModelTypes.value : undefined,
|
|
|
|
|
|
modelApiTypes: selectedApiTypes.value.length > 0 ? selectedApiTypes.value : undefined,
|
2025-12-09 19:11:30 +08:00
|
|
|
|
isPremiumOnly: isPremiumOnly.value || undefined,
|
2025-12-09 22:08:25 +08:00
|
|
|
|
skipCount: currentPage.value,
|
2025-12-09 19:11:30 +08:00
|
|
|
|
maxResultCount: pageSize.value,
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const response = await getModelLibraryList(params);
|
|
|
|
|
|
const data = response.data;
|
|
|
|
|
|
|
|
|
|
|
|
modelList.value = data.items;
|
|
|
|
|
|
totalCount.value = data.totalCount;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch (error) {
|
|
|
|
|
|
console.error('获取模型列表失败:', error);
|
|
|
|
|
|
ElMessage.error('获取模型列表失败');
|
|
|
|
|
|
}
|
|
|
|
|
|
finally {
|
|
|
|
|
|
loading.value = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 获取所有供应商列表(用于筛选栏)
|
|
|
|
|
|
async function fetchProviderList() {
|
|
|
|
|
|
try {
|
|
|
|
|
|
const response = await getProviderList();
|
2025-12-10 01:34:40 +08:00
|
|
|
|
providerList.value = response.data.sort();
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
catch (error) {
|
|
|
|
|
|
console.error('获取供应商列表失败:', error);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 获取模型类型选项
|
|
|
|
|
|
async function fetchModelTypeOptions() {
|
|
|
|
|
|
try {
|
|
|
|
|
|
const response = await getModelTypeOptions();
|
2025-12-10 01:34:40 +08:00
|
|
|
|
modelTypeOptions.value = response.data;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
catch (error) {
|
|
|
|
|
|
console.error('获取模型类型选项失败:', error);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 获取API类型选项
|
|
|
|
|
|
async function fetchApiTypeOptions() {
|
|
|
|
|
|
try {
|
|
|
|
|
|
const response = await getApiTypeOptions();
|
2025-12-10 01:34:40 +08:00
|
|
|
|
apiTypeOptions.value = response.data;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
catch (error) {
|
|
|
|
|
|
console.error('获取API类型选项失败:', error);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function copyModelId(modelId: string) {
|
|
|
|
|
|
navigator.clipboard.writeText(modelId).then(() => {
|
|
|
|
|
|
ElMessage.success('模型ID已复制');
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function resetFilters() {
|
|
|
|
|
|
searchKey.value = '';
|
2025-12-10 01:34:40 +08:00
|
|
|
|
selectedProviders.value = [];
|
|
|
|
|
|
selectedModelTypes.value = [];
|
|
|
|
|
|
selectedApiTypes.value = [];
|
2025-12-09 19:11:30 +08:00
|
|
|
|
isPremiumOnly.value = false;
|
|
|
|
|
|
currentPage.value = 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-10 01:34:40 +08:00
|
|
|
|
function toggleProvider(provider: string | null) {
|
|
|
|
|
|
if (provider === null) {
|
|
|
|
|
|
// 点击"全部",清空所有选择
|
|
|
|
|
|
selectedProviders.value = [];
|
|
|
|
|
|
}
|
|
|
|
|
|
else {
|
|
|
|
|
|
const index = selectedProviders.value.indexOf(provider);
|
|
|
|
|
|
if (index > -1) {
|
|
|
|
|
|
selectedProviders.value.splice(index, 1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else {
|
|
|
|
|
|
selectedProviders.value.push(provider);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
currentPage.value = 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function toggleModelType(type: number | null) {
|
|
|
|
|
|
if (type === null) {
|
|
|
|
|
|
// 点击"全部",清空所有选择
|
|
|
|
|
|
selectedModelTypes.value = [];
|
|
|
|
|
|
}
|
|
|
|
|
|
else {
|
|
|
|
|
|
const index = selectedModelTypes.value.indexOf(type);
|
|
|
|
|
|
if (index > -1) {
|
|
|
|
|
|
selectedModelTypes.value.splice(index, 1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else {
|
|
|
|
|
|
selectedModelTypes.value.push(type);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
currentPage.value = 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function toggleApiType(type: number | null) {
|
|
|
|
|
|
if (type === null) {
|
|
|
|
|
|
// 点击"全部",清空所有选择
|
|
|
|
|
|
selectedApiTypes.value = [];
|
|
|
|
|
|
}
|
|
|
|
|
|
else {
|
|
|
|
|
|
const index = selectedApiTypes.value.indexOf(type);
|
|
|
|
|
|
if (index > -1) {
|
|
|
|
|
|
selectedApiTypes.value.splice(index, 1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else {
|
|
|
|
|
|
selectedApiTypes.value.push(type);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
currentPage.value = 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function togglePremiumOnly(isPremium: boolean | null) {
|
|
|
|
|
|
if (isPremium === null) {
|
|
|
|
|
|
// 点击"全部",设置为false
|
|
|
|
|
|
isPremiumOnly.value = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
else {
|
|
|
|
|
|
isPremiumOnly.value = isPremium;
|
|
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
currentPage.value = 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function handlePageChange(page: number) {
|
|
|
|
|
|
currentPage.value = page;
|
|
|
|
|
|
fetchModelList();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function handleSizeChange(size: number) {
|
|
|
|
|
|
pageSize.value = size;
|
|
|
|
|
|
currentPage.value = 1;
|
|
|
|
|
|
fetchModelList();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
function goToHome() {
|
|
|
|
|
|
router.push('/');
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-09 19:11:30 +08:00
|
|
|
|
// 监听筛选条件变化,自动刷新数据
|
|
|
|
|
|
// 搜索关键词使用防抖,其他条件立即触发
|
|
|
|
|
|
let searchTimer: ReturnType<typeof setTimeout> | null = null;
|
|
|
|
|
|
watch(searchKey, () => {
|
|
|
|
|
|
if (searchTimer) {
|
|
|
|
|
|
clearTimeout(searchTimer);
|
|
|
|
|
|
}
|
|
|
|
|
|
searchTimer = setTimeout(() => {
|
|
|
|
|
|
currentPage.value = 1;
|
|
|
|
|
|
fetchModelList();
|
|
|
|
|
|
}, 500);
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2025-12-10 01:34:40 +08:00
|
|
|
|
watch([selectedProviders, selectedModelTypes, selectedApiTypes, isPremiumOnly], () => {
|
2025-12-09 19:11:30 +08:00
|
|
|
|
currentPage.value = 1;
|
|
|
|
|
|
fetchModelList();
|
|
|
|
|
|
}, { deep: true });
|
|
|
|
|
|
|
2025-12-24 23:25:07 +08:00
|
|
|
|
function openMobileFilter() {
|
|
|
|
|
|
showMobileFilter.value = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function closeMobileFilter() {
|
|
|
|
|
|
showMobileFilter.value = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-09 19:11:30 +08:00
|
|
|
|
onMounted(() => {
|
|
|
|
|
|
fetchProviderList();
|
|
|
|
|
|
fetchModelTypeOptions();
|
|
|
|
|
|
fetchApiTypeOptions();
|
|
|
|
|
|
fetchModelList();
|
|
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
|
<div class="model-library-container">
|
2025-12-09 22:08:25 +08:00
|
|
|
|
<!-- 顶部横幅 -->
|
2025-12-09 19:11:30 +08:00
|
|
|
|
<div class="banner-section">
|
|
|
|
|
|
<div class="banner-content">
|
|
|
|
|
|
<div class="banner-header">
|
2025-12-09 22:08:25 +08:00
|
|
|
|
<div class="banner-left">
|
2025-12-10 01:34:40 +08:00
|
|
|
|
<div class="banner-text-section">
|
2025-12-11 21:35:32 +08:00
|
|
|
|
<h1 class="banner-title">
|
|
|
|
|
|
意心AI模型库
|
|
|
|
|
|
</h1>
|
2025-12-10 01:34:40 +08:00
|
|
|
|
<p class="banner-subtitle">
|
2025-12-10 15:08:16 +08:00
|
|
|
|
探索并接入全球顶尖AI模型,覆盖文本、图像、嵌入等多个领域
|
2025-12-10 01:34:40 +08:00
|
|
|
|
</p>
|
|
|
|
|
|
</div>
|
2025-12-09 22:08:25 +08:00
|
|
|
|
<!-- 统计信息卡片 -->
|
|
|
|
|
|
<div class="stats-cards">
|
|
|
|
|
|
<div class="stat-card">
|
|
|
|
|
|
<div class="stat-icon">
|
2025-12-10 01:34:40 +08:00
|
|
|
|
<el-icon><Box /></el-icon>
|
2025-12-09 22:08:25 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="stat-info">
|
2025-12-11 21:35:32 +08:00
|
|
|
|
<div class="stat-value">
|
|
|
|
|
|
{{ totalCount }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="stat-label">
|
|
|
|
|
|
可用模型
|
|
|
|
|
|
</div>
|
2025-12-09 22:08:25 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="stat-card">
|
|
|
|
|
|
<div class="stat-icon">
|
2025-12-10 01:34:40 +08:00
|
|
|
|
<el-icon><OfficeBuilding /></el-icon>
|
2025-12-09 22:08:25 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="stat-info">
|
2025-12-11 21:35:32 +08:00
|
|
|
|
<div class="stat-value">
|
|
|
|
|
|
{{ providerList.length > 1 ? providerList.length : 1 - 1 }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="stat-label">
|
|
|
|
|
|
支持供应商
|
|
|
|
|
|
</div>
|
2025-12-09 22:08:25 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
</div>
|
2025-12-09 22:08:25 +08:00
|
|
|
|
</div>
|
2025-12-10 01:34:40 +08:00
|
|
|
|
<el-button
|
|
|
|
|
|
:icon="HomeFilled"
|
|
|
|
|
|
class="home-btn"
|
|
|
|
|
|
round
|
|
|
|
|
|
@click="goToHome"
|
|
|
|
|
|
>
|
|
|
|
|
|
返回首页
|
|
|
|
|
|
</el-button>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
<!-- 主内容区 -->
|
|
|
|
|
|
<div class="main-content">
|
|
|
|
|
|
<div class="content-wrapper">
|
|
|
|
|
|
<!-- 左侧筛选栏 -->
|
2025-12-24 23:25:07 +08:00
|
|
|
|
<aside class="filter-sidebar" :class="{ 'mobile-active': showMobileFilter }">
|
|
|
|
|
|
<!-- 移动端遮罩 -->
|
|
|
|
|
|
<div v-if="isMobile && showMobileFilter" class="mobile-overlay" @click="closeMobileFilter" />
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
<div class="filter-section">
|
|
|
|
|
|
<div class="filter-header">
|
|
|
|
|
|
<h3 class="filter-title">
|
|
|
|
|
|
<el-icon><i-ep-filter /></el-icon>
|
|
|
|
|
|
筛选条件
|
|
|
|
|
|
</h3>
|
2025-12-24 23:25:07 +08:00
|
|
|
|
<div class="filter-header-actions">
|
|
|
|
|
|
<el-button link type="primary" size="small" @click="resetFilters">
|
|
|
|
|
|
重置
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
<el-icon v-if="isMobile" class="close-btn" @click="closeMobileFilter">
|
|
|
|
|
|
<Close />
|
|
|
|
|
|
</el-icon>
|
|
|
|
|
|
</div>
|
2025-12-09 22:08:25 +08:00
|
|
|
|
</div>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
<!-- 搜索框 -->
|
|
|
|
|
|
<div class="filter-group">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="searchKey"
|
|
|
|
|
|
placeholder="搜索模型..."
|
|
|
|
|
|
clearable
|
|
|
|
|
|
size="default"
|
2025-12-09 19:11:30 +08:00
|
|
|
|
>
|
2025-12-09 22:08:25 +08:00
|
|
|
|
<template #prefix>
|
|
|
|
|
|
<el-icon><Search /></el-icon>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-input>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
<!-- 供应商 -->
|
|
|
|
|
|
<div class="filter-group">
|
2025-12-10 01:34:40 +08:00
|
|
|
|
<h4 class="filter-group-title">
|
|
|
|
|
|
供应商
|
|
|
|
|
|
</h4>
|
|
|
|
|
|
<div class="filter-tags">
|
|
|
|
|
|
<el-check-tag
|
|
|
|
|
|
:checked="selectedProviders.length === 0"
|
|
|
|
|
|
class="filter-tag"
|
|
|
|
|
|
@change="toggleProvider(null)"
|
|
|
|
|
|
>
|
|
|
|
|
|
全部供应商
|
|
|
|
|
|
</el-check-tag>
|
|
|
|
|
|
<el-check-tag
|
|
|
|
|
|
v-for="provider in providerList"
|
2025-12-09 22:08:25 +08:00
|
|
|
|
:key="provider"
|
2025-12-10 01:34:40 +08:00
|
|
|
|
:checked="selectedProviders.includes(provider)"
|
|
|
|
|
|
class="filter-tag"
|
2025-12-11 21:35:32 +08:00
|
|
|
|
|
2025-12-10 01:34:40 +08:00
|
|
|
|
@change="toggleProvider(provider)"
|
2025-12-09 22:08:25 +08:00
|
|
|
|
>
|
2025-12-10 01:34:40 +08:00
|
|
|
|
{{ provider }}
|
|
|
|
|
|
</el-check-tag>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
<!-- 模型类型 -->
|
|
|
|
|
|
<div class="filter-group">
|
2025-12-10 01:34:40 +08:00
|
|
|
|
<h4 class="filter-group-title">
|
|
|
|
|
|
模型类型
|
|
|
|
|
|
</h4>
|
|
|
|
|
|
<div class="filter-tags">
|
|
|
|
|
|
<el-check-tag
|
|
|
|
|
|
:checked="selectedModelTypes.length === 0"
|
|
|
|
|
|
class="filter-tag"
|
|
|
|
|
|
@change="toggleModelType(null)"
|
|
|
|
|
|
>
|
|
|
|
|
|
全部类型
|
|
|
|
|
|
</el-check-tag>
|
|
|
|
|
|
<el-check-tag
|
|
|
|
|
|
v-for="option in modelTypeOptions"
|
2025-12-09 22:08:25 +08:00
|
|
|
|
:key="option.value"
|
2025-12-10 01:34:40 +08:00
|
|
|
|
:checked="selectedModelTypes.includes(option.value)"
|
|
|
|
|
|
class="filter-tag"
|
|
|
|
|
|
@change="toggleModelType(option.value)"
|
2025-12-09 22:08:25 +08:00
|
|
|
|
>
|
2025-12-10 01:34:40 +08:00
|
|
|
|
{{ option.label }}
|
|
|
|
|
|
</el-check-tag>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
<!-- API类型 -->
|
|
|
|
|
|
<div class="filter-group">
|
2025-12-10 01:34:40 +08:00
|
|
|
|
<h4 class="filter-group-title">
|
|
|
|
|
|
API类型
|
|
|
|
|
|
</h4>
|
|
|
|
|
|
<div class="filter-tags">
|
|
|
|
|
|
<el-check-tag
|
|
|
|
|
|
:checked="selectedApiTypes.length === 0"
|
|
|
|
|
|
class="filter-tag"
|
|
|
|
|
|
@change="toggleApiType(null)"
|
|
|
|
|
|
>
|
|
|
|
|
|
全部API类型
|
|
|
|
|
|
</el-check-tag>
|
|
|
|
|
|
<el-check-tag
|
|
|
|
|
|
v-for="option in apiTypeOptions"
|
2025-12-09 22:08:25 +08:00
|
|
|
|
:key="option.value"
|
2025-12-10 01:34:40 +08:00
|
|
|
|
:checked="selectedApiTypes.includes(option.value)"
|
|
|
|
|
|
class="filter-tag"
|
|
|
|
|
|
@change="toggleApiType(option.value)"
|
2025-12-09 22:08:25 +08:00
|
|
|
|
>
|
2025-12-10 01:34:40 +08:00
|
|
|
|
{{ option.label }}
|
|
|
|
|
|
</el-check-tag>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
</div>
|
2025-12-09 22:08:25 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 计费类型 -->
|
|
|
|
|
|
<div class="filter-group">
|
2025-12-10 01:34:40 +08:00
|
|
|
|
<h4 class="filter-group-title">
|
|
|
|
|
|
计费类型
|
|
|
|
|
|
</h4>
|
|
|
|
|
|
<div class="filter-tags">
|
|
|
|
|
|
<el-check-tag
|
|
|
|
|
|
:checked="!isPremiumOnly"
|
|
|
|
|
|
class="filter-tag"
|
|
|
|
|
|
@change="togglePremiumOnly(null)"
|
2025-12-09 22:08:25 +08:00
|
|
|
|
>
|
2025-12-10 01:34:40 +08:00
|
|
|
|
全部模型
|
|
|
|
|
|
</el-check-tag>
|
|
|
|
|
|
<el-check-tag
|
|
|
|
|
|
:checked="isPremiumOnly"
|
|
|
|
|
|
class="filter-tag"
|
|
|
|
|
|
@change="togglePremiumOnly(true)"
|
2025-12-09 22:08:25 +08:00
|
|
|
|
>
|
2025-12-10 01:34:40 +08:00
|
|
|
|
仅尊享模型
|
|
|
|
|
|
</el-check-tag>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2025-12-09 22:08:25 +08:00
|
|
|
|
</aside>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
<!-- 右侧模型列表 -->
|
|
|
|
|
|
<main class="model-list-section">
|
2025-12-24 23:25:07 +08:00
|
|
|
|
<!-- 移动端筛选按钮 -->
|
|
|
|
|
|
<div v-if="isMobile" class="mobile-filter-bar">
|
|
|
|
|
|
<el-button type="primary" :icon="Search" plain class="w-full" @click="openMobileFilter">
|
|
|
|
|
|
筛选与搜索
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
<!-- 加载状态 -->
|
|
|
|
|
|
<div v-if="loading" class="loading-wrapper">
|
|
|
|
|
|
<el-skeleton :rows="8" animated />
|
|
|
|
|
|
</div>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
<!-- 空状态 -->
|
|
|
|
|
|
<div v-else-if="modelList.length === 0" class="empty-wrapper">
|
|
|
|
|
|
<el-empty description="未找到符合条件的模型">
|
|
|
|
|
|
<el-button type="primary" @click="resetFilters">
|
|
|
|
|
|
清除筛选条件
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
</el-empty>
|
|
|
|
|
|
</div>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
<!-- 模型网格 -->
|
2025-12-10 15:08:16 +08:00
|
|
|
|
<el-row v-else :gutter="20" class="model-grid">
|
|
|
|
|
|
<el-col
|
2025-12-09 22:08:25 +08:00
|
|
|
|
v-for="model in modelList"
|
|
|
|
|
|
:key="model.modelId"
|
2025-12-10 15:08:16 +08:00
|
|
|
|
:xs="24"
|
|
|
|
|
|
:sm="8"
|
|
|
|
|
|
:lg="6"
|
2025-12-09 22:08:25 +08:00
|
|
|
|
>
|
2025-12-10 15:08:16 +08:00
|
|
|
|
<div
|
|
|
|
|
|
class="model-card"
|
|
|
|
|
|
:class="{ 'premium-card': model.isPremium }"
|
|
|
|
|
|
>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
<el-button
|
|
|
|
|
|
circle
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
:icon="CopyDocument"
|
2025-12-10 15:08:16 +08:00
|
|
|
|
class="copy-btn-corner"
|
|
|
|
|
|
title="复制模型ID"
|
2025-12-09 19:11:30 +08:00
|
|
|
|
@click="copyModelId(model.modelId)"
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
2025-12-10 15:08:16 +08:00
|
|
|
|
<div class="model-card-header">
|
|
|
|
|
|
<div class="model-icon">
|
|
|
|
|
|
<img
|
|
|
|
|
|
v-if="model.iconUrl"
|
|
|
|
|
|
:src="model.iconUrl"
|
|
|
|
|
|
:alt="model.name"
|
|
|
|
|
|
class="icon-img"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div v-else class="icon-placeholder">
|
|
|
|
|
|
{{ model.name.charAt(0).toUpperCase() }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="model-info">
|
|
|
|
|
|
<h3 class="model-name">
|
|
|
|
|
|
{{ model.name }}
|
|
|
|
|
|
</h3>
|
|
|
|
|
|
<div class="model-provider">
|
|
|
|
|
|
{{ model.providerName }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2025-12-09 22:08:25 +08:00
|
|
|
|
|
2025-12-10 15:08:16 +08:00
|
|
|
|
<div class="model-id">
|
|
|
|
|
|
<span class="model-id-label">ModelId:</span>
|
|
|
|
|
|
<span class="model-id-value">{{ model.modelId }}</span>
|
2025-12-09 22:08:25 +08:00
|
|
|
|
</div>
|
2025-12-10 15:08:16 +08:00
|
|
|
|
|
|
|
|
|
|
<p v-if="model.description" class="model-description">
|
|
|
|
|
|
{{ model.description }}
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<p v-else class="model-description placeholder">
|
|
|
|
|
|
{{ model.modelId }}
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="model-footer">
|
|
|
|
|
|
<div class="model-tags">
|
|
|
|
|
|
<el-tag size="small">
|
|
|
|
|
|
{{ model.modelTypeName }}
|
|
|
|
|
|
</el-tag>
|
2025-12-11 21:35:32 +08:00
|
|
|
|
<el-tag v-for="item in model.modelApiTypes" :key="item" size="small">
|
|
|
|
|
|
{{ item.modelApiTypeName }}
|
2025-12-10 15:08:16 +08:00
|
|
|
|
</el-tag>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="model-pricing">
|
|
|
|
|
|
<span class="pricing-label">计费倍率</span>
|
|
|
|
|
|
<span class="pricing-value">{{ model.multiplierShow }}×</span>
|
|
|
|
|
|
</div>
|
2025-12-09 22:08:25 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2025-12-10 15:08:16 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
<!-- 分页 -->
|
|
|
|
|
|
<div v-if="totalCount > 0 && !loading" class="pagination-wrapper">
|
|
|
|
|
|
<el-pagination
|
|
|
|
|
|
v-model:current-page="currentPage"
|
|
|
|
|
|
v-model:page-size="pageSize"
|
2025-12-10 15:08:16 +08:00
|
|
|
|
:page-sizes="[12, 24, 48, 96]"
|
2025-12-09 22:08:25 +08:00
|
|
|
|
:total="totalCount"
|
2025-12-24 23:25:07 +08:00
|
|
|
|
:layout="isMobile ? 'prev, pager, next' : 'total, sizes, prev, pager, next, jumper'"
|
2025-12-09 22:08:25 +08:00
|
|
|
|
prev-text="上一页"
|
|
|
|
|
|
next-text="下一页"
|
|
|
|
|
|
background
|
|
|
|
|
|
@current-change="handlePageChange"
|
|
|
|
|
|
@size-change="handleSizeChange"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</main>
|
|
|
|
|
|
</div>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
.model-library-container {
|
|
|
|
|
|
min-height: 100vh;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
// 顶部横幅
|
2025-12-09 19:11:30 +08:00
|
|
|
|
.banner-section {
|
2025-12-09 22:08:25 +08:00
|
|
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
|
|
|
padding: 40px 24px;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
position: relative;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
// 装饰性背景元素
|
|
|
|
|
|
&::before,
|
|
|
|
|
|
&::after {
|
2025-12-09 19:11:30 +08:00
|
|
|
|
content: '';
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
border-radius: 50%;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
background: rgba(255, 255, 255, 0.08);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
|
width: 400px;
|
|
|
|
|
|
height: 400px;
|
|
|
|
|
|
top: -200px;
|
|
|
|
|
|
right: -100px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
|
|
width: 300px;
|
|
|
|
|
|
height: 300px;
|
|
|
|
|
|
bottom: -150px;
|
|
|
|
|
|
left: -100px;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.banner-content {
|
|
|
|
|
|
max-width: 1400px;
|
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
|
|
|
|
.banner-header {
|
2025-12-09 22:08:25 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
2025-12-10 01:34:40 +08:00
|
|
|
|
align-items: flex-start;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
gap: 32px;
|
|
|
|
|
|
|
|
|
|
|
|
.banner-left {
|
|
|
|
|
|
flex: 1;
|
2025-12-10 01:34:40 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 32px;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
|
2025-12-10 01:34:40 +08:00
|
|
|
|
.banner-text-section {
|
|
|
|
|
|
flex-shrink: 0;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-10 01:34:40 +08:00
|
|
|
|
.banner-title {
|
|
|
|
|
|
font-size: 36px;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
margin: 0 0 12px 0;
|
|
|
|
|
|
letter-spacing: -0.5px;
|
|
|
|
|
|
}
|
2025-12-09 22:08:25 +08:00
|
|
|
|
|
2025-12-10 01:34:40 +08:00
|
|
|
|
.banner-subtitle {
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.95);
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
|
max-width: 500px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
// 统计卡片
|
|
|
|
|
|
.stats-cards {
|
|
|
|
|
|
display: flex;
|
2025-12-10 01:34:40 +08:00
|
|
|
|
gap: 16px;
|
|
|
|
|
|
flex-shrink: 0;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.stat-card {
|
|
|
|
|
|
background: rgba(255, 255, 255, 0.15);
|
|
|
|
|
|
backdrop-filter: blur(10px);
|
|
|
|
|
|
border: 1px solid rgba(255, 255, 255, 0.25);
|
|
|
|
|
|
border-radius: 12px;
|
2025-12-10 01:34:40 +08:00
|
|
|
|
padding: 16px 20px;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
transition: all 0.3s;
|
2025-12-10 01:34:40 +08:00
|
|
|
|
min-width: 160px;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
&:hover {
|
|
|
|
|
|
background: rgba(255, 255, 255, 0.2);
|
|
|
|
|
|
transform: translateY(-2px);
|
|
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.stat-icon {
|
2025-12-10 01:34:40 +08:00
|
|
|
|
width: 48px;
|
|
|
|
|
|
height: 48px;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
background: rgba(255, 255, 255, 0.25);
|
2025-12-10 01:34:40 +08:00
|
|
|
|
border-radius: 10px;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
2025-12-10 01:34:40 +08:00
|
|
|
|
font-size: 24px;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
color: white;
|
|
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.stat-info {
|
|
|
|
|
|
.stat-value {
|
2025-12-10 01:34:40 +08:00
|
|
|
|
font-size: 28px;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
line-height: 1;
|
2025-12-10 01:34:40 +08:00
|
|
|
|
margin-bottom: 6px;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.stat-label {
|
2025-12-10 01:34:40 +08:00
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.9);
|
|
|
|
|
|
white-space: nowrap;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-10 01:34:40 +08:00
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-10 01:34:40 +08:00
|
|
|
|
.home-btn {
|
|
|
|
|
|
background: rgba(255, 255, 255, 0.25);
|
|
|
|
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
backdrop-filter: blur(10px);
|
|
|
|
|
|
padding: 10px 24px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
background: rgba(255, 255, 255, 0.35);
|
|
|
|
|
|
transform: translateY(-2px);
|
|
|
|
|
|
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
// 主内容区
|
|
|
|
|
|
.main-content {
|
2025-12-10 01:34:40 +08:00
|
|
|
|
padding: 32px 16px;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.content-wrapper {
|
2025-12-10 01:34:40 +08:00
|
|
|
|
max-width: 100%;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
margin: 0 auto;
|
2025-12-10 01:34:40 +08:00
|
|
|
|
padding: 0 8px;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
gap: 24px;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
// 左侧筛选栏
|
|
|
|
|
|
.filter-sidebar {
|
|
|
|
|
|
width: 260px;
|
|
|
|
|
|
flex-shrink: 0;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.filter-section {
|
|
|
|
|
|
background: white;
|
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
padding: 20px;
|
|
|
|
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
|
|
|
|
|
|
position: sticky;
|
|
|
|
|
|
top: 24px;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.filter-header {
|
2025-12-09 19:11:30 +08:00
|
|
|
|
display: flex;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
padding-bottom: 16px;
|
|
|
|
|
|
border-bottom: 2px solid #f0f0f0;
|
|
|
|
|
|
|
|
|
|
|
|
.filter-title {
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
color: #303133;
|
|
|
|
|
|
margin: 0;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 8px;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.filter-group {
|
|
|
|
|
|
margin-bottom: 24px;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
&:last-child {
|
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.filter-group-title {
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: #606266;
|
|
|
|
|
|
margin: 0 0 12px 0;
|
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
|
letter-spacing: 0.5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-10 01:34:40 +08:00
|
|
|
|
.filter-tags {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
|
|
|
|
|
|
.filter-tag {
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: all 0.3s;
|
|
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
transform: translateY(-2px);
|
|
|
|
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.filter-options {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
gap: 4px;
|
|
|
|
|
|
|
|
|
|
|
|
.filter-option {
|
2025-12-09 19:11:30 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
|
user-select: none;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.option-label {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
color: #606266;
|
|
|
|
|
|
flex: 1;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.option-check {
|
|
|
|
|
|
color: #667eea;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
&:hover {
|
|
|
|
|
|
background: #f5f7fa;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
&.active {
|
|
|
|
|
|
background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
|
|
|
|
|
|
border: 1px solid rgba(102, 126, 234, 0.3);
|
|
|
|
|
|
|
|
|
|
|
|
.option-label {
|
|
|
|
|
|
color: #667eea;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
// 右侧模型列表
|
|
|
|
|
|
.model-list-section {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
min-width: 0;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.loading-wrapper,
|
|
|
|
|
|
.empty-wrapper {
|
2025-12-09 19:11:30 +08:00
|
|
|
|
background: white;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
padding: 80px 40px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
|
|
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
// 模型网格
|
|
|
|
|
|
.model-grid {
|
|
|
|
|
|
margin-bottom: 32px;
|
|
|
|
|
|
|
|
|
|
|
|
.model-card {
|
2025-12-10 15:08:16 +08:00
|
|
|
|
margin-bottom: 20px;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
background: white;
|
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
padding: 24px;
|
|
|
|
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
|
|
|
|
border: 1px solid #f0f0f0;
|
|
|
|
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
|
content: '';
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
height: 4px;
|
|
|
|
|
|
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
transition: opacity 0.3s;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-10 01:34:40 +08:00
|
|
|
|
// 尊享模型流光溢彩效果
|
|
|
|
|
|
&.premium-card {
|
|
|
|
|
|
border: 2px solid transparent;
|
|
|
|
|
|
background-image:
|
|
|
|
|
|
linear-gradient(white, white),
|
|
|
|
|
|
linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0000ff, #8000ff, #ff0080);
|
|
|
|
|
|
background-origin: border-box;
|
|
|
|
|
|
background-clip: padding-box, border-box;
|
|
|
|
|
|
animation: gradientFlow 3s ease infinite;
|
|
|
|
|
|
background-size: 400% 400%;
|
|
|
|
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
|
background: linear-gradient(90deg, #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0000ff, #8000ff, #ff0080);
|
|
|
|
|
|
background-size: 400% 400%;
|
|
|
|
|
|
animation: gradientFlow 3s ease infinite;
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
height: 3px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
box-shadow: 0 12px 32px rgba(255, 0, 128, 0.25);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
&:hover {
|
|
|
|
|
|
transform: translateY(-4px);
|
|
|
|
|
|
box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
|
|
|
|
|
|
border-color: #667eea;
|
|
|
|
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
|
opacity: 1;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-10 15:08:16 +08:00
|
|
|
|
.copy-btn-corner {
|
2025-12-09 22:08:25 +08:00
|
|
|
|
opacity: 1;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-10 15:08:16 +08:00
|
|
|
|
// 右上角复制按钮
|
|
|
|
|
|
.copy-btn-corner {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 16px;
|
|
|
|
|
|
right: 16px;
|
|
|
|
|
|
z-index: 10;
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
transition: all 0.3s;
|
|
|
|
|
|
background: rgba(255, 255, 255, 0.9);
|
|
|
|
|
|
border: 1px solid #e0e0e0;
|
|
|
|
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
background: white;
|
|
|
|
|
|
border-color: #667eea;
|
|
|
|
|
|
color: #667eea;
|
|
|
|
|
|
transform: scale(1.1);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.model-card-header {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
gap: 16px;
|
|
|
|
|
|
margin-bottom: 16px;
|
2025-12-24 23:25:07 +08:00
|
|
|
|
align-items: flex-start;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
|
|
|
|
|
|
.model-icon {
|
|
|
|
|
|
width: 56px;
|
|
|
|
|
|
height: 56px;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
|
|
|
|
.icon-img {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
border: 2px solid #f0f0f0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.icon-placeholder {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-info {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
min-width: 0;
|
2025-12-24 23:25:07 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
justify-content: center;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
|
|
|
|
|
|
.model-name {
|
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: #303133;
|
2025-12-24 23:25:07 +08:00
|
|
|
|
margin: 0 0 4px 0;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
2025-12-24 23:25:07 +08:00
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
padding-right: 24px; // 防止文字遮挡复制按钮
|
2025-12-09 22:08:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-provider {
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
color: #909399;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-10 15:08:16 +08:00
|
|
|
|
}
|
2025-12-09 22:08:25 +08:00
|
|
|
|
|
2025-12-10 15:08:16 +08:00
|
|
|
|
// ModelId 显示区域
|
|
|
|
|
|
.model-id {
|
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
|
background: #f8f9fa;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
|
|
|
|
|
|
.model-id-label {
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
color: #909399;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
letter-spacing: 0.5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-id-value {
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
color: #606266;
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-description {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
color: #606266;
|
|
|
|
|
|
line-height: 1.7;
|
|
|
|
|
|
margin: 0 0 20px 0;
|
2025-12-11 21:35:32 +08:00
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
|
min-height: 48px; /* 保持2行的高度 */
|
|
|
|
|
|
text-overflow: ellipsis;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
display: -webkit-box;
|
|
|
|
|
|
-webkit-line-clamp: 2;
|
2025-12-11 21:35:32 +08:00
|
|
|
|
line-clamp: 2;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
/* 添加过渡效果 */
|
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
|
max-height: 3.4em; /* 2行高度 (1.7 * 2 = 3.4em) */
|
2025-12-09 22:08:25 +08:00
|
|
|
|
|
|
|
|
|
|
&.placeholder {
|
|
|
|
|
|
color: #c0c4cc;
|
|
|
|
|
|
font-family: 'Monaco', 'Menlo', monospace;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
}
|
2025-12-11 21:35:32 +08:00
|
|
|
|
|
|
|
|
|
|
/* 悬停时展开 */
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
-webkit-line-clamp: unset; /* 取消行数限制 */
|
|
|
|
|
|
line-clamp: unset;
|
|
|
|
|
|
max-height: none; /* 取消最大高度限制 */
|
|
|
|
|
|
overflow: visible; /* 显示全部内容 */
|
|
|
|
|
|
|
|
|
|
|
|
/* 可选:添加背景或边框突出显示 */
|
|
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
|
|
//padding: 8px 12px;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
//margin-bottom: 20px; /* 保持原有间距 */
|
|
|
|
|
|
|
|
|
|
|
|
/* 如果是绝对定位的父容器,可以增加z-index */
|
|
|
|
|
|
z-index: 10;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
}
|
2025-12-09 22:08:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-footer {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
2025-12-11 21:35:32 +08:00
|
|
|
|
gap: 6px;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
padding-top: 16px;
|
|
|
|
|
|
border-top: 1px solid #f0f0f0;
|
|
|
|
|
|
|
|
|
|
|
|
.model-tags {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
gap: 6px;
|
2025-12-10 01:34:40 +08:00
|
|
|
|
flex: 1;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-pricing {
|
|
|
|
|
|
display: flex;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 8px;
|
2025-12-11 21:35:32 +08:00
|
|
|
|
padding: 6px 6px;
|
2025-12-10 01:34:40 +08:00
|
|
|
|
background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
|
|
|
|
|
|
border-radius: 8px;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
white-space: nowrap;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-10 01:34:40 +08:00
|
|
|
|
.pricing-label {
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
color: #909399;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-10 01:34:40 +08:00
|
|
|
|
.pricing-value {
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
color: #667eea;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-09 22:08:25 +08:00
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
// 分页
|
|
|
|
|
|
.pagination-wrapper {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: center;
|
2025-12-10 15:08:16 +08:00
|
|
|
|
padding: 0px 0;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
:deep(.el-pagination) {
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
|
|
|
|
|
|
.btn-prev,
|
|
|
|
|
|
.btn-next {
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
padding: 0 16px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
transition: all 0.3s;
|
|
|
|
|
|
|
|
|
|
|
|
&:hover:not(:disabled) {
|
|
|
|
|
|
color: #667eea;
|
|
|
|
|
|
transform: translateY(-2px);
|
|
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.el-pager li {
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
min-width: 40px;
|
|
|
|
|
|
height: 40px;
|
|
|
|
|
|
line-height: 40px;
|
|
|
|
|
|
transition: all 0.3s;
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
color: #667eea;
|
|
|
|
|
|
transform: translateY(-2px);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&.is-active {
|
|
|
|
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-10 01:34:40 +08:00
|
|
|
|
// 流光溢彩动画
|
|
|
|
|
|
@keyframes gradientFlow {
|
|
|
|
|
|
0% {
|
|
|
|
|
|
background-position: 0% 50%;
|
|
|
|
|
|
}
|
|
|
|
|
|
50% {
|
|
|
|
|
|
background-position: 100% 50%;
|
|
|
|
|
|
}
|
|
|
|
|
|
100% {
|
|
|
|
|
|
background-position: 0% 50%;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-24 23:25:07 +08:00
|
|
|
|
|
|
|
|
|
|
@media screen and (max-width: 768px) {
|
|
|
|
|
|
.model-library-container {
|
|
|
|
|
|
.banner-section {
|
|
|
|
|
|
padding: 24px 16px;
|
|
|
|
|
|
|
|
|
|
|
|
.banner-content {
|
|
|
|
|
|
.banner-header {
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: stretch;
|
|
|
|
|
|
gap: 24px;
|
|
|
|
|
|
|
|
|
|
|
|
.banner-left {
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
gap: 24px;
|
|
|
|
|
|
|
|
|
|
|
|
.stats-cards {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
|
|
|
|
.stat-card {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
min-width: 140px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.home-btn {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.main-content {
|
|
|
|
|
|
padding: 16px 12px;
|
|
|
|
|
|
|
|
|
|
|
|
.content-wrapper {
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
|
|
|
|
.filter-sidebar {
|
|
|
|
|
|
width: 0;
|
|
|
|
|
|
height: 0;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
&.mobile-active {
|
|
|
|
|
|
width: auto;
|
|
|
|
|
|
height: auto;
|
|
|
|
|
|
overflow: visible;
|
|
|
|
|
|
|
|
|
|
|
|
.mobile-overlay {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
background: rgba(0, 0, 0, 0.5);
|
|
|
|
|
|
z-index: 1999;
|
|
|
|
|
|
backdrop-filter: blur(4px);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.filter-section {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
width: 80%;
|
|
|
|
|
|
max-width: 320px;
|
|
|
|
|
|
z-index: 2000;
|
|
|
|
|
|
border-radius: 0 16px 16px 0;
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
animation: slideIn 0.3s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.filter-section {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
|
|
|
|
.filter-header {
|
|
|
|
|
|
.filter-header-actions {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 16px;
|
|
|
|
|
|
|
|
|
|
|
|
.close-btn {
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
color: #909399;
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
color: #606266;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-list-section {
|
|
|
|
|
|
.mobile-filter-bar {
|
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
position: sticky;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
z-index: 100;
|
|
|
|
|
|
background: rgba(245, 247, 250, 0.95);
|
|
|
|
|
|
backdrop-filter: blur(10px);
|
|
|
|
|
|
padding: 12px 4px;
|
|
|
|
|
|
margin: -16px -4px 16px -4px;
|
|
|
|
|
|
|
|
|
|
|
|
.w-full {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.pagination-wrapper {
|
|
|
|
|
|
:deep(.el-pagination) {
|
|
|
|
|
|
.el-pagination__jump {
|
|
|
|
|
|
display: none !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-grid {
|
|
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
|
|
|
|
|
|
|
.model-card {
|
|
|
|
|
|
padding: 20px; // 增加内边距
|
|
|
|
|
|
margin-bottom: 16px; // 增加卡片间距
|
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
|
|
|
|
|
|
.copy-btn-corner {
|
|
|
|
|
|
top: 16px;
|
|
|
|
|
|
right: 16px;
|
|
|
|
|
|
width: 32px;
|
|
|
|
|
|
height: 32px;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-card-header {
|
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
gap: 16px;
|
|
|
|
|
|
|
|
|
|
|
|
.model-icon {
|
|
|
|
|
|
width: 48px;
|
|
|
|
|
|
height: 48px;
|
|
|
|
|
|
|
|
|
|
|
|
.icon-placeholder {
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.icon-img {
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-info {
|
|
|
|
|
|
.model-name {
|
|
|
|
|
|
font-size: 17px;
|
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
|
padding-right: 36px; // 移动端预留更多空间给复制按钮
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-provider {
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-id {
|
|
|
|
|
|
padding: 6px 10px;
|
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
|
|
|
|
|
|
.model-id-label {
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-id-value {
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-description {
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
min-height: auto;
|
|
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
|
|
max-height: 3em;
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
/* 移动端取消悬停展开,或者改为点击展开(这里简单处理为取消悬停效果以免遮挡) */
|
|
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
|
|
max-height: 3em;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
position: static;
|
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-footer {
|
|
|
|
|
|
padding-top: 12px;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
|
|
|
|
|
|
.model-tags {
|
|
|
|
|
|
gap: 4px;
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.el-tag) {
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
padding: 0 6px;
|
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-pricing {
|
|
|
|
|
|
padding: 4px 8px;
|
|
|
|
|
|
|
|
|
|
|
|
.pricing-label {
|
|
|
|
|
|
display: none; // 移动端隐藏"计费倍率"文字,只显示数字
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.pricing-value {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@keyframes slideIn {
|
|
|
|
|
|
from {
|
|
|
|
|
|
transform: translateX(-100%);
|
|
|
|
|
|
}
|
|
|
|
|
|
to {
|
|
|
|
|
|
transform: translateX(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
</style>
|