修复官网选购咨询入口与图片失败降级

This commit is contained in:
cieanyau committed 2026-11-06 04:48:38 +08:00
1 parent d8224ec5b7
commit 08ffc51894
5 files changed
+463 -89

No files matched your search

+55 -29
View File
@@ -25,6 +25,7 @@ import { normalizeStyle } from "vue";
import { useHead } from "#app";
import { NuxtLink } from "#components";
import { Icon } from "#components";
import OfficialImage from "~/components/OfficialImage.vue";
import { i as useOfficialSiteContent_i } from "~/lib/useOfficialSiteContent.js";
import { n as useOfficialSiteContent_n } from "~/lib/useOfficialSiteContent.js";
import { r as useOfficialSiteContent_r } from "~/lib/useOfficialSiteContent.js";
@@ -162,7 +163,6 @@ var x = {
he = {
class: `official-review-person`,
},
ge = [`src`, `alt`],
_e = {
key: 1,
class: `official-review-avatar`,
@@ -639,6 +639,13 @@ var x = {
1032,
[`to`],
),
n.href === `/tickets/create`
? createElementVNode(
`p`,
null,
`机柜托管及定制方案请登录后提交工单咨询`,
)
: createCommentVNode(``, !0),
],
4,
)
@@ -922,35 +929,33 @@ var x = {
1,
),
createElementVNode(`div`, he, [
unref(
useOfficialSiteContent_i,
)(t.avatar)
? (openBlock(),
createElementBlock(
`img`,
{
key: 0,
src: unref(
useOfficialSiteContent_i,
)(t.avatar),
alt: t.author,
},
null,
8,
ge,
))
: (openBlock(),
createElementBlock(
`span`,
_e,
toDisplayString(
t.author.slice(
0,
1,
) || `客`,
createVNode(
OfficialImage,
{
src: unref(
useOfficialSiteContent_i,
)(t.avatar),
alt: t.author,
},
{
default: withCtx(() => [
createElementVNode(
`span`,
_e,
toDisplayString(
t.author.slice(
0,
1,
) || `客`,
),
1,
),
1,
)),
]),
_: 2,
},
1032,
[`src`, `alt`],
),
createElementVNode(
`div`,
null,
@@ -1011,6 +1016,27 @@ var x = {
),
1,
),
!unref(X).footer.phone &&
!unref(X).footer.email &&
!unref(X).footer.address
? createElementVNode(`p`, null, [
createTextVNode(
`机柜托管及定制方案:`,
),
createVNode(
f,
{ to: `/tickets/create` },
{
default: withCtx(() => [
createTextVNode(
`登录后提交工单咨询`,
),
]),
_: 1,
},
),
])
: createCommentVNode(``, !0),
]),
createElementVNode(`div`, xe, [
createVNode(