feat(App.vue, Prices.vue): 添加论坛反馈按钮并优化价格卡片元信息显示

- 在App.vue中新增论坛反馈按钮,链接至相关讨论页面
- 在Prices.vue中更新价格卡片的显示逻辑,使用更新者信息替代创建者信息,提升信息准确性
This commit is contained in:
wood chen 2025-07-17 20:48:19 +08:00
parent 04d000b072
commit 309fd4f2fb
2 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@
<el-button @click="$router.push('/prices')" :type="$route.path === '/prices' ? 'primary' : ''">价格列表</el-button> <el-button @click="$router.push('/prices')" :type="$route.path === '/prices' ? 'primary' : ''">价格列表</el-button>
<el-button @click="$router.push('/providers')" :type="$route.path === '/providers' ? 'primary' : ''">模型厂商</el-button> <el-button @click="$router.push('/providers')" :type="$route.path === '/providers' ? 'primary' : ''">模型厂商</el-button>
<el-button @click="$router.push('/model-types')" :type="$route.path === '/model-types' ? 'primary' : ''">模型类别</el-button> <el-button @click="$router.push('/model-types')" :type="$route.path === '/model-types' ? 'primary' : ''">模型类别</el-button>
<el-button @click="$router.push('https://www.sunai.net/t/topic/937')">论坛反馈</el-button>
</div> </div>
</div> </div>
<div class="auth-buttons"> <div class="auth-buttons">

View File

@ -222,7 +222,7 @@
<div class="price-card-footer"> <div class="price-card-footer">
<div class="meta-info"> <div class="meta-info">
<span class="created-by"><el-icon><User /></el-icon> {{ price.created_by }}</span> <span class="updated-by"><el-icon><User /></el-icon> {{ price.updated_by || price.created_by }}</span>
<span class="updated-at"><el-icon><Timer /></el-icon> {{ new Date(price.updated_at).toLocaleString() }}</span> <span class="updated-at"><el-icon><Timer /></el-icon> {{ new Date(price.updated_at).toLocaleString() }}</span>
<div v-if="price.price_source" class="price-source"> <div v-if="price.price_source" class="price-source">
<span class="source-label"><el-icon><InfoFilled /></el-icon></span> <span class="source-label"><el-icon><InfoFilled /></el-icon></span>
@ -2075,7 +2075,7 @@ onMounted(() => {
font-size: 0.8rem; /* 减小图标 */ font-size: 0.8rem; /* 减小图标 */
} }
.created-by { .updated-by {
font-weight: normal; /* 使用正常字重 */ font-weight: normal; /* 使用正常字重 */
display: flex; display: flex;
align-items: center; align-items: center;