Compare commits

...

13 Commits

Author SHA1 Message Date
601c4abe53 fix: 修正计算器连接
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m3s
- 域名改为cal.jinshen.cn
2025-12-26 15:01:35 +08:00
b71ee98129 feat: 为Apple/PWA进行图标适配
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m23s
2025-12-24 14:56:28 +08:00
7611d4f079 fix: 调整页面渲染机制
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m9s
- 懒加载:部分页面添加懒加载机制,在用户访问时先加载静态资源在获取动态资源
- 骨架屏机制:各个页面的骨架屏渲染有el-skeleton自身模板控制
- 布局调整:部分页面布局调整
- i18n文本: 新增国际化文本redirecting
2025-12-19 13:28:54 +08:00
76fb3ddcb7 fix: 重定向页布局调整
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m54s
2025-12-19 13:26:48 +08:00
aa26731731 fix: 补全骨架屏渲染机制
- 补全各个页面的骨架屏渲染机制修改
2025-12-19 13:26:26 +08:00
f2533767d2 fix: 调整关于我们页面渲染机制
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m3s
- 骨架屏:骨架屏由el-skeleton模板控制
2025-12-19 12:53:01 +08:00
f1116491b6 fix: 调整解决方案列表渲染机制
- 骨架屏:解决方案列表页骨架屏渲染由el-skeleton模板控制
2025-12-19 12:48:36 +08:00
537a6b0bd6 fix: 调整产品列表页渲染机制
- 渲染机制:产品列表页懒加载采用el-skeleton自身模板机制
- 布局调整:调整产品页/骨架屏在竖屏下的布局
2025-12-19 12:00:42 +08:00
bcc08a53ea fix: 调整服务支持页面渲染模式
- 将条件渲染由div判断改为el-skeleton template
2025-12-19 11:38:33 +08:00
fa1a22b286 feat: 服务支持页懒加载
- 骨架屏调整:服务支持页骨架屏布局调整
- 懒加载:服务支持页添加懒加载机制
2025-12-19 11:17:32 +08:00
8c720b7ac3 fix: 修正查询/搜索无法完全显示的问题
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m7s
- 扩大查询/搜索的最大条目数
2025-12-18 15:05:57 +08:00
33c0b9cc43 fix: 修正搜索条目无法完全显示的问题
- 为查询/搜索添加更大的limit
2025-12-18 15:05:17 +08:00
fcaf595b73 feat: 添加ICP跳转链接
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m13s
2025-12-13 16:08:38 +08:00
28 changed files with 458 additions and 226 deletions

View File

@ -47,3 +47,9 @@
currentPage.value = 1; // 重置页码
});
</script>
<style scoped>
.el-tabs {
width: 100%;
}
</style>

View File

@ -48,7 +48,7 @@
<ul class="footer-links">
<li>
<a
href="http://cal.3w.jinshen.cn"
href="http://cal.jinshen.cn"
target="_blank"
rel="noopener noreferer"
>

View File

@ -53,7 +53,7 @@
class="hide-on-mobile"
type="info"
:underline="false"
href="http://cal.3w.jinshen.cn"
href="http://cal.jinshen.cn"
target="_blank"
>
<el-icon class="mdi mdi-calculator action-icon" />
@ -131,9 +131,7 @@
mode="vertical"
@select="mobileMenuVisible = false"
>
<el-menu-item
@click="openExternalLink('http://cal.3w.jinshen.cn')"
>
<el-menu-item @click="openExternalLink('http://cal.jinshen.cn')">
{{ $t('navigation.calculator') }}
</el-menu-item>
</el-menu>

View File

@ -51,9 +51,19 @@
// 展开目标项
activeNames.value = [target.id];
await nextTick();
await new Promise((resolve) => setTimeout(resolve, 100)); // 等待动画完成
// 平滑滚动到对应位置
const el = document.querySelector(`#q-${target.id}`);
el?.scrollIntoView({ behavior: 'smooth', block: 'start' });
// const el = document.querySelector(`#q-${target.id}`);
// el?.scrollIntoView({ behavior: 'smooth', block: 'start' });
setTimeout(() => {
const el = document.querySelector(`#q-${target.id}`);
el?.scrollIntoView({
behavior: 'smooth',
block: 'start',
});
}, 200); // 与 el-collapse 的 transition 时间匹配
},
{ immediate: true }
);

View File

@ -1,36 +1,37 @@
<template>
<div class="page-container">
<div v-if="!pending">
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
<div class="content">
<!-- eslint-disable-next-line vue/no-v-html -->
<div class="html-typography" v-html="companyProfile.content || ''" />
<!-- <div v-if="!hydrated" v-html="companyProfile.content || ''" /> -->
<!-- <div v-else> -->
<!-- <html-renderer -->
<!-- class="html-typography" -->
<!-- :html="companyProfile.content || ''" -->
<!-- /> -->
<!-- </div> -->
</div>
<div class="content">
<el-skeleton :loading="pending" :rows="10" animated>
<template #default>
<!-- eslint-disable-next-line vue/no-v-html -->
<div class="html-typography" v-html="companyProfile?.content || ''" />
<!-- <div v-if="!hydrated" v-html="companyProfile.content || ''" /> -->
<!-- <div v-else> -->
<!-- <html-renderer -->
<!-- class="html-typography" -->
<!-- :html="companyProfile.content || ''" -->
<!-- /> -->
<!-- </div> -->
<el-divider content-position="left">{{ $t('learn-more') }}</el-divider>
<div class="button-group">
<learn-more-card
:title="$t('navigation.contact-info')"
:icon="ElIconService"
:to="$localePath('/support/contact-us')"
/>
<learn-more-card
:title="$t('navigation.address')"
:icon="ElIconMapLocation"
@click="openMap"
/>
</div>
</div>
<div v-else class="loading">
<el-skeleton :rows="5" animated />
<el-divider content-position="left">{{
$t('learn-more')
}}</el-divider>
<div class="button-group">
<learn-more-card
:title="$t('navigation.contact-info')"
:icon="ElIconService"
:to="$localePath('/support/contact-us')"
/>
<learn-more-card
:title="$t('navigation.address')"
:icon="ElIconMapLocation"
@click="openMap"
/>
</div>
</template>
</el-skeleton>
</div>
</div>
</template>
@ -42,7 +43,9 @@
{ label: $t('navigation.home'), to: localePath('/') },
{ label: $t('navigation.about-us') },
];
const { data: companyProfile, pending, error } = await useCompanyProfile();
const { data, pending, error } = useCompanyProfile();
const companyProfile = computed(() => data.value ?? null);
const openMap = () => {
window.open(localePath('/locate'));

View File

@ -4,11 +4,17 @@
<h1 class="page-title">{{ $t('navigation.downloads') }}</h1>
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
</div>
<div v-if="!pending" class="page-content">
<file-card :file-id="id" :file="file" />
</div>
<div v-else>
<el-skeleton :rows="6" animated />
<div class="page-content">
<el-skeleton
:loading="pending"
:rows="6"
animated
:throttle="{ leading: 500, trailing: 500 }"
>
<template #default>
<file-card :file-id="id" :file="file" />
</template>
</el-skeleton>
</div>
</div>
</template>

View File

@ -1,5 +1,7 @@
<template>
<div>redirecting...</div>
<div class="page-container">
<h1>{{ $t('redirecting') }}</h1>
</div>
</template>
<script setup lang="ts">
@ -10,3 +12,17 @@
window.location.href = platform;
});
</script>
<style scoped>
.page-container {
display: flex;
justify-content: center;
align-items: center;
min-height: 80vh;
}
h1 {
font-size: 1.5rem;
font-weight: bold;
}
</style>

View File

@ -1,31 +1,21 @@
<template>
<div class="page-container">
<div v-if="!pending">
<div v-if="product">
<!-- 面包屑导航 -->
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
<!-- 产品详情内容 -->
<product-header :product="product" />
<!-- 产品详细描述 -->
<product-detail :product="product" />
</div>
<!-- 未找到产品 -->
<div v-else class="not-found">
<not-found-result
:title="$t('product-not-found')"
:sub-title="$t('product-not-found-desc')"
:back-text="$t('back-to-products')"
:on-back="() => $router.push($localePath('/products'))"
/>
</div>
<div v-if="product">
<!-- 面包屑导航 -->
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
<!-- 产品详情内容 -->
<product-header :product="product" />
<!-- 产品详细描述 -->
<product-detail :product="product" />
</div>
<div v-else class="loading">
<el-skeleton style="--el-skeleton-circle-size: 400px">
<template #template>
<el-skeleton-item variant="circle" />
</template>
</el-skeleton>
<el-skeleton :rows="5" animated />
<!-- 未找到产品 -->
<div v-else class="not-found">
<not-found-result
:title="$t('product-not-found')"
:sub-title="$t('product-not-found-desc')"
:back-text="$t('back-to-products')"
:on-back="() => $router.push($localePath('/products'))"
/>
</div>
</div>
</template>
@ -37,7 +27,7 @@
// 获取路由参数
const id = route.params.slug as string;
const { data: product, pending, error } = await useProduct(id);
const { data: product, error } = await useProduct(id);
const breadcrumbItems = computed(() => [
{ label: $t('navigation.home'), to: localePath('/') },

View File

@ -10,31 +10,49 @@
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
</div>
<div v-if="!pending" class="page-content">
<div class="products-container">
<el-collapse v-model="activeNames" class="product-collapse">
<el-collapse-item
v-for="[key, value] in Object.entries(groupedProducts)"
:key="key"
:title="key || '未分类'"
:name="key || 'no-category'"
>
<div class="group-list">
<product-card
v-for="product in value.data"
:key="product.id"
:slug="product.id.toString()"
:image-url="getImageUrl(product.cover.toString())"
:name="product.name"
:description="product.summary || ''"
<div>
<el-skeleton
animated
:loading="pending"
:throttle="{ leading: 500, trailing: 500 }"
>
<template #template>
<div v-for="i in 3" :key="i" class="products-container">
<el-skeleton-item variant="h1" class="skeleton-collapse" />
<div class="skeleton-group-list">
<el-skeleton-item
v-for="j in 3"
:key="j"
variant="rect"
class="skeleton-card"
/>
</div>
</el-collapse-item>
</el-collapse>
</div>
</div>
<div v-else>
<el-skeleton :rows="6" animated />
</div>
</template>
<template #default>
<div class="products-container">
<el-collapse v-model="activeNames" class="product-collapse">
<el-collapse-item
v-for="[key, value] in Object.entries(groupedProducts)"
:key="key"
:title="key || '未分类'"
:name="key || 'no-category'"
>
<div class="group-list">
<product-card
v-for="product in value.data"
:key="product.id"
:slug="product.id.toString()"
:image-url="getImageUrl(product.cover.toString())"
:name="product.name"
:description="product.summary || ''"
/>
</div>
</el-collapse-item>
</el-collapse>
</div>
</template>
</el-skeleton>
</div>
</div>
</template>
@ -151,6 +169,46 @@
justify-content: flex-start;
}
.skeleton-collapse {
height: 50px;
width: 100%;
}
.skeleton-group-list {
display: flex;
flex-wrap: wrap;
gap: 40px;
justify-content: flex-start;
margin-bottom: 2rem;
}
.skeleton-card {
width: 30%;
height: 250px;
margin-right: 1rem;
}
@media (max-width: 1200px) {
.skeleton-card {
width: 45%;
}
}
@media (max-width: 768px) {
.group-list {
justify-content: center;
align-items: center;
}
.skeleton-group-list {
justify-content: center;
align-items: center;
}
.skeleton-card {
width: 90%;
}
}
:deep(.el-collapse-item__header) {
padding: 30px auto;
font-size: 1.5rem;

View File

@ -1,18 +1,33 @@
<template>
<div class="search-page">
<search-header v-model="keyword" />
<div v-if="loading" class="search-state">
<el-skeleton :rows="4" animated />
</div>
<search-tabs v-else-if="hasResults" :search-items="searchItems" />
<div v-else class="search-state">
<el-empty
:description="
route.query.query
? $t('search.no-results', { query: route.query?.query })
: $t('search.no-query')
"
/>
<div class="search-state">
<el-skeleton
:loading="loading"
animated
:throttle="{ leading: 500, trailing: 500 }"
>
<template #template>
<el-skeleton-item
v-for="i in 10"
:key="i"
variant="rect"
class="skeleton-item"
/>
</template>
<template #default>
<search-tabs v-if="hasResults" :search-items="searchItems" />
<div v-else>
<el-empty
:description="
route.query.query
? $t('search.no-results', { query: route.query?.query })
: $t('search.no-query')
"
/>
</div>
</template>
</el-skeleton>
</div>
</div>
</template>
@ -96,7 +111,11 @@
.search-state {
display: flex;
justify-content: center;
padding: 3rem 0;
}
.skeleton-item {
height: 80px;
margin-bottom: 1rem;
}
@media (max-width: 640px) {

View File

@ -1,23 +1,18 @@
<template>
<div class="page-container">
<div v-if="!pending">
<div v-if="solution">
<div class="page-header">
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
</div>
<solution-detail :solution="solution" />
</div>
<div v-else class="not-found">
<not-found-result
:title="$t('solution-not-found')"
:sub-title="$t('solution-not-found-desc')"
:back-text="$t('back-to-solutions')"
:on-back="() => $router.push($localePath('/solutions'))"
/>
<div v-if="solution">
<div class="page-header">
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
</div>
<solution-detail :solution="solution" />
</div>
<div v-else class="loading">
<el-skeleton :rows="5" animated />
<div v-else class="not-found">
<not-found-result
:title="$t('solution-not-found')"
:sub-title="$t('solution-not-found-desc')"
:back-text="$t('back-to-solutions')"
:on-back="() => $router.push($localePath('/solutions'))"
/>
</div>
</div>
</template>
@ -29,7 +24,7 @@
// 获取路由参数
const id = route.params.slug as string;
const { data: solution, pending, error } = await useSolution(id);
const { data: solution, error } = await useSolution(id);
const breadcrumbItems = computed(() => [
{ label: $t('navigation.home'), to: localePath('/') },

View File

@ -8,41 +8,59 @@
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
</div>
<div v-if="!pending" class="solutions-container">
<el-tabs v-model="activeName" class="solutions-tabs">
<el-tab-pane :label="$t('all')" name="all">
<div class="solution-list">
<solution-card
v-for="solution in solutions"
:key="solution.id"
:title="solution.title"
:summary="solution.summary || ''"
:cover-url="getImageUrl(solution.cover || '')"
:document-id="solution.id.toString()"
<div class="solutions-container">
<el-skeleton
:loading="pending"
animated
:throttle="{
leading: 500,
trailing: 500,
}"
>
<template #template>
<div class="skeleton-group-list">
<el-skeleton-item
v-for="i in 12"
:key="i"
variant="rect"
class="skeleton-card"
/>
</div>
</el-tab-pane>
<el-tab-pane
v-for="[key, value] in Object.entries(groupedSolutions)"
:key="key"
:label="key || '未分类'"
:name="key || 'no-category'"
>
<div class="solution-list">
<solution-card
v-for="solution in value.data"
:key="solution.id"
:document-id="solution.id.toString()"
:cover-url="getImageUrl(solution.cover || '')"
:title="solution.title"
:summary="solution.summary || ''"
/>
</div>
</el-tab-pane>
</el-tabs>
</div>
<div v-else>
<el-skeleton :rows="6" animated />
</template>
<template #default>
<el-tabs v-model="activeName" class="solutions-tabs">
<el-tab-pane :label="$t('all')" name="all">
<div class="solution-list">
<solution-card
v-for="solution in solutions"
:key="solution.id"
:title="solution.title"
:summary="solution.summary || ''"
:cover-url="getImageUrl(solution.cover || '')"
:document-id="solution.id.toString()"
/>
</div>
</el-tab-pane>
<el-tab-pane
v-for="[key, value] in Object.entries(groupedSolutions)"
:key="key"
:label="key || '未分类'"
:name="key || 'no-category'"
>
<div class="solution-list">
<solution-card
v-for="solution in value.data"
:key="solution.id"
:document-id="solution.id.toString()"
:cover-url="getImageUrl(solution.cover || '')"
:title="solution.title"
:summary="solution.summary || ''"
/>
</div>
</el-tab-pane>
</el-tabs>
</template>
</el-skeleton>
</div>
</div>
</template>
@ -56,7 +74,9 @@
{ label: $t('navigation.solutions') },
];
const { data: solutions, pending, error } = await useSolutionList();
const { data, pending, error } = useSolutionList();
const solutions = computed(() => data.value ?? []);
const activeName = ref<string>('all');
@ -123,4 +143,34 @@
margin-bottom: 2rem;
gap: 40px;
}
.skeleton-group-list {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: flex-start;
margin-bottom: 2rem;
}
.skeleton-card {
width: 30%;
height: 200px;
}
@media (max-width: 1200px) {
.skeleton-card {
width: 45%;
}
}
@media (max-width: 768px) {
.skeleton-group-list {
justify-content: center;
align-items: center;
}
.skeleton-card {
width: 90%;
}
}
</style>

View File

@ -6,19 +6,25 @@
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
</div>
<div v-if="!pending" class="page-content">
<!-- eslint-disable-next-line vue/no-v-html -->
<div class="html-typography" v-html="contactInfo?.content || ''" />
<!-- <div v-if="!hydrated" v-html="contactInfo?.content || ''" /> -->
<!-- <div v-else> -->
<!-- <html-renderer -->
<!-- class="html-typography" -->
<!-- :html="contactInfo?.content || ''" -->
<!-- /> -->
<!-- </div> -->
</div>
<div v-else class="loading">
<el-skeleton :rows="5" animated />
<div class="page-content">
<el-skeleton
:rows="10"
:loading="pending"
animated
:throttle="{ leading: 500, trailing: 500 }"
>
<template #default>
<!-- eslint-disable-next-line vue/no-v-html -->
<div class="html-typography" v-html="contactInfo?.content || ''" />
<!-- <div v-if="!hydrated" v-html="contactInfo?.content || ''" /> -->
<!-- <div v-else> -->
<!-- <html-renderer -->
<!-- class="html-typography" -->
<!-- :html="contactInfo?.content || ''" -->
<!-- /> -->
<!-- </div> -->
</template>
</el-skeleton>
</div>
</div>
</template>
@ -31,7 +37,9 @@
{ label: $t('navigation.support'), to: localePath('/support') },
{ label: $t('navigation.contact-info') },
];
const { data: contactInfo, pending, error } = await useContactInfo();
const { data, pending, error } = useContactInfo();
const contactInfo = computed(() => data.value ?? null);
watch(error, (value) => {
if (value) {

View File

@ -1,9 +1,6 @@
<template>
<div class="page-container">
<div v-if="pending">
<el-skeleton :rows="5" animated />
</div>
<div v-else>
<div>
<support-tabs model-value="documents" />
<div class="page-header">
<h1 class="page-title">{{ $t('navigation.documents') }}</h1>
@ -17,22 +14,47 @@
:document-type-options="documentTypeOptions"
/>
<document-list
:documents="paginatedDocuments"
:show-category="
filters.selectedDocumentType === null ||
filters.selectedDocumentType === undefined
"
/>
<el-skeleton
:loading="pending"
animated
:throttle="{
leading: 500,
trailing: 500,
}"
>
<template #template>
<div class="flex flex-col gap-xl">
<el-skeleton-item
variant="rect"
style="width: 100%; height: 100px"
/>
<el-skeleton-item
v-for="i in 10"
:key="i"
variant="h1"
style="height: 60px"
/>
</div>
</template>
<template #default>
<document-list
:documents="paginatedDocuments"
:show-category="
filters.selectedDocumentType === null ||
filters.selectedDocumentType === undefined
"
/>
<el-pagination
v-model:current-page="page"
class="justify-center pagination-container"
layout="prev, pager, next"
hide-on-single-page
:page-size="documentsPerPage"
:total="filteredDocuments.length"
/>
<el-pagination
v-model:current-page="page"
class="justify-center pagination-container"
layout="prev, pager, next"
hide-on-single-page
:page-size="documentsPerPage"
:total="filteredDocuments.length"
/>
</template>
</el-skeleton>
</div>
</div>
</div>
@ -56,7 +78,9 @@
const page = ref(1);
const documentsPerPage = 10;
const { data: documents, pending, error } = await useDocumentList();
const { data, pending, error } = useDocumentList();
const documents = computed(() => data.value ?? []);
const documentTypeOptions = computed(() => {
const types: DocumentTypeView[] = [];

View File

@ -1,34 +1,47 @@
<template>
<div class="page-container">
<div v-if="pending" class="flex justify-center items-center h-64">
<el-skeleton :rows="6" animated />
<support-tabs model-value="faq" />
<div class="page-header">
<h1 class="page-title">{{ $t('navigation.faq') }}</h1>
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
</div>
<div v-else>
<support-tabs model-value="faq" />
<div class="page-header">
<h1 class="page-title">{{ $t('navigation.faq') }}</h1>
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
</div>
<div class="page-content">
<question-filter
v-model="filters"
:product-type-options="productTypeOptions"
:product-options="productOptions"
:question-type-options="questionTypeOptions"
/>
<div class="page-content">
<question-filter
v-model="filters"
:product-type-options="productTypeOptions"
:product-options="productOptions"
:question-type-options="questionTypeOptions"
/>
<question-list :questions="paginatedQuestions" />
<el-skeleton
:loading="pending"
animated
:throttle="{ leading: 500, trailing: 500 }"
>
<template #template>
<div class="flex flex-col gap-xl">
<el-skeleton-item
v-for="i in 10"
:key="i"
variant="h1"
style="height: 80px"
/>
</div>
</template>
<template #default>
<question-list :questions="paginatedQuestions" />
<el-pagination
v-model:current-page="page"
class="justify-center pagination-container"
layout="prev, pager, next"
hide-on-single-page
:page-size="questionsPerPage"
:total="filteredQuestions.length"
/>
</div>
<el-pagination
v-model:current-page="page"
class="justify-center pagination-container"
layout="prev, pager, next"
hide-on-single-page
:page-size="questionsPerPage"
:total="filteredQuestions.length"
/>
</template>
</el-skeleton>
</div>
</div>
</template>
@ -57,7 +70,9 @@
{ label: $t('navigation.faq') },
];
const { data: questions, pending, error } = await useQuestionList();
const { data, pending, error } = useQuestionList();
const questions = computed(() => data.value ?? []);
const questionTypeOptions = computed(() => {
const types: QuestionTypeView[] = [];

View File

@ -127,5 +127,6 @@
"specs": "Specifications",
"faq": "FAQ",
"documents": "Documents"
}
},
"redirecting": "Redirecting..."
}

View File

@ -126,5 +126,6 @@
"specs": "Especificaciones",
"faq": "FAQ",
"documents": "Documentos"
}
},
"redirecting": "Redirigiendo..."
}

View File

@ -126,5 +126,6 @@
"specs": "Технические спецификации",
"faq": "Часто задаваемые вопросы",
"documents": "Связанные документы"
}
},
"redirecting": "Перенаправление..."
}

View File

@ -126,5 +126,6 @@
"specs": "技术规格",
"faq": "常见问题",
"documents": "相关文档"
}
},
"redirecting": "正在跳转..."
}

View File

@ -20,7 +20,17 @@ export default defineNuxtConfig({
htmlAttrs: {
lang: 'zh',
},
link: [{ rel: 'icon', type: 'image/x-icon', href: '/jinshen-logo.ico' }],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/jinshen-logo.ico' },
{
rel: 'apple-touch-icon',
href: '/jinshen-logo.png',
},
{
rel: 'manifest',
href: '/manifest.json',
},
],
},
},

BIN
public/logo196x196.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
public/logo512x512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

20
public/manifest.json Normal file
View File

@ -0,0 +1,20 @@
{
"name": "金申机械制造有限公司",
"short_name": "金申机械",
"icons": [
{
"src": "/logo196x196.png",
"sizes": "196x196",
"type": "image/png"
},
{
"src": "/logo512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": ".",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#0f172a"
}

View File

@ -11,7 +11,7 @@ export default defineEventHandler(async (event) => {
if (!q) return [];
const meili = getMeiliService();
const sections = await meili.search(q, { limit: 12 }, locale);
const sections = await meili.search(q, { limit: 500 }, locale);
// 空Section过滤
const filteredSections = sections.filter(

View File

@ -1,5 +1,5 @@
query GetDocumentList($locale: String!) {
product_documents(filter: { status: { _eq: "published" } }) {
product_documents(filter: { status: { _eq: "published" } }, limit: 500) {
id
file {
id

View File

@ -1,5 +1,5 @@
query GetProductList($locale: String!) {
products(filter: { status: { _eq: "in-production" } }) {
products(filter: { status: { _eq: "in-production" } }, limit: 200) {
id
status
translations(filter: { languages_code: { code: { _eq: $locale } } }) {

View File

@ -1,5 +1,5 @@
query GetQuestionList($locale: String!) {
questions(filter: { status: { _eq: "published" } }) {
questions(filter: { status: { _eq: "published" } }, limit: 500) {
id
type {
id

View File

@ -1,5 +1,5 @@
query GetSolutionList($locale: String!) {
solutions(filter: { status: { _eq: "published" } }) {
solutions(filter: { status: { _eq: "published" } }, limit: 200) {
id
cover {
id