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';
|
|
|
|
|
|
import { Box, CopyDocument, HomeFilled, OfficeBuilding, Search } from '@element-plus/icons-vue';
|
|
|
|
|
|
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-09 22:08:25 +08:00
|
|
|
|
|
|
|
|
|
|
const router = useRouter();
|
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-09 22:08:25 +08:00
|
|
|
|
const pageSize = ref(10);
|
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 });
|
|
|
|
|
|
|
|
|
|
|
|
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">
|
|
|
|
|
|
<h1 class="banner-title">AI模型广场</h1>
|
|
|
|
|
|
<p class="banner-subtitle">
|
|
|
|
|
|
探索并接入全球顶尖AI模型,覆盖文本生成、图像理解、代码辅助等多个领域
|
|
|
|
|
|
</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">
|
|
|
|
|
|
<div class="stat-value">{{ totalCount }}</div>
|
2025-12-10 01:34:40 +08:00
|
|
|
|
<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">
|
|
|
|
|
|
<div class="stat-value">{{ providerList.length - 1 }}</div>
|
2025-12-10 01:34:40 +08:00
|
|
|
|
<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">
|
|
|
|
|
|
<!-- 左侧筛选栏 -->
|
|
|
|
|
|
<aside class="filter-sidebar">
|
|
|
|
|
|
<div class="filter-section">
|
|
|
|
|
|
<div class="filter-header">
|
|
|
|
|
|
<h3 class="filter-title">
|
|
|
|
|
|
<el-icon><i-ep-filter /></el-icon>
|
|
|
|
|
|
筛选条件
|
|
|
|
|
|
</h3>
|
|
|
|
|
|
<el-button link type="primary" size="small" @click="resetFilters">
|
|
|
|
|
|
重置
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
</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"
|
|
|
|
|
|
@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">
|
|
|
|
|
|
<!-- 加载状态 -->
|
|
|
|
|
|
<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
|
|
|
|
<!-- 模型网格 -->
|
|
|
|
|
|
<div v-else class="model-grid">
|
|
|
|
|
|
<div
|
|
|
|
|
|
v-for="model in modelList"
|
|
|
|
|
|
:key="model.modelId"
|
|
|
|
|
|
class="model-card"
|
2025-12-10 01:34:40 +08:00
|
|
|
|
:class="{ 'premium-card': model.isPremium }"
|
2025-12-09 22:08:25 +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>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
</div>
|
2025-12-09 22:08:25 +08:00
|
|
|
|
<div class="model-info">
|
|
|
|
|
|
<h3 class="model-name">
|
|
|
|
|
|
{{ model.name }}
|
|
|
|
|
|
</h3>
|
|
|
|
|
|
<div class="model-provider">
|
|
|
|
|
|
{{ model.providerName }}
|
|
|
|
|
|
</div>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
circle
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
:icon="CopyDocument"
|
2025-12-09 22:08:25 +08:00
|
|
|
|
class="copy-btn"
|
2025-12-09 19:11:30 +08:00
|
|
|
|
@click="copyModelId(model.modelId)"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2025-12-09 22:08:25 +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">
|
2025-12-10 01:34:40 +08:00
|
|
|
|
<el-tag size="small">
|
2025-12-09 22:08:25 +08:00
|
|
|
|
{{ model.modelTypeName }}
|
|
|
|
|
|
</el-tag>
|
2025-12-10 01:34:40 +08:00
|
|
|
|
<el-tag size="small">
|
2025-12-09 22:08:25 +08:00
|
|
|
|
{{ model.modelApiTypeName }}
|
|
|
|
|
|
</el-tag>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="model-pricing">
|
2025-12-10 01:34:40 +08:00
|
|
|
|
<span class="pricing-label">计费倍率</span>
|
|
|
|
|
|
<span class="pricing-value">{{ model.multiplierShow }}×</span>
|
2025-12-09 22:08:25 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2025-12-09 19:11:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
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"
|
|
|
|
|
|
:page-sizes="[10, 20, 50, 100]"
|
|
|
|
|
|
:total="totalCount"
|
|
|
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
|
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 {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
|
|
|
|
|
gap: 20px;
|
|
|
|
|
|
margin-bottom: 32px;
|
|
|
|
|
|
|
|
|
|
|
|
.model-card {
|
|
|
|
|
|
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-09 22:08:25 +08:00
|
|
|
|
.copy-btn {
|
|
|
|
|
|
opacity: 1;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.model-card-header {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
gap: 16px;
|
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
|
|
|
|
|
|
.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;
|
|
|
|
|
|
|
|
|
|
|
|
.model-name {
|
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: #303133;
|
|
|
|
|
|
margin: 0 0 6px 0;
|
2025-12-10 01:34:40 +08:00
|
|
|
|
//overflow: hidden;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-provider {
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
color: #909399;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.copy-btn {
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
transition: opacity 0.3s;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-description {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
color: #606266;
|
|
|
|
|
|
line-height: 1.7;
|
|
|
|
|
|
margin: 0 0 20px 0;
|
|
|
|
|
|
display: -webkit-box;
|
|
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
|
|
-webkit-box-orient: vertical;
|
2025-12-10 01:34:40 +08:00
|
|
|
|
//overflow: hidden;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
min-height: 48px;
|
|
|
|
|
|
|
|
|
|
|
|
&.placeholder {
|
|
|
|
|
|
color: #c0c4cc;
|
|
|
|
|
|
font-family: 'Monaco', 'Menlo', monospace;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.model-footer {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 16px;
|
|
|
|
|
|
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-10 01:34:40 +08:00
|
|
|
|
padding: 6px 12px;
|
|
|
|
|
|
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;
|
|
|
|
|
|
padding: 32px 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
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 响应式设计
|
|
|
|
|
|
@media (max-width: 1200px) {
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.model-library-container .main-content .content-wrapper .model-list-section .model-grid {
|
2025-12-09 19:11:30 +08:00
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
|
.model-library-container {
|
|
|
|
|
|
.banner-section {
|
2025-12-09 22:08:25 +08:00
|
|
|
|
padding: 32px 16px;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.banner-content .banner-header {
|
2025-12-09 19:11:30 +08:00
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: flex-start;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
|
2025-12-10 01:34:40 +08:00
|
|
|
|
.banner-left {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
gap: 20px;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
|
2025-12-10 01:34:40 +08:00
|
|
|
|
.banner-text-section {
|
|
|
|
|
|
width: 100%;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
|
2025-12-10 01:34:40 +08:00
|
|
|
|
.banner-title {
|
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.banner-subtitle {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-09 22:08:25 +08:00
|
|
|
|
|
|
|
|
|
|
.stats-cards {
|
|
|
|
|
|
width: 100%;
|
2025-12-10 01:34:40 +08:00
|
|
|
|
gap: 12px;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
|
|
|
|
|
|
.stat-card {
|
|
|
|
|
|
flex: 1;
|
2025-12-10 01:34:40 +08:00
|
|
|
|
min-width: 0;
|
|
|
|
|
|
padding: 12px 16px;
|
|
|
|
|
|
|
|
|
|
|
|
.stat-icon {
|
|
|
|
|
|
width: 40px;
|
|
|
|
|
|
height: 40px;
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.stat-info {
|
|
|
|
|
|
.stat-value {
|
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.stat-label {
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-09 22:08:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-10 01:34:40 +08:00
|
|
|
|
}
|
2025-12-09 22:08:25 +08:00
|
|
|
|
|
2025-12-10 01:34:40 +08:00
|
|
|
|
.home-btn {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
justify-content: center;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.main-content {
|
|
|
|
|
|
padding: 24px 16px;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.content-wrapper {
|
|
|
|
|
|
flex-direction: column;
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.filter-sidebar {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
.filter-section {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
|
2025-12-09 22:08:25 +08:00
|
|
|
|
.model-list-section {
|
|
|
|
|
|
.model-grid {
|
|
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
|
gap: 16px;
|
|
|
|
|
|
|
|
|
|
|
|
.model-card {
|
|
|
|
|
|
.model-footer {
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
|
|
|
|
|
|
.model-pricing {
|
|
|
|
|
|
width: 100%;
|
2025-12-10 01:34:40 +08:00
|
|
|
|
justify-content: center;
|
2025-12-09 22:08:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.pagination-wrapper {
|
|
|
|
|
|
:deep(.el-pagination) {
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
|
|
|
|
.btn-prev,
|
|
|
|
|
|
.btn-next {
|
|
|
|
|
|
padding: 0 12px;
|
|
|
|
|
|
min-width: 60px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-pager li {
|
|
|
|
|
|
min-width: 36px;
|
|
|
|
|
|
height: 36px;
|
|
|
|
|
|
line-height: 36px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-09 19:11:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-09 22:08:25 +08:00
|
|
|
|
|
|
|
|
|
|
// 平板适配
|
|
|
|
|
|
@media (min-width: 769px) and (max-width: 1024px) {
|
|
|
|
|
|
.model-library-container .main-content .content-wrapper .model-list-section .model-grid {
|
|
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
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-09 19:11:30 +08:00
|
|
|
|
</style>
|