feat: 官网代码全量更新
覆盖最新版本代码,包含: - 新增品牌百科、公司百科页面及CMS管理 - 新增微信引导组件(WechatCTA) - 新增品牌/公司图片资源 - 全站组件/页面/数据/样式更新 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
这个提交包含在:
+11
-12
@@ -70,7 +70,7 @@
|
||||
<div class="story-nav">
|
||||
<NuxtLink
|
||||
v-if="prevStory"
|
||||
:to="`/stories/${prevStory.id}`"
|
||||
:to="`/stories/${prevStory.slug}`"
|
||||
class="story-nav__item story-nav__item--prev"
|
||||
>
|
||||
<span class="story-nav__label">上一个故事</span>
|
||||
@@ -78,7 +78,7 @@
|
||||
</NuxtLink>
|
||||
<NuxtLink
|
||||
v-if="nextStory"
|
||||
:to="`/stories/${nextStory.id}`"
|
||||
:to="`/stories/${nextStory.slug}`"
|
||||
class="story-nav__item story-nav__item--next"
|
||||
>
|
||||
<span class="story-nav__label">下一个故事</span>
|
||||
@@ -106,7 +106,7 @@
|
||||
class="sidebar-story"
|
||||
:class="{ 'sidebar-story--active': s.id === story.id }"
|
||||
>
|
||||
<NuxtLink :to="`/stories/${s.id}`" class="sidebar-story__link">
|
||||
<NuxtLink :to="`/stories/${s.slug}`" class="sidebar-story__link">
|
||||
<span class="sidebar-story__family">{{ s.familyType }}</span>
|
||||
<span class="sidebar-story__title">{{ s.title }}</span>
|
||||
</NuxtLink>
|
||||
@@ -146,7 +146,7 @@ const { data: storiesData } = await usePublicApi('stories')
|
||||
|
||||
const route = useRoute()
|
||||
const allStories = computed(() => storiesData.value?.stories || [])
|
||||
const story = computed(() => allStories.value.find(s => s.id === route.params.id))
|
||||
const story = computed(() => allStories.value.find(s => s.slug === route.params.id))
|
||||
|
||||
if (!story.value) {
|
||||
throw createError({ statusCode: 404, statusMessage: '故事不存在' })
|
||||
@@ -154,23 +154,22 @@ if (!story.value) {
|
||||
|
||||
// SEO
|
||||
useHead({
|
||||
title: story.value.seo.title,
|
||||
title: story.value.seoTitle || story.value.title,
|
||||
meta: [
|
||||
{ name: 'description', content: story.value.seo.description },
|
||||
{ name: 'keywords', content: story.value.seo.keywords },
|
||||
{ name: 'author', content: story.value.authorName },
|
||||
{ name: 'description', content: story.value.seoDesc || story.value.subtitle },
|
||||
{ name: 'keywords', content: `${story.value.familyType},呼伦贝尔亲子游,呼籁旅行,客户故事` },
|
||||
{ name: 'article:published_time', content: story.value.travelDate + '-01T00:00:00+08:00' },
|
||||
{ name: 'geo.region', content: 'CN-NM' },
|
||||
{ name: 'geo.placename', content: '呼伦贝尔' },
|
||||
{ property: 'og:title', content: story.value.seo.title },
|
||||
{ property: 'og:description', content: story.value.seo.description },
|
||||
{ property: 'og:title', content: story.value.seoTitle || story.value.title },
|
||||
{ property: 'og:description', content: story.value.seoDesc || story.value.subtitle },
|
||||
{ property: 'og:type', content: 'article' },
|
||||
{ property: 'og:url', content: `https://1814.love/stories/${story.value.id}` },
|
||||
{ property: 'og:url', content: `https://1814.love/stories/${story.value.slug}` },
|
||||
{ property: 'og:site_name', content: '呼籁旅行' },
|
||||
{ property: 'og:locale', content: 'zh_CN' },
|
||||
],
|
||||
link: [
|
||||
{ rel: 'canonical', href: `https://1814.love/stories/${story.value.id}` },
|
||||
{ rel: 'canonical', href: `https://1814.love/stories/${story.value.slug}` },
|
||||
],
|
||||
})
|
||||
|
||||
|
||||
+1
-1
@@ -125,7 +125,7 @@ function getCardProps(story) {
|
||||
rel: 'noopener nofollow',
|
||||
}
|
||||
}
|
||||
return { to: `/stories/${story.id}` }
|
||||
return { to: `/stories/${story.slug}` }
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户